/* ==========================================================================
   BILLING SERVICES SHARED LAYOUT
   - Used by eligibility-verification.php and all other billing service pages
   ========================================================================== */

:root {
    --bs-teal: #0E5E58;
    --bs-dark: #052030;
    --bs-gold: #F1A400;
    --bs-light-bg: #f4f7f6;
    --bs-card-shadow: 0 4px 20px rgba(14, 94, 88, 0.07);
}

/* ---- BODY OVERRIDE (Allow sticky) ---- */
body.billing-service-page {
    background: var(--bs-light-bg);
    overflow-x: hidden;
}

/* ---- PAGE HERO ---- */
.bs-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #052030 0%, #0E5E58 100%);
    padding: 100px 0 60px;
    overflow: hidden;
}

.bs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/healthcare-1.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.bs-hero .container {
    position: relative;
    z-index: 2;
}

.bs-hero-badge {
    display: inline-block;
    background: rgba(241, 164, 0, 0.2);
    color: var(--bs-gold);
    border: 1px solid var(--bs-gold);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.bs-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.bs-hero-title span {
    color: var(--bs-gold);
}

.bs-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    line-height: 1.7;
}

/* ---- MAIN LAYOUT WRAPPER (must NOT have overflow hidden) ---- */
.bs-layout-wrapper {
    overflow: visible !important;
}

/* ---- MAIN LAYOUT ---- */
.bs-layout {
    display: flex;
    gap: 40px;
    padding: 50px 0 80px;
    /* NOTE: Do NOT use align-items: flex-start here.
       The sidebar column must stretch to full height
       so position:sticky has room to work. */
}

/* ---- SIDEBAR COLUMN (stretches to full row height for sticky to work) ---- */
.billing-sidebar-col {
    width: 280px;
    flex-shrink: 0;
    /* Do NOT use align-self: flex-start!
       Column must be as tall as the content column
       so .billing-sidebar can stick within it. */
}

/* ---- SIDEBAR STICKY INNER ---- */
.billing-sidebar {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 110px;
    /* sits below the fixed header */
}


.sidebar-service-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--bs-card-shadow);
    border-top: 4px solid var(--bs-teal);
}

.sidebar-service-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar-service-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.sidebar-service-link:hover {
    background: #f0f7f7;
    color: var(--bs-teal);
    padding-left: 18px;
}

.sidebar-service-link i,
.sidebar-service-link svg {
    font-size: 0.7rem;
    opacity: 0.4;
    transition: 0.25s;
}

.sidebar-service-link:hover i,
.sidebar-service-link:hover svg {
    opacity: 1;
}

.sidebar-service-link.active {
    background: linear-gradient(90deg, var(--bs-teal), #1a9c92);
    color: #fff;
    border-left-color: var(--bs-gold);
    box-shadow: 0 4px 12px rgba(14, 94, 88, 0.25);
}

.sidebar-service-link.active i,
.sidebar-service-link.active svg {
    opacity: 1;
    color: var(--bs-gold);
}

.sidebar-contact-card {
    background: linear-gradient(135deg, var(--bs-dark), var(--bs-teal)) !important;
    border-top: none !important;
    text-align: center;
}

.sidebar-contact-card .sidebar-icon-lg {
    display: inline-block;
    font-size: 2rem;
}

.sidebar-fact-card {
    border-top: none !important;
    background: #fff !important;
    border-left: 4px solid var(--bs-gold) !important;
}

/* ---- CONTENT AREA ---- */
.bs-content {
    flex: 1;
    min-width: 0;
}

.bs-content-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--bs-card-shadow);
}

/* ---- SECTION HEADINGS ---- */
.bs-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 14px;
}

.bs-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--bs-gold);
    border-radius: 2px;
}

/* ---- CHECKLIST ---- */
.bs-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.bs-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.97rem;
    color: #444;
    line-height: 1.5;
}

.bs-checklist li:last-child {
    border-bottom: none;
}

.bs-checklist li::before {
    content: '\f058';
    /* Font Awesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bs-teal);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- CONTENT IMAGE ---- */
.bs-hero-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.bs-hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.bs-hero-image:hover img {
    transform: scale(1.03);
}

/* ---- 4 WAYS SECTION (Cards) ---- */
.bs-ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.bs-way-card {
    background: var(--bs-light-bg);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--bs-teal);
    transition: 0.3s ease;
}

.bs-way-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 94, 88, 0.1);
    border-left-color: var(--bs-gold);
}

.bs-way-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bs-way-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 10px;
}

.bs-way-text {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- CTA BANNER ---- */
.bs-cta {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-teal) 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}

.bs-cta h4 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.bs-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .bs-layout {
        flex-direction: column;
        padding: 30px 0 60px;
        gap: 30px;
    }

    /* On mobile/tablet: sidebar is NOT sticky — it sits above content */
    .billing-sidebar-col {
        width: 100%;
    }

    .billing-sidebar {
        position: relative !important;
        top: 0 !important;
        max-height: none;
    }

    .sidebar-service-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .bs-hero-title {
        font-size: 2rem;
    }

    .bs-ways-grid {
        grid-template-columns: 1fr;
    }

    .bs-content-section {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .bs-hero {
        padding: 90px 0 40px;
    }

    .bs-hero-title {
        font-size: 1.7rem;
    }

    .sidebar-service-nav {
        grid-template-columns: 1fr;
    }

    .bs-ways-grid {
        grid-template-columns: 1fr;
    }

    .bs-content-section {
        padding: 20px 16px;
    }
}