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

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

/* ── Desktop layout ───────────────────────────────────────── */
.bsb-desktop {
    display: flex;
    gap: 0;
    border-radius: var(--bsb-radius);
    overflow: hidden;
    box-shadow: var(--bsb-shadow);
    min-height: 340px;
}
.bsb-mobile { display: none; }

/* ── Shared column base ───────────────────────────────────── */
.bsb-col {
    padding: 28px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Section titles (desktop) ─────────────────────────────── */
.bsb-section-title {
    font-size: 1.6rem;      /* matches "Our Advanced Procedures" large bold */
    font-weight: 800;
    color: var(--bsb-navy);
    margin: 0 0 12px;
}
.bsb-section-title--light {
    color: var(--bsb-white);
    opacity: .9;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

/* ── Column 1: Why Choose Us ──────────────────────────────── */
.bsb-col--why {
    background: var(--bsb-white);
    border-right: 1px solid #e9ecef;
    flex: 1.1;
}

/* Features list */
.bsb-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.bsb-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.bsb-feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    margin-top: 2px;
}
.bsb-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bsb-feature-text strong {
    font-size: 1rem;      /* ↑ was .875rem */
    color: var(--bsb-navy);
    font-weight: 700;
}
.bsb-feature-text span {
    font-size: .88rem;    /* ↑ was .78rem */
    color: var(--bsb-gray);
}

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

/* ── Column 2: About Us ───────────────────────────────────── */
.bsb-col--about {
    background: var(--bsb-gray-lt);
    border-right: 1px solid #e9ecef;
    flex: 1.1;
}
.bsb-about-img-wrap {
    border-radius: 10px;
    overflow: hidden;
}
.bsb-about-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.bsb-about-text {
    font-size: 1rem;      /* ↑ was .86rem */
    color: #444;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* ── Column 3: Surgeon ────────────────────────────────────── */
.bsb-col--surgeon {
    background: var(--bsb-navy);
    flex: 1;
    position: relative;
    overflow: hidden;
}
.bsb-surgeon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bsb-surgeon-img {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
}
.bsb-surgeon-info { width: 100%; }
.bsb-surgeon-name {
    font-size: 1.15rem;   /* desktop stays fine */
    font-weight: 700;
    color: var(--bsb-white);
    margin: 0 0 2px;
}
.bsb-surgeon-role {
    font-size: .95rem;    /* ↑ was .8rem */
    color: #90caf9;
    margin: 0 0 10px;
}
.bsb-surgeon-points {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bsb-surgeon-points li {
    font-size: .92rem;    /* ↑ was .8rem */
    color: #e3f2fd;
}

/* ── Column 4: Our Location ───────────────────────────────── */
.bsb-col--location {
    background: #0d3b6e;
    flex: 1;
}
.bsb-location-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.bsb-map-wrap {
    border-radius: 8px;
    overflow: hidden;
}
.bsb-map-wrap iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
}
.bsb-location-details {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.bsb-location-details li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .92rem;    /* ↑ was .8rem */
    color: #e3f2fd;
}
.bsb-location-details a {
    color: #90caf9;
    text-decoration: none;
}
.bsb-location-details a:hover { text-decoration: underline; }
.bsb-loc-icon { flex-shrink: 0; font-size: 1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.bsb-btn {
    display: inline-block;
    padding: 9px 20px;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: .4px;
    transition: background .2s, color .2s, transform .1s;
    align-self: flex-start;
}
.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 — Accordion layout (≤768 px)
   ============================================================ */
@media (max-width: 768px) {

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

    /* ── Why Choose Us: title ABOVE the card ── */
    .bsb-mobile-why-title {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--bsb-navy);
        margin: 0 0 12px 2px;
    }

    /* ── Why Choose Us: always visible card (no title inside) ── */
    .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,.06);
    }
    /* Larger text in Why Choose Us on mobile */
    .bsb-mobile-why .bsb-feature-text strong {
        font-size: 1.05rem;
    }
    .bsb-mobile-why .bsb-feature-text span {
        font-size: .92rem;
    }
    .bsb-mobile-why .bsb-tagline {
        margin-top: 14px;
        font-size: .85rem;
    }

    /* ── Accordion card ── */
    .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,.06);
    }

    /* Trigger row */
    .bsb-accordion__trigger {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 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.3rem; flex-shrink: 0; }
    .bsb-accordion__label { flex: 1; }
    .bsb-accordion__arrow {
        font-size: 1.4rem;
        color: var(--bsb-gray);
        transition: transform .25s;
        display: inline-block;
    }
    .bsb-accordion__trigger[aria-expanded="true"] .bsb-accordion__arrow {
        transform: rotate(90deg);
    }

    /* Body panel — padding-top so content doesn't touch the trigger border */
    .bsb-accordion__body {
        padding: 16px 18px 20px;   /* ← top padding added */
        animation: bsb-slide-down .2s ease;
        border-top: 1px solid #e9ecef;
    }
    @keyframes bsb-slide-down {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Images inside accordion */
    .bsb-about-img--mobile {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    .bsb-surgeon-img--mobile {
        width: 110px;
        height: 110px;
        object-fit: cover;
        object-position: top;
        border-radius: 50%;
        display: block;
        margin: 0 auto 14px;
    }
    .bsb-location-img--mobile {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    /* About Us body text */
    .bsb-about-text {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    /* Surgeon inside accordion */
    .bsb-surgeon-name {
        font-size: 1.1rem;
        color: var(--bsb-navy);
        margin-bottom: 3px;
    }
    .bsb-surgeon-role {
        font-size: .95rem;        /* ↑ bigger subtitle */
        color: var(--bsb-gray);
        margin-bottom: 12px;
    }
    .bsb-surgeon-points { margin-bottom: 14px; }
    .bsb-surgeon-points li {
        font-size: .95rem;        /* ↑ bigger */
        color: #333;
        margin-bottom: 5px;
    }

    /* Location inside accordion */
    .bsb-location-details--mobile li {
        color: #333;
        font-size: .95rem;        /* ↑ bigger */
    }
    .bsb-location-details--mobile a { color: var(--bsb-blue); }
}
