/* ==========================================================================
   MODERN CORPORATE BILLING DESIGN (v7 - Brand Aligned & Compact)
   ========================================================================== */

:root {
    /* STRICT BRAND COLORS FROM LOGO */
    --brand-teal: #0E5E58;
    /* Primary Logo Color */
    --brand-dark: #052030;
    /* Dark Text/Footer Color */
    --brand-gold: #F1A400;
    /* Accent Gold */

    --bg-light: #f4f7f6;
    --white: #ffffff;

    /* SHADOWS */
    --card-shadow: 0 4px 20px rgba(14, 94, 88, 0.08);
    /* Teal tinted shadow */
    --hover-shadow: 0 15px 40px rgba(14, 94, 88, 0.15);

    /* SPACING */
    --section-spacing: 60px;
}

body {
    background-color: var(--bg-light);
    color: #444;
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark);
}

/* --- 1. GLOBAL LAYOUT --- */
.premium-section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: visible !important;
    /* CRITICAL: Overrides common.css to allow sticky sidebar */
}

.section-title-modern {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-teal);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title-modern::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--brand-gold);
    margin-top: 8px;
    border-radius: 2px;
}

/* --- 2. HERO BANNER --- */
.hero-wrapper-modern {
    position: relative;
    height: 320px;
    /* Compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../assets/img/healthcare-1.jpg') no-repeat center center/cover;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    margin-top: 5%;
    /* Overlap navbar slightly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brand Gradient Overlay */
    background: linear-gradient(135deg, rgba(5, 32, 48, 0.95) 0%, rgba(14, 94, 88, 0.85) 100%);
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 15px;
}

.hero-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}

.hero-subtitle-modern {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- 3. SIDEBAR (COMPACT & BRANDED) --- */
/* --- 3. SIDEBAR (COMPACT & BRANDED) --- */
.sidebar-sticky-modern {
    position: sticky;
    top: 110px;
    /* Below fixed header */
    z-index: 80;
    max-height: calc(100vh - 120px);
    /* prevent cut-off on small screens */
    overflow-y: auto;
    /* enable internal scroll if needed */
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look (Firefox) */
}

.sidebar-sticky-modern::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar (Chrome/Safari) */
}

.sidebar-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--brand-teal);
}

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

/* Navigation Links */
.nav-link-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    /* Compact padding */
    margin-bottom: 5px;
    /* Less space between items */
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link-modern:hover {
    background: #f0f7f7;
    /* Very light teal */
    color: var(--brand-teal);
    padding-left: 20px;
    /* Slide effect */
}

/* Active State - "Something Different" */
.nav-link-modern.active {
    background: linear-gradient(90deg, var(--brand-teal) 0%, #1a9c92 100%);
    color: #fff;
    border-left-color: var(--brand-gold);
    box-shadow: 0 5px 15px rgba(14, 94, 88, 0.3);
    /* Glow */
    transform: translateX(5px);
}

.nav-link-modern i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: 0.3s;
}

.nav-link-modern.active i {
    opacity: 1;
    color: var(--brand-gold);
}

/* --- 4. FEATURE CARDS (SHADOW GRID) --- */
.modern-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.modern-feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring */
    border: 1px solid rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(14, 94, 88, 0.2);
}

/* Feature Icon */
.feature-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Circle */
    background: rgba(14, 94, 88, 0.08);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.modern-feature-card:hover .feature-icon-modern {
    background: var(--brand-teal);
    color: #fff;
    transform: rotate(360deg);
    box-shadow: 0 5px 15px rgba(14, 94, 88, 0.3);
}

.feature-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.feature-text-modern {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- 5. SERVICES ACCORDION --- */
.accordion-item-modern {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid transparent;
    transition: 0.3s;
}

.accordion-item-modern:hover {
    border-left-color: var(--brand-gold);
}

.accordion-header-modern {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--brand-teal);
    cursor: pointer;
}

.accordion-icon {
    color: var(--brand-gold);
}

/* --- 6. METRICS --- */
.metric-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.metric-box:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--brand-teal);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {

    /* Tablet & Below */
    .hero-wrapper-modern {
        height: auto;
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }

    .hero-title-modern {
        font-size: 2.2rem;
    }

    .sidebar-sticky-modern {
        position: relative;
        /* Remove sticky on mobile */
        top: 0;
        margin-bottom: 40px;
        z-index: 1;
    }

    .modern-grid-2 {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    /* Center text on mobile usually looks better */
    .section-title-modern {
        display: block;
        text-align: center;
    }

    .section-title-modern::after {
        margin: 8px auto 0;
    }
}

@media (max-width: 576px) {

    /* Mobile Phone */
    .hero-title-modern {
        font-size: 1.8rem;
    }

    .premium-section {
        padding: 40px 0;
    }
}