/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    --vhc-sage:   #cccc99; 
    --vhc-brown:  #653617; 
    --vhc-cream:  #f2eec4; 
    --vhc-gold:   #c39428; 
    --vhc-rust:   #94460f; 
    --vhc-white:  #ffffff;
    --vhc-grey:   #333333; 
    --nav-height: 80px;
    --border-radius: 4px;
}

/* =========================================
   2. BASE & TYPOGRAPHY
   ========================================= */
html {
    height: auto; /* Changed from 100% to allow natural growth */
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    color: var(--vhc-grey);
    background-color: var(--vhc-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* IMPORTANT: Remove overflow-x: hidden from body if it's causing lockup */
    overflow-x: clip; 
}

main {
    flex: 1 0 auto;
    display: block;
    width: 100%;
    background-color: var(--vhc-white); 
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    color: var(--vhc-brown);
    font-weight: 600;
    margin-bottom: 1rem;
    text-wrap: balance; 
}

h1 { font-size: clamp(2.0rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

a {
    text-decoration: none;
    color: var(--vhc-brown);
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--vhc-rust);
    text-decoration: underline;
}

.x-small {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
.bg-cream { background-color: var(--vhc-cream); }
.bg-brown { background-color: var(--vhc-brown); color: var(--vhc-white); }
.text-white { color: var(--vhc-white) !important; }
.text-vhc-rust { color: var(--vhc-rust) !important; }

.border-top-gold {
    border-top: 5px solid var(--vhc-gold) !important;
}

.bg-light {
    background-color: var(--vhc-white) !important;
    --bs-bg-opacity: 1;
}
.text-vhc-brown { 
    color: var(--vhc-brown) !important; 
}

.bg-vhc-rust { 
    background-color: var(--vhc-rust) !important; 
    color: var(--vhc-white) !important; 
}

/* Ensure headings inside rust backgrounds also turn white */
.bg-vhc-rust h1, .bg-vhc-rust h2, .bg-vhc-rust h3, .bg-vhc-rust h4, .bg-vhc-rust h5, .bg-vhc-rust h6 {
    color: var(--vhc-white) !important;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.bg-sage { background-color: var(--vhc-sage); }
.bg-sage a:hover { color: var(--vhc-brown) !important; }

.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

header.sticky-top {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar-nav .nav-link {
    color: var(--vhc-brown);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover { color: var(--vhc-rust); }

.dropdown-menu {
    border-top: 4px solid var(--vhc-gold);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: var(--vhc-cream);
    padding-left: 25px;
    transition: all 0.2s ease;
}

.btn-nav {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(148, 70, 15, 0.2);
    transition: all 0.2s ease;
}

.btn-nav:hover { transform: translateY(-2px); }

@media (max-width: 1200px) {
    .btn-nav { width: 100%; margin-top: 15px; }
    .navbar-nav .nav-link { border-bottom: 1px solid #f0f0f0; }
}

/* =========================================
   5. HERO & HOMEPAGE OVERLAYS
   ========================================= */
.header-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 15px solid var(--vhc-sage);
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* DESKTOP STYLES (iPad and up) */
@media (min-width: 768px) {
    .overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        display: flex; 
        align-items: center; 
        z-index: 5;
    }
    
    /* RESTORING THE BOX STYLES HERE */
    .hero-glass-card {
        background: rgba(255, 255, 255, 0.9); /* The White Box */
        backdrop-filter: blur(10px);        /* The Frosting */
        -webkit-backdrop-filter: blur(10px);
        padding: 40px;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border-left: 5px solid var(--vhc-rust);
        opacity: 0;
        transform: translateY(30px);
        animation: fadeUp 0.8s forwards 0.3s;
    }
}

/* MOBILE STYLES (Phones) */
@media (max-width: 767px) {
    .header-image-container {
        display: flex;
        flex-direction: column;
    }
    
    .overlay {
        position: relative;
        padding: 40px 20px;
        background-color: var(--vhc-cream);
        display: block;
        text-align: center;
    }

    .hero-glass-card {
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        border-left: none;
        border-top: 4px solid var(--vhc-rust);
        padding-top: 20px;
        opacity: 1; /* No animation needed for stacked mobile */
        transform: none;
    }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.quick-access-bar { background-color: var(--vhc-brown); z-index: 10; position: relative; }

/* =========================================
   6. CONTENT COMPONENTS (Accordions, Videos)
   ========================================= */
.accordion-item {
    border: 1px solid var(--vhc-sage);
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}
.accordion-button {
    color: var(--vhc-brown);
    background-color: rgba(242, 238, 196, 0.3);
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    color: var(--vhc-white) !important;
    background-color: var(--vhc-brown);
}

.video-wrapper {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-outline-gold {
    color: var(--vhc-brown);
    border: 2px solid var(--vhc-gold);
    background: transparent;
    font-weight: 700;
}


/* =========================================
   7. ACTION CARDS (Paddock-Inspired Polish)
   ========================================= */
.action-card {
    background-color: #ffffff;
    border-top: 4px solid var(--vhc-gold);
    padding: 40px 30px;
    border-radius: 12px; /* Smoother corners like your Paddock site */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    height: 100%;
}

.action-card:hover { 
    transform: translateY(-10px); 
    border-top-color: var(--vhc-rust);
    box-shadow: 0 15px 35px rgba(101, 54, 23, 0.15); /* Warm shadow */
    background: linear-gradient(to bottom, #ffffff, var(--vhc-cream));
}

.action-card i.card-icon {
    transition: transform 0.3s ease;
}

.action-card:hover i.card-icon {
    transform: scale(1.1);
    color: var(--vhc-rust);
}

/* =========================================
   8. BUTTONS
   ========================================= */
.btn-primary {
    background-color: var(--vhc-rust); /* VHC Rust */
    border-color: var(--vhc-rust);
    color: var(--vhc-white) !important;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 25px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--vhc-brown); /* Darkens to VHC Brown on hover */
    border-color: var(--vhc-brown);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 54, 23, 0.2);
}

.btn-vhc-gold {
    background-color: var(--vhc-gold);
    border-color: var(--vhc-gold);
    color: var(--vhc-brown); /* High contrast text */
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-vhc-gold:hover,
.btn-vhc-gold.text-vhc-brown:hover {
    background-color: var(--vhc-brown);
    border-color: var(--vhc-brown);
    color: var(--vhc-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 54, 23, 0.2);
}

.btn-vhc-rust {
    background-color: var(--vhc-rust);
    border-color: var(--vhc-rust);
    color: var(--vhc-white) !important;
    transition: all 0.3s ease;
}

.btn-vhc-rust:hover {
    background-color: var(--vhc-brown);
    border-color: var(--vhc-brown);
    color: var(--vhc-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 54, 23, 0.2);
}

/* Base class for the solid brown button */
.btn-vhc-brown {
    background-color: var(--vhc-brown);
    border: 2px solid var(--vhc-brown);
    color: var(--vhc-white) !important;
    transition: all 0.3s ease;
}

/* Outline Rust Button */
.btn-outline-vhc-rust {
    color: var(--vhc-rust);
    border: 2px solid var(--vhc-rust);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-vhc-rust:hover {
    background-color: var(--vhc-rust);
    color: var(--vhc-white) !important;
    border-color: var(--vhc-rust);
}

/* =========================================
   9. FOOTER STYLES
   ========================================= */
footer {
    background-color: var(--vhc-cream);
    border-top: 5px solid var(--vhc-sage);
    padding-top: 50px;
    color: var(--vhc-brown);
}

.footer-col h4 {
    text-transform: uppercase;
    border-bottom: 1px solid var(--vhc-sage); 
    padding-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

ul.footer-links { list-style: none; padding: 0; }
ul.footer-links li { position: relative; padding-left: 20px; margin-bottom: 8px; }
ul.footer-links li::before {
    content: '\203A';
    color: var(--vhc-gold);
    position: absolute; left: 0;
    font-weight: bold; font-size: 1.2rem; line-height: 1;
}

.social-icons {
    display: flex;
    gap: 25px; /* Adjust this number to spread them further or closer */
    margin-top: 15px;
    align-items: center;
}

.social-icons a {
    font-size: 2.2rem; /* Slightly smaller if they feel too "loud" */
    color: var(--vhc-brown);
    transition: all 0.3s ease;
    line-height: 1;
}

.social-icons a:hover {
    color: var(--vhc-rust);
    transform: translateY(-3px);
}

.copyright { 
    background-color: var(--vhc-brown); 
    padding: 20px 0; 
    color: rgba(255, 255, 255, 0.7); /* Soft White text */
    font-size: 0.85rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

.copyright p { 
    margin: 0; 
}

/* Force the Privacy Policy link to match the text color */
.copyright a { 
    color: rgba(255, 255, 255, 0.7) !important; 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.copyright a:hover { 
    color: var(--vhc-white) !important; 
    text-decoration: underline;
}
/* =========================================
   10. SCROLL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   12. CUSTOM REVIEW SLIDER (Swiper)
   ========================================= */
.review-card {
    background: #fff;
    border-top: 4px solid var(--vhc-gold);
    padding: 30px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.review-card .text-vhc-rust { opacity: 0; transition: 0.3s; }
.review-card:hover { transform: translateY(-5px); }
.review-card:hover .text-vhc-rust { opacity: 1; }
.swiper-pagination-bullet-active { background-color: var(--vhc-brown) !important; }

.text-clamp-3 {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Ensure Review Modal is readable on mobile */
#reviewDetailModal .modal-body {
    padding-top: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

#modalReviewText {
    line-height: 1.5;
    font-size: 1.1rem !important;
}

.swiper {
    width: 100%;
    max-width: 100vw;
}


/* =========================================
   13. INTERIOR PAGE HEADER (Textured & Frosted)
   ========================================= */

/* A. Define the Section Themes (Default is VHC Brown) */
:root {
    --hero-bg-1: rgba(101, 54, 23, 0.95);
    --hero-bg-2: rgba(74, 38, 16, 0.95);
}

/* Treatments Theme (Vibrant Rust/Copper) */
.theme-treatments {
    --hero-bg-1: rgba(175, 85, 25, 0.95); /* Brighter, distinct rust */
    --hero-bg-2: rgba(130, 55, 15, 0.95);
}

/* Patient Resources Theme (Sage) */
.theme-patient-resources {
    --hero-bg-1: rgba(160, 165, 120, 0.95); 
    --hero-bg-2: rgba(120, 125, 90, 0.95);
}

/* For Physicians Theme (Gold) */
.theme-for-providers, .theme-physician-info {
    --hero-bg-1: rgba(195, 148, 40, 0.95); 
    --hero-bg-2: rgba(150, 110, 25, 0.95);
}

/* Venous Disease Theme (Deep Clinical Charcoal/Grey) */
.theme-venous-disease {
    --hero-bg-1: rgba(90, 85, 80, 0.95); /* Cooler, darker slate */
    --hero-bg-2: rgba(50, 45, 45, 0.95);
}

/* B. Apply the Variables to the Header */
.page-header {
    /* 1. Base Brown Gradient */
    background-color: var(--vhc-brown);
    background-image: 
        linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%),
        /* 2. SUBTLE TEXTURE: A very faint geometric pattern */
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    
    padding: 80px 0 100px;
    clip-path: ellipse(150% 100% at 50% 0%);
    color: #fff;
    position: relative;
}

.interior-glass-card {
    background: rgba(255, 255, 255, 0.12); /* Semi-transparent */
    backdrop-filter: blur(15px);          /* The Frosted Blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 35px 50px;
    display: inline-block;
}

/* Badge Style for the Photo */
.portrait-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.certification-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--vhc-gold);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* Typography & Breadcrumb Polish */
.interior-glass-card h1 { 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Softer shadow for a more modern feel */
    margin-bottom: 0.5rem;
}

/* Premium typography for the gold subtitle */
.tracking-widest {
    letter-spacing: 0.2em; /* Pushes the letters out for a luxury feel */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Helps the gold pop against the brown */
    display: block;
    margin-bottom: 5px;
}

/* Breadcrumb Styles */
.breadcrumb-item a { 
    color: rgba(255, 255, 255, 0.8) !important; 
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--vhc-gold) !important;
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before { 
    color: rgba(255, 255, 255, 0.5) !important; /* Softened the slash */
}

.breadcrumb-item.active { 
    color: #fff !important; 
    font-weight: 600;
}

/* =========================================
   14. SIDEBAR & PORTRAIT STYLES
   ========================================= */
.sidebar-box {
    background: #fff;
    border-top: 4px solid var(--vhc-gold);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-portrait {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(101, 54, 23, 0.12);
}

/* Responsive Mobile Reordering Logic */
@media (max-width: 991px) {
    /* Using specific targeting to avoid breaking home row layouts */
    .row.d-flex.flex-column.flex-lg-row {
        display: flex;
        flex-direction: column;
    }
    
    .order-1 { order: 1 !important; } 
    .order-2 { order: 2 !important; } 
    .order-3 { order: 3 !important; }

    /* For Dr. Bio, push secondary boxes to the absolute bottom */
    .col-lg-4 .sidebar-box:not(:first-child) {
        order: 4 !important;
    }
}

.btn-outline-brown {
    color: var(--vhc-brown);
    border: 2px solid var(--vhc-brown);
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-brown:hover {
    background-color: var(--vhc-brown);
    color: var(--vhc-white);
}

.badge.bg-sage {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    padding: 5px 10px;
}

/* Blog Card Hover Effect */
.blog-card {
    transition: all 0.3s ease-in-out;
    border-top: 4px solid var(--vhc-gold) !important; /* Keep gold as default */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(101, 54, 23, 0.1) !important;
    border-top-color: var(--vhc-rust) !important; /* Switch to rust on hover */
}

.blog-card h3 a:hover {
    color: var(--vhc-rust);
    text-decoration: none;
}

/* =========================================
   15. MOBILE STICKY CTA (Frosted & Scroll-Triggered)
   ========================================= */
@media (max-width: 991px) {
    .mobile-sticky-cta {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1050;
        display: block;
        
        /* Initial hidden state */
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(30px); 
        
        /* Smooth transitions for the scroll appearance */
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
        pointer-events: none;
    }

    /* Class toggled by JS in main.js */
    .mobile-sticky-cta.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* The Frosted Glass Button Styling */
    .mobile-sticky-cta .btn-primary {
        /* VHC Rust at 85% opacity */
        background-color: rgba(148, 70, 15, 0.65) !important; 
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        
        /* The Blur Effect (Glassmorphism) */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        /* Premium shadow and typography */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        padding: 15px; /* Thicker touch target for mobile */
    }

    /* Tactile feel for the click/touch */
    .mobile-sticky-cta .btn-primary:active {
        background-color: var(--vhc-rust) !important;
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}

/* Hide on Desktop */
@media (min-width: 992px) {
    .mobile-sticky-cta { display: none; }
}

/* Pulse Animation for the Calendar Icon */
.mobile-sticky-cta i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


/* =========================================
   16. ORGANIC DEPTH (The "Doctor Blobs")
   ========================================= */

/* Soft background orbs to create depth without distraction */
.orb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none; /* Allows clicking through to content */
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Heavy blur makes it soft, not techy */
    opacity: 0.15;      /* Very subtle */
    z-index: -1;
}

/* A soft Sage orb on the left */
.orb-1 {
    width: 400px;
    height: 400px;
    background-color: var(--vhc-sage);
    top: -100px;
    left: -150px;
}

/* A soft Gold orb on the right */
.orb-2 {
    width: 300px;
    height: 300px;
    background-color: var(--vhc-gold);
    bottom: 10%;
    right: -50px;
}

/* Ensure main content is prepared for layering */
main {
    position: relative;
    background-color: var(--vhc-white);
    overflow: hidden;
}

/* Styling for Provider Page Quote/Blockquotes */
.blockquote-simple {
    border-left: 3px solid var(--vhc-gold);
    padding-left: 20px;
    font-style: italic;
    color: var(--vhc-brown);
}

.blockquote-simple-end {
    border-right: 3px solid var(--vhc-gold);
    padding-right: 20px;
    font-style: italic;
    color: var(--vhc-brown);
}

.btn-outline-vhc-brown {
    border-color: var(--vhc-brown);
    color: var(--vhc-brown);
}

.btn-outline-vhc-brown:hover {
    background-color: var(--vhc-brown);
    color: white;
}

/* Solid Brown Button Hover */
.btn-vhc-brown:hover {
    background-color: var(--vhc-gold) !important; /* Changes to gold on hover */
    color: var(--vhc-brown) !important;          /* Text becomes dark brown for contrast */
    border-color: var(--vhc-gold);
}

/* Outline Brown Button Hover */
.btn-outline-vhc-brown:hover {
    background-color: var(--vhc-brown) !important;
    color: #ffffff !important;                   /* Text becomes white when background fills brown */
}

/* Specifically for the Quiz "Next Steps" buttons if they are inside the Sage box */
.bg-sage .btn-primary:hover {
    background-color: #ffffff !important;
    color: var(--vhc-sage) !important;
    border-color: #ffffff;
}

.knowledge-callout {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-left: 4px solid var(--vhc-gold);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #8a6d3b;
}

.knowledge-callout.border-vhc-rust {
    border-left-color: var(--vhc-rust);
    background-color: #fff5f5;
    color: var(--vhc-rust);
}

/* Sidebar Specific Box Styling */
.sidebar-box {
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* The CTA Button inside the Brown Sidebar Box */
.btn-sidebar-cta {
    background-color: var(--vhc-gold);
    color: var(--vhc-brown) !important; /* Forces dark text on gold button */
    border: 2px solid var(--vhc-gold);
}

.btn-sidebar-cta:hover {
    background-color: transparent;
    color: var(--vhc-gold) !important; /* Swaps colors on hover */
    border-color: var(--vhc-gold);
}

/* Background Utility for the Sidebar */
.bg-cream {
    background-color: #fcfaf5 !important;
}

/* Ensure outline buttons in the white boxes are visible */
.btn-outline-vhc-brown {
    border: 2px solid var(--vhc-brown);
    color: var(--vhc-brown);
}

.btn-outline-vhc-brown:hover {
    background-color: var(--vhc-brown);
    color: #ffffff !important;
}

/* Ensure the brand brown background actually renders */
.bg-vhc-brown {
    background-color: #4a3c31 !important; /* Use your specific brown hex here */
    color: #ffffff !important;
}

/* Add a subtle cream background for the light boxes */
.bg-cream {
    background-color: #f8f6f2 !important; 
    border: 1px solid #e9e4db;
}

/* Force headings in the dark box to be Gold */
.bg-vhc-brown h5 {
    color: var(--vhc-gold) !important;
}

/* Force paragraphs in the dark box to be White */
.bg-vhc-brown p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Sidebar Boxes */
.bg-vhc-brown {
    background-color: var(--vhc-brown) !important;
    color: var(--vhc-white) !important;
}

.bg-vhc-cream {
    background-color: var(--vhc-cream) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Sidebar Heading Colors */
.bg-vhc-brown h5 {
    color: var(--vhc-gold) !important;
}

/* Sidebar Button Specifics */
.btn-sidebar-cta {
    background-color: var(--vhc-gold);
    color: var(--vhc-white) !important; /* White text on Gold button */
    border: 1px solid var(--vhc-gold);
}

.btn-sidebar-cta:hover {
    background-color: transparent;
    color: var(--vhc-gold) !important;
    border-color: var(--vhc-gold);
}

/* Outline button for the Cream box */
.btn-outline-vhc-brown {
    border: 2px solid var(--vhc-brown);
    color: var(--vhc-brown);
    font-weight: 600;
}

.btn-outline-vhc-brown:hover {
    background-color: var(--vhc-brown);
    color: var(--vhc-white) !important;
}

/* COOKIE BANNER - Refined for 2026 */
.cookie-banner {
    position: fixed;
    z-index: 2000; /* Must be higher than CTA (1050) */
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-top: 5px solid #c39428;
    display: none; /* Controlled by JS */
}

/* Mobile: Stacked above the CTA area */
@media (max-width: 991px) {
    .cookie-banner {
        bottom: 100px; /* Always sits high enough to clear the 20px bottom + button height */
        left: 15px;
        right: 15px;
    }
}

/* Desktop: Bottom Right */
@media (min-width: 992px) {
    .cookie-banner {
        bottom: 30px;
        right: 30px;
        max-width: 380px;
    }
}

/* Sidebar Active State Styling */
.sidebar-links a {
    color: #5a4b42; /* Standard Brown */
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-links a:hover {
    color: #a03c23; /* VHC Rust on hover */
    padding-left: 5px;
}

.sidebar-links a.active {
    color: #a03c23 !important; /* VHC Rust */
    font-weight: 700;
    position: relative;
}

/* Optional: Add a little vertical "active" bar to the left */
.sidebar-links a.active::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 20%;
    height: 60%;
    width: 3px;
    background-color: #c39428; /* VHC Gold indicator */
}


/* =========================================
   AI & USER "AT A GLANCE" SUMMARY CARDS
   ========================================= */

.at-a-glance-box {
    background-color: #f2f6f3; /* Soft sage tint to contrast with the cream sidebar */
    border: 1px solid rgba(74, 93, 78, 0.1); /* Faint sage border frame */
    border-left: 6px solid var(--vhc-gold); /* Keeps your strong brand gold accent bar */
    border-radius: 6px 16px 16px 6px;
    padding: 30px;
    margin: 35px 0;
    
    /* Warm multi-layered drop shadow */
    box-shadow: 
        0 12px 30px rgba(101, 54, 23, 0.04), 
        0 2px 4px rgba(0, 0, 0, 0.01);
    
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.at-a-glance-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 18px 35px rgba(101, 54, 23, 0.07), 
        0 4px 10px rgba(0, 0, 0, 0.02);
}

.at-a-glance-box h4 {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--vhc-brown);
    border-bottom: 1px solid rgba(101, 54, 23, 0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.at-a-glance-box ul li {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin-bottom: 14px;
    line-height: 1.6;
}

.at-a-glance-box ul li:last-child {
    margin-bottom: 0;
}

.at-a-glance-box ul li strong {
    color: var(--vhc-brown);
    font-weight: 600;
}