/* MOBILE-FIRST DESIGN - Hospital Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Apollo Maroon Theme - Official Color Palette */
    --maroon-primary: #7A1236;
    /* Main Action Color - buttons, active states, links */
    --maroon-dark: #5E0F2A;
    /* Contrast/Footer - footer bg, heavy headings, hover */
    --maroon-classic: #8B1E3F;
    /* Accents - borders, icons, secondary highlights */
    --maroon-soft: #A63A5D;
    /* Subtlety - subheadings, hover states */
    --maroon-light: #E6B3C1;
    /* Decorations - abstract shapes, weak borders */
    --maroon-bg: #F5D6DF;
    /* Backgrounds - light section backgrounds */

    /* Page Structure */
    --bg-page: #F2E7EB;
    /* 90% White / Light Theme */
    --bg-card: #FFFFFF;
    --bg-section-alt: #F5D6DF;

    /* Legacy compatibility - map to maroon palette */
    --primary: #7A1236;
    --primary-hover: #5E0F2A;
    --primary-soft: #F5D6DF;
    --primary-gold: #7A1236;
    --dark-gold: #5E0F2A;
    --light-gold: #E6B3C1;
    --amber: #8B1E3F;
    --cream: #F5D6DF;
    --white: #FFFFFF;

    /* Text Colors */
    --text-main: #111827;
    --text-dark: #1F2933;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    /* Effects */
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.1);

    /* Spacing - Mobile First */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */

    /* Typography - Mobile First */
    --font-base: 16px;
    /* Never smaller on mobile */
    --font-sm: 0.875rem;
    /* 14px */
    --font-lg: 1.125rem;
    /* 18px */
    --font-xl: 1.5rem;
    /* 24px */
    --font-2xl: 2rem;
    /* 32px */
    --font-3xl: 2.5rem;
    /* 40px */

    /* Touch Targets */
    --touch-min: 44px;
    /* Minimum tap size */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
    /* Global fix for fixed header blocking content */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container - Mobile First (full width with padding) */
.container {
    width: 100%;
    padding: 0 var(--spacing-sm);
    margin: 0 auto;
}

/* Desktop: Add max-width */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
        max-width: 1200px;
    }
}

/* ============================================
   NAVIGATION - Mobile First (Bottom/Fixed)
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    /* backdrop-filter: blur(20px); */
    /* Remove blur initially for clear video check */
    border-bottom: none;
    padding: var(--spacing-sm);
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.logo h2 {
    font-size: var(--font-xl);
    color: var(--white);
    /* White text by default on mobile for darkness */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1;
}

.navbar.scrolled .logo h2 {
    color: var(--maroon-primary);
    /* Revert to maroon when white bg appears */
    text-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
}


.tagline {
    font-size: 0.8rem;
    color: var(--white);
    background-color: var(--maroon-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Mobile: Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    background: rgba(122, 18, 54, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(122, 18, 54, 0.2);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger {
    background: rgba(122, 18, 54, 0.08);
}

.navbar.scrolled .hamburger span {
    background: var(--maroon-primary);
}

.navbar.scrolled .hamburger:hover {
    background: rgba(122, 18, 54, 0.15);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--maroon-primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--maroon-primary);
}

/* Mobile: Full-screen Menu */
.nav-links {
    position: fixed;
    left: -100%;
    top: 80px;
    width: 100%;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 245, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    width: 100%;
    padding: 0 20px;
}

.nav-links li:first-child {
    margin-top: 20px;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    min-height: 56px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin-bottom: 4px;
}

.nav-links a:hover,
.nav-links a:active,
.nav-links a.active {
    background: linear-gradient(135deg, rgba(122, 18, 54, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    color: var(--maroon-primary);
    transform: translateX(8px);
    border-bottom-color: var(--primary-gold);
}

.nav-links .btn-primary {
    margin: 15px 20px;
    background: linear-gradient(135deg, var(--maroon-primary) 0%, #A8144F 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 20px rgba(122, 18, 54, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: none !important;
}

.nav-links .btn-primary:hover {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
    box-shadow: 0 8px 25px rgba(122, 18, 54, 0.4);
    transform: translateY(-2px) !important;
}

/* Desktop: Horizontal Menu */
@media (min-width: 968px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 0;
        gap: var(--spacing-lg);
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border-top: none;
        left: 0;
        top: auto;
    }

    .nav-links li {
        padding: 0;
        margin: 0;
    }

    .nav-links li:first-child {
        margin-top: 0;
    }

    .nav-links a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-base);
        border: none;
        border-bottom: none;
        min-height: auto;
        color: var(--white);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        border-radius: 0;
        margin: 0;
        justify-content: center;
        transform: none !important;
    }

    /* Change nav links to dark when scrolled on desktop */
    .navbar.scrolled .nav-links a {
        color: var(--text-dark);
        text-shadow: none;
    }

    .navbar.scrolled .nav-links a:hover,
    .navbar.scrolled .nav-links a.active {
        color: var(--maroon-primary);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: transparent;
        color: var(--primary-gold);
        transform: none !important;
    }

    .nav-links .btn-primary {
        padding: 10px 24px;
        margin: 0;
        font-size: 0.95rem;
        background: var(--maroon-primary);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(122, 18, 54, 0.3);
        transform: none !important;
    }

    .nav-links .btn-primary:hover {
        background: var(--maroon-dark);
        box-shadow: 0 6px 16px rgba(122, 18, 54, 0.4);
        transform: translateY(-2px) !important;
    }

    /* Force Book Now button text to be white always */
    .navbar.scrolled .nav-links .btn-primary {
        color: var(--white);
        background: var(--maroon-primary);
    }

    .navbar.scrolled .nav-links .btn-primary:hover {
        background: var(--maroon-dark);
    }
}

/* ============================================
   HERO SECTION - Mobile First
   ============================================ */

.hero {
    width: 100%;
    height: 100vh;
    /* Force full viewport height */
    min-height: 100vh;
    /* Dynamic height adjustment for mobile browsers with address bars */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Let flexbox center it, remove massive padding that pushes content off */
    position: relative;
    overflow: hidden;
    background: #000;
    /* Fallback for video load */
}

/* Hero Video Background */
#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures video covers area */
    object-position: center;
    /* Centers the video content */
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker, less opaque overlay for better contrast with white text */
    z-index: 1;
    /* backdrop-filter: blur(2px); */
    /* Removed blur for clarity */
}

/* Remove or Adjust previous pseudo-element if needed */
.hero::before {
    display: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
    margin-top: 0;
    /* Remove offset to allowing centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsive font size */
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--white);
    /* Changed to white for visibility on video */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f0f0f0;
    /* Light gray for readability */
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile: Stack buttons vertically */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Base style for both hero buttons */
.emergency-hero-btn,
.hero-btn-sized {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    /* Reset line height */
    padding: 0;
    /* Remove padding, use flex centering */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    width: 250px;
    /* EXACT fixed width */
    height: 56px;
    /* EXACT fixed height */
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Emergency Style - Theme Maroon */
.emergency-hero-btn {
    background: var(--maroon-primary);
    /* Reverted to Theme Maroon */
    border: 2px solid var(--maroon-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(122, 18, 54, 0.4);
    animation: pulse-maroon 2s infinite;
    /* Updated animation name */
}

.emergency-hero-btn:hover {
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(122, 18, 54, 0.6);
}

/* Book Appointment - Solid White Style */
.hero-btn-sized {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--maroon-primary);
    backdrop-filter: none;
}

.hero-btn-sized:hover {
    background: #f0f0f0;
    color: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
}

.btn-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes pulse-maroon {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 18, 54, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(122, 18, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(122, 18, 54, 0);
    }
}

.vibrant-button,
.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    min-height: var(--touch-min);
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--font-lg);
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.vibrant-button {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(122, 31, 42, 0.2);
}

.vibrant-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 31, 42, 0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--maroon-primary);
    border: 1px solid var(--maroon-primary);
}

.btn-outline:hover {
    background: var(--maroon-bg);
    color: var(--maroon-primary);
}

.vibrant-button:active,
.btn-outline:active {
    transform: scale(0.98);
}

/* Mobile: Single column stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--maroon-primary);
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--maroon-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-muted);
    font-size: var(--font-base);
}

/* Desktop: Larger hero, horizontal buttons, grid stats */
@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--font-3xl);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 968px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   SECTIONS - Mobile First (Single Column)
   ============================================ */

section {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-title {
    font-size: var(--font-2xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--maroon-dark);
}

/* Desktop: Larger titles, more padding */
@media (min-width: 768px) {
    section {
        padding: 80px var(--spacing-lg);
    }

    .section-title {
        font-size: var(--font-3xl);
        margin-bottom: var(--spacing-xl);
    }
}

/* ============================================
   CARDS - Mobile First
   ============================================ */

.vibrant-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
}

.vibrant-card:hover {
    border-color: var(--maroon-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.vibrant-card:active {
    transform: scale(0.98);
}

/* Desktop: Hover effects */
@media (min-width: 968px) {
    .vibrant-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px var(--shadow);
        border-color: var(--primary-gold);
    }
}

/* ============================================
   SERVICES GRID - Mobile: 1 column
   ============================================ */

/* ============================================
   SERVICES GRID - DENSE CHIP STYLE
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: auto;
}

.service-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--maroon-primary);
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-main);
    line-height: 1.2;
}

.service-card p {
    display: none;
}

/* Hover effects */
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--maroon-light);
}

/* Remove Desktop Overrides that might conflict */
@media (min-width: 640px) {
    .services-grid {
        /* Keep consistent with mobile */
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
}

@media (min-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   DOCTORS GRID - Mobile: 1 column
   ============================================ */

.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.doctor-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.doctor-image {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.doctor-card h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--text-main);
}

.specialty {
    color: var(--maroon-primary);
    font-weight: 600;
    font-size: var(--font-base);
    margin-bottom: var(--spacing-xs);
}

.experience {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Desktop: 2-4 columns */
@media (min-width: 640px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 968px) {
    .doctors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   PACKAGES - HORIZONTAL SCROLL CAROUSEL
   ============================================ */

.packages-section {
    background-color: #F3F4F6;
    padding: var(--spacing-xl) 0;
    scroll-margin-top: 80px;
    /* Fix for fixed header blocking content when scrolling to anchor */
    overflow: hidden;
    min-height: 100vh;
}

.packages-header {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.packages-carousel {
    width: 100%;
    overflow: hidden;
    /* Desktop: Hidden (handled by GSAP) */
}

@media (max-width: 768px) {
    .packages-carousel {
        overflow-x: auto;
        /* Mobile: Native Scroll */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }
}

.packages-list {
    list-style: none;
    display: flex;
    padding: 20px 5px;
    /* Added vertical padding for shadow visibility */
    margin: 0;
    will-change: transform;
    /* Scroll Snap Logic */
    scroll-snap-type: x mandatory;
}

.package-item {
    flex: 0 0 350px;
    width: 350px;
    max-width: 90vw;
    padding: 0 10px;
    box-sizing: border-box;
    scroll-snap-align: center;
    /* Snap to center */
}

.package-card {
    text-align: center;
    padding: var(--spacing-md);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border: 2px solid var(--primary-gold);
    /* Shared Gold Border */
    box-shadow: 0 0 20px var(--shadow);
    /* Shared Shadow */
    border-radius: 12px;
    /* Ensure rounded corners */
}

.package-card.featured {
    /* Optional: Make featured card slightly more prominent */
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    border-width: 3px;
}

.package-badge {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    background: linear-gradient(135deg, var(--primary-gold), var(--amber));
    color: var(--white);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-card h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
}

.price-mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

.price-offer {
    font-size: var(--font-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.package-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    border-bottom: 1px solid var(--light-gold);
    color: var(--text-dark);
    position: relative;
    font-size: var(--font-sm);
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: var(--font-base);
}

/* ============================================
   CONNECT WITH US SECTION - Icon Only
   ============================================ */

section.contact-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(255, 191, 0, 0.05));
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-top: calc(-1 * var(--spacing-sm));
    margin-bottom: var(--spacing-lg);
}

.connect-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Safety wrap */
    gap: 10px;
    /* Reduced gap */
    max-width: 100%;
    /* Use full container width */
    margin: 0 auto;
}

.connect-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.3s ease;
    min-width: 60px;
    /* Ensure improved tap target */
}

.connect-icon-link:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 35px;
    /* Reduced from 40px */
    height: 35px;
    /* Reduced from 40px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid var(--maroon-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--maroon-bg);
    padding: 6px;
}

.icon-circle svg {
    color: inherit;
}

.icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.connect-icon-link:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--maroon-primary);
    /* Lighter border on hover? Or nice effect */
}

.icon-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Icon specific colors - Only Symbol Color mimics brand */
.phone-icon {
    color: var(--primary-gold);
}

.whatsapp-icon {
    color: #25D366;
}

.email-icon {
    color: #1E90FF;
}

.facebook-icon {
    color: #1877F2;
}

.instagram-icon {
    color: #E1306C;
}

.maps-icon {
    color: #FF8C00;
}

.justdial-icon {
    color: #FF6B6B;
}

.website-icon {
    color: #6366F1;
}

.youtube-icon {
    color: #FF0000;
    /* YouTube Red */
}

/* Subsection Titles */
.subsection-title {
    text-align: center;
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--maroon-primary);
    /* Use maroon theme */
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Emergency Beacon Effect */
.emergency-beacon {
    animation: beacon-pulse 2s infinite;
    border-color: #ff3b30 !important;
    /* Emergency Red Border */
}



@keyframes beacon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Tablet and up */
@media (min-width: 640px) {
    .connect-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
        max-width: 800px;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .icon-label {
        font-size: 0.85rem;
    }
}

/* Desktop */
@media (min-width: 968px) {
    .section-subtitle {
        font-size: var(--font-base);
    }

    .connect-icons-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--spacing-xl);
        max-width: 1200px;
    }

    .icon-circle {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .icon-label {
        font-size: var(--font-base);
    }
}

/* ============================================
   FOOTER - Mobile First
   ============================================ */

.footer {
    background: var(--bg-section-alt);
    border-top: 1px solid #E5E7EB;
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--maroon-primary);
    font-size: var(--font-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-base);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--maroon-primary);
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-section p {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-base);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--light-gold);
    color: var(--text-light);
    font-size: var(--font-sm);
}

/* Desktop: Multiple columns */
@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.vibrant-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 191, 0, 0.1));
    border: 2px solid var(--light-gold);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vibrant-card,
.service-card,
.doctor-card,
.package-card {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   DEPARTMENTS SECTION
   ============================================ */
.departments-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.departments-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gold);
    margin-bottom: 10px;
}

.departments-section .section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 50px;
    opacity: 0.7;
}

.departments-nav-wrapper {
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
}

.departments-nav-wrapper::before,
.departments-nav-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.departments-nav-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.departments-nav-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}



/* Department Navigation - Scrollable Buttons */
.departments-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.dept-nav-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Hide scrollbar for cleaner look but allow scroll */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.dept-nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.dept-nav-buttons {
    display: flex;
    gap: 15px;
    padding: 5px;
    width: max-content;
    /* Allow growing beyond container for scroll */
    margin: 0 auto;
    /* Center initial view if possible */
}

/* Ensure easy scrolling on mobile */
@media (max-width: 768px) {
    .dept-nav-buttons {
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.dept-nav-btn {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dept-nav-btn:hover {
    border-color: var(--primary-gold);
    color: var(--dark-gold);
    background: rgba(212, 175, 55, 0.05);
}

.dept-nav-btn.active {
    background: var(--maroon-primary);
    color: var(--white);
    border-color: var(--maroon-primary);
    box-shadow: 0 4px 10px rgba(122, 18, 54, 0.3);
}

.department-display-area {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.department-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.department-card {
    max-width: 1000px;
    width: 100%;
    padding: 0;
    text-align: left;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(122, 18, 54, 1) 0%, rgba(74, 13, 33, 1) 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: transparent;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.dept-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

.dept-icon {
    font-size: 4.5rem;
    min-width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dept-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}


.dept-title-box {
    flex: 1;
    position: relative;
    z-index: 1;
}

.dept-title-box h3 {
    font-size: 2.2rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dept-title-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.dept-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
}

.dept-features-box h4,
.dept-doctors-section h4 {
    font-size: 1.2rem;
    color: var(--maroon-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.dept-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dept-features li {
    color: var(--text-dark);
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
    text-align: left;
    transition: all 0.3s ease;
}

.dept-features li:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.dept-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.dept-doctor-mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-page);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.dept-doctor-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-gold);
}

.mini-doc-image {
    font-size: 2.5rem;
    background: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mini-doc-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0 0 2px 0;
    font-weight: 600;
}

.mini-doc-spec {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dept-team-note {
    font-style: italic;
    color: var(--text-muted);
}

/* Response adjustments for Dept Card */
@media (max-width: 768px) {
    .dept-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .dept-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .department-card {
        padding: 25px;
    }
}

.dept-book-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .departments-section {
        padding: 60px 0;
    }

    .departments-section .section-title {
        font-size: 2rem;
    }

    .departments-nav-wrapper::before,
    .departments-nav-wrapper::after {
        width: 50px;
    }

    .dept-links {
        padding-left: 20px;
    }

    .dept-links a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .department-card {
        padding: 30px 20px;
    }

    .dept-icon {
        font-size: 3rem;
    }

    .department-card h3 {
        font-size: 1.6rem;
    }

    .dept-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background-color: rgba(122, 18, 54, 0.03);
    /* Fully diluted maroon/calm */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.about-text h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-gold);
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-base);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-dark);
    font-size: var(--font-base);
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
}

/* Desktop: Side by side */
@media (min-width: 968px) {
    .about-content {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--spacing-xl);
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   BOOKING MODAL - Modern Popup Style
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Department Features as Cards */
.dept-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.key-service-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0 !important;
    /* Override default card margin */
}

.key-service-card span:first-child {
    font-size: 1.1rem;
}

.modal-content {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    border: none;
}

.close-modal:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 8px;
    text-align: center;
    margin-top: 0;
    font-weight: 700;
}

.booking-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background-color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.modal-content .vibrant-button {
    padding: 12px 20px;
    font-size: 15px;
    min-height: auto;
    margin-top: 12px;
}

/* Doctor Profile Modal Specifics */
.doctor-modal-content {
    max-width: 600px;
    /* Slightly wider than booking modal */
    padding: 0;
    /* Reset padding to handle custom header */
    overflow: hidden;
}

.doctor-profile-header {
    background: linear-gradient(135deg, rgba(122, 18, 54, 0.05), rgba(0, 0, 0, 0.02));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-profile-image {
    font-size: 4rem;
    background: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.doctor-profile-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--maroon-primary);
}

.specialty-badge {
    background: var(--maroon-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin: 8px 0;
    font-weight: 600;
}

.qualification {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.doctor-profile-body {
    padding: 30px;
}

.profile-section {
    margin-bottom: 25px;
}

.profile-section h4 {
    color: var(--maroon-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 3px;
}

.profile-section p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .doctor-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
        padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-lg);
    }

    .navbar .container {
        padding: var(--spacing-xs);
    }

    .logo h2 {
        font-size: 1.25rem;
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .section-title {
        font-size: var(--font-xl);
        margin-bottom: var(--spacing-md);
    }
}

/* Print styles */
@media print {

    .navbar,
    .modal-close,
    .vibrant-button,
    .btn-outline {
        display: none;
    }
}

/* Insurance Modal Styles */
#insuranceModal {
    z-index: 9999;
}

.insurance-modal-content {
    max-width: 800px !important;
    width: 95%;
    padding: 40px !important;
}

.insurance-lists-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    text-align: left;
}

.insurance-group h3 {
    font-size: 1.2rem;
    color: var(--maroon-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.insurance-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.insurance-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.insurance-list li::before {
    content: "•";
    color: var(--maroon-light);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.insurance-group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .insurance-modal-content {
        padding: 20px !important;
    }

    .insurance-list {
        grid-template-columns: 1fr;
    }

    .insurance-group-row {
        grid-template-columns: 1fr;
    }
}

/* 3D CUBOID ROTATOR STYLES - Updated for Sleek Sidebar Look */
.cube-scene {
    width: 340px;
    /* Slightly narrower */
    height: 90px;
    /* Sleeker bar height */
    perspective: 1000px;
    margin: 10px auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother snap */
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fdfbf7 0%, #ffffff 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold border */
    border-radius: 8px;
    /* Softer corners */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Side by side alignment */
    /* gap: 15px; */
    /* Removed gap to control with padding/borders */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden;
    padding: 0;
    overflow: hidden;
}

/* 4 Faces for X-Rotation (Height=90px, so Z=45px) */
.cube-face-front {
    transform: rotateY(0deg) translateZ(45px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(45px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(45px);
}

.cube-face-back {
    transform: rotateX(180deg) translateZ(45px);
}

/* Internal Layout: | Logo | Name | */
.cube-face img {
    width: 90px;
    /* Fixed width section for logo */
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.cube-text {
    flex-grow: 1;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    line-height: 1.2;
    padding: 0 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maroon-dark);
}

/* Responsive Cubes */
@media (max-width: 1024px) {
    .cube-scene {
        width: 300px;
        /* Slightly smaller for tablets */
    }
}

@media (max-width: 640px) {
    .cube-scene {
        width: 100%;
        /* Full width on mobile */
        max-width: 360px;
    }

    .partners-section .cube-wrapper {
        width: 100%;
        /* Ensure wrappers allow full expansion */
        padding: 0 20px;
    }
}

/* TESTIMONIALS SCROLLING */
.testimonials-section {
    overflow: hidden;
    padding: 60px 0;
    background: #fff;
    position: relative;
}

/* Play/Pause Controls */
.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.testimonial-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon-primary), var(--primary-gold));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(122, 18, 54, 0.3);
    transition: all 0.3s ease;
}

.testimonial-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(122, 18, 54, 0.5);
}

.testimonial-control-btn:active {
    transform: scale(0.95);
}

.testimonials-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Infinite Scroll Animation */
    animation: scrollTestimonials 60s linear infinite;
    padding: 20px 0;
}

.testimonials-track.paused {
    animation-play-state: paused;
}

.testimonial-card {
    width: 300px;
    flex-shrink: 0;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Removed hover transform effect */
}

.testimonial-card.video-card {
    padding: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper {
    position: relative;
    height: 500px;
    background: #000;
    overflow: hidden;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   UPDATED HEALTHCARE PARTNERS STYLES
   ============================================ */

.cubes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    perspective: 1000px;
    /* Enhanced 3D context */
}

.cube-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 340px;
}

.cube-heading {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    text-align: center;
}

.cube-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--maroon-primary), var(--primary-gold));
    margin: 5px auto 0;
    border-radius: 2px;
}

/* ============================================
   PACKAGES SLIDER CONTROLS
   ============================================ */

.packages-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    /* Space for buttons */
}

/* Hide scrollbar but keep functionality */
.packages-list::-webkit-scrollbar {
    display: none;
}

.packages-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overflow-x: auto;
    display: flex;
    gap: 30px;
    padding: 20px 5px;
    width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--primary-gold);
    color: var(--maroon-primary);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Mobile: Hide buttons, use touch scroll */
@media (max-width: 768px) {
    .packages-carousel-wrapper {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }
}

/* ============================================
   PACKAGES FOOTER CONTROLS
   ============================================ */
.packages-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
}

.explore-all-btn {
    min-width: auto;
    padding: 12px 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.explore-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.slider-btn-mobile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--primary-gold);
    color: var(--maroon-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.slider-btn-mobile:active {
    transform: scale(0.95);
    background: var(--primary-gold);
    color: #fff;
}

.slider-btn-mobile.disabled,
.slider-btn.disabled {
    opacity: 0.4;
    background: #f9f9f9;
    border-color: #e0e0e0;
    color: #ccc;
    pointer-events: none;
    box-shadow: none;
}

@media (min-width: 769px) {
    .packages-footer {
        flex-direction: row;
        gap: 30px;
    }

    /* Hide mobile arrows centered in footer on desktop, 
       as we have floating arrows */
    .slider-btn-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .packages-footer {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .explore-all-btn {
        font-size: 0.95rem;
        padding: 12px 20px;
        order: 2;
        /* Ensure visual order if needed, but HTML is aligned */
    }

    .prev-mobile {
        order: 1;
    }

    .next-mobile {
        order: 3;
    }
}