.qa-bbn-section,
.qa-bbn-section * {
    box-sizing: border-box;
}

.qa-bbn-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #f6f1e8;
    color: #171717;
}

.qa-bbn-inner {
    width: 100%;
    max-width: none !important;
    margin: 0 auto;
    padding: 14px 18px 10px;
}

.qa-bbn-heading {
    margin: 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.4vw, 36px);
    line-height: 1.08;
    font-weight: 700;
    color: #090909;
}

.qa-bbn-subheading {
    margin: 15px 0 11px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: #141414;
}

.qa-bbn-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.qa-bbn-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3ddd3;
    border-radius: 7px;
    background: #fbf8f1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}


/* v1.8: entire card uses the card's existing link; keep the exact same visual design */
a.qa-bbn-card,
a.qa-bbn-card:visited,
a.qa-bbn-card:hover,
a.qa-bbn-card:focus {
    color: inherit;
    text-decoration: none !important;
}

a.qa-bbn-card {
    display: block;
    cursor: pointer;
}

a.qa-bbn-card:focus-visible {
    outline: 2px solid #b47d25;
    outline-offset: 2px;
}

.qa-bbn-media {
    width: 100%;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
    overflow: hidden;
    background: #d7cdbc;
}

.qa-bbn-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.qa-bbn-card-body {
    min-height: 158px;
    padding: 10px 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qa-bbn-icon {
    height: 24px;
    margin: 0 0 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #191919;
}

/* Do not reserve empty icon space above the title */
.qa-bbn-icon:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.qa-bbn-icon i {
    font-size: 27px;
    line-height: 1;
}

.qa-bbn-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qa-bbn-card-title {
    margin: 5px 0 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 700;
    color: #151515;
}

.qa-bbn-card-description {
    margin: 0;
    max-width: 300px;
    min-height: 34px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.18;
    color: #181818;
}

.qa-bbn-arrow {
    width: 31px;
    height: 31px;
    margin-top: auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    background: #b47d25;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease;
}

.qa-bbn-arrow:hover,
.qa-bbn-arrow:focus-visible {
    background: #946319;
    color: #ffffff;
    transform: translateY(-1px);
}

.qa-bbn-arrow:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .qa-bbn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .qa-bbn-inner {
        padding: 18px 10px 8px;
    }

    .qa-bbn-subheading {
        margin-top: 10px;
    }

    /* Mobile: 2 cards per row = 2 x 2 grid */
    .qa-bbn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .qa-bbn-card-body {
        min-height: 150px;
        padding: 9px 8px 10px;
    }

    .qa-bbn-card-title {
        margin: 4px 0 3px;
        font-size: 15px;
        line-height: 1.12;
    }

    .qa-bbn-card-description {
        min-height: 34px;
        max-width: 100%;
        font-size: 10.5px;
        line-height: 1.2;
    }

    .qa-bbn-arrow {
        width: 29px;
        height: 29px;
        font-size: 16px;
    }
}


/* =========================================================
   v2.0 - tighter vertical spacing (desktop + mobile)
   Keeps design/colors/images/links unchanged
   ========================================================= */

.qa-bbn-card-body {
    min-height: 138px !important;
    padding-top: 6px !important;
    padding-bottom: 8px !important;
}

.qa-bbn-icon,
.qa-bbn-icon:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.qa-bbn-card-title {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

.qa-bbn-card-description {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.qa-bbn-arrow {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* Reduce any gap directly after the image */
.qa-bbn-card > img,
.qa-bbn-card-image,
.qa-bbn-image,
.qa-bbn-card picture,
.qa-bbn-card figure {
    margin-bottom: 0 !important;
}

/* Mobile - tighter but still balanced */
@media (max-width: 600px) {
    .qa-bbn-card-body {
        min-height: 128px !important;
        padding: 5px 7px 8px !important;
    }

    .qa-bbn-card-title {
        margin-top: 1px !important;
        margin-bottom: 2px !important;
    }

    .qa-bbn-card-description {
        min-height: 0 !important;
        margin-bottom: 5px !important;
    }

    .qa-bbn-arrow {
        margin-top: auto !important;
    }
}


/* =========================================================
   v2.1 - reduce description-to-arrow gap (desktop + mobile)
   ========================================================= */

/* Stop flex from pushing the arrow to the very bottom */
.qa-bbn-arrow {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Keep text compact directly above the arrow */
.qa-bbn-card-description {
    margin-bottom: 0 !important;
}

/* Reduce extra body height so no empty area remains below text */
.qa-bbn-card-body {
    min-height: 126px !important;
}

@media (max-width: 600px) {
    .qa-bbn-arrow {
        margin-top: 5px !important;
        margin-bottom: 0 !important;
    }

    .qa-bbn-card-description {
        margin-bottom: 0 !important;
    }

    .qa-bbn-card-body {
        min-height: 118px !important;
    }
}


/* =========================================================
   v2.2 - force all arrows onto the same line
   Keeps existing design but equalizes the text area height
   ========================================================= */

.qa-bbn-card-body{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    min-height: 162px !important;
}

.qa-bbn-card-title{
    width:100% !important;
    min-height: 42px !important;
    margin: 2px 0 4px !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    text-align:center !important;
}

.qa-bbn-card-description{
    width:100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    display:block !important;
    text-align:center !important;
}

.qa-bbn-arrow{
    margin-top:auto !important;
    margin-bottom:0 !important;
    flex-shrink:0 !important;
}

/* If any card has slightly shorter content, this keeps alignment consistent */
.qa-bbn-card-body > *{
    flex-shrink:0;
}

@media (max-width: 600px){
    .qa-bbn-card-body{
        min-height: 170px !important;
        padding: 6px 7px 8px !important;
    }

    .qa-bbn-card-title{
        min-height: 48px !important;
        margin: 2px 0 4px !important;
    }

    .qa-bbn-card-description{
        min-height: 50px !important;
        margin: 0 !important;
    }

    .qa-bbn-arrow{
        margin-top:auto !important;
        margin-bottom:0 !important;
    }
}


/* =========================================================
   v2.3 - compact balanced cards
   Less empty vertical space, arrows stay aligned
   ========================================================= */

.qa-bbn-card-body{
    min-height: 126px !important;
    padding: 5px 12px 8px !important;
}

.qa-bbn-card-title{
    min-height: 34px !important;
    margin: 1px 0 2px !important;
    align-items:flex-start !important;
}

.qa-bbn-card-description{
    min-height: 34px !important;
    margin: 0 !important;
    line-height: 1.16 !important;
}

.qa-bbn-arrow{
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

/* Mobile: compact 2x2 cards, same arrow line */
@media (max-width: 600px){
    .qa-bbn-card-body{
        min-height: 132px !important;
        padding: 5px 6px 7px !important;
    }

    .qa-bbn-card-title{
        min-height: 34px !important;
        margin: 1px 0 2px !important;
        line-height: 1.08 !important;
    }

    .qa-bbn-card-description{
        min-height: 46px !important;
        margin: 0 !important;
        line-height: 1.15 !important;
    }

    .qa-bbn-arrow{
        margin-top: 4px !important;
        margin-bottom: 0 !important;
    }
}


/* =========================================================
   v2.4 - reduce image/title/description gaps more
   ========================================================= */
.qa-bbn-card-body{
    padding-top: 3px !important;
    min-height: 118px !important;
}

.qa-bbn-card-title{
    margin-top: 0 !important;
    margin-bottom: 1px !important;
    min-height: 30px !important;
    line-height: 1.03 !important;
}

.qa-bbn-card-description{
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    min-height: 28px !important;
    line-height: 1.12 !important;
}

.qa-bbn-media,
.qa-bbn-card > img,
.qa-bbn-card picture,
.qa-bbn-card figure,
.qa-bbn-card-image,
.qa-bbn-image{
    margin-bottom: 0 !important;
}

@media (max-width: 600px){
    .qa-bbn-card-body{
        padding-top: 2px !important;
        padding-bottom: 6px !important;
        min-height: 112px !important;
    }

    .qa-bbn-card-title{
        margin-top: 0 !important;
        margin-bottom: 1px !important;
        min-height: 28px !important;
        line-height: 1.02 !important;
    }

    .qa-bbn-card-description{
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        min-height: 38px !important;
        line-height: 1.10 !important;
    }
}


/* =========================================================
   v2.5 - professional image-to-title breathing space
   Slightly more space than v2.4, without making cards tall
   ========================================================= */

.qa-bbn-card-body {
    padding-top: 8px !important;
}

.qa-bbn-card-title {
    margin-top: 0 !important;
    margin-bottom: 3px !important;
}

/* Mobile needs a little breathing room too */
@media (max-width: 600px) {
    .qa-bbn-card-body {
        padding-top: 7px !important;
    }

    .qa-bbn-card-title {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
    }
}
