/* ============================================================
   Bariatric Section Block — Frontend Styles
   ============================================================ */

.bsb-wrapper {
    --bsb-green:    #2e7d32;
    --bsb-green-dk: #1b5e20;
    --bsb-navy:     #0a2540;
    --bsb-blue:     #1565c0;
    --bsb-white:    #ffffff;
    --bsb-gray-lt:  #f5f6f7;
    --bsb-gray:     #6c757d;
    --bsb-shadow:   0 4px 28px rgba(0,0,0,.12);
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}
.bsb-wrapper *, .bsb-wrapper *::before, .bsb-wrapper *::after { box-sizing: inherit; }

/* ── Desktop: 3-column flex ─────────────────────────────────── */
.bsb-desktop {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--bsb-shadow);
    align-items: stretch;   /* all cols same height */
}
.bsb-mobile { display: none; }

/* ── Section titles ─────────────────────────────────────────── */
.bsb-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--bsb-navy);
    margin: 0 0 14px;
}
.bsb-section-title--light {
    color: var(--bsb-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    opacity: .9;
}

/* ══════════════════════════════════════════════════════════════
   COL 1 — WHY CHOOSE US
   ══════════════════════════════════════════════════════════════ */
.bsb-col--why {
    flex: 1;
    background: var(--bsb-white);
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e4e6e8;
}
.bsb-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bsb-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.bsb-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.bsb-feature-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.bsb-feature-text { display: flex; flex-direction: column; gap: 1px; }
.bsb-feature-text strong { font-size: 1rem; font-weight: 700; color: var(--bsb-navy); }
.bsb-feature-text span   { font-size: .85rem; color: var(--bsb-gray); }

.bsb-tagline {
    background: var(--bsb-green);
    color: var(--bsb-white);
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 8px;
    margin-top: 20px;
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════════
   COL 2 — ABOUT US
   ══════════════════════════════════════════════════════════════ */
.bsb-col--about {
    flex: 1.1;
    background: var(--bsb-gray-lt);
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e4e6e8;
}
/* text left, image right */
.bsb-about-body {
    display: flex;
    gap: 14px;
    align-items: stretch;
    flex: 1;
}
.bsb-about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bsb-about-right {
    flex-shrink: 0;
    width: 45%;
}
.bsb-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    min-height: 140px;
}
.bsb-about-text {
    font-size: .97rem;
    color: #3a3a3a;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   COL 3 — OUR SURGEON
   text on left, photo on right, photo fills full column height
   ══════════════════════════════════════════════════════════════ */
.bsb-col--surgeon {
    flex: 1.1;
    background: var(--bsb-navy);
    display: flex;
    flex-direction: column;
    padding: 0;             /* no col padding — inner handles it */
    overflow: hidden;
    position: relative;
}
.bsb-surgeon-body {
    display: flex;
    align-items: stretch;
    flex: 1;
    height: 100%;
}
.bsb-surgeon-info {
    flex: 1;
    padding: 28px 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bsb-surgeon-photo {
    flex-shrink: 0;
    width: 46%;
    position: relative;
    overflow: hidden;
}
.bsb-surgeon-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
}

.bsb-surgeon-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bsb-white);
    margin: 0;
    line-height: 1.3;
}
.bsb-surgeon-role {
    font-size: .88rem;
    color: #90caf9;
    margin: 0 0 4px;
}
.bsb-surgeon-points {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.bsb-surgeon-points li { font-size: .84rem; color: #ffffff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.bsb-btn {
    display: inline-block;
    padding: 9px 20px;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: background .2s, color .2s, transform .1s;
    align-self: flex-start;
    white-space: nowrap;
}
.bsb-btn:hover { transform: translateY(-1px); }
.bsb-btn--outline { border: 2px solid var(--bsb-green); color: var(--bsb-green); background: transparent; }
.bsb-btn--outline:hover { background: var(--bsb-green); color: var(--bsb-white); }
.bsb-btn--white { background: var(--bsb-white); color: var(--bsb-navy); border: 2px solid var(--bsb-white); }
.bsb-btn--white:hover { background: transparent; color: var(--bsb-white); }
.bsb-btn--dark { background: var(--bsb-green); color: var(--bsb-white); border: 2px solid var(--bsb-green); }
.bsb-btn--dark:hover { background: var(--bsb-green-dk); border-color: var(--bsb-green-dk); }

/* ============================================================
   MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    .bsb-desktop { display: none; }
    .bsb-mobile  { display: block; }

    /* Why Choose Us title above card */
    .bsb-mobile-why-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--bsb-navy);
        margin: 0 0 12px 2px;
    }
    .bsb-mobile-why {
        background: var(--bsb-white);
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 18px 18px 14px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,.07);
    }
    .bsb-mobile-why .bsb-feature-text strong { font-size: 1rem; }
    .bsb-mobile-why .bsb-feature-text span   { font-size: .88rem; }
    .bsb-mobile-why .bsb-tagline { margin-top: 16px; }

    /* Accordion */
    .bsb-accordion {
        border: 1px solid #dee2e6;
        border-radius: 10px;
        margin-bottom: 16px;
        overflow: hidden;
        background: var(--bsb-white);
        box-shadow: 0 2px 8px rgba(0,0,0,.07);
    }
    .bsb-accordion__trigger {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 18px;
        background: var(--bsb-white);
        border: none;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        color: var(--bsb-navy);
        text-align: left;
        transition: background .15s;
    }
    .bsb-accordion__trigger:hover { background: #f0f4f8; }
    .bsb-accordion__trigger[aria-expanded="true"] { background: #e8f5e9; }
    .bsb-accordion__icon  { font-size: 1.25rem; flex-shrink: 0; }
    .bsb-accordion__label { flex: 1; }
    .bsb-accordion__arrow {
        font-size: 1.4rem;
        color: var(--bsb-gray);
        transition: transform .25s;
    }
    .bsb-accordion__trigger[aria-expanded="true"] .bsb-accordion__arrow { transform: rotate(90deg); }

    .bsb-accordion__body {
        padding: 16px 18px 20px;
        border-top: 1px solid #e9ecef;
        animation: bsb-slide-down .2s ease;
    }
    @keyframes bsb-slide-down {
        from { opacity: 0; transform: translateY(-5px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* About Us — text left, image right on mobile */
    .bsb-about-body--mobile {
        display: flex;
        gap: 12px;
        align-items: stretch;
    }
    .bsb-about-body--mobile .bsb-about-left { flex: 1; display: flex; flex-direction: column; gap: 12px; }
    .bsb-about-body--mobile .bsb-about-right { flex-shrink: 0; width: 36%; }
    .bsb-about-body--mobile .bsb-about-img {
        width: 100%;
        height: 100%;
        min-height: 110px;
        object-fit: cover;
        border-radius: 8px;
    }
    .bsb-about-text { font-size: .92rem; line-height: 1.6; margin: 0; }

    /* Surgeon accordion — navy bg, text left, photo right, full height */
    .bsb-accordion__body--surgeon {
        padding: 0;
        background: var(--bsb-navy);
    }
    .bsb-surgeon-body--mobile {
        display: flex;
        align-items: stretch;
        min-height: 220px;
    }
    .bsb-surgeon-body--mobile .bsb-surgeon-info {
        flex: 1;
        padding: 18px 16px 18px 18px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .bsb-surgeon-body--mobile .bsb-surgeon-photo {
        flex-shrink: 0;
        width: 40%;
        position: relative;
        overflow: hidden;
    }
    .bsb-surgeon-body--mobile .bsb-surgeon-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .bsb-surgeon-name { font-size: 1rem; font-weight: 700; color: var(--bsb-white); margin: 0; }
    .bsb-surgeon-role { font-size: .82rem; color: #90caf9; margin: 0 0 6px; }
    .bsb-surgeon-points { margin: 0 0 10px; }
    .bsb-surgeon-points li { font-size: .84rem; color: #ffffff; margin-bottom: 3px; }

    /* Success story cards */
    .bsb-story-card {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .bsb-story-card:last-child { border-bottom: none; }
    .bsb-story-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    .bsb-story-avatar--placeholder {
        background: #e8f5e9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        border-radius: 50%;
    }
    .bsb-story-body { flex: 1; }
    .bsb-story-quote { font-size: .88rem; color: #444; font-style: italic; margin: 0 0 5px; line-height: 1.5; }
    .bsb-story-name  { font-size: .88rem; color: var(--bsb-navy); display: block; font-weight: 700; }
    .bsb-story-lost  { font-size: .8rem; color: var(--bsb-green); font-weight: 600; display: block; margin-top: 2px; }
}
