/* =========================================
   GLOBAL.CSS v5.14 - Fixed Card Conflict & Mobile Lists
   ========================================= */

/* 1. VARIABLES & THEME CONFIGURATION
   ========================================= */
   :root {
    /* --- Brand Palette (Accents) --- */
    --color-pulse-main:  #eca8b0;
    --color-pulse-deep:  #d48a94;
    --color-pulse-footer:#eca8b0;
    
    --color-veins:       #eca8b0;
    --color-laser:       #9ad7d9;
    --color-ultrasound:  #2e72b9;
    --color-vascular:    #70bbdd;
    --color-surgery:     #70bbdd;
    --color-compression: #7dc18d;
    --color-finance:     #946fa5;
    --color-blood:       #8FAF8C;
    --color-swelling:    #8FA3B0;
    --color-ulcers:      #c6b8d4;

    /* --- Neutrals --- */
    --bg-body:           #FFFFFF;
    --bg-surface:        #FFFFFF;
    --bg-surface-alt:    #F8F9FA;
    
    --text-main:         #1D1D1F;
    --text-muted:        #66666e;
    --text-light:        #ffffff;

    --border-light:      #EEEEEE;
    --border-divider:    #e5e5e5;

    /* --- Shadows (Prominent) --- */
    --shadow-sm:         0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-card:       0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --shadow-hover:      0 35px 70px -15px rgba(0, 0, 0, 0.22);

    /* --- Typography --- */
    --font-primary:      'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --h1-size: clamp(2.75rem, 5vw, 4rem);
    --h2-size: clamp(2rem, 3.5vw, 2.75rem);
    --h3-size: clamp(1.25rem, 2vw, 1.75rem);
    --h4-size: 0.85rem;
    --body-size: 1.05rem;
    
    /* --- Layout --- */
    --container-width:   1360px; 
    --header-height:     90px;
    --section-spacing:   clamp(5rem, 10vw, 9rem);
    --radius-sm:         4px;
    --radius-md:         8px;
    --radius-lg:         20px;
    --radius-pill:       100px;
}

/* 2. RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* 3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--h1-size); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: var(--h2-size); margin-bottom: 1.5rem; letter-spacing: -0.025em;}
h3 { font-size: var(--h3-size); font-weight: 500; margin-bottom: 0.75rem; }
h4 { 
    font-size: var(--h4-size); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--text-muted);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 60ch;
    font-size: var(--body-size);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover { color: var(--color-pulse-deep); }

/* 4. LAYOUT UTILITIES & GRID
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    background-color: var(--bg-surface);
}

/* Subtle Editorial Dividers */
.section-divider-top { border-top: 1px solid var(--border-light); }
.section-divider-bottom { border-bottom: 1px solid var(--border-light); }

.section.alt-bg { background-color: var(--bg-surface-alt); }

/* Mobile Padding Adjustment */
@media (max-width: 768px) {
    .section { padding: 4rem 0; }
}

/* Editorial Grid Split */
.grid-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .grid-split {
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
    }
    .grid-split.reverse { direction: rtl; }
    .grid-split.reverse > * { direction: ltr; }
}

/* Full Bleed Image Section (STATIC - NO ANIMATION) */
.section-full-image {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
}
.section-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.section-full-image .overlay-label {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255,255,255,0.95);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 5. ANIMATIONS (Scroll Reveal System)
   ========================================= */

/* Hero Load Animation (Keyframes) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up-1 { animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; animation-delay: 0.1s; }
.fade-up-2 { animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; animation-delay: 0.3s; }
.fade-up-3 { animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; animation-delay: 0.5s; }

/* -- STANDARD FADE UP -- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* -- DIRECTIONAL FADES -- */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* -- VISIBLE STATE (Resets all transforms) -- */
.reveal-visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }


/* 6. BUTTONS & UI
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: none;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: white;
    border: 1px solid var(--text-main);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-theme {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}
.btn-theme:hover {
    background: var(--text-main);
    color: white;
}

/* Contact Form Button (Brand Match) */
.btn-brand {
    background-color: var(--color-pulse-main);
    border: 1px solid var(--color-pulse-main);
    color: white;
}
.btn-brand:hover {
    background-color: white;
    color: var(--color-pulse-main);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-secondary:hover {
    border-color: var(--text-main);
}

/* --- BOUTIQUE HOVER OVERRIDES & ACCENTS --- */
#about .btn-secondary:hover {
    background-color: white;
    border-color: var(--color-pulse-main);
    color: var(--color-pulse-main);
}

/* Accent Borders (Before Hover) */
.btn-accent-veins { border-color: var(--color-veins); }
.btn-accent-compression { border-color: var(--color-compression); }
.btn-accent-vascular { border-color: var(--color-vascular); }
.btn-accent-surgery { border-color: var(--color-surgery); }
.btn-accent-lasers { border-color: var(--color-laser); }
.btn-accent-ultrasound { border-color: var(--color-ultrasound); }
.btn-accent-blood { border-color: var(--color-blood); }
.btn-accent-ulcers { border-color: var(--color-ulcers); }
.guidance-cta {
    background: white;
    border-color: white;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
}
.guidance-cta:hover {
    background: white;
    border-color: white;
    color: var(--color-veins);
    box-shadow: var(--shadow-hover);
}
.btn-accent-swelling { border-color: var(--color-swelling); }

/* Hover States */
.btn-hover-veins:hover { border-color: var(--color-veins) !important; color: var(--color-veins) !important; }
.btn-hover-compression:hover { border-color: var(--color-compression) !important; color: var(--color-compression) !important; }
.btn-hover-vascular:hover { border-color: var(--color-vascular) !important; color: var(--color-vascular) !important; }
.btn-hover-surgery:hover { border-color: var(--color-surgery) !important; color: var(--color-surgery) !important; }
.btn-hover-lasers:hover { border-color: var(--color-laser) !important; color: var(--color-laser) !important; }
.btn-hover-ultrasound:hover { border-color: var(--color-ultrasound) !important; color: var(--color-ultrasound) !important; }
.btn-hover-blood:hover { border-color: var(--color-blood) !important; color: var(--color-blood) !important; }
.btn-hover-ulcers:hover { border-color: var(--color-ulcers) !important; color: var(--color-ulcers) !important; }
.btn-hover-swelling:hover { border-color: var(--color-swelling) !important; color: var(--color-swelling) !important; }

/* Text Link Accents */
.link-hover-compression { color: var(--text-main); border: none; }
.link-hover-compression:hover { color: var(--color-compression) !important; }

/* Arrow Icon Animation */
.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 6px;
    font-family: sans-serif;
}
.btn:hover .arrow-icon,
.link-hover-compression:hover .arrow-icon {
    transform: rotate(-45deg);
}

/* Contact Clinics Dropdown */
.contact-clinics-wrapper { margin-top: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }
.btn-clinics-toggle {
    background: none; border: none; padding: 0;
    color: var(--text-main); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 0.05em;
    width: 100%;
    transition: color 0.2s ease;
}
.btn-clinics-toggle:focus { outline: none; }
/* Pink Hover Effect */
.btn-clinics-toggle:hover { color: var(--color-pulse-main); }

/* Arrow logic for Dropdown (Down to Up) */
.btn-clinics-toggle .arrow-icon { transform: rotate(0deg); margin-left: 0; margin-right: 0; }
.btn-clinics-toggle[aria-expanded="true"] .arrow-icon { transform: rotate(180deg); }

.contact-clinics-list {
    list-style: none; margin-top: 1rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.contact-clinics-list.open { max-height: 600px; } 
.contact-clinics-list li a { font-size: 0.85rem; color: var(--text-muted); }
.contact-clinics-list li a:hover { color: var(--color-pulse-main); }


/* 7. NAVIGATION
   ========================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

/* --- NAV BACKGROUND (Desktop Only - Before Scroll) --- */
@media (min-width: 1200px) {
    .main-nav:not(.scrolled) {
        /* White 80% transparent with gradient effect from the bottom */
        background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 100%);
        backdrop-filter: blur(2px);
    }
}

.main-nav .btn-primary {
    padding: 12px 30px;
    background-color: var(--color-pulse-main);
    color: white;
    border: 1px solid var(--color-pulse-main);
}
.main-nav .btn-primary:hover {
    background-color: white;
    color: var(--color-pulse-main);
    border-color: var(--color-pulse-main);
    transform: translateY(-2px);
}
.main-nav.scrolled .btn-primary {
    background-color: white;
    color: var(--color-pulse-main);
    border-color: var(--color-pulse-main);
}
.main-nav.scrolled .btn-primary:hover {
    background-color: var(--color-pulse-main);
    color: white;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 32px; width: auto; transition: height 0.3s ease; }
.main-nav.scrolled .logo img { height: 26px; }

/* Desktop Menu */
/* UPDATE: Reduced gap to fit all items */
.nav-links-desktop { display: none; list-style: none; gap: 1.2rem; align-items: center; }
@media (min-width: 1200px) { .nav-links-desktop { display: flex; } }

/* UPDATE: Reduced font-size slightly */
.nav-link {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap; /* Prevent breaking */
}
.nav-link:after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 1px;
    background: var(--color-pulse-main); transition: width 0.3s ease;
}
.nav-link:hover:after { width: 100%; }

/* Dropdowns */
.nav-item.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: -20px;
    background: white; min-width: 240px; padding: 1rem 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.2s ease;
    list-style: none;
}
.nav-item.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
    display: block; padding: 0.6rem 2rem; color: var(--text-muted); font-size: 0.9rem; transition: all 0.2s;
}
.dropdown-link:hover { color: var(--color-pulse-deep); background: var(--bg-surface-alt); padding-left: 2.2rem; }

/* Cart & Mobile */
.nav-cart { position: relative; font-size: 1.1rem; color: var(--text-main); }
#cart-count {
    position: absolute; top: -8px; right: -10px;
    background: var(--color-pulse-main); color: white; font-size: 0.7rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.nav-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
@media (min-width: 1200px) { .nav-button { display: none; } }
.nav-button-line { width: 28px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }

.menu-mobile {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: white; z-index: 1001; 
    padding: 0; /* Reset default padding */
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
body.menu-open .menu-mobile { transform: translateX(0); }
body.menu-open .nav-button-line.top { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .nav-button-line.middle { opacity: 0; }
body.menu-open .nav-button-line.bottom { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Header (Logo + Close) */
.menu-mobile-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Logo 30% larger */
.menu-mobile-header img { 
    height: 35px; 
    width: auto; 
    transform: scale(1.3); 
    transform-origin: left;
}
/* Close Button (Styled with lines) */
#mobile-menu-close {
    position: relative;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
#mobile-menu-close::before, #mobile-menu-close::after {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 2px;
    background-color: var(--text-main);
    transition: transform 0.3s ease;
}
#mobile-menu-close::before { transform: rotate(45deg); }
#mobile-menu-close::after { transform: rotate(-45deg); }

/* Mobile Menu Links Container */
.menu-mobile-links {
    padding: 0 1.5rem 3rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Base Mobile Links */
.menu-mobile .nav-link {
    display: block;
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none; /* No border lines */
    text-align: left;
    white-space: normal; /* Allow wrapping in mobile menu */
}
.menu-mobile .nav-link:active,
.menu-mobile .nav-link:focus,
.menu-mobile .nav-link:hover {
    color: var(--color-pulse-main);
}
.menu-mobile .nav-link::after { display: none; } /* Remove hover underline */

/* Mobile Submenu Toggles (Accordions) */
.menu-mobile-toggle {
    background: none; border: none; cursor: pointer;
    width: 100%; text-align: left;
    padding: 1.2rem 0;
    font-size: 1rem; font-family: var(--font-primary);
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center;
}
.menu-mobile-toggle[aria-expanded="true"] { color: var(--color-pulse-main); }

/* Arrow Icon for Toggle */
.menu-mobile-toggle-icon {
    font-size: 0; /* Hide text */
    width: 8px; height: 8px;
    border-right: 2px solid var(--text-main);
    border-bottom: 2px solid var(--text-main);
    transform: rotate(45deg); /* Down arrow */
    transition: transform 0.3s ease, border-color 0.2s ease;
    margin-right: 5px;
    display: inline-block;
}
.menu-mobile-toggle[aria-expanded="true"] .menu-mobile-toggle-icon {
    transform: rotate(225deg); /* Up arrow */
    border-color: var(--color-pulse-main);
}

.menu-mobile-submenu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    background: white;
}
.menu-mobile-submenu .nav-link {
    padding: 0.8rem 0 0.8rem 1.2rem; /* Indented */
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: none;
    font-weight: 400;
}
.menu-mobile-submenu .nav-link:active { color: var(--color-pulse-main); }

/* Mobile CTA Button - Match Contact Form Color */
.btn-mobile-cta {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    background-color: var(--color-pulse-main);
    color: white;
    border: 1px solid var(--color-pulse-main);
    padding: 16px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-mobile-cta:active {
    background-color: white;
    color: var(--color-pulse-main);
}



/* 7. NAVIGATION
   ========================================= */
   .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 1200px) {
    .main-nav:not(.scrolled) {
        background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 100%);
        backdrop-filter: blur(2px);
    }
}
.main-nav .btn-primary {
    padding: 12px 30px;
    background-color: var(--color-pulse-main);
    color: white;
    border: 1px solid var(--color-pulse-main);
}
.main-nav .btn-primary:hover {
    background-color: white;
    color: var(--color-pulse-main);
    border-color: var(--color-pulse-main);
    transform: translateY(-2px);
}
.main-nav.scrolled .btn-primary {
    background-color: white;
    color: var(--color-pulse-main);
    border-color: var(--color-pulse-main);
}
.main-nav.scrolled .btn-primary:hover {
    background-color: var(--color-pulse-main);
    color: white;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 32px; width: auto; transition: height 0.3s ease; }
.main-nav.scrolled .logo img { height: 26px; }

/* Desktop Menu */
.nav-links-desktop { display: none; list-style: none; gap: 1.2rem; align-items: center; }
@media (min-width: 1200px) { .nav-links-desktop { display: flex; } }

.nav-link {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    white-space: nowrap;
}
.nav-link:after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 1px;
    background: var(--color-pulse-main); transition: width 0.3s ease;
}
.nav-link:hover:after { width: 100%; }

/* --- LEVEL 1 DROPDOWN (Main Panel) --- */
.nav-item.dropdown { position: relative; }

/* The container for Level 2 items */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px; /* Width of the main dropdown */
    padding: 0.5rem 0;
    background: white;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    z-index: 1000;
}

/* HOVER LOGIC: Hovering Top-Level Nav opens Level 1 Menu */
/* The '>' selector is critical. It prevents opening nested menus. */
.nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex; /* Flex allows arrow alignment */
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.dropdown-link:hover {
    color: var(--color-pulse-main);
    background: var(--bg-surface-alt);
    padding-left: 1.8rem;
}

/* --- LEVEL 2 SUB-MENUS (Nested) --- */
.dropdown-submenu {
    position: relative; /* Anchor for the Level 3 menu */
}

/* By default, Level 3 menus are completely HIDDEN */
.dropdown-submenu > .dropdown-menu {
    display: none; /* Hard hide */
    top: -5px;     /* Align with top of parent item */
    left: 100%;    /* Fly out to the right */
    margin-left: 0px; 
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
}

/* CLICK LOGIC: Only show Level 3 when parent has '.active' class */
.dropdown-submenu.active > .dropdown-menu {
    display: block; /* Un-hide */
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Arrow indicator for submenus */
.submenu-trigger::after {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #ccc;
}
.dropdown-submenu.active > .submenu-trigger::after {
    transform: rotate(90deg);
    color: var(--color-pulse-main);
}
.dropdown-submenu.active > .submenu-trigger {
    color: var(--color-pulse-main);
    background: var(--bg-surface-alt);
}


/* --- MOBILE MENU STYLES --- */
.menu-mobile {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: white; z-index: 1001; 
    padding: 0;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
body.menu-open .menu-mobile { transform: translateX(0); }
.nav-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
@media (min-width: 1200px) { .nav-button { display: none; } }
.nav-button-line { width: 28px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }
body.menu-open .nav-button-line.top { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .nav-button-line.middle { opacity: 0; }
body.menu-open .nav-button-line.bottom { transform: rotate(-45deg) translate(5px, -5px); }

.menu-mobile-header { padding: 2rem 1.5rem 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.menu-mobile-header img { height: 35px; width: auto; transform: scale(1.3); transform-origin: left; }
#mobile-menu-close { position: relative; width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0; }
#mobile-menu-close::before, #mobile-menu-close::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: var(--text-main); transition: transform 0.3s ease; }
#mobile-menu-close::before { transform: rotate(45deg); }
#mobile-menu-close::after { transform: rotate(-45deg); }

.menu-mobile-links { padding: 0 1.5rem 3rem 1.5rem; display: flex; flex-direction: column; }
.menu-mobile .nav-link { display: block; width: 100%; padding: 1.2rem 0; font-size: 1rem; font-weight: 500; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: none; text-align: left; white-space: normal; }
.menu-mobile .nav-link:active, .menu-mobile .nav-link:focus, .menu-mobile .nav-link:hover { color: var(--color-pulse-main); }
.menu-mobile .nav-link::after { display: none; }

.menu-mobile-toggle { background: none; border: none; cursor: pointer; width: 100%; text-align: left; padding: 1.2rem 0; font-size: 1rem; font-family: var(--font-primary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; }
.menu-mobile-toggle[aria-expanded="true"] { color: var(--color-pulse-main); }
.menu-mobile-toggle-icon { font-size: 0; width: 8px; height: 8px; border-right: 2px solid var(--text-main); border-bottom: 2px solid var(--text-main); transform: rotate(45deg); transition: transform 0.3s ease, border-color 0.2s ease; margin-right: 5px; display: inline-block; }
.menu-mobile-toggle[aria-expanded="true"] .menu-mobile-toggle-icon { transform: rotate(225deg); border-color: var(--color-pulse-main); }

.menu-mobile-submenu { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1); background: white; }
.menu-mobile-submenu .nav-link { padding: 0.8rem 0 0.8rem 1.2rem; font-size: 0.9rem; color: var(--text-muted); text-transform: none; font-weight: 400; }
.menu-mobile-submenu .nav-link:active { color: var(--color-pulse-main); }

.btn-mobile-cta { margin-top: 2rem; width: 100%; text-align: center; background-color: var(--color-pulse-main); color: white; border: 1px solid var(--color-pulse-main); padding: 16px; border-radius: var(--radius-pill); text-transform: uppercase; font-size: 0.9rem; font-weight: 600; }
.btn-mobile-cta:active { background-color: white; color: var(--color-pulse-main); }

/* Cart */
.nav-cart { position: relative; font-size: 1.1rem; color: var(--text-main); }
#cart-count { position: absolute; top: -8px; right: -10px; background: var(--color-pulse-main); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* =========================================
   MOBILE MENU FIX (Force Flow)
   ========================================= */
   @media (max-width: 1200px) {
    /* Ensure submenus take up physical space and push content down */
    .menu-mobile-submenu.open {
        display: block !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden; /* Keeps the animation clean */
    }
    
    /* Ensure nav links wrap properly */
    .menu-mobile .nav-link {
        white-space: normal !important;
        height: auto !important;
    }
}

/* =========================================
   MOBILE ACCORDION OVERFLOW FIX
   ========================================= */
   @media (max-width: 1200px) {
    /* Once opened via JS, allow content to flow freely */
    .menu-mobile-submenu.open {
        overflow: visible !important;
        position: relative !important;
    }
}

/* 8. HERO
   ========================================= */
#hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background-size: cover;
    background-position: center;
}
#hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 650px; padding: 3rem;
    background: rgba(236, 168, 176, 0.80); 
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 15px 45px rgba(236, 168, 176, 0.3);
}
@media (min-width: 768px) { .hero-content { margin-left: 0; transform: translateX(-50px); } }
.hero-content h1, .hero-content p { color: white; }
.animated-list-container {
    height: 2rem; margin-bottom: 1rem; font-weight: 500;
    color: white; display: flex; align-items: center; gap: 10px;
}
.animated-text-prefix { color: white; font-weight: 400; opacity: 0.9; }

/* Hero Buttons */
.hero-content .btn-primary { background-color: white; color: var(--color-pulse-main); border: 1px solid white; }
.hero-content .btn-primary:hover { background-color: var(--color-pulse-main); color: white; border-color: white; }
.hero-content .btn-theme { background: transparent; border: 1px solid white; color: white; }
.hero-content .btn-theme:hover { background: white; color: var(--color-pulse-main); }

/* Mobile Hero Image (Hidden by default) */
.mobile-hero-image { display: none; }

/* 9. SERVICES STRIP & PILLS
   ========================================= */
.services-strip {
    background: white; padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
}
.services-tagline { text-align: center; color: var(--text-muted); font-weight: 400; max-width: 600px; margin: 0 auto 2rem auto; }
.service-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pill {
    padding: 12px 28px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pill:hover {
    border-color: var(--pill-color);
    color: var(--pill-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 10. IMAGES, CARDS & ELEVATION
   ========================================= */
/* Elevation Utilities */
.elevated {
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.elevated-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f0f0f0;
}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(0.2, 1, 0.2, 1); }
.image-wrapper:hover img { transform: scale(1.04); }
.our-approach-image { aspect-ratio: auto; }
.our-approach-image img { height: auto; object-fit: contain; }

/* Aspect Ratios */
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-4-3  { aspect-ratio: 4/3; }
.aspect-square { aspect-ratio: 1/1; }

/* Service Cards */
.card-service-home {
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    height: 100%;
}
.card-service-home:hover { border-color: transparent; } /* Combined with elevated-hover */
.card-service-home h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }


/* 11. LOCATION SECTION
   ========================================= */
   .section-locations-home {
    position: relative;
    background-image: url('../images/DSC09874.JPG'); 
    background-size: cover; background-position: center;
    padding: 6rem 0;
}
.section-locations-home::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(237, 237, 237, 0.85); /* Slightly clearer overlay */
    z-index: 1;
}
.section-locations-home .container { position: relative; z-index: 2; }
.section-locations-home .text-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 3rem; }

.locations-grid-home {
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 3rem;
}
@media (min-width: 768px) { .locations-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .locations-grid-home { grid-template-columns: repeat(3, 1fr); } }

.card-location-home {
    background: white; padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
}
.card-location-home h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-location-home p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.link-location-home {
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-main); padding-bottom: 2px; border-bottom: 1px solid var(--color-pulse-main);
}

/* 12. FOOTER
   ========================================= */
footer {
    background-color: var(--color-pulse-footer);
    color: white; 
    padding-top: 50px; /* Restored */
    border-top: none;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px; /* Restored */
    padding-bottom: 30px; /* Restored */
}
footer h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; opacity: 0.9; } /* Restored */
footer ul { list-style: none; }
/* UPDATE: Reduced margin-bottom from 1rem to 0.4rem to match paragraph line spacing */
footer li { margin-bottom: 0.4rem; } 
footer a { color: white; opacity: 0.8; font-size: 0.95rem; font-weight: 400; transition: opacity 0.2s, color 0.2s; }
footer a:hover { color: white; opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; }

/* Finance Strip */
.footer-finance {
    padding: 20px 0 10px; /* Restored */
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 0;
}
.finance-headline { text-align: center; width: 100%; max-width: 800px; margin: 0 auto 25px auto; font-weight: 600; color: #ffffff; font-size: 1.1rem; } /* Restored */
.finance-row { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 25px; } /* Restored */
.finance-left { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.finance-subtext { font-size: 0.8rem; margin: 0; line-height: 1.4; color: #ffffff; max-width: 450px; }
.finance-qcards { display: inline-flex; gap: 12px; align-items: center; justify-content: center; }
.finance-qcard { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 34px; overflow: visible; transition: transform 0.25s ease; }
.finance-qcard img { width: 100%; height: 100%; object-fit: contain; display: block; }
.finance-qcard:hover { transform: translateY(-3px); }

/* Marquee */
.finance-marquee {
    overflow: hidden; white-space: nowrap; padding: 1.5rem 0 0; margin-bottom: 0; /* Restored */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
/* UPDATE: width max-content ensures logos don't wrap. Animation adjusted. */
.marquee-track { 
    display: inline-flex; 
    animation: marquee 30s linear infinite; 
    will-change: transform;
    width: max-content; 
}
.marquee-track img {
    height: 40px; /* Restored */
    margin: 0 40px; 
    background: white; padding: 6px; border-radius: 4px;
    opacity: 0.9; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* UPDATE: Translate -25% (because we quadrupled the content) */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-25%); } }

/* Copyright */
.copyright {
    padding: 1.5rem 0; /* Restored */
    text-align: left; color: #ffffff; font-size: 0.85rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.copyright p, .copyright span { margin: 0; color: #ffffff; opacity: 1; }
.footer-powered-by { display: flex; align-items: center; gap: 20px; }
.footer-powered-by a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.footer-powered-by a:hover { opacity: 1; text-decoration: none; }
.footer-powered-by p { font-size: 0.75rem; margin: 0; opacity: 1; color: #ffffff; }
.footer-powered-by img { height: 1.1rem; filter: brightness(0) invert(1); width: auto; opacity: 1; }

/* 13. UTILITIES
   ========================================= */
.text-center { 
    text-align: center; 
}
/* Fix for paragraphs with max-width inside centered containers */
.text-center p { 
    margin-left: auto; 
    margin-right: auto; 
}

.accent-text { 
    color: var(--accent); font-weight: 600; display: block; margin-bottom: 1rem; 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; 
}
.image-caption-accent {
    margin-top: 0.85rem;
    margin-bottom: 0;
}
.form-panel {
    background: var(--bg-surface-alt); padding: 3rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border-light);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
input, select {
    width: 100%; padding: 16px; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-family: var(--font-primary);
    background: white; font-size: 0.95rem; color: var(--text-main);
}
input:focus, select:focus { outline: none; border-color: var(--text-main); }

/* Checklist Utility (For Artery Care etc) */
.list-checks { list-style: none; margin-bottom: 2rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.5rem; }
.list-checks li { display: flex; align-items: center; gap: 10px; }

/* Accreditations */
.accreditation-row { display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; opacity: 0.7; }
.accreditation-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.accreditation-item img { height: 45px; width: auto; mix-blend-mode: multiply; }
.accreditation-item p { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; max-width: 160px; margin: 0; }


/* =========================================
   LARGE SCREENS / MONITORS (Min-Width 1600px)
   ========================================= */
@media (min-width: 1600px) {
    :root {
        /* Widen the container for large monitors */
        --container-width: 1760px; 
        
        /* Scale typography slightly */
        --h1-size: 4.5rem;
        --h2-size: 3.25rem;
        --body-size: 1.15rem;

        /* Increase vertical breathing room */
        --section-spacing: 9rem;
    }

    /* Widen Grid Gaps so content spans better */
    .grid-split {
        gap: 10rem;
    }

    /* Adjust Hero Content to fit wide aspect ratio without looking small */
    .hero-content {
        max-width: 750px;
        padding: 4.5rem;
        /* Increase offset slightly to keep it left-aligned but balanced */
        transform: translateX(-30px);
    }
    
    /* Ensure paragraphs remain readable (don't get too long) but scale up */
    p {
        max-width: 65ch;
    }
}


/* =========================================
   MOBILE SPECIFIC OVERRIDES (Max-Width 992px)
   ========================================= */
@media (max-width: 992px) {
    /* Navbar Alignment */
    .navbar {
        justify-content: space-between;
    }
    .logo { 
        margin-right: auto; /* Align left */
    }

    /* 1. HERO RE-LAYOUT (Split Screen with Overlap) */
    #hero[style] {
        background-image: none !important; /* Disable inline background style on mobile */
    }

    #hero {
        padding-top: var(--header-height);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: auto;
        min-height: 100dvh;
        background-color: white; 
        position: relative;
    }

    /* Content Top Half - Pink Box with Overlap */
    .hero-content {
        transform: none;
        margin: 60px 0 -50px 0; /* Top padding + Bottom Overlap */
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: rgba(236, 168, 176, 0.95) !important; /* Restored Pink Background */
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.4);
        box-shadow: 0 15px 45px rgba(236, 168, 176, 0.3);
        padding: 3rem 1.5rem;
        z-index: 10; /* Ensure overlap sits on top */
    }
    
    .hero-content h1 {
        font-size: 2rem; 
        color: white !important; /* White Text */
        margin-bottom: 0.5rem;
    }
    .hero-content p {
        color: white !important; /* White Text */
        font-size: 0.95rem;
        margin-bottom: 1rem;
        opacity: 0.9;
    }
    .hero-content .accent-text {
        color: white !important;
        opacity: 0.8 !important;
        margin-bottom: 0.5rem;
    }

    /* Hide animated text on mobile */
    .animated-list-container { display: none; }

    /* Horizontal Action Buttons */
    .hero-content .btn-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Prevent stacking */
        width: 100%;
        gap: 10px;
        margin-top: 1rem;
    }
    .hero-content .btn {
        flex: 1; /* Equal width */
        white-space: nowrap; /* Force one line */
        padding: 0 10px !important; /* Horizontal padding only */
        height: 40px; /* Fixed, smaller height */
        font-size: 0.8rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Hero buttons inside pink box need white borders/text logic */
    .hero-content .btn-primary {
        background-color: white;
        color: var(--color-pulse-main);
        border-color: white;
    }
    .hero-content .btn-theme {
        color: white;
        border-color: white;
    }

    /* Image Bottom Half */
    .mobile-hero-image {
        display: block;
        height: 50vh; 
        width: 100%;
        position: relative;
        overflow: hidden;
        z-index: 1; /* Below content */
    }
    .mobile-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* NEW: Gradient Overlay for Mobile Hero */
    .mobile-hero-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 150px; /* Gradient height */
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
        z-index: 2;
        pointer-events: none;
    }
    
    /* Remove overlay on hero */
    #hero::before { display: none; }


    /* 2. GENERAL BUTTON TWEAKS */
    /* Uniform Button Sizing for Mobile (Small/Compact) */
    .section .btn {
        padding: 12px 24px !important;
        font-size: 0.85rem !important;
        transform: none !important; /* Reset scale, rely on padding */
        min-width: 0;
    }
    
    /* Right Align Buttons in Content Sections */
    .section:not(#hero):not(.section-locations) .btn-group {
        justify-content: flex-end;
        width: 100%;
    }

    /* 3. VASCULAR HEALTH BUTTONS (Inside Cards) */
    .card-service .btn {
        width: 100%;
        justify-content: flex-end; /* Align Text Right */
        padding-right: 0 !important;
    }

    /* 4. COMPRESSION THERAPY BUTTONS (Row, next to each other) */
    .compression-btns {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between !important;
        gap: 10px;
    }
    .compression-btns .btn {
        flex: 1;
        padding: 12px 10px !important;
        font-size: 0.8rem !important;
    }


    /* 5. SERVICES PILLS (Colored Borders) */
    .pill {
        border-color: var(--pill-color) !important;
        color: var(--pill-color) !important;
    }

    /* 6. ANIMATION OVERRIDES (Fade Up Only) */
    .reveal-left, 
    .reveal-right {
        transform: translateY(40px); /* Reset X translate, invoke Y */
    }
    .reveal-visible {
        transform: translate(0, 0) !important;
    }


    /* 7. FOOTER ALIGNMENT */
    footer { 
        text-align: center; 
        padding-bottom: 40px; /* Reduced from 120px to fit on screen */
    }
    .footer-grid { 
        text-align: center; 
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Restored */
    }
    /* Logo centered and full width of description */
    .footer-col:first-child .logo { 
        display: block; 
        margin: 0 auto 1rem auto; 
        width: 100%;
        max-width: 280px; /* Match description width visually */
    }
    .footer-col:first-child .logo img {
        margin: 0 auto;
        height: 45px; /* Slightly larger */
    }
    
    .footer-col h4 { margin-bottom: 0.8rem; }
    .copyright {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-powered-by { justify-content: center; }
}

/* =========================================
   ABOUT PAGE & TEAM STYLES
   ========================================= */

/* --- Person Row Spacing --- */
/* Used to create separation between team members sharing the same container */
.person-row {
    margin-bottom: 7rem; /* Large vertical spacing to mimic distinct sections */
}
/* Reduce spacing for the last person in a group */
.person-row:last-of-type {
    margin-bottom: 0;
}

/* Adjustments for mobile */
@media (max-width: 992px) {
    .person-row { margin-bottom: 5rem; }
}


/* --- Why Choose Us Section (Dark w/ BG) --- */
.section-why-choose {
    background-image: url('../images/breather.JPG'); /* Ensure path is correct relative to CSS */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}
/* Overlay */
.section-why-choose::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: rgba(29, 29, 31, 0.7); /* Dark overlay */
    z-index: 1;
}
.section-why-choose .container { position: relative; z-index: 2; }

/* Styles for text on dark background */
.section-why-choose h2,
.section-why-choose .accent-text { 
    color: white !important; 
}

/* Glassmorphic Cards for Features */
.section-why-choose .card-location {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}
.section-why-choose .card-location h3 { color: white; }
.section-why-choose .card-location p { color: rgba(255, 255, 255, 0.85); }
.section-why-choose .card-location i { color: var(--color-pulse-main); }


/* --- Business Team Dropdown Layout (Grid) --- */
.business-team-wrapper {
    text-align: center;
}
/* The grid used inside the business dropdown */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left; /* Reset text align for cards */
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* Business Card Styling (Different from rows) */
.card-team {
    background: white; 
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card-team:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-pulse-main);
}
.card-team img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}
.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--color-pulse-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Dropdown Animation */
#business-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}
#business-list.open {
    max-height: 3000px;
    opacity: 1;
}

/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* Main Layout: Sidebar + Grid */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .blog-layout {
        grid-template-columns: 280px 1fr; /* Sidebar width + remaining space */
        gap: 4rem;
    }
}

/* --- SIDEBAR --- */
.blog-sidebar {
    height: fit-content;
    /* Sticky Positioning */
    position: sticky;
    top: 120px; /* Adjust based on header height */
    align-self: start;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-widget:last-child {
    border-bottom: none;
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
}
.search-box input {
    padding-right: 40px;
}
.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}
.search-box button:hover {
    color: var(--color-pulse-main);
}

/* Category List */
.blog-categories {
    list-style: none;
    padding: 0;
}
.blog-categories li {
    margin-bottom: 0.8rem;
}
.blog-cat-btn {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    text-align: left;
}
.blog-cat-btn:hover {
    color: var(--color-pulse-main);
    padding-left: 5px;
}
.blog-cat-btn.active {
    color: var(--color-pulse-main);
    font-weight: 600;
}

/* --- FEATURED POST --- */
.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .featured-post {
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-img {
    position: relative;
    height: 100%;
    min-height: 300px;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.featured-content p {
    margin-bottom: 2rem;
}

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Force 2 columns on larger screens */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- BLOG CARD --- */
.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

/* Card Image */
.blog-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

/* Category Tag over Image */
.blog-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Card Content */
.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}
.blog-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.blog-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    flex-grow: 1; /* Pushes button down */
}
.blog-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-pulse-main);
    letter-spacing: 0.05em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}
.blog-link:hover .arrow-icon {
    transform: translateX(4px);
}
.blog-link .arrow-icon {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

/* =========================================
   VEINS PAGE SPECIFIC STYLES & EDITS
   ========================================= */

/* -- 1. HERO BRAND COLOR -- */
/* Overrides the hero content box to use the Veins brand color with opacity */
.veins-hero .hero-content {
    background-color: rgba(236, 168, 176, 0.9); /* RGB of #eca8b0 */
    border-color: rgba(255, 255, 255, 0.3);
}

/* -- 2. FOOTER BRAND COLOR -- */
/* Forces the footer on the veins page to match the brand color */
.page-veins footer {
    background-color: var(--color-veins) !important;
}

/* Hero Header Sizing Override */
.veins-hero h1 {
    max-width: 15ch; 
    margin-left: auto;
    margin-right: auto;
}

/* -- 3. GUIDANCE SECTION (Dark Glassmorphism Style) -- */
/* Matches 'Why Choose Pulse' section from About Us */

.section-guidance-bg {
    background-image: url('../images/varicosebackground.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}

/* Dark Overlay */
.section-guidance-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.7); /* Dark overlay */
    z-index: 1;
}

/* Headers and Accent Text to White */
.section-guidance-bg h2,
.section-guidance-bg .accent-text { 
    color: white !important; 
    --accent: white; /* Ensures the accent variable uses white */
}

/* Glassmorphic Cards */
.section-guidance-bg .card-guidance {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Light border */
    color: white;
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card Hover Effect */
.section-guidance-bg .card-guidance:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Text inside Cards */
.section-guidance-bg .card-guidance h3 {
    color: white; /* Override brand color to white for contrast */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section-guidance-bg .card-guidance p, 
.section-guidance-bg .card-guidance li {
    color: rgba(255, 255, 255, 0.85); /* Off-white text */
}

/* List Bullets inside the dark card */
.veins-list li::before,
.section-guidance-bg .card-guidance li::before {
    content: "•";
    color: var(--color-veins); /* Keep brand color for the bullet points */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Feature/Guidance Grid Layout */
.guidance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .guidance-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.card-guidance ul {
    list-style: none;
    padding: 0;
}
.card-guidance li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

/* -- 4. ZIGZAG TREATMENT SECTION & ARROWS -- */

/* Text Link Hover Effect for Veins Brand Color */
.link-hover-veins {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.link-hover-veins:hover {
    color: var(--color-veins) !important;
}

.link-hover-veins .arrow-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* UPDATED HOVER: Rotates -45deg (points top-right) */
.link-hover-veins:hover .arrow-icon {
    transform: rotate(-45deg);
}

/* Layout Spacing for Alternating Rows */
.veins-zigzag-row {
    margin-bottom: 6rem;
}
.veins-zigzag-row:last-of-type {
    margin-bottom: 4rem;
}

/* Mobile Adjustment for Zigzag spacing */
@media (max-width: 992px) {
    .veins-zigzag-row {
        margin-bottom: 4rem;
        gap: 2rem; 
    }
}

/* =========================================
   SPIDER VEINS PAGE SPECIFIC STYLES
   ========================================= */

/* Reuse the Veins brand color logic */
.page-spider-veins footer {
    background-color: var(--color-veins) !important;
}

.page-spider-veins .hero-content {
    background-color: rgba(236, 168, 176, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Specific Hero Image Override */
.spider-hero {
    background-image: url('../images/spiderhero.png'); 
    background-size: cover;
    background-position: center;
}

/* Mobile Hero Image specific to Spider Veins */
@media (max-width: 992px) {
    .spider-hero {
        background-image: none !important;
    }
    .spider-hero .hero-content {
        background: rgba(236, 168, 176, 0.95) !important;
    }
}

.section-4-guidance-bg {
    background-image: url('../images/spiderback.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}

/* Dark Overlay */
.section-4-guidance-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.7); /* Dark overlay */
    z-index: 1;
}

/* Headers and Accent Text to White */
.section-4-guidance-bg h2,
.section-4-guidance-bg .accent-text { 
    color: white !important; 
    --accent: white; /* Ensures the accent variable uses white */
}

/* Glassmorphic Cards */
.section-4-guidance-bg .card-guidance {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Light border */
    color: white;
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card Hover Effect */
.section-4-guidance-bg .card-guidance:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Text inside Cards */
.section-4-guidance-bg .card-guidance h3 {
    color: white; /* Override brand color to white for contrast */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section-4-guidance-bg .card-guidance p, 
.section-4-guidance-bg .card-guidance li {
    color: rgba(255, 255, 255, 0.85); /* Off-white text */
}

/* =========================================
   COMPRESSION PAGE SPECIFIC STYLES
   ========================================= */
   .section-3-guidance-bg {
    background-image: url('../images/image11.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}
/* Dark Overlay */
.section-3-guidance-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.7); /* Dark overlay */
    z-index: 1;
}

/* Headers and Accent Text to White */
.section-3-guidance-bg h2,
.section-3-guidance-bg .accent-text { 
    color: white !important; 
    --accent: white; /* Ensures the accent variable uses white */
}

/* Glassmorphic Cards */
.section-3-guidance-bg .card-guidance {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Light border */
    color: white;
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card Hover Effect */
.section-3-guidance-bg .card-guidance:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Text inside Cards */
.section-3-guidance-bg .card-guidance h3 {
    color: white; /* Override brand color to white for contrast */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section-3-guidance-bg .card-guidance p, 
.section-3-guidance-bg .card-guidance li {
    color: rgba(255, 255, 255, 0.85); /* Off-white text */
}
/* 1. Brand Color & Footer */
.page-compression footer {
    background-color: var(--color-compression) !important;
}

/* 2. Navigation & Dropdowns (Green Hover) */
.page-compression .nav-link:hover,
.page-compression .nav-link.active,
.page-compression .dropdown-link:hover {
    color: var(--color-compression) !important;
}
.page-compression .nav-link::after {
    background-color: var(--color-compression) !important;
}
.page-compression .nav-cart:hover {
    color: var(--color-compression) !important;
}

/* --- NAV ACTION BUTTON (Book Now) OVERRIDES --- */

/* Pre-Scroll (Transparent Header): Default = Green BG/White Text | Hover = White BG/Green Text */
.page-compression .main-nav .btn-primary {
    background-color: var(--color-compression) !important;
    border-color: var(--color-compression) !important;
    color: white !important;
}
.page-compression .main-nav .btn-primary:hover {
    background-color: white !important;
    color: var(--color-compression) !important;
    border-color: var(--color-compression) !important;
}

/* Post-Scroll (White Header): Default = White BG/Green Text | Hover = Green BG/White Text */
.page-compression .main-nav.scrolled .btn-primary {
    background-color: white !important;
    color: var(--color-compression) !important;
    border-color: var(--color-compression) !important;
}
.page-compression .main-nav.scrolled .btn-primary:hover {
    background-color: var(--color-compression) !important;
    color: white !important;
}

/* 3. Hero Styling */
.compression-hero {
    background-image: url('images/compression2.jpg'); 
    background-size: cover;
    background-position: center;
}
.page-compression .hero-content {
    background-color: rgba(125, 193, 141, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Content Button (Shop Our Range) Override */
.page-compression .hero-content .btn-primary {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-compression) !important;
}
.page-compression .hero-content .btn-primary:hover {
    background-color: var(--color-compression) !important;
    color: white !important;
    border: 1px solid white !important;
}

/* 4. Section Action Buttons ("Who Will They Help?" & "Expert Advice") */
/* Default is transparent with gray border. Hover requested: Green Border + Green Text + White BG */
.page-compression .btn-secondary:hover {
    background-color: white !important;
    border-color: var(--color-compression) !important;
    color: var(--color-compression) !important;
}

/* 5. Contact Location Dropdown & Links */
.page-compression .btn-clinics-toggle:hover {
    color: var(--color-compression) !important;
}
.page-compression .contact-clinics-list li a:hover {
    color: var(--color-compression) !important;
}

/* 6. Contact Form Brand Button (Green) */
.page-compression .btn-brand {
    background-color: var(--color-compression);
    border-color: var(--color-compression);
}
.page-compression .btn-brand:hover {
    color: var(--color-compression);
    background-color: white;
}

/* 7. Image Alignments & Lists */
.page-compression .aligned-image-wrapper {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto; 
}
.page-compression .clean-list li::before {
    content: none !important;
}
.page-compression .clean-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.page-compression .clean-list li {
    padding-left: 0;
}

/* Mobile Hero Overrides */
@media (max-width: 992px) {
    .compression-hero {
        background-image: none !important;
    }
    .compression-hero .hero-content {
        background: rgba(125, 193, 141, 0.95) !important;
    }
} 

/* =========================================
   PAGE-SPECIFIC STYLES: LASER AESTHETICS
   ========================================= */

/* 1. Page Branding & Global Variables */
.page-laser {
    --color-laser-brand: #9ad7d9;
    --color-pulse-main: #9ad7d9; /* Overrides global pink for this page */
}

/* 2. Footer Override */
.page-laser footer {
    background-color: var(--color-laser-brand) !important;
}

/* 3. HEADER & NAVIGATION OVERRIDES (Complete Recoloring) */

/* --- Nav Links (Hover & Active) --- */
.page-laser .nav-link:hover,
.page-laser .nav-link.active,
.page-laser .dropdown-link:hover {
    color: var(--color-laser-brand) !important;
}

/* --- Nav Link Underline --- */
.page-laser .nav-link::after {
    background-color: var(--color-laser-brand) !important;
}

/* --- Cart Icon Hover --- */
.page-laser .nav-cart:hover {
    color: var(--color-laser-brand) !important;
}

/* --- Book Now Button: PRE-SCROLL (Transparent Header) --- */
.page-laser .main-nav:not(.scrolled) .btn-primary {
    background-color: var(--color-laser-brand) !important;
    border-color: var(--color-laser-brand) !important;
    color: white !important;
}
.page-laser .main-nav:not(.scrolled) .btn-primary:hover {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-laser-brand) !important;
}

/* --- Book Now Button: POST-SCROLL (White Header) --- */
.page-laser .main-nav.scrolled .btn-primary {
    background-color: var(--color-laser-brand) !important;
    border-color: var(--color-laser-brand) !important;
    color: white !important;
}
.page-laser .main-nav.scrolled .btn-primary:hover {
    background-color: white !important;
    border-color: var(--color-laser-brand) !important;
    color: var(--color-laser-brand) !important;
}

/* --- Mobile Menu Toggles --- */
.page-laser .menu-mobile-toggle[aria-expanded="true"],
.page-laser .menu-mobile-toggle[aria-expanded="true"] .menu-mobile-toggle-icon {
    color: var(--color-laser-brand) !important;
    border-color: var(--color-laser-brand) !important;
}
.page-laser .btn-mobile-cta {
    background-color: var(--color-laser-brand) !important;
    border-color: var(--color-laser-brand) !important;
}

/* 4. HERO SECTION */
.laser-hero {
    background-image: url('images/laserhero.png'); 
    background-size: cover;
    background-position: center;
}
.page-laser .hero-content {
    background-color: rgba(154, 215, 217, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}
.page-laser .hero-content .btn-primary {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-laser-brand) !important;
}
.page-laser .hero-content .btn-primary:hover {
    background-color: var(--color-laser-brand) !important;
    color: white !important;
    border: 1px solid white !important;
}

/* 5. SIDEBAR VISIBILITY FIXES */
@media (min-width: 992px) {
    .page-laser .blog-sidebar .form-panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .page-laser .mobile-sidebar-toggle { display: none !important; }
}
@media (max-width: 992px) {
    .laser-hero { background-image: none !important; }
    .laser-hero .hero-content { background: rgba(154, 215, 217, 0.95) !important; }
    .page-laser .mobile-sidebar-toggle { display: flex !important; background-color: var(--color-laser-brand); color: white; border: none; }
    .page-laser #sidebarMenu { display: none; }
    .page-laser #sidebarMenu[style*="display: block"] { display: block !important; }
}

/* 6. DARK TREATMENTS SECTION (Glassmorphism Cards) */
.section-laser-treatments-bg {
    background-image: url('../images/card4.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}
.section-laser-treatments-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.7);
    z-index: 1;
}
.section-laser-treatments-bg .laser-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}
.section-laser-treatments-bg .laser-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.section-laser-treatments-bg .laser-card h3 { color: white; }
.section-laser-treatments-bg .laser-card p { color: rgba(255, 255, 255, 0.85); }
.section-laser-treatments-bg .link-hover-laser {
    color: white;
    justify-content: center;
    width: 100%;
}
.section-laser-treatments-bg .link-hover-laser:hover {
    color: var(--color-laser-brand) !important;
}

/* 7. GRID SYSTEMS */
.laser-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 3rem;
}
@media (min-width: 992px) {
    .laser-team-grid { grid-template-columns: repeat(3, 1fr); }
}

.laser-treatment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .laser-treatment-grid { grid-template-columns: repeat(2, 1fr); }
}

/* NEW: 2x2 Grid for Rejuvenation/Pricing (Centered) */
.laser-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}
@media (min-width: 768px) {
    .laser-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Base Laser Card (Default White) */
.laser-card {
    background: white; 
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 100%;          
    text-align: center;
    transition: all 0.3s ease;
}
.laser-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.laser-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.laser-card p { margin-bottom: 0; flex-grow: 1; }

/* 8. CONCERNS SPLIT LAYOUT (Zigzag) */
.laser-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.laser-split-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
@media (min-width: 992px) {
    .laser-split-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .laser-split-container.reverse { direction: rtl; }
    .laser-split-container.reverse > * { direction: ltr; }
}

.laser-split-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.laser-split-image img { width: 100%; height: 100%; object-fit: cover; }
.laser-treatment-box {
    margin-top: 1.5rem;
    background: var(--bg-surface-alt);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
}
.laser-treatment-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-laser-brand); }
.laser-treatment-box p { font-size: 0.95rem; margin-bottom: 1.5rem; }

/* 9. IMPROVED CONTEXT BUTTON (Larger Size) */
.btn-laser-small {
    padding: 14px 32px; 
    font-size: 0.95rem; 
    font-weight: 500;
    width: auto;
    display: inline-flex;
    background-color: var(--color-laser-brand);
    border-color: var(--color-laser-brand);
    color: white;
    border-radius: var(--radius-pill);
}
.btn-laser-small:hover {
    background-color: white;
    color: var(--color-laser-brand);
}

.laser-btn-wrapper {
    display: flex;
    justify-content: flex-end; /* Right align on mobile */
}
@media (min-width: 992px) {
    .laser-btn-wrapper {
        justify-content: flex-start; /* Left align on desktop */
    }
}

/* 10. GENERAL BUTTONS & LINKS */
.btn-accent-laser { border-color: var(--color-laser-brand); }
.btn-hover-laser:hover {
    background-color: var(--color-laser-brand) !important;
    border-color: var(--color-laser-brand) !important;
    color: white !important;
}

/* Text Links with Arrows */
.link-hover-laser {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.link-hover-laser:hover { color: var(--color-laser-brand) !important; }

.link-hover-laser .arrow-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.link-hover-laser:hover .arrow-icon { transform: rotate(-45deg); }

/* Booking Form Button & Time Slots */
.page-laser #submitBtn:hover {
    background-color: white !important;
    color: var(--color-laser-brand) !important;
    border: 1px solid var(--color-laser-brand) !important;
}

.page-laser .time-slot:hover {
    border-color: var(--color-laser-brand);
    color: var(--color-laser-brand);
}
.page-laser .time-slot.selected {
    background-color: var(--color-laser-brand);
    color: white;
    border-color: var(--color-laser-brand);
}

/* =========================================
   LOCATION PAGES STYLES (Auckland, etc.)
   ========================================= */

/* 1. Page Branding & Footer Override */
/* Uses Pulse Veins/Pink branding */
.page-location footer {
    background-color: var(--color-pulse-footer) !important;
}

.page-location .hero-content {
    background-color: rgba(236, 168, 176, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 2. Hero Image Mobile Override */
@media (max-width: 992px) {
    .page-location #hero {
        background-image: none !important;
    }
    .page-location .hero-content {
        background: rgba(236, 168, 176, 0.95) !important;
    }
}

/* 3. List Alignment Fix (Perfect Alignment with Header Text) */
.location-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}
.location-list li {
    position: relative;
    padding-left: 0; /* Remove padding so text sits flush with container */
    margin-bottom: 0.8rem;
    line-height: 1.7;
    /* Flex alignment to ensure bullet sits beside text cleanly */
    display: flex; 
    gap: 12px;
}
.location-list li::before {
    content: "•";
    color: var(--color-pulse-main);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.7; /* Match text line height */
    flex-shrink: 0;
}

/* Mobile Override for Location List: Strong text above description */
@media (max-width: 768px) {
    .location-list li {
        display: block; /* Stack content vertically */
        position: relative;
        padding-left: 20px; /* Space for bullet */
    }
    .location-list li::before {
        position: absolute;
        left: 0;
        top: 0;
    }
    .location-list li strong {
        display: block; /* Forces title to own line */
        margin-bottom: 4px; /* Space between title and description */
    }
}

/* 4. Location Cards (Clean styling for dark backgrounds) */
.page-location .card-location {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.location-address {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* 5. FAQ Accordion Styles (White BG, Pink Divider, Arrow Icon) */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active {
    border-color: var(--color-pulse-main);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white; /* Fully White */
    transition: color 0.3s ease;
}

/* Hover/Active text color */
.faq-item.active .faq-question,
.faq-question:hover {
    color: var(--color-pulse-main);
}

/* Arrow Icon Logic (Right when inactive, Down when active) */
.faq-toggle-icon {
    display: inline-block;
    font-family: sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Inactive: Points Right (Rotated -90deg from Down) */
    transform: rotate(-90deg); 
    color: var(--text-main);
}

/* Active: Points Down */
.faq-item.active .faq-toggle-icon {
    transform: rotate(0deg);
    color: var(--color-pulse-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: white; /* Fully White */
    position: relative; /* For divider positioning */
}

/* 6. The 2px Pink Divider (Inset to match text width) */
.faq-item.active .faq-answer::before {
    content: '';
    display: block;
    margin: 0 24px; /* Matches the padding of the p tag below */
    height: 2px;    /* Thicker line */
    background-color: var(--color-pulse-main);
}

.faq-answer p {
    padding: 24px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* 11. LOCATION SECTION 
   ========================================= */
   .section-2-guidance-bg {
    background-image: url('../images/breather.JPG');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 8rem 0;
}
/* Dark Overlay */
.section-2-guidance-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.7); /* Dark overlay */
    z-index: 1;
}

/* Headers and Accent Text to White */
.section-2-guidance-bg h2,
.section-2-guidance-bg .accent-text { 
    color: white !important; 
    --accent: white; /* Ensures the accent variable uses white */
}

/* Glassmorphic Cards */
.section-2-guidance-bg .card-guidance {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Light border */
    color: white;
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Card Hover Effect */
.section-2-guidance-bg .card-guidance:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Text inside Cards */
.section-2-guidance-bg .card-guidance h3 {
    color: white; /* Override brand color to white for contrast */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section-2-guidance-bg .card-guidance p, 
.section-2-guidance-bg .card-guidance li {
    color: rgba(255, 255, 255, 0.85); /* Off-white text */
}

/* UPDATED: Flexbox Layout for Centering & Symmetry */
.locations-grid { /* Renamed from .locations-grid */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers 1, 2, or 3 items horizontally */
    align-items: stretch;    /* Ensures all cards are equal height */
    gap: 30px;
    margin-top: 3rem;
}

/* Updated Card Sizing for Index Page */
.locations-grid > .card-location {
    flex: 1 1 350px;  /* Grow and shrink evenly, basis ~350px */
    max-width: 420px; /* Limit width so single cards aren't too wide */
    width: 100%;
}

/* RENAMED to fix conflict with location pages */
.card-location {
    background: white; padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    text-align: center;
    /* Ensure internal content distributes evenly */
    display: flex;
    flex-direction: column;
    height: 100%; /* Important for alignment */
}
.card-location h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-location p { font-size: 0.9rem; margin-bottom: 1.5rem; }

.link-location { /* Renamed from .link-location */
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-main); padding-bottom: 2px; border-bottom: 1px solid var(--color-pulse-main);
    margin-top: auto; /* Pushes link to the bottom for symmetry */
}

/* 4. TREATMENTS (Updated for Center Alignment & Symmetry)
   ========================================= */

/* Flexbox Container: Centers 1, 2, or 3 cards automatically */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items horizontally */
    align-items: stretch;    /* Ensures all cards are the same height */
    gap: 30px;
    margin-top: 3rem;
}

/* Service Card Styling */
.card-service {
    background: white; 
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    
    /* Internal Layout & Symmetry */
    display: flex;
    flex-direction: column;
    height: 100%;          /* Fills the container height */
    text-align: center;    /* Centers text for better symmetry */
    transition: all 0.3s ease;
}

/* Hover Effect */
.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-service h3 { 
    font-size: 1.4rem; 
    margin-bottom: 0.5rem; 
}

.card-service p {
    margin-bottom: 0;     /* Clean bottom spacing */
    flex-grow: 1;         /* Pushes content evenly */
}

/* =========================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================= */

/* 1. Brand Color Override */
.page-contact footer {
    background-color: var(--color-pulse-footer) !important;
}

.page-contact .hero-content {
    background-color: rgba(236, 168, 176, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 2. Contact Hero Image */
.contact-hero {
    background-image: url('../images/legs2.jpg');
    background-size: cover;
    background-position: center;
}

/* Mobile Hero Override */
@media (max-width: 992px) {
    .contact-hero {
        background-image: none !important;
    }
    .contact-hero .hero-content {
        background: rgba(236, 168, 176, 0.95) !important;
    }
}

/* 3. Contact Method Cards (Phone/Email) */
.contact-method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .contact-method-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card-contact-method {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-pulse-main);
}

.card-contact-method i {
    font-size: 1.5rem;
    color: var(--color-pulse-main);
    margin-bottom: 0.5rem;
}

.card-contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-contact-method p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}
.card-contact-method strong {
    color: var(--text-main);
}

/* 4. Booking Section Adjustments (Compact Fit) */
.page-contact .faq-item {
    background-color: var(--bg-surface);
}

/* Specific Section Padding Reduction for Contact Page Booking */
.page-contact #booking {
    padding: 4rem 0; /* Reduced from standard size to fit screen better */
}

/* Tighter Form Panel Layout */
.page-contact .form-panel {
    background: white;
    padding: 2.2rem; /* Reduced internal padding */
}

.page-contact .form-group {
    margin-bottom: 1.2rem; /* Reduce vertical gap between inputs */
}

.page-contact #message {
    min-height: 100px; /* Shorter textarea to prevent excessive scrolling */
}

/* =========================================
   PAGE-SPECIFIC STYLES: SHOP
   ========================================= */
   body.page-shop .hero-content {
    background-color: rgba(236, 168, 176, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Shop Products Grid Layout */
body.page-shop .shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 2rem;
}

/* Card Styling (Matches JS generated HTML) */
body.page-shop .product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

body.page-shop .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

body.page-shop .product-image-wrapper {
    background-color: var(--bg-surface-alt);
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

body.page-shop .product-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.page-shop .product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.page-shop .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-decoration: none;
    flex-grow: 1;
    transition: color 0.2s;
}

body.page-shop .product-title:hover {
    color: var(--color-pulse-main);
}

body.page-shop .product-price {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Filters */
body.page-shop .filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 3rem;
}

body.page-shop .filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-light);
    background-color: white;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
}

body.page-shop .filter-btn:hover {
    border-color: var(--color-pulse-main);
    color: var(--color-pulse-main);
}

body.page-shop .filter-btn.active {
    background-color: var(--color-pulse-main);
    color: white;
    border-color: var(--color-pulse-main);
}

/* Quantity Selector & Add to Cart Override */
/* UPDATED: Add to Cart button matches Contact Form button colors */
body.page-shop .product-card .btn {
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
    background-color: var(--color-pulse-main);
    border: 1px solid var(--color-pulse-main);
    color: white;
    transition: all 0.3s ease;
}

body.page-shop .product-card .btn:hover {
    background-color: white;
    color: var(--color-pulse-main);
    transform: translateY(-2px);
}

/* Ensure dynamic quantity selector inserted by main.js looks good */
body.page-shop .quantity-selector-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    body.page-shop .shop-hero .hero-content {
        background: rgba(236, 168, 176, 0.95) !important;
    }
}

/* =========================================
   PAGE-SPECIFIC STYLES: CART
   ========================================= */
   body.page-cart .cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    body.page-cart .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Cart List */
body.page-cart .cart-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    body.page-cart .cart-header-row { display: none; }
}

body.page-cart .cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    gap: 15px;
}

@media (max-width: 768px) {
    body.page-cart .cart-item {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "info info"
            "qty price"
            "total total";
        gap: 20px;
    }
    body.page-cart .cart-item-info { grid-area: info; }
    body.page-cart .cart-item-qty { grid-area: qty; }
    body.page-cart .cart-item-price { grid-area: price; text-align: right; }
    body.page-cart .cart-item-total { grid-area: total; text-align: right; font-weight: 700; border-top: 1px dashed var(--border-light); padding-top: 10px;}
}

body.page-cart .cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.page-cart .cart-item-img {
    width: 70px;
    height: 70px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    padding: 5px;
}
body.page-cart .cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.page-cart .cart-item-title {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    line-height: 1.3;
    margin-bottom: 5px;
}

body.page-cart .remove-item-btn {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
body.page-cart .remove-item-btn:hover { color: #d32f2f; }

/* Cart Summary Card */
body.page-cart .order-summary-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 120px;
}

body.page-cart .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

body.page-cart .summary-row.total {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

body.page-cart .summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}


/* =========================================
   PAGE-SPECIFIC STYLES: ORDER STATUS
   ========================================= */
body.page-order-status .status-panel {
    background: white;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

body.page-order-status .order-receipt-card {
    background: var(--bg-surface-alt);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
    text-align: left;
}

body.page-order-status .receipt-list {
    list-style: none;
    margin-bottom: 2rem;
}

body.page-order-status .receipt-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.page-order-status .receipt-list li:last-child { border-bottom: none; }

body.page-order-status .receipt-divider {
    height: 2px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

body.page-order-status .shipping-details-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-light);
}
body.page-order-status .shipping-details-block h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* =========================================
   PAGE-SPECIFIC STYLES: VASCULAR (Swelling, Clots, Ulcers)
   ========================================= */

/* 1. Page Branding & Global Variables */
.page-vascular {
    --color-vascular: #70bbdd;
    /* Map Pulse Main/Deep/Footer to Vascular Blue */
    --color-pulse-main: #70bbdd; 
    --color-pulse-deep: #5da3c2; 
    --color-pulse-footer: #70bbdd;
    --color-veins: #70bbdd; /* Override legacy usage if any */
}

/* 2. Footer Override */
.page-vascular footer {
    background-color: var(--color-vascular) !important;
}

/* 3. HERO SECTION */
.page-vascular .hero-content {
    background-color: rgba(112, 187, 221, 0.9); /* #70bbdd at 0.9 opacity */
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Button Overrides */
.page-vascular .hero-content .btn-primary {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-vascular) !important;
}
.page-vascular .hero-content .btn-primary:hover {
    background-color: var(--color-vascular) !important;
    color: white !important;
    border: 1px solid white !important;
}

/* Mobile Hero Override */
@media (max-width: 992px) {
    .page-vascular #hero {
        background-image: none !important;
    }
    .page-vascular .hero-content {
        background: rgba(112, 187, 221, 0.95) !important;
    }
}

/* 4. NAVIGATION ACCENTS */

/* Links & Dropdowns */
.page-vascular .nav-link:hover,
.page-vascular .nav-link.active,
.page-vascular .dropdown-link:hover {
    color: var(--color-vascular) !important;
}

/* Underline */
.page-vascular .nav-link::after {
    background-color: var(--color-vascular) !important;
}

/* Cart Icon */
.page-vascular .nav-cart:hover {
    color: var(--color-vascular) !important;
}

/* Book Now Button (Pre-Scroll) */
.page-vascular .main-nav:not(.scrolled) .btn-primary {
    background-color: var(--color-vascular) !important;
    border-color: var(--color-vascular) !important;
    color: white !important;
}
.page-vascular .main-nav:not(.scrolled) .btn-primary:hover {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-vascular) !important;
}

/* Book Now Button (Post-Scroll) */
.page-vascular .main-nav.scrolled .btn-primary {
    background-color: white !important;
    color: var(--color-vascular) !important;
    border-color: var(--color-vascular) !important;
}
.page-vascular .main-nav.scrolled .btn-primary:hover {
    background-color: var(--color-vascular) !important;
    color: white !important;
}

/* Mobile Menu Accents */
.page-vascular .menu-mobile-toggle[aria-expanded="true"],
.page-vascular .menu-mobile-toggle[aria-expanded="true"] .menu-mobile-toggle-icon {
    color: var(--color-vascular) !important;
    border-color: var(--color-vascular) !important;
}
.page-vascular .btn-mobile-cta {
    background-color: var(--color-vascular) !important;
    border-color: var(--color-vascular) !important;
}

/* 5. BUTTONS & INTERACTIVE ELEMENTS */

/* Secondary Buttons (Outlined) */
.page-vascular .btn-accent-vascular {
    border-color: var(--color-vascular);
}
.page-vascular .btn-hover-vascular:hover {
    background-color: var(--color-vascular) !important;
    border-color: var(--color-vascular) !important;
    color: white !important;
}

/* Text Links with Arrows */
.page-vascular .link-hover-veins:hover {
    color: var(--color-vascular) !important;
}

/* Contact Form Button */
.page-vascular .btn-brand {
    background-color: var(--color-vascular);
    border-color: var(--color-vascular);
}
.page-vascular .btn-brand:hover {
    background-color: white;
    color: var(--color-vascular);
}

/* Clinic Toggle */
.page-vascular .btn-clinics-toggle:hover {
    color: var(--color-vascular) !important;
}
.page-vascular .contact-clinics-list li a:hover {
    color: var(--color-vascular) !important;
}

/* 6. DARK GUIDANCE SECTION */
/* Ensures bullet points are blue even inside dark cards */
.page-vascular .veins-list li::before {
    color: var(--color-vascular) !important;
}

/* =========================================
   PAGE-SPECIFIC STYLES: FINANCE
   ========================================= */

/* 1. Page Branding & Global Variables */
.page-finance {
    --color-finance: #946fa5;
    /* Map Pulse Main/Deep/Footer to Finance Purple */
    --color-pulse-main: #946fa5; 
    --color-pulse-deep: #7e5691; 
    --color-pulse-footer: #946fa5;
    --color-veins: #946fa5; /* Override legacy usage if any */
}

/* 2. Footer Override */
.page-finance footer {
    background-color: var(--color-finance) !important;
}

/* 3. HERO SECTION */
.finance-hero {
    background-image: url('../images/legs2.jpg'); 
    background-size: cover;
    background-position: center;
}
.page-finance .hero-content {
    background-color: rgba(148, 111, 165, 0.9); /* #946fa5 at 0.9 opacity */
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Button Overrides */
.page-finance .hero-content .btn-primary {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-finance) !important;
}
.page-finance .hero-content .btn-primary:hover {
    background-color: var(--color-finance) !important;
    color: white !important;
    border: 1px solid white !important;
}

/* Mobile Hero Override */
@media (max-width: 992px) {
    .page-finance #hero {
        background-image: none !important;
    }
    .page-finance .hero-content {
        background: rgba(148, 111, 165, 0.95) !important;
    }
}

/* 4. NAVIGATION ACCENTS */

/* Links & Dropdowns */
.page-finance .nav-link:hover,
.page-finance .nav-link.active,
.page-finance .dropdown-link:hover {
    color: var(--color-finance) !important;
}

/* Underline */
.page-finance .nav-link::after {
    background-color: var(--color-finance) !important;
}

/* Cart Icon */
.page-finance .nav-cart:hover {
    color: var(--color-finance) !important;
}

/* Book Now Button (Pre-Scroll) */
.page-finance .main-nav:not(.scrolled) .btn-primary {
    background-color: var(--color-finance) !important;
    border-color: var(--color-finance) !important;
    color: white !important;
}
.page-finance .main-nav:not(.scrolled) .btn-primary:hover {
    background-color: white !important;
    border-color: white !important;
    color: var(--color-finance) !important;
}

/* Book Now Button (Post-Scroll) */
.page-finance .main-nav.scrolled .btn-primary {
    background-color: white !important;
    color: var(--color-finance) !important;
    border-color: var(--color-finance) !important;
}
.page-finance .main-nav.scrolled .btn-primary:hover {
    background-color: var(--color-finance) !important;
    color: white !important;
}

/* Mobile Menu Accents */
.page-finance .menu-mobile-toggle[aria-expanded="true"],
.page-finance .menu-mobile-toggle[aria-expanded="true"] .menu-mobile-toggle-icon {
    color: var(--color-finance) !important;
    border-color: var(--color-finance) !important;
}
.page-finance .btn-mobile-cta {
    background-color: var(--color-finance) !important;
    border-color: var(--color-finance) !important;
}

/* 5. BUTTONS & INTERACTIVE ELEMENTS */

/* Secondary Buttons (Outlined) */
.page-finance .btn-accent-finance {
    border-color: var(--color-finance);
}
.page-finance .btn-hover-finance:hover {
    background-color: var(--color-finance) !important;
    border-color: var(--color-finance) !important;
    color: white !important;
}

/* Contact Form Button */
.page-finance .btn-brand {
    background-color: var(--color-finance);
    border-color: var(--color-finance);
}
.page-finance .btn-brand:hover {
    background-color: white;
    color: var(--color-finance);
}
/* Add this to the bottom of global.css */

/* Specific override to remove bullets/dots for Vein Problems page */
.page-veins .veins-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.page-veins .veins-list li {
    padding-left: 0 !important;
    margin-bottom: 0.8rem;
    display: block !important;
}

.page-veins .veins-list li::before {
    content: none !important;
    display: none !important;
}

/* =========================================
   VEIN TREATMENT PAGE SPECIFIC STYLES
   ========================================= */

/* Recovery Box Styling */
.recovery-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--color-veins); /* Accent line on left */
    height: 100%;
}

.recovery-box h4 {
    color: var(--color-veins);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recovery-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recovery-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Make the label (e.g., "Walking:") bold and dark */
.recovery-list li strong {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Adjustments for dark background cards (like the comparison card) */
.section-guidance-bg .veins-list li {
    color: white !important;
}

@media (min-width: 768px) {
    /* On larger screens, make recovery items distinct rows */
    .recovery-list li {
        flex-direction: row;
        gap: 8px;
    }
    .recovery-list li strong {
        min-width: 140px; /* Aligns the descriptions */
        margin-bottom: 0;
    }
}

/* Styling for the Vein Treatment Lists */
.veins-list li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.veins-list li strong {
    color: var(--text-main);
    font-weight: 600;
    margin-right: 5px;
}

/* =========================================
   SOLID COLOUR GUIDANCE SECTIONS
   (Replaces image/glassmorphism variations)
   ========================================= */

/* 1. Base Layout & Centered Headers (White text on coloured background) */
.section-guidance-solid {
    position: relative;
    padding: 8rem 0;
}

/* Center headers perfectly in the middle */
.section-guidance-solid .container > .accent-text,
.section-guidance-solid .container > h2,
.section-guidance-solid .container > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    max-width: 800px; /* Prevents text from stretching too wide */
}

/* Force accent text to be white for contrast */
.section-guidance-solid .accent-text {
    --accent: white;
}

/* 2. White Cards with Dark Text */
.section-guidance-solid .card-guidance {
    background: #ffffff; /* Solid white background */
    border: none;
    color: var(--text-main); /* Dark text */
    height: 100%;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow to lift off background */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Keeps card text easy to read */
}

/* Card Hover State */
.section-guidance-solid .card-guidance:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Slightly deeper shadow on hover */
}

.section-guidance-solid .card-guidance h3 {
    color: var(--text-main); /* Dark heading */
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.section-guidance-solid .card-guidance p, 
.section-guidance-solid .card-guidance li {
    color: var(--text-muted); /* Dark gray paragraph/list text */
}

/* Guidance Lists inside the cards */
.section-guidance-solid .card-guidance ul {
    list-style: none;
    padding: 0;
}

.section-guidance-solid .card-guidance li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Dark bullet points */
.section-guidance-solid .card-guidance li::before {
    content: "•";
    color: var(--text-main); /* Dark bullet to match text */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Grid layout for the cards, with space below the centered header */
.section-guidance-solid .guidance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem; 
}

@media (min-width: 768px) {
    .section-guidance-solid .guidance-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   3. COLOUR VARIATION CLASSES
   ========================================= */
.guidance-bg-veins       { background-color: var(--color-veins); }
.guidance-bg-laser       { background-color: var(--color-laser); }
.guidance-bg-ultrasound  { background-color: var(--color-ultrasound); }
.guidance-bg-vascular    { background-color: var(--color-vascular); }
.guidance-bg-surgery     { background-color: var(--color-surgery); }
.guidance-bg-compression { background-color: var(--color-compression); }
.guidance-bg-finance     { background-color: var(--color-finance); }
.guidance-bg-blood       { background-color: var(--color-blood); }
.guidance-bg-swelling    { background-color: var(--color-swelling); }
.guidance-bg-ulcers      { background-color: var(--color-ulcers); }

/* =========================================
   ANIMATED TIMELINE LAYOUT (HOW IT WORKS)
   ========================================= */

   .timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The Animated Center Line */
.timeline-line {
    position: absolute;
    width: 4px;
    top: 0; 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    /* Flowing Gradient Animation */
    background: linear-gradient(to bottom, var(--border-light) 0%, var(--color-pulse-main) 50%, var(--border-light) 100%);
    background-size: 100% 200%;
    animation: flowLine 3s linear infinite;
    z-index: 1;
}

@keyframes flowLine {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

/* Timeline Item Container */
.timeline-item {
    display: flex;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
    z-index: 2;
}

.timeline-item.left {
    justify-content: flex-end;
    padding-right: 45px;
    left: 0;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-left: 45px;
    margin-left: 50%;
}

/* Reset text align inside the cards for readability */
.timeline-content {
    width: 100%;
    max-width: 450px;
    text-align: left !important;
}

/* Timeline Dots */
.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: white;
    border: 4px solid var(--color-pulse-main);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.left .timeline-dot {
    right: -11px; /* Half of dot width to center on line */
}

.timeline-item.right .timeline-dot {
    left: -11px;
}

/* Dot Hover Animation */
.timeline-item:hover .timeline-dot {
    transform: translateY(-50%) scale(1.4);
    background: var(--color-pulse-main);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Responsive Mobile Layout */
@media (max-width: 992px) {
    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 9px !important;
        right: auto !important;
    }
    
    .timeline-content {
        max-width: 100%;
    }
}
