/* ===================================== */
/* RESET AND BASE STYLES                */
/* ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
    outline-color: color-mix(in srgb, var(--ring) 50%, transparent);
}

/* Critical Mobile Improvements */
html {
    font-size: 16px; /* Base font size for better mobile readability */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    font-family: var(--font-sans);
    scroll-behavior: smooth; /* Ensure smooth scrolling behavior */
}

/* Add scroll padding to account for fixed header */
html {
    scroll-padding-top: 80px; /* Match header height */
}

/* Ensure mobile scrolling is smooth */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Account for mobile header */
    }
    
    body {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Simplified scrollbar hiding for desktop */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    
    html, body {
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
}

:root {
    /* Modern Design System */
    --font-size: 16px;
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: #030213;
    --primary-foreground: oklch(1 0 0);
    --secondary: oklch(0.95 0.0058 264.53);
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --input: transparent;
    --input-background: #f3f3f5;
    --switch-background: #cbced4;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: oklch(0.708 0 0);
    --radius: 0.625rem;
    
    /* Brand Colors */
    --brand-navy: #1A365D;
    --brand-navy-light: #2A4A6D;
    --brand-navy-dark: #0F2744;
    --brand-gold: #C9A961;
    --brand-gold-light: #D9B971;
    --brand-gold-dark: #B39551;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --container-max: 1400px; /* Increased for better desktop utilization */
    --spacing-section: 5rem;
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}



html {
    scroll-behavior: smooth;
}

/* Enhanced Global Smooth Animations */
* {
    scroll-behavior: smooth;
}

*:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

/* Remove background color for mobile devices */
@media (max-width: 768px) {
    html {
        background: transparent !important;
    }
    
    body {
        background: transparent !important;
    }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 0.75rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Hero section specific container alignment */
.hero-section .container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile hero section container fixes */
@media (max-width: 768px) {
    .hero-section .container {
        padding-top: 0; /* Remove excessive top padding on mobile */
        align-items: center;
        justify-content: center;
    }
}

/* Zoom-specific container adjustments for vertical alignment */
@media screen and (min-zoom: 0.8) and (max-zoom: 0.8) {
    .hero-section .container {
        padding-left: 0.5rem;
        margin-left: -0.5rem;
        margin-top: 10rem;
    }
}

/* Additional responsive container adjustments */
@media (max-width: 1200px) {
    .hero-section .container {
        padding-left: 1rem;
        margin-top: 10rem;
        margin-left: -0.25rem;
    }
}

/* Reset margins on mobile */
@media (max-width: 768px) {
    .hero-section .container {
        margin-top: 0;
        margin-left: 0;
        padding-left: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}



@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}



.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-5 {
    animation-delay: 0.5s;
}

.fade-in-up.delay-6 {
    animation-delay: 0.6s;
}

.fade-in-up.delay-7 {
    animation-delay: 0.7s;
}



/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-scale {
    transition: all 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
    transform: translateY(-2px);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Button Enhancement Animations */






/* Interactive Element Enhancements */
button, .btn, .nav-btn, .cta-btn {
    position: relative;
    overflow: hidden;
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .animate-on-scroll.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Additional Hero Animation Classes */
.hero-text-animated {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #0066cc;
    animation: typewriter 1.5s steps(40) 0.5s forwards, blinkCursor 0.5s infinite;
}

@keyframes blinkCursor {
    0%, 50% {
        border-color: #0066cc;
    }
    51%, 100% {
        border-color: transparent;
    }
}

.smooth-hover {
    transition: all var(--transition-base);
}

.smooth-hover:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.fade-in-sequence > * {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.fade-in-sequence > *:nth-child(1) { animation-delay: 0.05s; }
.fade-in-sequence > *:nth-child(2) { animation-delay: 0.1s; }
.fade-in-sequence > *:nth-child(3) { animation-delay: 0.15s; }
.fade-in-sequence > *:nth-child(4) { animation-delay: 0.2s; }
.fade-in-sequence > *:nth-child(5) { animation-delay: 0.25s; }

/* Modern Typography */
/* Mobile (< 640px) */
h1 {
    font-size: 1rem;     
    font-weight: 700;    
    color: #111827;      
    transition: color 0.15s ease;
    line-height: 1.5;
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) {
    h1 {
        font-size: 1.25rem;  /* 20px, actual ~18.75px due to root */
    }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    h1 {
        font-size: 1.5rem;   /* 24px */
    }
}

h2 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

p, label, button, input {
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
}

button, label {
    font-weight: var(--font-weight-medium);
}

/* Radius Utilities */
.radius-sm { border-radius: calc(var(--radius) - 4px); }
.radius-md { border-radius: calc(var(--radius) - 2px); }
.radius-lg { border-radius: var(--radius); }
.radius-xl { border-radius: calc(var(--radius) + 4px); }

/* Responsive Font Sizes */
@media (max-width: 640px) {
    html { font-size: 14px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    html { font-size: 15px; }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    html { font-size: 16px; }
}

@media (min-width: 1400px) and (max-width: 1919px) {
    html { font-size: 17px; }
}

/* Ultra-wide screen optimization */
@media (min-width: 1920px) {
    html { 
        font-size: 18px; 
    }
    
    :root {
        --container-max: 1600px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    transition: all 0.5s ease;
    overflow: visible; /* Allow dropdowns to extend outside header */
}

.header.scrolled {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Properly distribute logo, nav, and CTA */
    height: 5rem;
    padding: 0 1.5rem;
    position: relative;
    max-width: none; /* Remove max-width constraint temporarily */
    margin: 0 auto;
    width: 100%;
    overflow: visible; /* Allow dropdowns to extend outside */
    /* Ensure all child elements are properly centered */
    box-sizing: border-box;
    /* Ensure CTA section has enough space */
    min-width: 0; /* Allow flex items to shrink properly */
}

/* Enhanced Desktop Header Responsiveness */
@media (min-width: 1400px) {
    .header-content {
        height: 5.5rem;
        padding: 0 3rem;
        gap: 1rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-content {
        height: 5.25rem;
        padding: 0 2.5rem;
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .header-content {
        height: 5rem;
        padding: 0 2rem;
        gap: 0.5rem;
    }
}

/* Enhanced Mobile Header Responsiveness */
@media (max-width: 1024px) {
    .header-content {
        gap: 0.5rem;
        padding: 0 1rem;
        height: 4.5rem;
        /* Ensure proper alignment for mobile menu button */
        justify-content: space-between;
    }
    
    /* Hide desktop navigation and CTA on mobile */
    .header-nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0.25rem;
        padding: 0 1rem;
        height: 4rem;
        /* Ensure proper space distribution */
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        padding: 0.625rem;
        min-height: 44px;
        min-width: 44px;
        display: flex !important;
        margin-left: auto; /* Push to the right */
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.75rem;
        height: 3.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        padding: 0.5rem;
        min-height: 30px;
        min-width: 40px;
        display: flex !important;
    }
}

.logo-button {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
    margin-left: 0;
    padding: 0; /* Ensure no extra padding affecting alignment */
    /* Ensure consistent width for proper alignment */
    min-width: fit-content;
    height: fit-content; /* Ensure proper height fitting */
}

/* Enhanced Desktop Logo Button Positioning */
@media (min-width: 1400px) {
    .logo-button {
        gap: 0.2rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .logo-button {
        gap: 0.15rem;
    }
}

/* Enhanced Logo Button Mobile Responsiveness */
@media (max-width: 1024px) {
    .logo-button {
        margin-left: 0;
        gap: 0.1rem;
    }
}

@media (max-width: 768px) {
    .logo-button {
        margin-left: 0;
        gap: 0.1rem;
    }
}

@media (max-width: 480px) {
    .logo-button {
        gap: 0.05rem;
    }
}

.logo-img {
    height: 5rem;
    width: 5rem;
    object-fit: contain;
    margin-left: 0;
}

/* Enhanced Desktop Logo Scaling */
@media (min-width: 1400px) {
    .logo-img {
        height: 6rem;
        width: 6rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .logo-img {
        height: 5.5rem;
        width: 5.5rem;
    }
}

/* Enhanced Logo Responsiveness */
@media (max-width: 1024px) {
    .logo-img {
        height: 4.5rem;
        width: 4.5rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 4rem;
        width: 4rem;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 3.5rem;
        width: 3.5rem;
    }
}

.hospital-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hospital-name .sri-text {
    color: var(--brand-gold);
}

.hospital-name .main-text {
    color: var(--brand-navy);
}

/* Logo Title Styles - Sri Tanya Surgery Care */
/* CSS for the header logo title */

/* Zoom-specific adjustments for logo alignment */
@media screen and (min-zoom: 0.8) and (max-zoom: 0.8) {
    .header-content {
        padding: 0 0.5rem;
    }
    
    .logo-button {
        margin-left: -1rem;
        padding-left: 0;
    }
}

/* Additional responsive adjustments for better alignment */
@media (max-width: 1200px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-button {
        margin-left: -1rem;
        padding-left: 0;
    }
}

.logo-title {
  /* Font Properties */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--gray-900);
  
  /* Responsive font sizes:
     Mobile: 0.9rem
     Tablet: 1.1rem  
     Desktop: 1.25rem */
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
  .logo-title {
    font-size: 0.9rem;
  }
  
  .hospital-name {
    font-size: 0.9rem;
  }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .logo-title {
    font-size: 1.1rem;
  }
  
  .hospital-name {
    font-size: 1.1rem;
  }
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
  .logo-title {
    font-size: 1.25rem;
  }
  
  .hospital-name {
    font-size: 1.25rem;
  }
}

/* Optional: Hover state */
.logo-title:hover {
  color: #1A365D; /* Brand navy blue */
}

/* Optional: Focus state for accessibility */
.logo-title:focus {
  outline: 2px solid #C9A961;
  outline-offset: 2px;
}

/* Logo and Hospital Name Hover Effects */
.logo-button:hover .logo-img {
    transform: scale(1.05);
}

.logo-button:hover .hospital-name .sri-text {
    color: var(--brand-gold);
    text-shadow: 0 2px 4px rgba(201, 169, 97, 0.2);
}

.logo-button:hover .hospital-name .main-text {
    color: var(--brand-navy-light);
}

/* Header Logo Container */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0rem;
}

.header-logo-img {
    width: 60px;
    height: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-right: -5px;
}

.header-logo-img:hover {
    transform: translateY(-1px) scale(1.05);
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: -10px;
}

.logo-main-text {
    font-size: 1.8rem;
    font-weight: 520;
    color: #1e293b;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.0;
}

.logo-sub-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #b8860b;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Responsive Header Logo */
@media (max-width: 768px) {
    .header-logo-container {
        gap: 0.5rem;
    }
    
    .header-logo-shield {
        width: 45px;
        height: 35px;
        border-width: 2px;
    }
    
    .caduceus-symbol {
        font-size: 11px;
    }
    
    .caring-hands {
        font-size: 9px;
    }
    
    .logo-main-text {
        font-size: 1.2rem;
    }
    
    .logo-sub-text {
        font-size: 0.7rem;
    }
    
    .header-logo-img {
        margin-right: 0;
    }
    
    .header-logo-text {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-logo-container {
        gap: 0.4rem;
    }
    
    .header-logo-shield {
        width: 40px;
        height: 30px;
    }
    
    .caduceus-symbol {
        font-size: 9px;
    }
    
    .caring-hands {
        font-size: 7px;
    }
    
    .logo-main-text {
        font-size: 1rem;
    }
    
    .logo-sub-text {
        font-size: 0.6rem;
    }
    
    .header-logo-img {
        margin-right: 0;
    }
    
    .header-logo-text {
        margin-left: 0;
    }
}.desktop-nav {
    display: none;
    position: static;
    gap: 0.25rem;
    align-items: center;
    flex: 1; /* Take up available space between logo and CTA */
    justify-content: center; /* Center the navigation items */
    max-width: none;
    overflow: visible; /* Allow dropdowns to extend outside */
    /* Remove excessive margins since we have gaps in header-content */
    height: 100%; /* Ensure full height for proper alignment */
    padding: 0; /* Remove any padding that could affect alignment */
}

/* Enhanced Desktop Navigation */
@media (min-width: 1400px) {
    .desktop-nav {
        gap: 0.5rem;
        /* Remove margin that conflicts with flexbox layout */
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .desktop-nav {
        gap: 0.4rem;
        /* Remove margin that conflicts with flexbox layout */
    }
}

/* Removed empty rule for 1024px-1199px range as base .desktop-nav handles it */

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex !important;
    }
}

@media (max-width: 1023px) {
    .desktop-nav {
        display: none !important;
    }
}

.nav-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    white-space: nowrap;
    /* Ensure proper vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Enhanced Desktop Navigation Button Sizing */
@media (min-width: 1400px) {
    .nav-btn {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-btn {
        font-size: 0.95rem;
        padding: 0.55rem 0.7rem;
    }
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.nav-btn.active {
    background: rgba(201, 169, 97, 0.15) !important;
    color: var(--brand-navy) !important;
    border: 1px solid var(--brand-gold) !important;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.05) !important;
    font-weight: 600 !important;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
    /* Ensure dropdown can extend outside header */
    overflow: visible;
    z-index: 999;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem); /* Added gap between button and dropdown */
    left: 50%;
    transform: translateX(-50%) translateY(-10px); /* Center horizontally */
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    width: 480px; /* Reduced width for compact layout */
    max-width: 90vw; /* Responsive max width */
    max-height: 60vh; /* Reduced max height */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999; /* Much higher z-index to appear above header */
    overflow: visible; /* Keep visible for dropdown arrow */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Add arrow pointing up to connect dropdown with button */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg); /* Center the arrow */
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid var(--border);
    border-bottom: none;
    border-right: none;
    z-index: 1;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Maintain center position */
    /* Add animation for smoother appearance */
    animation: dropdownSlideIn 0.3s ease-out;
}

/* Dropdown slide-in animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Mobile dropdown slide-up animation */
@media (max-width: 768px) {
    @keyframes dropdownSlideIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }
}

.dropdown-content {
    padding: 0.75rem;
    position: relative;
    z-index: 2; /* Ensure content appears above arrow */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns layout */
    gap: 0.5rem;
    max-height: calc(60vh - 1.5rem); /* Account for padding */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Custom scrollbar styling */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

.dropdown-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 0.4rem;
    min-height: 65px;
    justify-content: center;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.dropdown-item:hover i {
    color: var(--brand-gold);
    transform: scale(1.1);
}

.dropdown-item i {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

.dropdown-item span {
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Responsive Horizontal Dropdown */
@media (max-width: 1200px) {
    .dropdown-menu {
        width: 580px;
        max-height: 65vh;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(4, 1fr);
        max-height: calc(65vh - 2rem);
    }
}

@media (max-width: 1024px) {
    .dropdown-menu {
        width: 520px;
        max-height: 60vh;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        max-height: calc(60vh - 1.5rem);
    }
    
    .dropdown-item {
        padding: 0.6rem 0.4rem;
        min-height: 70px;
    }
    
    .dropdown-item i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        width: calc(100vw - 20px);
        max-width: 480px;
        max-height: 75vh;
        overflow: visible; /* Keep for arrow */
        border-radius: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
        max-height: calc(75vh - 1.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .dropdown-item {
        padding: 0.75rem 0.5rem;
        min-height: 65px;
        font-size: 0.75rem;
    }
    
    .dropdown-item i {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        width: calc(100vw - 16px);
        max-height: 70vh;
        bottom: 8px;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0.6rem;
        max-height: calc(70vh - 1.2rem);
    }
    
    .dropdown-item {
        padding: 0.6rem 0.4rem;
        min-height: 60px;
        font-size: 0.7rem;
    }
    
    .dropdown-item i {
        width: 16px;
        height: 16px;
    }
    
    .dropdown-item span {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

@media (max-width: 360px) {
    .dropdown-menu {
        max-height: 65vh;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
        max-height: calc(65vh - 1rem);
    }
    
    .dropdown-item {
        padding: 0.5rem 0.3rem;
        min-height: 55px;
        font-size: 0.65rem;
    }
    
    .dropdown-item span {
        font-size: 0.6rem;
    }
}

/* Mobile Dropdown Styles */
.mobile-nav-dropdown {
    width: 100%;
}

.mobile-dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mobile-dropdown-content {
    background: rgba(249, 250, 251, 0.95);
    border-radius: 10px;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 97, 0.1);
    position: relative;
}

.mobile-dropdown-content.active {
    max-height: 60vh; /* Changed to viewport height for better mobile responsiveness */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Responsive mobile dropdown height */
@media (max-width: 768px) {
    .mobile-dropdown-content.active {
        max-height: 50vh; /* Reduce height on smaller screens */
    }
}

@media (max-width: 480px) {
    .mobile-dropdown-content.active {
        max-height: 45vh; /* Further reduce on very small screens */
    }
}

@media (max-height: 600px) {
    .mobile-dropdown-content.active {
        max-height: 40vh; /* Adjust for shorter screens */
    }
}

/* Scroll indicator for mobile dropdown */
.mobile-dropdown-content.active::after {
    content: "Scroll for more ↓";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(249, 250, 251, 0.95));
    text-align: center;
    font-size: 0.75rem;
    color: var(--brand-gold);
    padding: 0.5rem;
    font-weight: 500;
    z-index: 10;
    margin: 0 0.5rem;
    border-radius: 6px;
    pointer-events: none;
    display: var(--show-scroll-indicator, block);
}

/* Custom scrollbar for mobile dropdown */
.mobile-dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-dropdown-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.mobile-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 2px;
}

.mobile-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold-dark);
}

.mobile-dropdown-content.active ~ .dropdown-toggle .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.mobile-dropdown-item:hover {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-light));
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.mobile-dropdown-item:hover i {
    color: var(--brand-gold);
    transform: scale(1.1);
}

.mobile-dropdown-item i {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

.mobile-dropdown-item span {
    flex: 1;
}

/* Doctor Card Filter Transitions */
.doctor-card {
    transition: all 0.3s ease;
}

.doctor-card.filtered {
    opacity: 0.3;
    transform: scale(0.95);
}

.header-cta {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    /* Ensure proper alignment on the right */
    min-width: fit-content;
    height: 100%; /* Ensure full height for proper alignment */
    padding: 0; /* Remove any padding that could affect alignment */
    /* Ensure buttons can fit properly */
    max-width: none;
    overflow: visible;
    /* Force container to be wide enough */
    width: auto;
    flex-wrap: nowrap;
}

/* Enhanced Desktop Header CTA */
@media (min-width: 1400px) {
    .header-cta {
        gap: 0.75rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-cta {
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .header-cta {
        gap: 0.5rem;
    }
    
    .emergency-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .get-started-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
    }
}

/* Desktop only - show header CTA buttons */
@media (min-width: 1024px) {
    .header-cta {
        display: flex !important;
        align-items: center;
        visibility: visible !important;
    }
    
    .emergency-btn {
        display: flex !important;
        visibility: visible !important;
    }
    
    .get-started-btn {
        display: flex !important;
        visibility: visible !important;
    }
}

@media (max-width: 1023px) {
    .header-cta {
        display: none !important;
        visibility: hidden !important;
    }
    
    .emergency-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .get-started-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Tablet specific hiding */
@media (max-width: 768px) {
    .header-cta {
        display: none !important;
        visibility: hidden !important;
    }
    
    .emergency-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .get-started-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobile specific hiding */
@media (max-width: 480px) {
    .header-cta {
        display: none !important;
        visibility: hidden !important;
    }
    
    .emergency-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    .get-started-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

.emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    color: #374151;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 100px;
    max-width: 120px;
}

/* Enhanced Desktop Emergency Button */
@media (min-width: 1400px) {
    .emergency-btn {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
}

.emergency-btn:hover {
    background: rgba(26, 54, 93, 0.05);
    border: none;
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Emergency button icon styling */
.emergency-btn i[data-lucide="phone"] {
    width: 16px;
    height: 16px;
    color: inherit;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    flex-shrink: 0;
}

.emergency-btn:hover i[data-lucide="phone"] {
    color: var(--brand-navy);
}

/* Phone icon fallback using Unicode emoji */
.emergency-btn .phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.emergency-btn .phone-icon::before {
    content: "📞";
    display: inline-block;
}

/* If Lucide icon loads, hide the fallback */
.emergency-btn i[data-lucide="phone"] ~ .phone-icon {
    display: none;
}

/* Ensure all Lucide icons are properly displayed */
[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: inline-block;
    vertical-align: middle;
}

.get-started-btn {
    background: var(--brand-navy) !important;
    color: var(--white) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    letter-spacing: -0.01em;
    /* Ensure proper alignment */
    display: flex !important; /* Force display */
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    /* Ensure visibility */
    opacity: 1 !important;
    visibility: visible !important;
    /* Size constraints */
    min-width: 100px !important;
    max-width: 130px !important;
    flex-shrink: 0 !important;
}

/* Enhanced Desktop Get Started Button */
@media (min-width: 1400px) {
    .get-started-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

.get-started-btn:hover {
    background: var(--brand-navy-light);
    box-shadow: 0 8px 20px -5px rgba(26, 54, 93, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.mobile-menu-btn {
    display: flex; /* Changed to flex for proper centering */
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1); /* Subtle background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s ease; /* Smoother transition */
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for visibility */
    position: relative;
    z-index: 1001;
    /* Ensure proper alignment */
    margin-left: auto;
    flex-shrink: 0; /* Prevent button from shrinking */
    /* Ensure it's clickable */
    pointer-events: auto;
}

/* Enhanced Mobile Menu Button Responsiveness */
@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex !important; /* Force display on mobile */
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-menu-btn:hover {
    background: transparent; /* Made transparent */
    transform: scale(1.05);
    box-shadow: none;
}

.mobile-menu-btn .close-icon {
    display: none;
}

/* Mobile Menu Button Icon States */
.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn .menu-icon {
    display: block;
}

.mobile-menu-btn.open .menu-icon {
    display: none;
}

.mobile-menu-btn.open .close-icon {
    display: block;
}

.mobile-menu-btn.open {
    background: transparent !important; /* Made transparent */
    transform: rotate(90deg); /* Rotate when open */
}

/* Ensure icons are visible */
.mobile-menu-btn i {
    width: 20px;
    height: 20px;
    color: var(--gray-900);
    stroke-width: 2;
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-btn i {
        width: 22px;
        height: 22px;
        stroke-width: 2.5;
        color: #111827;
    }
}

/* Mobile menu button - fully transparent */

/* Reduce WebGL contexts on mobile devices */
@media (max-width: 768px) {
    * {
        backdrop-filter: none !important;
    }
}

.mobile-menu {
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    
    /* Position below header */
    position: fixed !important;
    top: 80px !important; /* Match header height (5rem = 80px) */
    left: 1rem !important; /* Added left margin */
    right: 1rem !important; /* Added right margin */
    z-index: 9999 !important;
    
    /* Clean styling */
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px; /* Changed from 0 0 20px 20px to add rounded top corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin: 0;
    width: calc(100% - 2rem) !important;
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-top: 1px solid rgba(201, 169, 97, 0.15); /* Added top border */
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile menu open state */
.mobile-menu.open {
    max-height: calc(100vh - 100px) !important; /* Increased space for content */
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    background: white !important;
    border: 1px solid rgba(201, 169, 97, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 1rem !important; /* Changed from 0 0 1rem 1rem to add rounded top corners */
    backdrop-filter: none !important;
    
    /* Ensure it stays open during touch interactions */
    pointer-events: auto !important;
    
    /* Prevent content from shifting when menu opens */
    position: fixed !important;
    top: 80px !important;
    left: 1rem !important;
    right: 1rem !important;
    z-index: 9999 !important;
}

/* Mobile navigation container */
.mobile-nav {
    display: flex;
    flex-direction: column;
    background: transparent !important;
    padding: 1.5rem 1rem; /* Better balanced padding */
    gap: 0.75rem; /* Consistent spacing between items */
    width: 100%;
    box-sizing: border-box;
    margin: 0; /* Remove excessive margin */
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-nav {
        padding: 1.25rem 0.875rem;
        gap: 0.625rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }
}

.mobile-nav-btn {
    text-align: left;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 169, 97, 0.2);
    color: var(--gray-900);
    cursor: pointer;
    min-height: 52px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .mobile-nav-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 8px;
    }
}

.mobile-nav-btn.active {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.25)) !important;
    color: var(--brand-navy) !important;
    border: 2px solid var(--brand-gold) !important;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25) !important;
    transform: translateY(-1px);
    font-weight: 600;
}

/* Mobile Emergency Button */
.mobile-emergency-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
    cursor: pointer;
    min-height: 52px;
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.mobile-emergency-btn:hover {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
    color: white;
    text-decoration: none;
}

.mobile-emergency-btn i {
    width: 18px;
    height: 18px;
    color: inherit;
}

.mobile-emergency-btn span {
    flex: 1;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 768px) {
    .mobile-emergency-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .mobile-emergency-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 8px;
    }
}

/* Hover effects for mobile nav buttons */
.mobile-nav-btn:hover {
    background: rgba(201, 169, 97, 0.12) !important;
    border-color: rgba(201, 169, 97, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-get-started {
    width: 100%;
    padding: 1.2rem 2.5rem !important;
    font-size: 1.1rem !important;
    min-height: 52px !important;
    margin-top: 0.75rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.3) !important;
    font-weight: 600;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-light)) !important;
    color: white !important;
    border: none !important;
}

/* Additional mobile responsive sizing */
@media (max-width: 768px) {
    .mobile-get-started {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 480px) {
    .mobile-get-started {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
        margin-top: 0.5rem !important;
        border-radius: 8px !important;
    }
}

/* Header Logo and Title Styles */
/* This CSS matches the exact styling from ModernHeader component */

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-img {
    height: 3rem; /* Responsive: 3rem → 4rem → 5rem */
}

.header-logo-title {
    font-size: 1rem; /* Responsive sizing */
    font-weight: 700;
    color: #111827;
}

/* Logo Image */
.header-logo-img {
    height: 3rem; /* 48px - h-12 */
    width: auto;
    object-fit: contain;
}

/* Title Container */
.header-logo-title-wrapper {
    display: none; /* Hidden on mobile by default */
}

.header-logo-title {
    font-size: 1rem; /* 16px - text-base */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    line-height: 1.5;
    transition: color 0.15s ease-in-out;
    margin: 0;
    padding: 0;
}

/* Tablet (640px and up) */
@media (min-width: 640px) {
    .header-logo-container {
        gap: 0.75rem; /* 12px - sm:gap-3 */
    }
    
    .header-logo-img {
        height: 4rem; /* 64px - sm:h-16 */
    }
    
    .header-logo-title-wrapper {
        display: block; /* sm:block - Show on tablet and up */
    }
    
    .header-logo-title {
        font-size: 1.25rem; /* 20px - sm:text-xl */
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .header-logo-container {
        gap: 1rem; /* 16px - lg:gap-4 */
    }
    
    .header-logo-img {
        height: 5rem; /* 80px - lg:h-20 */
    }
    
    .header-logo-title {
        font-size: 1.5rem; /* 24px - lg:text-2xl */
    }
}

/* Responsive font-size adjustments based on root */
/* Mobile (< 640px) - Root is 14px */
@media (max-width: 640px) {
    .header-logo-title {
        /* At 14px root: 1rem = 14px actual */
        font-size: 1rem;
    }
}

/* Tablet (641px - 1024px) - Root is 15px */
@media (min-width: 641px) and (max-width: 1024px) {
    .header-logo-title {
        /* At 15px root: 1.25rem = 18.75px actual */
        font-size: 1.25rem;
    }
}

/* Desktop (1025px+) - Root is 16px */
@media (min-width: 1025px) {
    .header-logo-title {
        /* At 16px root: 1.5rem = 24px actual */
        font-size: 1.5rem;
    }
}

/* Optional: Hover effect for interactive logo */
.header-logo-container:hover .header-logo-title {
    color: #1A365D; /* Brand navy color on hover */
}

/* Ensure proper alignment */
.header-logo-container {
    cursor: pointer;
    user-select: none;
}

/* Accessibility - Focus state */
.header-logo-container:focus-visible {
    outline: 2px solid #C9A961;
    outline-offset: 4px;
    border-radius: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: all var(--transition-slow);
}

/* Mobile Hero Section Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 0;
        align-items: flex-start;
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 0;
        align-items: flex-start;
        justify-content: center;
    }
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    font-family: var(--font-sans);
}

/* Manual Play Button */
.manual-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-btn i {
    width: 20px;
    height: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Removed unused fallback background styles */

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transition: opacity 2s ease-in-out;
    opacity: 0;
}

.bg-video.loaded {
    opacity: 1;
}

.bg-video.error {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

/* Image Background Styles */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Mobile Video Container */
.mobile-video-container {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    z-index: 10;
    justify-content: center;
    align-items: flex-start;
}

.mobile-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* Show mobile video only on mobile devices */
@media (max-width: 768px) {
    .video-background {
        display: none !important;
    }
    
    .mobile-video-container {
        display: flex !important;
        margin: 0;
        padding: 0;
        line-height: 0;
        margin-top: 30px; /* Gap between header and video */
        position: relative;
    }
    
    /* Add gradient background above video */
    .mobile-video-container::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 250, 240, 0.98) 100%);
        z-index: -1;
    }
    
    .hero-section {
        background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 250, 240, 0.98) 100%);
        display: block;
        padding: 0;
        margin: 0;
        min-height: auto;
        height: auto;
        margin-top: 0;
        margin-bottom: 0;
        line-height: 0;
        padding-top: 0; /* Remove padding-top since margin is on mobile-video-container */
    }
    
    main {
        margin: 0;
        padding: 0;
    }
    
    .about-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Mobile Hero Content */
    .mobile-hero-content {
        display: block !important;
        padding: 2rem 1.5rem;
        background: transparent;
        text-align: center;
        line-height: normal;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        margin-top: 1.5rem;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .mobile-hero-title {
        font-size: 2.25rem;
        font-weight: 700;
        background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-gold) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        letter-spacing: -0.02em;
        animation: fadeInUp 1s ease-out 0.2s both;
    }
    
    .mobile-hero-text {
        font-size: 1.125rem;
        line-height: 1.6;
        color: var(--gray-800);
        margin-bottom: 1rem;
        font-weight: 400;
        animation: fadeInUp 1s ease-out 0.4s both;
    }
    
    .mobile-hero-support {
        font-size: 1.05rem;
        line-height: 1.5;
        color: var(--gray-800);
        font-weight: 600;
        margin-bottom: 0;
        animation: fadeInUp 1s ease-out 0.6s both;
    }
    
    .emergency-link {
        cursor: pointer;
        text-decoration: underline;
        background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-gold) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration-color: var(--brand-gold);
        text-underline-offset: 3px;
        transition: all 0.3s ease;
        display: inline;
        position: relative;
        z-index: 100;
        font-weight: 700;
    }
    
    .emergency-link:hover {
        text-decoration-thickness: 2px;
        filter: brightness(1.2);
    }
    
    .emergency-link:active {
        opacity: 0.7;
    }
}

/* Hide mobile hero content on desktop */
.mobile-hero-content {
    display: none;
}

@media (min-width: 769px) {
    .mobile-hero-content {
        display: none !important;
    }
}

/* Enhanced Video Overlay Mobile Responsiveness */
@media (max-width: 768px) {
    .video-overlay {
        background: transparent !important;
        z-index: -1;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Enhanced Mobile Video Background */
@media (max-width: 768px) {
    .video-background {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .bg-video {
        object-fit: cover;
        object-position: center;
        min-width: 100%;
        min-height: 100%;
    }
    
    .video-loading {
        font-size: 14px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    /* Removed mobile fallback background styles */
}

/* Enhanced Mobile Video Background */
@media (max-width: 768px) {
    .video-background {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
        overflow: hidden;
    }
    
    .bg-video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
        transition: opacity 2s ease-in-out;
        /* Mobile video optimizations */
        will-change: transform;
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
    }
    
    .hero-section {
        position: relative;
        min-height: 70vh; /* Slightly taller for mobile video */
        /* Removed fallback background override */
        overflow: hidden;
    }
    
    .hero-text {
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-left: 0;
        padding: 1.5rem;
        border: none !important;
        position: relative;
        z-index: 2;
    }
}

/* Mobile Video Optimizations for Small Screens */
@media (max-width: 480px) {
    .hero-section {
        min-height: 65vh; /* Optimized for mobile video */
        background-position: center 30%;
    }
    
    .bg-video {
        /* Optimize for smaller screens */
        object-fit: cover;
        object-position: center center;
    }
    
    .video-background {
        /* Ensure video container is properly sized */
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .hero-section {
        min-height: 60vh; /* Maintain video aspect ratio */
    }
    
    .hero-text {
        padding: 1.2rem; /* Slightly reduced padding for very small screens */
    }
}

/* Enhanced Image Background Mobile Responsiveness */
@media (max-width: 768px) {
    .image-background {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: -2;
    }
    
    .bg-image {
        object-fit: cover;
        object-position: center;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
    }
    
    .bg-video {
        object-fit: cover;
        object-position: center;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
    }
    
    .image-overlay,
    .video-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
    }
}

/* Performance optimizations for mobile video */
@media (max-width: 768px) {
    .bg-video {
        /* Reduce quality on mobile for better performance */
        filter: blur(0px);
        transform: translate3d(-50%, -50%, 0);
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-video {
        animation: none;
        transition: none;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.doctors-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.doctors-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 1;
    filter: none;
    transform: scale(1.05);
    transition: all 0.8s ease-in-out;
    animation: smoothBackgroundZoom 12s infinite alternate ease-in-out;
}

/* Responsive positioning for faces visibility */
@media (max-width: 768px) {
    .doctors-bg-img {
        object-position: center 5%;
    }
}

@media (min-width: 1024px) {
    .doctors-bg-img {
        object-position: center 15%;
    }
}

@keyframes smoothBackgroundZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Removed video fallback since we're using image now */

.hero-content {
    padding: 12rem 0 2rem 8rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-height: 80vh;
    max-width: 900px;
    margin-left: auto;
    margin-right: 6rem;
}

/* Enhanced Desktop Hero Content Layout */
@media (min-width: 1600px) {
    .hero-content {
        max-width: 1000px;
        padding: 14rem 0 2rem 10rem;
        margin-right: 8rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .hero-content {
        max-width: 950px;
        padding: 13rem 0 2rem 9rem;
        margin-right: 7rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content {
        padding: 12rem 0 2rem 6rem;
        margin-right: 4rem;
    }
}

/* Enhanced Hero Content Mobile Responsiveness */
@media (max-width: 1400px) {
    .hero-content {
        margin-right: 2rem;
        padding-left: 4rem;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        padding-left: 3rem;
        padding-top: 12rem;
        min-height: 75vh;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem; /* Simplified padding */
        min-height: auto; /* Remove fixed height */
        margin: 0; /* Remove margin to prevent offset */
        max-width: 90%; /* Slight reduction for better mobile fit */
        align-items: center;
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 90%;
        box-sizing: border-box;
        /* Remove positioning transforms that could interfere */
        position: static;
        left: auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0.75rem;
        min-height: auto; /* Remove fixed height */
        max-width: 85%; /* Slightly smaller for very small screens */
        width: 85%;
    }
}

.hero-text {
    max-width: 36rem;
    text-align: left;
    margin-left: -100px;
    animation: slideInFromLeft 0.6s ease-out;
    transition: all var(--transition-base);
    background: transparent !important;
    padding: 2rem;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Enhanced Hero Text Mobile Responsiveness - Optimized for readability */
@media (max-width: 768px) {
    .hero-text {
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
        text-align: center;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 1.5rem;
        border: none !important;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .hero-text {
        padding: 1rem;
        border-radius: 0 !important;
        margin: 0;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
}

.hero-title {
    font-size: 3.7rem;
    font-weight: initial;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    text-shadow: none;
    text-align: left !important;
    transition: all var(--transition-slow);
    animation: textGlow 2s ease-in-out infinite;
}

/* Enhanced Desktop Hero Title Scaling */
@media (min-width: 1600px) {
    .hero-title {
        font-size: 4.5rem;
        line-height: 1.1;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.15;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Hero Title Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        text-align: center !important;
        line-height: 1.1;
        margin-bottom: 1rem;
        color: #1e293b;
        word-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important; /* Even smaller for very small screens */
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.625rem !important;
    }
}

.hero-title:hover {
    transform: scale(1.02);
    transition: transform var(--transition-base);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .doctors-bg-img {
        object-position: center; /* Centers the image on larger screens */
    }
}

/* Additional responsive rules for the hero image */
@media (max-width: 768px) {
    .doctors-bg-img {
        object-position: center; /* Adjust focus point on medium screens */
    }
}

@media (max-width: 480px) {
    .doctors-bg-img {
        object-position: 70% center; /* Focus more on the important part of the image on small screens */
    }
}

.hero-description {
    margin-bottom: 1rem;
    text-align: left;
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Enhanced Hero Description Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-description {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-description {
        margin-bottom: 1.25rem;
    }
}

.hero-description:hover {
    transform: translateY(-2px);
}

.hero-description p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-800); /* Dark gray, nearly black text */
    line-height: 1.7;
    margin-bottom: 1rem;
    text-shadow: none;
    text-align: left;
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Enhanced Desktop Hero Description */
@media (min-width: 1400px) {
    .hero-description p {
        font-size: 1.125rem;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-description p {
        font-size: 1.0625rem;
        line-height: 1.75;
        margin-bottom: 1.125rem;
    }
}

/* Enhanced Hero Description Paragraph Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-description p {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
        color: #374151;
    }
}

@media (max-width: 480px) {
    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
}

.hero-description p:hover {
    color: #121f2d;
    transform: translateX(5px);
}

@media (min-width: 640px) {
    .hero-description p:first-child {
        font-size: 1.125rem;
    }
}

.hero-link {
    color: #0066cc; /* Blue link color */
    text-decoration: underline;
    transition: all var(--transition-base);
    text-shadow: none;
    position: relative;
    display: inline-block;
}

.hero-link:hover {
    color: var(--brand-navy); /* Darker blue on hover */
    text-decoration: underline;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-cta {
    padding-top: 0.5rem;
    text-align: left;
    animation: fadeInUp 0.5s ease-out 0.4s both;
    transition: all var(--transition-base);
}

/* Enhanced Hero CTA Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-cta {
        text-align: center;
        padding-top: 1rem;
    }
}

.hero-cta:hover {
    transform: translateY(-3px);
}

.read-more-btn {
    background: var(--brand-navy);
    color: var(--white);
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 1.5s infinite;
    min-height: 48px; /* Touch-friendly height */
}

/* Enhanced Desktop Button Scaling */
@media (min-width: 1400px) {
    .read-more-btn {
        padding: 1.75rem 2.5rem;
        font-size: 1.125rem;
        min-height: 56px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .read-more-btn {
        padding: 1.625rem 2.25rem;
        font-size: 1.0625rem;
        min-height: 52px;
    }
}

/* Enhanced Read More Button Mobile Responsiveness */
@media (max-width: 768px) {
    .read-more-btn {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
        width: auto;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .read-more-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
}

.read-more-btn:hover {
    background: var(--brand-navy-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.05);
}

/* Common Section Styles */
section {
    position: relative;
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Enhanced Desktop Section Spacing */
@media (min-width: 1600px) {
    section {
        padding: 10rem 0;
        min-height: 100vh;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    section {
        padding: 9rem 0;
        min-height: 100vh;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    section {
        padding: 8rem 0;
        min-height: 100vh;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    section {
        padding: 7rem 0;
        min-height: 100vh;
    }
}

/* Mobile Section Spacing Fixes */
@media (max-width: 768px) {
    section {
        padding: 2rem 0 !important;
        min-height: auto !important; /* Remove fixed height on mobile */
    }
    
    /* Hero section should maintain its own spacing */
    .hero-section {
        padding: 0 !important;
        min-height: 60vh !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.5rem 0 !important; /* Further reduced for small mobile */
    }
    
    .hero-section {
        padding: 0 !important;
        min-height: 55vh !important;
    }
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 6rem;
    position: relative;
    z-index: 2;
}

/* Mobile Section Header Spacing */
@media (max-width: 768px) {
    .section-header {
        margin: 0 auto 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin: 0 auto 1.5rem; /* Further reduced for small mobile */
    }
}

.section-title {
    font-size: 1.875rem;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.section-title.light {
    color: var(--white);
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(26, 54, 93, 0.7);
}

.section-subtitle.gold {
    color: var(--brand-gold);
}

.section-subheader {
    margin-top: 2rem;
}

.section-subtitle-heading {
    font-size: 1.5rem;
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.section-description {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section-subtitle-heading {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1.125rem;
    }
}



/* About Section */
.about-section {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.4) 0%, rgba(248, 250, 252, 0.6) 50%, #ffffff 100%);
}

/* Mobile responsive header styling for About page */
@media (max-width: 768px) {
    .about-section .section-title {
        font-size: 2rem !important;
        color: var(--brand-navy) !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        padding: 2rem 1rem 1rem 1rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border-bottom: none !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .about-section .section-title {
        font-size: 1.75rem !important;
        padding: 1.5rem 0.75rem 0.75rem 0.75rem !important;
        border-bottom: none !important;
    }
    
    /* About Section Mobile Layout Ordering */
    .about-story {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .emergency-timeline {
        display: block !important;
        padding: 1rem;
        order: 1 !important;
    }
    
    .story-content {
        order: 2 !important;
    }
}

.about-story {
    display: grid;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-story {
        grid-template-columns: repeat(2, 1fr);
    }
}

.emergency-timeline {
    display: none;
}

@media (min-width: 1024px) {
    .emergency-timeline {
        display: block;
    }
}

/* Mobile Emergency Timeline - ADD ONLY */
@media (max-width: 1023px) {
    .emergency-timeline {
        display: block;
    }
    
    /* Rearrange order for mobile: Emergency Timeline before Our Story */
    .about-story {
        display: flex;
        flex-direction: column;
    }
    
    .emergency-timeline {
        order: 1; /* Show timeline first */
    }
    
    .story-content {
        order: 2; /* Show story content after timeline */
    }
}

.timeline-title {
    font-size: 2rem;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--slate-600);
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    height: 600px;
}

/* Desktop Timeline Font Size Adjustments */
@media (min-width: 1024px) {
    .timeline-container p {
        font-size: 0.75rem !important; /* Reduce time text size */
        line-height: 1.3 !important;
    }
    
    .timeline-container p:nth-child(2) {
        font-size: 0.7rem !important; /* Reduce title text size even more */
        line-height: 1.2 !important;
        max-width: 120px !important; /* Reduce max width for better fit */
    }
    
    /* Target all paragraphs in timeline labels for consistent sizing */
    .timeline-container .absolute p {
        font-size: 0.75rem !important;
    }
    
    .timeline-container .absolute p + p {
        font-size: 0.7rem !important; /* Second paragraph (title) smaller */
    }
}

/* Mobile Timeline Styles */
@media (max-width: 1023px) {
    .timeline-path {
        position: absolute;
        left: 73px; /* Align with icon centers */
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, #6B46C1, rgba(107, 70, 193, 0.3));
        z-index: 1;
    }
    
    .mobile-timeline-step {
        display: flex;
        align-items: center;
        margin-bottom: 2rem;
        position: relative;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .mobile-timeline-step:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-step-time {
        font-weight: 600;
        color: #6B46C1;
        font-size: 0.875rem;
        min-width: 50px;
        text-align: center;
        margin-right: 1rem;
        padding: 0.5rem;
        background: rgba(107, 70, 193, 0.1);
        border-radius: 8px;
    }
    
    .mobile-step-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #6B46C1, #8B5CF6);
        border-radius: 50%;
        margin-right: 1rem;
        box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
        flex-shrink: 0;
    }
    
    .mobile-step-icon i {
        color: white;
        width: 20px;
        height: 20px;
    }
    
    .mobile-step-content {
        flex: 1;
    }
    
    .mobile-step-content h4 {
        color: #1e293b;
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.4;
    }
}

.story-content {
    padding: 1.5rem 0;
}

.story-title {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.story-text {
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: stretch;
    justify-items: center;
}

.stat-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    width: 200px;
    max-width: 220px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-gold);
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotate(360deg) scale(1.1);
    color: var(--brand-gold);
}

.stat-number {
    font-size: 2rem;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
    transition: all var(--transition-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.stat-number:hover {
    transform: scale(1.05);
    color: #0891B2;
}

.stat-label {
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Desktop responsive styles for better alignment */
@media (min-width: 768px) {
    .stats-grid {
        gap: 2rem;
        max-width: 550px;
        padding-top: 2.5rem;
    }
    
    .stat-card {
        min-height: 160px;
        padding: 2rem 1.5rem;
        width: 220px;
        max-width: 240px;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        gap: 2.5rem;
        max-width: 600px;
    }
    
    .stat-card {
        min-height: 180px;
        padding: 2rem;
        width: 240px;
        max-width: 260px;
    }
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 250px;
        padding-top: 1.5rem;
    }
    
    .stat-card {
        min-height: 130px;
        padding: 1.25rem;
        width: 100%;
        max-width: 250px;
    }
    
    .stat-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Values Section */
.values-section {
    text-align: center;
    max-width: 48rem;
    margin: 5rem auto 3rem;
}

.values-title {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .values-title {
        font-size: 1.875rem;
    }
}

.values-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
}

.values-grid {
    display: grid;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    border-color: rgba(201, 169, 97, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--brand-gold) !important;
    stroke: var(--brand-gold) !important;
}

/* Ensure Lucide icons in values section are gold */
.value-icon [data-lucide] {
    color: #C9A961 !important;
    stroke: #C9A961 !important;
}

.value-title {
    font-size: 1.125rem;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--slate-600);
    line-height: 1.7;
}

/* Hospital Partners */
.hospitals-section {
    margin-top: 5rem;
    width: 100%;
    padding: 1rem 0 2.5rem;
    position: relative;
    background: linear-gradient(135deg, rgba(251, 248, 241, 0.3) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(251, 248, 241, 0.3) 100%);
}

.hospitals-title {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .hospitals-title {
        font-size: 1.75rem; /* Slightly smaller for cleaner look */
    }
}

.hospitals-subtitle {
    font-size: 1rem;
    color: var(--slate-500); /* Lighter color for subtitle */
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.gold-tint-container {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 50%, rgba(201, 169, 97, 0.1) 100%);
    padding: -100rem 0; /* Further reduced vertical padding to decrease height */
    position: relative;
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px -10px rgba(201, 169, 97, 0.08);
    overflow: hidden;
    margin: 0 -10rem; /* Equal negative margin for symmetric expansion */
    width: calc(100% + 20rem); /* Width matches the total margin expansion (6.5rem × 2) */
}

.hospitals-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    background: transparent;
    z-index: 2;
    margin: 0 1rem;
}

.hospitals-carousel::before,
.hospitals-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    z-index: 10;
    pointer-events: none;
}

.hospitals-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(251, 248, 241, 0.95), transparent 70%);
}

.hospitals-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(251, 248, 241, 0.95), transparent 70%);
}

.hospitals-track {
    display: flex;
    gap: 3rem; /* Increased gap between items now that names are removed */
    animation: scrollLeft 50s linear infinite; /* Slower animation */
    width: fit-content;
    padding: 1rem 0;
    position: relative;
    z-index: 5;
}

.hospital-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin: 0 1.5rem; /* Increased horizontal spacing */
}

.hospital-item:hover {
    transform: scale(1.05); /* Slightly larger scale effect */
}

.hospital-logo-container {
    width: 12rem; /* Expanded width for larger cards */
    height: 6rem; /* Expanded height for larger cards */
    background-color: transparent; /* Transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
    position: relative;
    overflow: visible;
}

.hospital-item:hover {
    transform: translateY(-5px);
}

.hospital-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none; /* Remove shadow for clean logo display */
    position: relative;
    z-index: 2;
}

/* Hospital name styles removed as requested */

/* Insurance Partners Card */
.insurance-partners-card {
    background: rgba(251, 248, 241, 0.8);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.insurance-partners-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.insurance-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.insurance-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: white;
    border-radius: 0.6rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.insurance-partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.insurance-partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
}

/* Responsive adjustments for insurance partners */
@media (max-width: 768px) {
    .insurance-partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        max-width: 300px;
    }
    
    .insurance-partner-item {
        height: 50px;
        padding: 0.4rem;
    }
    
    .insurance-partners-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .insurance-partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 220px;
    }
    
    .insurance-partner-item {
        height: 45px;
        padding: 0.3rem;
    }
}

/* Mission Statement */
.mission-card {
    max-width: 72rem;
    margin: 5rem auto 0;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.mission-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.mission-card::before {
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(201, 169, 97, 0.1);
}

.mission-card::after {
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(96, 165, 250, 0.1);
}

.mission-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.mission-text {
    position: relative;
    z-index: 10;
}

.mission-badge {
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .mission-title {
        font-size: 1.875rem;
    }
}

.mission-text {
    font-size: 1.125rem;
    color: rgba(191, 219, 254, 1);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--brand-gold);
    border-radius: 9999px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
    overflow: hidden;
    user-select: none;
    outline: none;
}

.mission-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.mission-badge:hover,
.mission-badge:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
    background: linear-gradient(135deg, var(--brand-gold) 0%, #D4AF37 100%);
}

.mission-badge:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.mission-badge:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.mission-badge:hover::before {
    left: 100%;
}

.mission-badge:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5), 0 0 0 3px rgba(201, 169, 97, 0.1);
    }
}

.mission-badge i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
    animation: heartbeat 2s ease-in-out infinite;
}

.mission-badge:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mission-badge span {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mission-badge:hover span {
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   DEPARTMENTS GRID SECTION
   ======================================== */

.departments-grid-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(254, 243, 199, 0.3) 100%);
    padding: 6rem 0;
}

.departments-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.department-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-gold);
}

.department-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--brand-gold) 0%, #D4B55E 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.department-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.department-card:hover .department-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.department-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.department-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .departments-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .department-card {
        padding: 1.5rem;
    }
    
    .department-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .department-icon i {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(254, 252, 232, 0.3) 50%, #ffffff 100%);
}









.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        gap: 2rem !important;
        max-width: 1200px;
        margin: 0 auto;
        /* Force exactly 4x2 grid layout */
        grid-auto-flow: row;
        align-items: stretch;
        width: 100%;
    }
    
    /* Force the first 4 items to be in the first row */
    .services-grid .service-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .services-grid .service-card:nth-child(2) { grid-column: 2; grid-row: 1; }
    .services-grid .service-card:nth-child(3) { grid-column: 3; grid-row: 1; }
    .services-grid .service-card:nth-child(4) { grid-column: 4; grid-row: 1; }
    
    /* Force the next 4 items to be in the second row */
    .services-grid .service-card:nth-child(5) { grid-column: 1; grid-row: 2; }
    .services-grid .service-card:nth-child(6) { grid-column: 2; grid-row: 2; }
    .services-grid .service-card:nth-child(7) { grid-column: 3; grid-row: 2; }
    .services-grid .service-card:nth-child(8) { grid-column: 4; grid-row: 2; }
    
    .services-grid .service-card {
        min-height: 200px; /* Consistent card height */
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 2.5rem 2rem; /* Slightly more padding for desktop */
    }
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--slate-100);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.service-icon i {
    width: 1.75rem;
    height: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: rotate(10deg) scale(1.1);
}

.service-icon-red {
    background: rgba(239, 68, 68, 0.1);
}

.service-icon-red i {
    color: #dc2626;
}

.service-card:hover .service-icon-red {
    background: #ef4444;
}

.service-card:hover .service-icon-red i {
    color: var(--white);
}

.service-icon-navy {
    background: rgba(26, 54, 93, 0.1);
}

.service-icon-navy i {
    color: var(--brand-navy);
}

.service-card:hover .service-icon-navy {
    background: var(--brand-navy);
}

.service-card:hover .service-icon-navy i {
    color: var(--white);
}

.service-icon-emerald {
    background: rgba(16, 185, 129, 0.1);
}

.service-icon-emerald i {
    color: #059669;
}

.service-card:hover .service-icon-emerald {
    background: #10b981;
}

.service-card:hover .service-icon-emerald i {
    color: var(--white);
}

.service-icon-gold {
    background: rgba(201, 169, 97, 0.1);
}

.service-icon-gold i {
    color: var(--brand-gold);
}

.service-card:hover .service-icon-gold {
    background: var(--brand-gold);
}

.service-card:hover .service-icon-gold i {
    color: var(--white);
}

.service-icon-amber {
    background: rgba(245, 158, 11, 0.1);
}

.service-icon-amber i {
    color: #d97706;
}

.service-card:hover .service-icon-amber {
    background: #f59e0b;
}

.service-card:hover .service-icon-amber i {
    color: var(--white);
}

.service-icon-teal {
    background: rgba(20, 184, 166, 0.1);
}

.service-icon-teal i {
    color: #0d9488;
}

.service-card:hover .service-icon-teal {
    background: #14b8a6;
}

.service-card:hover .service-icon-teal i {
    color: var(--white);
}

.service-icon-blue {
    background: rgba(59, 130, 246, 0.1);
}

.service-icon-blue i {
    color: #2563eb;
}

.service-card:hover .service-icon-blue {
    background: #3b82f6;
}

.service-card:hover .service-icon-blue i {
    color: var(--white);
}

.service-title {
    font-size: 1.125rem;
    color: var(--slate-800);
    margin-bottom: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.service-description {
    color: var(--slate-600);
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Doctors Section */
.doctors-section {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy) 50%, var(--brand-navy-light) 100%);
    padding-top: 3rem ;
    padding-bottom: 3rem ;
    position: relative;
    overflow: hidden;
}

.doctors-artistic-layout {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: left;
    justify-content: space-between;
    min-height: 80vh;
    gap: 5rem;
}

/* Left Side Doctors */
.doctors-left {
    flex: 1;
    position: relative;
    height: 80vh;
}

.doctors-left .doctor-card.left-1 {
    position: absolute;
    top: 1%;
    left: 5%;
    width: 310px;
    height: 180px;
}

.doctors-left .doctor-card.left-2 {
    position: absolute;
    top: 32%;
    left: 6%;
    width: 310px; /* Larger card like in image */
    height:180px;
}

.doctors-left .doctor-card.left-3 {
    position: absolute;
    bottom: 18%;
    left: 5%;
    width: 150px; /* Slightly smaller for better spacing */
    height: 120px;
}

.doctors-left .doctor-card.left-4 {
    position: absolute;
    bottom: 18%;
    left:70%; /* Increased gap to prevent overlap */
    width: 150px; /* Same width as left-3 */
    height: 120px;
}

/* Central Content */
.doctors-center {
    flex: 2;
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 5rem;
}

.doctors-center .section-title {
    font-size: 3.5rem;
    font-weight: initial;
    line-height: 1.0;
    margin-bottom:2rem;
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.doctors-center .section-subtitle {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Right Side Doctors */
.doctors-right {
    flex: 1;
    position: relative;
    height: 80vh;
}

.doctors-right .doctor-card.right-1 {
    position: absolute;
    top: 2%;
    right: 80%; /* More space from right-2 */
    width: 150px;
    height: 120px;
}

.doctors-right .doctor-card.right-2 {
    position: absolute;
    top: 2%;
    right: 17%;
    width: 150px; /* Same width as right-1 */
    height: 120px;
}

.doctors-right .doctor-card.right-3 {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 310px; /* Larger middle card */
    height: 180px;
}

.doctors-right .doctor-card.right-4 {
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 310px; /* Bottom card */
    height: 180px;
}

/* Doctor Card Styling */
.doctor-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.doctor-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.doctor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.doctor-card:hover img {
    transform: scale(1.1);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.85) 50%, rgba(26, 54, 93, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    transform: translateY(4px);
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-info {
    transform: translateY(0);
}

.doctor-info-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(201, 169, 97, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.doctor-name {
    color: var(--white);
    margin-bottom: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
}

.doctor-specialty {
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-badge {
    padding: 0.375rem;
    background: rgba(201, 169, 97, 0.5);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-badge i {
    width: 1rem;
    height: 1rem;
    color: var(--white);
}

.doctor-years {
    color: rgba(248, 250, 252, 1);
    font-size: 0.875rem;
}

/* Small Cards Specific Styling */
.doctors-left .doctor-card.left-3 .doctor-info,
.doctors-left .doctor-card.left-4 .doctor-info,
.doctors-right .doctor-card.right-1 .doctor-info,
.doctors-right .doctor-card.right-2 .doctor-info {
    padding:  0.75rem;
}

.doctors-left .doctor-card.left-3 .doctor-info-card,
.doctors-left .doctor-card.left-4 .doctor-info-card,
.doctors-right .doctor-card.right-1 .doctor-info-card,
.doctors-right .doctor-card.right-2 .doctor-info-card {
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.doctors-left .doctor-card.left-3 .doctor-name,
.doctors-left .doctor-card.left-4 .doctor-name,
.doctors-right .doctor-card.right-1 .doctor-name,
.doctors-right .doctor-card.right-2 .doctor-name {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.doctors-left .doctor-card.left-3 .doctor-specialty,
.doctors-left .doctor-card.left-4 .doctor-specialty,
.doctors-right .doctor-card.right-1 .doctor-specialty,
.doctors-right .doctor-card.right-2 .doctor-specialty {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.doctors-left .doctor-card.left-3 .doctor-badge,
.doctors-left .doctor-card.left-4 .doctor-badge,
.doctors-right .doctor-card.right-1 .doctor-badge,
.doctors-right .doctor-card.right-2 .doctor-badge {
    padding: 0.25rem;
    border-radius: 0.3rem;
}

.doctors-left .doctor-card.left-3 .doctor-badge i,
.doctors-left .doctor-card.left-4 .doctor-badge i,
.doctors-right .doctor-card.right-1 .doctor-badge i,
.doctors-right .doctor-card.right-2 .doctor-badge i {
    width: 0.75rem;
    height: 0.75rem;
}

.doctors-left .doctor-card.left-3 .doctor-years,
.doctors-left .doctor-card.left-4 .doctor-years,
.doctors-right .doctor-card.right-1 .doctor-years,
.doctors-right .doctor-card.right-2 .doctor-years {
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .doctors-artistic-layout {
        flex-direction: column;
        min-height: auto;
        gap: 3rem;
    }
    
    .doctors-left,
    .doctors-right {
        height: 300px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        position: relative;
    }
    
    .doctor-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 200px !important;
    }
    
    .doctors-center .section-title {
        font-size: 2.5rem;
    }
}

.doctors-bg-effects .bokeh-1 {
    top: 25%;
    left: 33.333%;
    width: 10rem;
    height: 10rem;
    background: rgba(201, 169, 97, 0.2);
}

.doctors-bg-effects .bokeh-2 {
    bottom: 33.333%;
    right: 25%;
    width: 9rem;
    height: 9rem;
    background: rgba(201, 169, 97, 0.1);
}

.doctors-bg-effects .bokeh-3 {
    top: 66.666%;
    left: 25%;
    width: 8rem;
    height: 8rem;
    background: rgba(201, 169, 97, 0.15);
}

/* Mission Card Doodles Container */
.mission-card-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Logo Doodle in Mission Card */
.mission-card-doodles .logo-doodle {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
    top: 10%;
    right: 5%;
    width: 6rem;
    height: 6rem;
    transform: rotate(0deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: floatLogoDoodle 22s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2) contrast(0.8) saturate(0.5) opacity(0.6);
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 0.5rem;
}

.mission-card:hover .logo-doodle {
    opacity: 0.12;
    transform: rotate(0deg) scale(1.03);
}

.mission-card:hover .logo-doodle-img {
    filter: brightness(1.3) contrast(0.9) saturate(0.6) opacity(0.7);
    transform: scale(1.01);
}

/* Logo Doodle Animation */
@keyframes floatLogoDoodle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(0deg);
    }
    50% {
        transform: translateY(8px) rotate(0deg);
    }
    75% {
        transform: translateY(-6px) rotate(0deg);
    }
}

/* Responsive adjustments for mission card logo doodle */
@media (max-width: 1024px) {
    .mission-card-doodles .logo-doodle {
        width: 5rem;
        height: 5rem;
        top: 8%;
        right: 4%;
        opacity: 0.06;
    }
}

@media (max-width: 768px) {
    .mission-card-doodles .logo-doodle {
        width: 4rem;
        height: 4rem;
        top: 6%;
        right: 3%;
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .mission-card-doodles .logo-doodle {
        width: 3rem;
        height: 3rem;
        top: 5%;
        right: 2%;
        opacity: 0.04;
    }
    
    .mission-card-doodles .logo-doodle-img {
        filter: brightness(1.4) contrast(0.6) saturate(0.3) opacity(0.5);
    }
}

/* Logo Doodle Left Side */
.mission-card-doodles .logo-doodle-left {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;
    top: 65%;
    left: 5%;
    width: 5rem;
    height: 5rem;
    transform: rotate(0deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: floatLogoDoodleLeft 24s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-left-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(0.9) saturate(0.4) opacity(0.5);
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 0.5rem;
}

.mission-card:hover .logo-doodle-left {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.02);
}

.mission-card:hover .logo-doodle-left-img {
    filter: brightness(1.2) contrast(1) saturate(0.5) opacity(0.6);
    transform: scale(1.01);
}

/* Logo Doodle Left Animation */
@keyframes floatLogoDoodleLeft {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0deg);
    }
    50% {
        transform: translateY(10px) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) rotate(0deg);
    }
}

/* Responsive adjustments for left logo doodle */
@media (max-width: 1024px) {
    .mission-card-doodles .logo-doodle-left {
        width: 4rem;
        height: 4rem;
        top: 60%;
        left: 4%;
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .mission-card-doodles .logo-doodle-left {
        width: 3rem;
        height: 3rem;
        top: 55%;
        left: 3%;
        opacity: 0.04;
    }
}

@media (max-width: 480px) {
    .mission-card-doodles .logo-doodle-left {
        width: 2.5rem;
        height: 2.5rem;
        top: 50%;
        left: 2%;
        opacity: 0.03;
    }
    
    .mission-card-doodles .logo-doodle-left-img {
        filter: brightness(1.3) contrast(0.7) saturate(0.2) opacity(0.4);
    }
}

/* Random Logo Doodles */
.mission-card-doodles .logo-doodle-random-1,
.mission-card-doodles .logo-doodle-random-2,
.mission-card-doodles .logo-doodle-random-3,
.mission-card-doodles .logo-doodle-random-4,
.mission-card-doodles .logo-doodle-random-5,
.mission-card-doodles .logo-doodle-random-6,
.mission-card-doodles .logo-doodle-random-7,
.mission-card-doodles .logo-doodle-random-8,
.mission-card-doodles .logo-doodle-random-9,
.mission-card-doodles .logo-doodle-random-10 {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mission-card-doodles .logo-doodle-random-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.3) contrast(0.6) saturate(0.2) opacity(0.3);
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 0.3rem;
}

/* Individual Random Positioning for Mission Card */
.mission-card-doodles .logo-doodle-random-1 {
    top: 50%;
    left: 20%;
    width: 3rem;
    height: 3rem;
    opacity: 0.04;
    transform: rotate(15deg);
    animation: floatRandom1 18s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-random-2 {
    bottom: 20%;
    right: 15%;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.03;
    transform: rotate(-10deg);
    animation: floatRandom2 21s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-random-3 {
    top: 75%;
    left: 60%;
    width: 2rem;
    height: 2rem;
    opacity: 0.025;
    transform: rotate(25deg);
    animation: floatRandom3 25s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-random-4 {
    top: 25%;
    left: 70%;
    width: 1.8rem;
    height: 1.8rem;
    opacity: 0.02;
    transform: rotate(-15deg);
    animation: floatRandom4 19s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-random-5 {
    bottom: 35%;
    left: 8%;
    width: 2.2rem;
    height: 2.2rem;
    opacity: 0.025;
    transform: rotate(30deg);
    animation: floatRandom5 23s ease-in-out infinite;
}

.mission-card-doodles .logo-doodle-random-6 {
    top: 35%;
    right: 30%;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.018;
    transform: rotate(-25deg);
    animation: floatRandom1 27s ease-in-out infinite reverse;
}

.mission-card-doodles .logo-doodle-random-7 {
    bottom: 50%;
    right: 8%;
    width: 1.7rem;
    height: 1.7rem;
    opacity: 0.022;
    transform: rotate(20deg);
    animation: floatRandom2 29s ease-in-out infinite reverse;
}

.mission-card-doodles .logo-doodle-random-8 {
    top: 15%;
    left: 40%;
    width: 1.4rem;
    height: 1.4rem;
    opacity: 0.015;
    transform: rotate(-35deg);
    animation: floatRandom3 31s ease-in-out infinite reverse;
}

.mission-card-doodles .logo-doodle-random-9 {
    bottom: 15%;
    left: 40%;
    width: 1.6rem;
    height: 1.6rem;
    opacity: 0.02;
    transform: rotate(40deg);
    animation: floatRandom4 26s ease-in-out infinite reverse;
}

.mission-card-doodles .logo-doodle-random-10 {
    top: 60%;
    right: 40%;
    width: 1.3rem;
    height: 1.3rem;
    opacity: 0.015;
    transform: rotate(-20deg);
    animation: floatRandom5 28s ease-in-out infinite reverse;
}

/* Random Logo Hover Effects */
.mission-card:hover .logo-doodle-random-1,
.mission-card:hover .logo-doodle-random-2,
.mission-card:hover .logo-doodle-random-3,
.mission-card:hover .logo-doodle-random-4,
.mission-card:hover .logo-doodle-random-5,
.mission-card:hover .logo-doodle-random-6,
.mission-card:hover .logo-doodle-random-7,
.mission-card:hover .logo-doodle-random-8,
.mission-card:hover .logo-doodle-random-9,
.mission-card:hover .logo-doodle-random-10 {
    opacity: 0.04;
}

.mission-card:hover .logo-doodle-random-img {
    filter: brightness(1.4) contrast(0.7) saturate(0.3) opacity(0.4);
}

/* Individual Random Animations */
@keyframes floatRandom1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-6px) translateX(3px); }
    50% { transform: translateY(8px) translateX(-2px); }
    75% { transform: translateY(-3px) translateX(4px); }
}

@keyframes floatRandom2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    30% { transform: translateY(-8px) translateX(-3px); }
    60% { transform: translateY(5px) translateX(2px); }
    80% { transform: translateY(-4px) translateX(-1px); }
}

@keyframes floatRandom3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    20% { transform: translateY(-4px) translateX(2px); }
    40% { transform: translateY(6px) translateX(-3px); }
    70% { transform: translateY(-2px) translateX(1px); }
}

@keyframes floatRandom4 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    35% { transform: translateY(-7px) translateX(-2px); }
    65% { transform: translateY(4px) translateX(3px); }
    85% { transform: translateY(-5px) translateX(-1px); }
}

@keyframes floatRandom5 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-5px) translateX(-3px); }
    55% { transform: translateY(7px) translateX(2px); }
    75% { transform: translateY(-3px) translateX(-2px); }
}

/* Responsive adjustments for mission card random logos */
@media (max-width: 1024px) {
    .mission-card-doodles .logo-doodle-random-1 { width: 2.5rem; height: 2.5rem; opacity: 0.03; }
    .mission-card-doodles .logo-doodle-random-2 { width: 2rem; height: 2rem; opacity: 0.025; }
    .mission-card-doodles .logo-doodle-random-3 { width: 1.5rem; height: 1.5rem; opacity: 0.02; }
    .mission-card-doodles .logo-doodle-random-4 { width: 1.4rem; height: 1.4rem; opacity: 0.015; }
    .mission-card-doodles .logo-doodle-random-5 { width: 1.8rem; height: 1.8rem; opacity: 0.02; }
    .mission-card-doodles .logo-doodle-random-6 { width: 1.2rem; height: 1.2rem; opacity: 0.014; }
    .mission-card-doodles .logo-doodle-random-7 { width: 1.3rem; height: 1.3rem; opacity: 0.016; }
    .mission-card-doodles .logo-doodle-random-8 { width: 1.1rem; height: 1.1rem; opacity: 0.012; }
    .mission-card-doodles .logo-doodle-random-9 { width: 1.2rem; height: 1.2rem; opacity: 0.015; }
    .mission-card-doodles .logo-doodle-random-10 { width: 1rem; height: 1rem; opacity: 0.012; }
}

@media (max-width: 768px) {
    .mission-card-doodles .logo-doodle-random-1 { width: 2rem; height: 2rem; opacity: 0.025; }
    .mission-card-doodles .logo-doodle-random-2 { width: 1.5rem; height: 1.5rem; opacity: 0.02; }
    .mission-card-doodles .logo-doodle-random-3 { width: 1.2rem; height: 1.2rem; opacity: 0.015; }
    .mission-card-doodles .logo-doodle-random-4 { width: 1.1rem; height: 1.1rem; opacity: 0.012; }
    .mission-card-doodles .logo-doodle-random-5 { width: 1.4rem; height: 1.4rem; opacity: 0.016; }
    .mission-card-doodles .logo-doodle-random-6 { width: 0.9rem; height: 0.9rem; opacity: 0.01; }
    .mission-card-doodles .logo-doodle-random-7 { width: 1rem; height: 1rem; opacity: 0.012; }
    .mission-card-doodles .logo-doodle-random-8 { width: 0.8rem; height: 0.8rem; opacity: 0.008; }
    .mission-card-doodles .logo-doodle-random-9 { width: 0.9rem; height: 0.9rem; opacity: 0.01; }
    .mission-card-doodles .logo-doodle-random-10 { width: 0.8rem; height: 0.8rem; opacity: 0.008; }
}

@media (max-width: 480px) {
    .mission-card-doodles .logo-doodle-random-1 { width: 1.5rem; height: 1.5rem; opacity: 0.02; }
    .mission-card-doodles .logo-doodle-random-2 { width: 1.2rem; height: 1.2rem; opacity: 0.015; }
    .mission-card-doodles .logo-doodle-random-3 { width: 1rem; height: 1rem; opacity: 0.01; }
    .mission-card-doodles .logo-doodle-random-4 { width: 0.8rem; height: 0.8rem; opacity: 0.008; }
    .mission-card-doodles .logo-doodle-random-5 { width: 1rem; height: 1rem; opacity: 0.01; }
    .mission-card-doodles .logo-doodle-random-6 { width: 0.7rem; height: 0.7rem; opacity: 0.006; }
    .mission-card-doodles .logo-doodle-random-7 { width: 0.8rem; height: 0.8rem; opacity: 0.008; }
    .mission-card-doodles .logo-doodle-random-8 { width: 0.6rem; height: 0.6rem; opacity: 0.005; }
    .mission-card-doodles .logo-doodle-random-9 { width: 0.7rem; height: 0.7rem; opacity: 0.006; }
    .mission-card-doodles .logo-doodle-random-10 { width: 0.6rem; height: 0.6rem; opacity: 0.005; }
    
    .mission-card-doodles .logo-doodle-random-img {
        filter: brightness(1.5) contrast(0.5) saturate(0.1) opacity(0.2);
    }
}

@media (min-width: 640px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 12rem;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.doctor-card:hover .doctor-img {
    transform: scale(1.1);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.85) 50%, rgba(26, 54, 93, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    transform: translateY(4px);
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-info {
    transform: translateY(0);
}

.doctor-info-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(201, 169, 97, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.doctor-name {
    color: var(--white);
    margin-bottom: 0.375rem;
}

.doctor-specialty {
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-badge {
    padding: 0.375rem;
    background: rgba(201, 169, 97, 0.5);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-badge i {
    width: 1rem;
    height: 1rem;
    color: var(--white);
}

.doctor-years {
    color: rgba(248, 250, 252, 1);
    font-size: 0.875rem;
}

/* Insurance Support Section */
.insurance-support-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%);
    padding: var(--spacing-section) 0;
}

.insurance-support-content {
    display: grid;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .insurance-support-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.insurance-content-title {
    font-size: 2rem;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.insurance-description {
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.insurance-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insurance-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-check {
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check i {
    width: 0.875rem;
    height: 0.875rem;
    color: #10b981;
    stroke-width: 3;
}

.insurance-feature-item span {
    color: var(--slate-700);
    font-weight: 500;
    font-size: 1rem;
}

.insurance-image-container {
    position: relative;
    text-align: center;
}

.insurance-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.insurance-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15);
}

.insurance-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

    /* Removed duplicate pulse keyframe */

.insurance-badge i {
    width: 1rem;
    height: 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.6) 0%, rgba(240, 253, 250, 0.5) 50%, rgba(240, 253, 244, 0.6) 100%);
}

.contact-bg-effects .bokeh-1 {
    top: 10rem;
    left: 25%;
    width: 10rem;
    height: 10rem;
    background: rgba(16, 185, 129, 0.3);
}

.contact-bg-effects .bokeh-2 {
    bottom: 5rem;
    right: 33.333%;
    width: 9rem;
    height: 9rem;
    background: rgba(20, 184, 166, 0.3);
}

.contact-bg-effects .bokeh-3 {
    top: 33.333%;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: rgba(34, 197, 94, 0.25);
}

.contact-grid {
    display: grid;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--slate-700);
}

.form-input,
.form-textarea {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--slate-900);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
    /* Ensure sufficient space below for dropdown */
    margin-bottom: 3rem;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    flex: 0 0 120px;
    min-width: 120px;
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--slate-900);
    padding: 0.75rem 2rem 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.dropdown-selected::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b7280;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--slate-200);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--slate-100);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--slate-100);
}

.dropdown-option.selected {
    background-color: var(--indigo-50);
    color: var(--indigo-600);
}

/* Legacy select styles (keeping for any remaining selects) */
.country-code-select {
    flex: 0 0 120px;
    min-width: 120px;
    padding-right: 0.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
    direction: ltr;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

.country-code-select:focus {
    border-color: var(--indigo-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    z-index: 20;
}

/* Ensure dropdown opens downward */
.country-code-select:focus,
.country-code-select:active {
    z-index: 20;
    /* Force dropdown direction */
    writing-mode: horizontal-tb;
    direction: ltr;
}

/* Browser-specific dropdown positioning */
.country-code-select option {
    position: relative;
    z-index: 21;
}

.country-code-select:focus option,
.country-code-select:active option {
    position: relative;
    z-index: 22;
}

/* Ensure parent containers don't clip dropdown */
.form-group {
    position: relative;
    overflow: visible !important;
    /* Provide space for dropdown */
    min-height: 60px;
}

.form-row {
    position: relative;
    overflow: visible !important;
    /* Provide space for dropdown */
    min-height: 60px;
}

.phone-number-input:focus {
    border-color: var(--indigo-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Phone validation states */
.phone-input-wrapper.phone-valid .country-code-select,
.phone-input-wrapper.phone-valid .phone-number-input {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.phone-input-wrapper.phone-invalid .country-code-select,
.phone-input-wrapper.phone-invalid .phone-number-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.phone-input-wrapper.phone-valid::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    pointer-events: none;
}

.phone-input-wrapper {
    position: relative;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    transform: translateY(-2px);
    background: var(--white);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--slate-300);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--brand-navy);
    color: var(--white);
    padding: 1.5rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--brand-navy-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(0.5rem);
}

.form-note {
    font-size: 0.875rem;
    color: var(--slate-600);
    text-align: center;
}

/* Form Tabs Styles */
.form-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--slate-100);
}

.form-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.form-tab:hover {
    color: var(--brand-navy);
    background: rgba(201, 169, 97, 0.05);
}

.form-tab.active {
    color: var(--brand-navy);
    border-bottom-color: var(--brand-gold);
    background: rgba(201, 169, 97, 0.1);
}

.form-tab i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Form Content Styles */
.form-content {
    display: none;
}

.form-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header {
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--slate-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Form Sections */
.form-section {
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: var(--slate-50);
    margin-bottom: 1rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-200);
}

.form-select {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--slate-900);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    background: var(--white);
}

.form-select:hover {
    border-color: var(--slate-300);
}

.emergency-textarea {
    min-height: 8rem;
    resize: vertical;
}

.immediate-help-container {
    margin-top: 1.5rem;
}

.immediate-help-card {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--brand-navy);
    text-align: center;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.whatsapp-icon i {
    width: 5rem !important;
    height: 5rem !important;
    color: #C9A961 !important;
    stroke: #C9A961 !important;
    stroke-width: 2.5px !important;
    font-size: 5rem !important;
    display: block !important;
    opacity: 1 !important;
}

.immediate-help-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.immediate-help-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.whatsapp-chat-btn {
    background-color: var(--brand-gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-chat-btn:hover {
    background-color: white;
    color: var(--brand-navy);
    transform: translateY(-3px);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: var(--brand-gold);
}

.contact-info-icon i {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--brand-gold);
    transition: color 0.3s ease;
}

.contact-info-card:hover .contact-info-icon i {
    color: var(--white);
}

.contact-info-label {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 0.25rem;
}

.contact-info-content {
    font-size: 1.125rem;
    color: var(--slate-800);
}

/* Network Locations Map */
.india-map-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-title {
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.map-subtitle {
    font-size: 1rem;
    color: var(--slate-600);
}

.map-container {
    position: relative;
    max-width: 60rem;
    margin: 0 auto;
}

.google-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.google-map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.location-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.location-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.hyderabad-marker {
    top: 45%;
    left: 42%;
}

.vijayawada-marker {
    top: 52%;
    left: 48%;
}

.marker-pin {
    background: #1a365d;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.marker-pin i {
    transform: rotate(45deg);
    width: 18px;
    height: 18px;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.marker-label {
    background: #1a365d;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
}

.marker-label::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 4px solid #1a365d;
}

.map-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.map-control-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    min-width: 140px;
}

.map-control-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-control-btn i {
    width: 16px;
    height: 16px;
    color: #4285f4;
}

.map-info-badge {
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.map-info-badge i {
    width: 16px;
    height: 16px;
    color: white;
}

.location-details {
    margin-top: 2rem;
}

.location-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 50rem;
    margin: 0 auto;
}

.location-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hyderabad-color {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.vijayawada-color {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.location-icon i {
    width: 24px;
    height: 24px;
}

.location-card-title h4 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.location-card-title p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.hospital-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hospital-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: all 0.2s ease;
    position: relative;
}



.hospital-item:hover {
    background: transparent;
    border: none;
    transform: scale(1.05);
}

/* Responsive Map Styles */
@media (max-width: 768px) {
    .india-map-wrapper {
        padding: 1rem;
    }
    
    .map-title {
        font-size: 1.5rem;
    }
    
    .map-subtitle {
        font-size: 0.875rem;
    }
    
    .google-map-wrapper {
        height: 350px;
        margin-bottom: 1.5rem;
    }
    
    .location-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-card {
        padding: 1rem;
    }
    
    .location-card-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .location-icon {
        width: 40px;
        height: 40px;
    }
    
    .location-icon i {
        width: 20px;
        height: 20px;
    }
    
    .location-card-title h4 {
        font-size: 1.125rem;
    }
    
    .map-controls {
        position: static;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        flex-direction: row;
        justify-content: center;
        margin-top: auto;
    }
    
    .map-control-btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .marker-label {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .marker-pin {
        width: 32px;
        height: 32px;
    }
    
    .marker-pin i {
        width: 14px;
        height: 14px;
    }
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
}



.pin-icon {
    position: relative;
    z-index: 10;
    transform: scale(0.5);
    transform-origin: bottom center;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(0.5);
    }
    50% {
        transform: translateY(-4px) scale(0.5);
    }
}

.pin-shadow {
    display: none;
}

.pin-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.2rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 50;
    transition: opacity 0.3s ease;
    font-size: 0.8em;
    transform-origin: bottom center;
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .pin-icon {
        transform: scale(0.4);
    }
    
    /* Use the main bounce keyframe defined earlier */
    
    .tooltip-content {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .tooltip-city {
        font-size: 0.75rem;
    }
    
    /* Mobile active pin styles */
    .map-pin.active .pin-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
    }
    
    .map-pin.active .pin-icon {
        animation: bounce 0.6s ease-in-out;
    }
    
    /* Enhanced mobile tooltip visibility */
    .pin-tooltip {
        background: rgba(26, 54, 93, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        border: 2px solid var(--brand-gold) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    }
}

.tooltip-content {
    background: var(--brand-navy);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    line-height: 1.4;
}

.tooltip-city {
    font-weight: 600;
    font-size: 0.8rem;
}

.tooltip-count {
    color: var(--brand-gold);
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.tooltip-description {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 0.125rem;
    font-style: italic;
}

.tooltip-arrow {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--brand-navy);
    transform: rotate(45deg);
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    margin-left: -0.25rem;
}

.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: var(--slate-800);
    color: var(--white);
    overflow: hidden;
}

.footer .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.footer-logo-img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    /* Add white filter for dark footer background */
    filter: initial invert(1);
    opacity: 1;
}

.footer-logo-title {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.footer-description {
    color: var(--slate-300);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--slate-700);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--brand-gold);
}

.social-link:hover {
    background: var(--slate-600);
    transform: scale(1.1);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--slate-300);
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: left;
    padding: 0;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.footer-links li {
    color: var(--slate-300);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: color 0.3s ease;
}

.footer-links button:hover,
.footer-links li:hover {
    color: var(--brand-gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--brand-gold);
}

.footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--slate-700);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--slate-600);
}

.footer-contact-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-contact-label {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-700);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    color: var(--slate-400);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-copyright {
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    justify-content: center;
}

.footer-legal span {
    color: var(--slate-400);
    text-decoration: none;
}

.footer-love {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bristle-tech {
    color: oklch(.704 .04 256.788);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bristle-tech:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}

.footer-contact-item:hover {
    color: var(--brand-gold);
}

.footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--slate-700);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--slate-600);
}

.footer-contact-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-contact-label {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-700);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    color: var(--slate-400);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-copyright {
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    justify-content: center;
}

.footer-legal span {
    color: var(--slate-400);
    text-decoration: none;
}

.footer-love {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bristle-tech {
    color: oklch(.704 .04 256.788);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bristle-tech:hover {
    color: var(--brand-gold);
    text-decoration: underline;
}

.heart-icon {
    width: 1rem;
    height: 1rem;
    color: #ef4444;
    fill: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.floating-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-actions.menu-open .floating-menu {
    opacity: 1;
    pointer-events: all;
}

.floating-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    white-space: nowrap;
}

.floating-action:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.floating-action.whatsapp {
    background: #25D366;
}

.floating-action.whatsapp:hover {
    background: #20BD5A;
}

.floating-action.phone {
    background: var(--brand-navy);
}

.floating-action.phone:hover {
    background: var(--brand-navy-light);
}

.floating-action.emergency {
    background: #dc2626;
    color: white;
}

.floating-action.emergency:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.floating-toggle {
    position: relative;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-toggle:hover {
    transform: scale(1.05);
}

.floating-toggle i {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.floating-actions.menu-open .floating-toggle i {
    transform: rotate(90deg);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-gold);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.2;
}

.floating-actions.menu-open .pulse-ring {
    display: none;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Tailwind-like Utility Classes */
.absolute {
    position: absolute !important;
}

.relative {
    position: relative !important;
}

.inset-0 {
    inset: 0 !important;
}

.top-1\/2 {
    top: 50% !important;
}

.-translate-y-1\/2 {
    transform: translateY(-50%) !important;
}

.translate-x-1\/2 {
    transform: translateX(50%) !important;
}

.-translate-x-1\/2 {
    transform: translateX(-50%) !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.overflow-visible {
    overflow: visible !important;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Hide scrollbars in video modal on desktop */
@media (min-width: 1024px) {
    .video-modal {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .video-modal::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

.video-modal.show {
    display: block;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    animation: slideInDown 0.4s ease-out;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container::before {
    content: "Loading video...";
    position: absolute;
    color: white;
    font-size: 18px;
    z-index: 1;
    opacity: 0.7;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Auto-scroll pause indicator (disabled - manual navigation only) */

/* Inline Video Player Styles */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 11;
    transition: background 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-thumbnail.playing .video-thumbnail-img {
    opacity: 0;
}

.video-thumbnail.playing .play-button {
    display: none;
}

/* Mobile responsiveness for video modal */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .video-modal-close {
        top: -35px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}

/* ===================================== */
/* FAQ SECTION                          */
/* ===================================== */

.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23f1f5f9"><polygon points="0,0 1000,100 1000,100 0,100"/></svg>') no-repeat;
    background-size: 100% 100px;
    opacity: 0.5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #0ea5e9;
}

.faq-item.active .faq-question {
    border-bottom-color: #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 24px;
    border-top: 1px solid #f1f5f9;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #d4af37;
    font-weight: 500;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
        padding-right: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
        line-height: 1.6;
        color: #c9a961 !important;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
}

/* ===================================== */
/* MOBILE RESPONSIVENESS - ADDITIONAL SECTIONS */
/* ===================================== */





.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Family Doodle */
.testimonials-doodle {
    position: absolute;
    top: 10%;
    right: 5%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: all;
    cursor: pointer;
    transition: all 0.8s ease;
}

.testimonials-doodle:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

.family-doodle {
    width: 250px;
    height: auto;
    animation: float 12s ease-in-out infinite;
    filter: saturate(0.8) brightness(0.9) contrast(0.9);
    transition: all 0.8s ease;
}

.testimonials-doodle:hover .family-doodle {
    filter: saturate(1.0) brightness(1.0) contrast(1.0);
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
    .testimonials-doodle {
        top: 5%;
        right: 2%;
    }
    
    .family-doodle {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .testimonials-doodle {
        display: none;
    }
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    width: fit-content;
    padding: 1rem 0 2rem 0;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
    user-select: none; /* Prevent text selection during drag */
    /* Remove automatic animation - will be controlled by JavaScript */
    /* animation: scrollLeft 200s linear infinite; */
}

@media (min-width: 768px) {
    .testimonials-grid {
        gap: 2.5rem;
        padding: 1.5rem 0 2.5rem 0;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        gap: 3rem;
        padding: 2rem 0 3rem 0;
    }
}

.testimonial-card {
    background: linear-gradient(135deg, #2c5f7e 0%, #1a3b59 100%);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex: 0 0 280px;
    height: 180px;
    width: 280px;
    color: white;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 320px;
        width: 320px;
        height: 200px;
        padding: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 360px;
        width: 360px;
        height: 220px;
        padding: 2rem;
    }
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
}

.star-filled {
    width: 1rem;
    height: 1rem;
    color: #fbbf24;
    fill: currentColor;
}

.testimonial-quote-icon {
    width: 2rem;
    height: 2rem;
    background: var(--brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.testimonial-quote-icon i {
    width: 1rem;
    height: 1rem;
    color: var(--white);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-gold);
    margin-bottom: 0.4rem;
    text-transform: capitalize;
}

.testimonial-text {
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    position: relative;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-navy));
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.125rem;
}

.author-relation {
    font-size: 0.8rem;
    color: var(--brand-gold);
    font-weight: 500;
}

/* Testimonials Container & Navigation */
.testimonials-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Navigation Controls */
.testimonials-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: calc(100% - 4rem); /* Adjust width to center better */
    left: 2rem; /* Center the container */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0;
    height: 0; /* Ensure it doesn't take up space */
}

.testimonial-nav-btn {
    background: rgba(44, 95, 126, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
    box-shadow: 
        0 6px 24px rgba(212, 175, 55, 0.3),
        0 3px 12px rgba(0, 0, 0, 0.2);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

.testimonial-nav-btn i {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    stroke-width: 2;
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Position adjustments for navigation */
.testimonial-prev-btn {
    left: 0;
}

.testimonial-next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .testimonials-navigation {
        width: calc(100% - 2rem);
        left: 1rem;
    }
    
    .testimonial-nav-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .testimonial-nav-btn i {
        width: 1rem;
        height: 1rem;
    }
    
    .testimonial-prev-btn {
        left: 0;
    }
    
    .testimonial-next-btn {
        right: 0;
    }
}

@media (max-width: 480px) {
    .testimonials-navigation {
        width: calc(100% - 1rem);
        left: 0.5rem;
    }
    
    .testimonial-prev-btn {
        left: 0;
    }
    
    .testimonial-next-btn {
        right: 0;
    }
}

/* Pagination Dots */
.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
    width: 100%;
}

.pagination-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(44, 95, 126, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pagination-dot:hover {
    background: rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: rgba(212, 175, 55, 0.9);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 
        0 0 8px rgba(212, 175, 55, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .testimonials-pagination {
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        gap: 0.4rem;
    }
    
    .pagination-dot {
        width: 0.6rem;
        height: 0.6rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .testimonials-container {
        gap: 0;
    }
}

/* Video Testimonials */
.video-testimonial {
    position: relative;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    height: 280px;
    min-height: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    transition: none;
    flex: 0 0 280px;
    width: 280px;
}

.video-testimonial:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

@media (min-width: 768px) {
    .video-testimonial {
        flex: 0 0 320px;
        width: 220px;
        height: 200px;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .video-testimonial {
        flex: 0 0 360px;
        width: 330px;
        height: 420px;
        padding: 0;
    }
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.video-play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button i {
    width: 1.5rem;
    height: 1.5rem;
    color: #333;
    margin-left: 0.2rem;
}

.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 1rem;
    overflow: hidden;
}

.video-player-container.active {
    display: block;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

.video-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.video-close-btn:hover {
    background: var(--brand-gold);
}

/* Testimonials Stats */
.testimonials-stats {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonials-stats {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonial-title {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    
    .testimonial-text {
        font-size: 0.7rem;
        line-height: 1.15;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-title {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .testimonial-text {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .author-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .author-location,
    .author-relation {
        font-size: 0.8rem;
    }
}

/* ===================================== */
/* MOBILE RESPONSIVENESS - ADDITIONAL SECTIONS */
/* ===================================== */

/* Doctors Section Mobile */
@media (max-width: 768px) {
    .doctors-section {
        padding: 4rem 1rem !important;
    }
    
    .doctors-section .section-header {
        margin-bottom: 3rem !important;
        text-align: center !important;
    }
    
    .doctors-section .section-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .doctors-section .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .doctor-card {
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .doctor-avatar {
        width: 6rem !important;
        height: 6rem !important;
        margin: 0 auto 1.5rem !important;
    }
    
    .doctor-name {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .doctor-specialty {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .doctor-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* Contact Section Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1rem !important;
    }
    
    .contact-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .contact-section .section-header {
        margin-bottom: 3rem !important;
        text-align: center !important;
    }
    
    .contact-section .section-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-section .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info {
        order: 2 !important;
    }
    
    .contact-form {
        order: 1 !important;
        padding: 2rem 1.5rem !important;
    }
    
    .contact-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-icon {
        margin-bottom: 1rem !important;
        font-size: 2rem !important;
    }
    
    .contact-details h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-details p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .form-group {
        margin-bottom: 1.5rem !important;
    }
    
    .form-group label {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 0.5rem !important;
    }
    
    .form-group textarea {
        min-height: 120px !important;
    }
    
    .submit-btn {
        width: 100% !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

/* FAQ Section Mobile */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 1rem !important;
    }
    
    .faq-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .faq-section .section-header {
        margin-bottom: 3rem !important;
        text-align: center !important;
    }
    
    .faq-section .section-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .faq-section .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .faq-item {
        margin-bottom: 1rem !important;
        border-radius: 1rem !important;
    }
    
    .faq-question {
        padding: 1.5rem !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }
    
    .faq-icon {
        font-size: 1.2rem !important;
        min-width: 1.5rem !important;
    }
    
    .faq-answer {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
        padding: 0 !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px !important;
        padding: 0 1.5rem 1.5rem !important;
    }
    
    .faq-answer p {
        margin-bottom: 1rem !important;
        color: #c9a961 !important;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    /* Doctors Section */
    .doctors-section {
        padding: 3rem 0.8rem !important;
    }
    
    .doctors-section .section-title {
        font-size: 1.8rem !important;
    }
    
    .doctor-card {
        padding: 1.5rem 1rem !important;
    }
    
    .doctor-avatar {
        width: 5rem !important;
        height: 5rem !important;
    }
    
    .doctor-name {
        font-size: 1.2rem !important;
    }
    
    .doctor-specialty {
        font-size: 0.9rem !important;
    }
    
    .doctor-description {
        font-size: 0.9rem !important;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 3rem 0.8rem !important;
    }
    
    .contact-section .section-title {
        font-size: 1.8rem !important;
    }
    
    .contact-form {
        padding: 1.5rem 1rem !important;
    }
    
    .contact-item {
        padding: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem !important;
        font-size: 0.95rem !important;
    }
    
    /* FAQ Section */
    .faq-section {
        padding: 3rem 0.8rem !important;
    }
    
    .faq-section .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .faq-section .section-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .faq-question {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    
    .faq-icon {
        font-size: 1.25rem !important;
        min-width: 1.25rem !important;
    }
    
    .faq-answer {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
        padding: 0 !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px !important;
        padding: 1rem !important;
    }
    
    .faq-answer p {
        margin: 0 !important;
        color: #c9a961 !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    /* Doctors Section */
    .doctors-section .section-title {
        font-size: 1.6rem !important;
    }
    
    .doctor-card {
        padding: 1.2rem 0.8rem !important;
    }
    
    /* Contact Section */
    .contact-section .section-title {
        font-size: 1.6rem !important;
    }
    
    .contact-form {
        padding: 1.2rem 0.8rem !important;
    }
    
    /* FAQ Section */
    .faq-section .section-title {
        font-size: 1.6rem !important;
    }
    
    .faq-question {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .faq-answer {
        font-size: 0.85rem !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
        padding: 0 !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px !important;
        padding: 0 1rem 1rem !important;
    }
}

/* ===================================== */
/* COMPREHENSIVE MOBILE RESPONSIVE      */
/* ===================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 768px) {
    
    /* Global Mobile Adjustments */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    /* Typography Mobile Adjustments */
    .section-title {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    /* Header Mobile Responsive */
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1rem !important;
    }
    
    .logo-title {
        font-size: 1.125rem !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .header-cta {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 70vh !important;
        padding: 2rem 0 !important;
    }
    
    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-text {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
    
    .hero-title {
        font-size: 2.25rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .hero-description p {
        font-size: 0.95rem !important;
        text-align: center !important;
    }
    
    /* About Section Mobile */
    .about-story {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .story-title {
        font-size: 1.75rem !important;
        text-align: center !important;
    }
    
    .story-text {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .service-card {
        max-width: 100% !important;
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    .service-title {
        font-size: 1.125rem !important;
    }
    
    .service-description {
        font-size: 0.9rem !important;
    }
    
    /* Values Section Mobile */
    .values-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    .value-card {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 1.5rem !important;
        text-align: center !important;
        background: var(--white) !important;
        border-radius: 1rem !important;
        border: 1px solid var(--slate-100) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        margin: 0 auto !important;
    }

    .value-icon {
        margin: 0 auto 1rem auto !important;
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    .value-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
        color: var(--brand-navy) !important;
    }

    .value-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: var(--gray-600) !important;
    }
    
    /* Doctors Section Mobile */
    .doctors-artistic-layout {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1rem !important;
    }
    
    .doctor-card {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .form-input,
    .form-textarea {
        font-size: 1rem !important;
        padding: 0.875rem !important;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 3rem 1rem !important;
    }
    
    .faq-section .section-title {
        font-size: 1.875rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .faq-section .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .faq-item {
        margin-bottom: 1rem !important;
        border-radius: 1rem !important;
        background: var(--white) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
    }
    
    .faq-question {
        padding: 1.25rem !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-weight: 600 !important;
        color: var(--brand-navy) !important;
        transition: background-color 0.3s ease !important;
    }
    
    .faq-question:hover {
        background-color: rgba(26, 54, 93, 0.05) !important;
    }
    
    .faq-icon {
        font-size: 1.5rem !important;
        min-width: 1.5rem !important;
        color: var(--brand-gold) !important;
        transition: transform 0.3s ease !important;
    }
    
    .faq-item.active .faq-icon {
        transform: rotate(180deg) !important;
    }
    
    .faq-answer {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.4s ease !important;
        padding: 0 !important;
        background: rgba(248, 250, 252, 0.5) !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: 600px !important;
        padding: 1.25rem !important;
        border-top: 1px solid rgba(26, 54, 93, 0.1) !important;
    }
    
    .faq-answer p {
        margin: 0 !important;
        color: var(--slate-600) !important;
        font-weight: 400 !important;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 !important;
    }
    
    .footer .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .footer-col {
        text-align: center !important;
        gap: 1.25rem !important;
    }
    
    .footer-logo {
        justify-content: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-logo-img {
        height: 2.5rem !important;
    }
    
    .footer-logo-title {
        font-size: 1.25rem !important;
        text-align: center !important;
        color: var(--white) !important;
        font-weight: 600 !important;
    }
    
    .footer-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--slate-300) !important;
        text-align: center !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .footer-title {
        font-size: 1.125rem !important;
        margin-bottom: 1rem !important;
        color: var(--white) !important;
        font-weight: 600 !important;
        text-align: center !important;
    }
    
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .footer-links li {
        width: 100% !important;
        text-align: center !important;
    }
    
    .footer-links button {
        background: none !important;
        border: none !important;
        color: var(--slate-300) !important;
        font-size: 0.95rem !important;
        padding: 0.5rem 1rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        width: auto !important;
        min-width: 120px !important;
    }
    
    .footer-links button:hover {
        color: var(--brand-gold) !important;
        transform: translateY(-1px) !important;
    }
    
    .footer-contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    .footer-contact-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        color: var(--slate-300) !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        padding: 0.5rem !important;
        border-radius: 0.5rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }
    
    .footer-contact-item:hover {
        color: var(--brand-gold) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .footer-contact-item i {
        font-size: 1.1rem !important;
        color: var(--brand-gold) !important;
        min-width: 1.25rem !important;
    }
    
    .social-links {
        display: flex !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .social-link {
        width: 2.5rem !important;
        height: 2.5rem !important;
        background: var(--slate-700) !important;
        border-radius: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--brand-gold) !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }
    
    .social-link:hover {
        background: var(--brand-gold) !important;
        color: var(--slate-800) !important;
        transform: translateY(-2px) !important;
    }
    
    .footer-bottom {
        border-top: 1px solid var(--slate-700) !important;
        padding-top: 1.5rem !important;
        margin-top: 2rem !important;
        text-align: center !important;
    }
    
    .footer-bottom p {
        font-size: 0.875rem !important;
        color: var(--slate-400) !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }
    
    /* Button Mobile Adjustments */
    .btn, .cta-btn, .read-more-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        width: auto !important;
        min-width: 120px !important;
    }
    
    /* Spacing Mobile Adjustments */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .section-header {
        margin-bottom: 3.5rem !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Services Grid for Tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Values Grid for Tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    /* Hero adjustments for tablet */
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-text {
        max-width: 32rem !important;
    }
    
    /* About story for tablet */
    .about-story {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-text {
        padding: 1rem !important;
    }
    
    /* About Section Mobile Layout Ordering */
    .about-story {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .service-card,
    .value-card {
        padding: 1.25rem !important;
    }
    
    .btn, .cta-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Footer Small Mobile */
    .footer .container {
        padding: 1.5rem 0.75rem !important;
    }
    
    .footer-content {
        gap: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .footer-logo-title {
        font-size: 1.125rem !important;
    }
    
    .footer-description {
        font-size: 0.9rem !important;
        max-width: 250px !important;
    }
    
    .footer-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-links button {
        font-size: 0.9rem !important;
        padding: 0.375rem 0.75rem !important;
        min-width: 100px !important;
    }
    
    .footer-contact-item {
        font-size: 0.9rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .social-links {
        gap: 0.75rem !important;
        margin-top: 1rem !important;
    }
    
    .social-link {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    .footer-bottom {
        padding-top: 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .footer-bottom p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

/* DEPARTMENTS SECTION                  */
/* ===================================== */

.departments-overview-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.departments-overview-content {
    display: block;
    min-height: auto;
}

.departments-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.departments-text .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--brand-navy);
}

.departments-text .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.departments-highlights {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Centered Departments Highlights */
.departments-highlights-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2.5rem auto;
    padding: 2rem 0;
    width: 100%;
    max-width: 800px;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-gold);
    line-height: 1;
}

.highlight-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.departments-list {
    margin-bottom: 3rem;
}

.departments-intro {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.departments-grid-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.department-tag {
    background: rgba(201, 169, 97, 0.15);
    color: #8b6914;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-height: 42px;
    text-align: center;
}

.department-tag.clickable {
    background: rgba(201, 169, 97, 0.1);
    border: 2px solid rgba(201, 169, 97, 0.3);
}

.department-tag.clickable .tag-arrow {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.department-tag:hover {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-light));
    transform: translateY(-2px);
    border-color: var(--brand-gold-dark);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
    color: white;
}

.department-tag.clickable:hover .tag-arrow {
    opacity: 1;
    transform: translateX(0);
}

.department-tag.clickable:hover {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-light));
    border-color: var(--brand-gold-dark);
    color: white;
}

.department-tag.clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

/* Responsive Design for Departments Overview */
@media (max-width: 1024px) {
    .departments-text .section-title {
        font-size: 2.8rem;
    }
    
    .departments-highlights {
        justify-content: center;
    }
    
    .departments-highlights-center {
        gap: 2rem;
        margin: 2rem auto;
        padding: 1.5rem 0;
    }
    
    .departments-grid-simple {
        max-width: 900px;
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    .departments-overview-section {
        padding: 3rem 0;
    }
    
    .departments-text .section-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .departments-text .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .departments-highlights-center {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 1.5rem 0;
    }
    
    .departments-highlights {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .departments-grid-simple {
        max-width: 100%;
        gap: 0.6rem;
        padding: 0 1rem;
    }
    
    .departments-intro {
        text-align: center;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .departments-text .section-title {
        font-size: 1.8rem;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .departments-grid-simple {
        justify-content: center;
        gap: 0.6rem;
        margin: 0 auto;
    }
    
    .department-tag {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        min-height: 38px;
        flex: 0 0 auto;
    }
}

/* ===================================== */
/* TESTIMONIALS SECTION                 */
/* ===================================== */

.testimonials-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background image with blur effect */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.85) 100%), url('./assets/background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: 0;
}

/* Additional overlay for better text readability */
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* Family Doodle Styles */
.section-header-doodle {
    position: absolute;
    top: 0;
    right: -350px;
    z-index: 3;
}

.family-doodle {
    width: 300px;
    height: auto;
    opacity: 0.7;
    filter: grayscale(80%) contrast(150%) brightness(1.2) sepia(10%);
    animation: subtleGlow 4s ease-in-out infinite;
    transition: filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
    cursor: pointer;
}

.family-doodle:hover {
    opacity: 0.9;
    filter: grayscale(60%) contrast(180%) brightness(1.1) sepia(5%);
    animation: none;
}

@keyframes subtleGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.9; }
}

/* Mobile responsiveness for family doodle */
@media (max-width: 768px) {
    .section-header-doodle {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }
    
    .family-doodle {
        width: 250px;
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .family-doodle {
        width: 170px;
    }
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.subsection-description {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 5px;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.6;
}

/* Video Testimonials */
.testimonials-container {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.video-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.video-testimonials-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide horizontal scrollbar on desktop */
@media (min-width: 1024px) {
    .video-testimonials-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .video-testimonials-grid::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}

.video-testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.video-testimonials-grid::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.video-testimonials-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

.written-testimonials-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide horizontal scrollbar on desktop */
@media (min-width: 1024px) {
    .written-testimonials-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .written-testimonials-grid::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}

.written-testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.written-testimonials-grid::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.written-testimonials-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

/* Combined Testimonials Grid */
.combined-testimonials-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}

/* Hide horizontal scrollbar on desktop */
@media (min-width: 1024px) {
    .combined-testimonials-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .combined-testimonials-grid::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}

/* Hide default scrollbar */
.combined-testimonials-grid::-webkit-scrollbar {
    display: none;
}

.combined-testimonials-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    will-change: scroll-position;
}



/* Position buttons at the end of visible cards */
.testimonials-container {
    position: relative;
    padding: 0 60px;
}

.combined-testimonials-grid {
    padding: 0;
}

/* Navigation buttons */
.testimonials-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: calc(50% + 3rem);
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    height: 0;
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d4af37 !important;
    border: 2px solid white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-nav-btn:hover {
    background: linear-gradient(90deg, #d4af37, #b8860b);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-nav-btn i {
    font-size: 18px;
    color: white;
}

.testimonial-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



/* Ensure both card types have consistent sizing in the combined grid */
.combined-testimonials-grid .video-testimonial-card,
.combined-testimonials-grid .testimonial-card {
    min-width: 280px;
    flex-shrink: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Make video and text cards have similar heights */
.combined-testimonials-grid .video-testimonial-card {
    min-height: 180px;
    flex: 0 0 280px;
    width: 280px;
    height: 180px;
}

.combined-testimonials-grid .testimonial-card {
    min-height: 210px;
    justify-content: space-between;
}

.combined-testimonials-grid .testimonial-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.video-testimonial-card {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    flex: 0 0 280px;
    width: 280px;
    height: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Responsive sizing to match testimonial cards */
@media (min-width: 768px) {
    .combined-testimonials-grid .video-testimonial-card,
    .video-testimonial-card {
        flex: 0 0 320px;
        width: 320px;
        height: 200px;
    }
}

@media (min-width: 1024px) {
    .combined-testimonials-grid .video-testimonial-card,
    .video-testimonial-card {
        flex: 0 0 360px;
        width: 360px;
        height: 220px;
    }
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-video {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    position: relative;
    display: block;
    border: none;
}

/* Ensure video controls are visible and properly styled */
.testimonial-video::-webkit-media-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.testimonial-video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 0 0 16px 16px;
}

/* For Firefox */
.testimonial-video::-moz-media-controls {
    opacity: 1 !important;
    visibility: visible !important;
}

/* General video controls styling */
.testimonial-video {
    outline: none;
}

.testimonial-video:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.video-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.video-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.video-placeholder p {
    margin: 0;
    font-weight: 500;
    font-size: 0.7rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.video-testimonial-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.video-testimonial-info p {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Written Testimonials */
.written-testimonials-container {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide horizontal scrollbar on desktop */
@media (min-width: 1024px) {
    .testimonials-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .testimonials-grid::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}

.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

.testimonial-card {
    background: #007f86;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-width: 175px;
    flex-shrink: 0;
    color: white;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3b82f6;
    font-family: serif;
    opacity: 0.2;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    position: relative;
    border: 2px solid #3b82f6;
}

.patient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.patient-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.patient-info p {
    color: #e0f2f1;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-text {
    color: var(--muted-foreground);
    font-size: 0.7rem;
}

.testimonial-content {
    margin-bottom: 1rem;
}

.testimonial-content blockquote {
    font-style: italic;
    color: var(--foreground);
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.treatment-type {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Specific color for Dermatology treatment type */
.treatment-type:contains("Dermatology"),
.testimonial-card:has(.treatment-type:contains("Dermatology")) .treatment-type {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Alternative approach using data attribute or class */
.treatment-type.dermatology {
    background: linear-gradient(135deg, #10b981, #059669);
}

.date {
    color: var(--muted-foreground);
    font-size: 0.7rem;
}

/* Success Statistics */
.testimonials-stats {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--brand-gold);
    font-size: 1.5rem;
}

.stat-content h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content p {
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Call to Action */
.testimonials-cta {
    position: relative;
    z-index: 1;
}

.cta-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .video-testimonials-grid,
    .written-testimonials-grid,
    .combined-testimonials-grid {
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    /* Hide YouTube iframe testimonials on mobile */
    .combined-testimonials-grid iframe[src*="youtube.com"],
    .combined-testimonials-grid iframe[src*="youtu.be"],
    .testimonial-card iframe[src*="youtube.com"],
    .testimonial-card iframe[src*="youtu.be"] {
        display: none !important;
    }
    
    /* Hide parent containers of YouTube testimonials if they become empty */
    .testimonial-card:has(iframe[src*="youtube.com"]),
    .testimonial-card:has(iframe[src*="youtu.be"]) {
        display: none !important;
    }
    
    /* Keep local MP4 video testimonials visible */
    .video-testimonial-card video[src*=".mp4"],
    .video-testimonial-card video source[src*=".mp4"],
    .combined-testimonials-grid .video-testimonial-card {
        display: block !important;
    }
    
    .video-testimonial-card,
    .testimonial-card {
        padding: 0.75rem;
        min-width: 150px;
    }
    
    .combined-testimonials-grid .video-testimonial-card {
        min-width: 150px;
    }
    
    .combined-testimonials-grid .testimonial-card {
        min-width: 150px;
    }
    
    .combined-testimonials-grid .video-testimonial-card {
        min-height: 290px;
    }
    
    .combined-testimonials-grid .testimonial-card {
        min-height: 190px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Hide YouTube iframe testimonials on small mobile */
    .combined-testimonials-grid iframe[src*="youtube.com"],
    .combined-testimonials-grid iframe[src*="youtu.be"],
    .testimonial-card iframe[src*="youtube.com"],
    .testimonial-card iframe[src*="youtu.be"] {
        display: none !important;
    }
    
    /* Hide parent containers of YouTube testimonials if they become empty */
    .testimonial-card:has(iframe[src*="youtube.com"]),
    .testimonial-card:has(iframe[src*="youtu.be"]) {
        display: none !important;
    }
    
    /* Ensure local MP4 video testimonials remain visible */
    .video-testimonial-card video[src*=".mp4"],
    .video-testimonial-card video source[src*=".mp4"],
    .combined-testimonials-grid .video-testimonial-card {
        display: block !important;
    }
    
    .video-testimonial-card,
    .testimonial-card {
        min-width: 140px;
        padding: 0.625rem;
    }
    
    .combined-testimonials-grid .video-testimonial-card {
        min-width: 140px;
    }
    
    .combined-testimonials-grid .testimonial-card {
        min-width: 140px;
    }
    
    .combined-testimonials-grid .video-testimonial-card {
        min-height: 270px;
    }
    
    .combined-testimonials-grid .testimonial-card {
        min-height: 180px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ===================================== */
/* ENHANCED MOBILE RESPONSIVENESS        */
/* ===================================== */

/* Mobile First Approach - Base Mobile Styles */
@media (max-width: 768px) {
    
    /* Global Container Adjustments */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Header Mobile Enhancements */
    .header {
        backdrop-filter: blur(10px);
    }
    
    .header-content {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo-button {
        margin-left: 0;
    }
    
    .logo-img {
        height: 3.5rem;
        width: 3.5rem;
        margin-left: 0;
    }
    
    .logo-title {
        font-size: 1rem !important;
    }
    
    .mobile-nav {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .mobile-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: left;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .video-background {
        height: 100%;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .hero-content {
        padding: 1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
    
    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .read-more-btn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Section Spacing Mobile */
    section {
        padding: 3rem 0 !important;
    }
    
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    /* About Section Mobile */
    .about-story {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .story-content h2 {
        font-size: 1.5rem !important;
    }
    
    .story-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .mission-badge {
        margin: 1.5rem auto 0;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 1rem;
    }
    
    .service-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Values Section Mobile */
    .values-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 0.75rem !important;
        margin: 0 auto !important;
    }
    
    .value-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        background: var(--white) !important;
        border-radius: 1rem !important;
        border: 1px solid var(--slate-100) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .value-icon {
        margin: 0 auto 1rem auto !important;
        width: 3rem !important;
        height: 3rem !important;
    }

    .value-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .value-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* Insurance Section Mobile */
    .insurance-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .insurance-right-content {
        order: -1;
    }
    
    .insurance-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Doctors Section Mobile */
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .doctor-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .dept-slide {
        padding: 1.5rem;
    }
    
    .dept-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .dept-icon {
        margin: 0 auto 1rem;
    }
    
    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
    }
    
    /* FAQ Section Mobile */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .faq-answer p {
        color: #c9a961 !important;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col {
        padding: 1rem 0;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links li {
        font-size: 0.9rem;
    }
    
    /* Timeline Mobile */
    .emergency-timeline {
        display: block !important;
        padding: 1rem;
        order: 1;
    }
    
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-time {
        font-size: 0.8rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
}

/* Tablet Specific Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Header Tablet */
    .desktop-nav {
        gap: 0.25rem;
    }
    
    .nav-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Tablet */
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-text {
        max-width: 600px;
    }
    
    /* Services Tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    /* Values Tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    /* Doctors Tablet */
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    /* Contact Tablet */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Small Mobile Devices (phones in portrait) */
@media (max-width: 480px) {
    
    /* Ultra-compact spacing */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    /* Header Ultra Small */
    .logo-img {
        height: 3rem;
        width: 3rem;
    }
    
    .logo-title {
        font-size: 0.9rem !important;
    }
    
    /* Hero Ultra Small */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.1;
    }
    
    .hero-text {
        padding: 1rem;
        max-width: 95%;
    }
    
    .hero-description p {
        font-size: 0.85rem;
    }
    
    .read-more-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Section Headers Ultra Small */
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Cards Ultra Small */
    .service-card,
    .value-card,
    .doctor-card {
        padding: 1.25rem !important;
    }
    
    .service-title,
    .value-title {
        font-size: 1rem !important;
    }
    
    .service-description,
    .value-description {
        font-size: 0.85rem !important;
    }
    
    /* Contact Form Ultra Small */
    .contact-form-card {
        padding: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer Ultra Small */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links li {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-text {
        padding: 1rem;
        max-width: 80%;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .hero-description p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Larger touch targets */
    .nav-btn,
    .mobile-nav-btn,
    .dropdown-item,
    .mobile-dropdown-item {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .emergency-btn,
    .get-started-btn,
    .read-more-btn,
    .form-button {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Remove hover effects that don't work on touch */
    .service-card:hover,
    .value-card:hover,
    .doctor-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Enhanced focus states for accessibility */
    .nav-btn:focus,
    .mobile-nav-btn:focus,
    .form-input:focus,
    .form-textarea:focus {
        outline: 2px solid var(--brand-gold);
        outline-offset: 2px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: -webkit-optimize-contrast; /* Edge 79+ support */
        image-rendering: crisp-edges;
    }
    
    .service-icon,
    .value-icon {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Dark Mode Mobile Optimizations */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    
    .hero-text {
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }
    
    .hero-title {
        color: white;
    }
    
    .hero-description p {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .service-card,
    .value-card,
    .contact-form-card {
        background: rgba(30, 30, 30, 0.9);
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--brand-navy);
}

.notification-success .notification-content {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.notification-error .notification-content {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.notification-icon {
    color: var(--brand-navy);
    margin-top: 2px;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ========================================
   MOBILE EMERGENCY TIMELINE STYLES - ADD ONLY
   ======================================== */

/* Hide mobile timeline on desktop */
@media (min-width: 1024px) {
    .mobile-timeline-content {
        display: none;
    }
}

/* Show mobile timeline only on mobile devices */
@media (max-width: 1023px) {
    .mobile-timeline-content {
        display: none;
    }
}

/* ========================================
   DEPARTMENT MODAL STYLES
   ======================================== */

.department-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.department-modal.active {
    display: flex;
}

.department-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.department-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 85vh; /* Reduced from 90vh to ensure content fits */
    height: 85vh; /* Fixed height to ensure consistent sizing */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Navigation Arrows */
.dept-nav-arrow {
    position: fixed; /* Changed to fixed to avoid overlaying on content */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001; /* Higher z-index to ensure visibility above modal */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dept-nav-left {
    left: 10px; /* Moved further left */
}

.dept-nav-right {
    right: 10px; /* Moved further right */
}

.dept-nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dept-nav-arrow i {
    width: 20px;
    height: 20px;
    color: var(--brand-navy);
}

/* Close Button */
.dept-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dept-close-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dept-close-btn i {
    width: 16px;
    height: 16px;
    color: var(--brand-navy);
}

/* Department Content */
.department-slide {
    flex: 1; /* Take up available space */
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.02) 0%, rgba(201, 169, 97, 0.05) 100%);
}

.dept-content-wrapper {
    padding: 20px 80px 40px 80px; /* Reduced top padding from 30px to 20px to move content up */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced gap from 25px to 20px for tighter spacing */
    min-height: max-content;
}

/* Top Section - Title Only */
.dept-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* Reduced from 15px to move title up */
    margin-bottom: 15px; /* Reduced spacing to move content up */
}

.dept-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* No gap needed since no icon */
}

.dept-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Middle Section - Overview and Doctor */
.dept-middle-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.dept-overview h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

.dept-overview p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
}

.dept-doctor {
    display: flex;
    justify-content: center;
}

.doctor-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.doctor-card {
    position: relative;
    display: inline-block;
}

.doctor-image {
    width: 300px; /* Increased from 240px for larger size */
    height: 200px; /* Increased from 180px for larger size */
    border-radius: 12px; /* Slightly more rounded corners */
    object-fit: cover;
    border: none;
    box-shadow: 0 12px 40px rgba(201, 169, 97, 0.3); /* Enhanced shadow */
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    transition: transform 0.3s ease; /* Added smooth transition */
}

.doctor-image:hover {
    transform: scale(1.02); /* Subtle hover effect */
}

/* New styles for doctor info below image */
.doctor-info-below {
    margin-top: 15px;
    text-align: center;
}

.doctor-info-below h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--brand-navy);
    line-height: 1.3;
}



/* Services Section */
.dept-services-section {
    flex-shrink: 0; /* Prevent shrinking */
}

.services-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 15px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Back to 3 columns layout for department slides */
    grid-template-rows: repeat(2, 1fr); /* Back to 2 rows layout for department slides */
    gap: 15px; /* Consistent spacing */
    margin-bottom: 20px;
}

.service-item {
    background: linear-gradient(135deg, white 0%, #f5f5dc 100%); /* White and beige gradient */
    border: none;
    border-left: 4px solid var(--brand-gold);
    border-radius: 8px;
    padding: 15px 20px; /* Better padding for content */
    text-align: left; /* Left-aligned text like in the image */
    display: flex;
    align-items: center;
    min-height: 60px; /* Consistent height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for definition */
}

.service-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-navy);
    line-height: 1.3;
}

/* Bottom Section - Statistics and Contact */
.dept-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px; /* Reduced gap */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Statistics Section */
.dept-statistics h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 15px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    background: transparent; /* Same as service cards */
    border-radius: 12px;
    padding: 20px 15px;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contact Section */
.dept-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 15px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(201, 169, 97, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    width: 18px;
    height: 18px;
    color: var(--brand-gold);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-navy);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .department-modal {
        padding: 10px;
    }
    
    .department-modal-content {
        max-height: 90vh; /* More height on mobile */
        height: 90vh;
        border-radius: 16px;
    }
    
    .dept-content-wrapper {
        padding: 20px 60px 30px 60px; /* Increased horizontal padding to avoid arrows on mobile */
        gap: 18px; /* Reduced gap for mobile */
    }
    
    .dept-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .dept-icon i {
        width: 30px;
        height: 30px;
    }
    
    .dept-title {
        font-size: 1.8rem;
    }
    
    /* Stack middle section vertically on mobile */
    .dept-middle-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dept-doctor {
        order: -1; /* Doctor image first on mobile */
    }
    
    .doctor-image {
        width: 170px; /* Horizontal rectangle for mobile */
        height: 280px; /* Horizontal rectangle for mobile */
    }
    
    .doctor-overlay {
        padding: 12px 8px 8px 8px;
    }
    
    .doctor-overlay h4 {
        font-size: 0.9rem;
    }
    
    .doctor-overlay p {
        font-size: 0.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-template-rows: auto; /* Auto rows on mobile */
        gap: 12px;
    }
    
    .service-item {
        padding: 12px 16px;
        min-height: 50px; /* Smaller height on mobile */
    }
    
    /* Stack bottom section vertically on mobile */
    .dept-bottom-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 10px 12px;
    }
    
    .dept-nav-arrow {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.98); /* More opaque for mobile */
        position: fixed; /* Keep fixed positioning on mobile */
    }
    
    .dept-nav-left {
        left: 5px; /* Moved further left on mobile */
    }
    
    .dept-nav-right {
        right: 5px; /* Moved further right on mobile */
    }
    
    .dept-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Medium screens - 2 column layout for services */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        grid-template-rows: repeat(3, 1fr); /* 3 rows for 6 items in department slides */
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .dept-nav-arrow {
        display: flex; /* Show arrows on small screens too */
        width: 40px;
        height: 40px;
        position: fixed; /* Keep fixed positioning on small screens */
    }
    
    .dept-nav-left {
        left: 3px; /* Moved to extreme left on small screens */
    }
    
    .dept-nav-right {
        right: 3px; /* Moved to extreme right on small screens */
    }
    
    .dept-content-wrapper {
        padding: 15px 50px 25px 50px; /* Increased horizontal padding for small screens too */
        gap: 15px;
    }
    
    .dept-title {
        font-size: 1.6rem;
    }
    
    .doctor-image {
        width: 150px; /* Horizontal rectangle for small screens */
        height: 240px; /* Horizontal rectangle for small screens */
    }
    
    .doctor-overlay {
        padding: 10px 6px 6px 6px;
    }
    
    .doctor-overlay h4 {
        font-size: 0.8rem;
    }
    
    .doctor-overlay p {
        font-size: 0.7rem;
    }
    
    .service-item {
        padding: 8px 10px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 8px 10px;
    }
    
    .contact-item i {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   FLOATING CONTACT POPUP
   ======================================== */

.floating-contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.floating-contact-popup.show {
    display: flex;
}

.floating-contact-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.floating-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.floating-close-btn:hover {
    background: var(--gray-200);
    transform: scale(1.1);
}

.floating-close-btn i {
    width: 18px;
    height: 18px;
    color: var(--gray-600);
}

.floating-form-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.floating-form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 8px 0;
}

.floating-form-header p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.floating-form-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.floating-form-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
}

.floating-form-tab.active {
    background: var(--white);
    color: var(--brand-navy);
    border-bottom: 2px solid var(--brand-gold);
}

.floating-form-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand-navy);
}

.floating-form-tab i {
    width: 16px;
    height: 16px;
}

.floating-contact-form {
    display: none;
}

.floating-contact-form.active {
    display: block;
}

.floating-form-body {
    padding: 25px 30px 30px 30px;
}

.floating-contact-popup .form-group {
    margin-bottom: 20px;
    position: relative;
    overflow: visible !important;
}

.floating-contact-popup .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    position: relative;
    overflow: visible !important;
}

.floating-contact-popup .form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.floating-contact-popup .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.floating-contact-popup .form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--brand-gold);
    display: inline-block;
}

.floating-contact-popup .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.floating-contact-popup .form-input,
.floating-contact-popup .form-select,
.floating-contact-popup .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.floating-contact-popup .form-input:focus,
.floating-contact-popup .form-select:focus,
.floating-contact-popup .form-textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.floating-contact-popup .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.floating-contact-popup .emergency-textarea {
    min-height: 120px;
}

.floating-contact-popup .submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.floating-contact-popup .submit-btn:hover {
    background: linear-gradient(135deg, var(--brand-navy-light), var(--brand-navy));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-contact-popup .emergency-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.floating-contact-popup .emergency-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.floating-contact-popup .form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 15px 0 0 0;
}

/* Phone input wrapper specific styles for popups */
.floating-contact-popup .phone-input-wrapper {
    position: relative;
    z-index: 30;
    overflow: visible !important;
}

.floating-contact-popup .country-code-select {
    z-index: 31;
}

.floating-contact-popup .country-code-select:focus,
.floating-contact-popup .country-code-select:active {
    z-index: 32;
}

/* Global dropdown positioning fixes */
html, body {
    scroll-behavior: smooth;
}

/* Ensure all form sections have adequate space */
.contact-section .form-container,
.floating-contact-form {
    min-height: 70vh;
    padding-bottom: 4rem;
}

/* Additional spacing for forms in popups */
.floating-contact-popup .popup-content {
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 3rem;
}

/* Force dropdown direction globally */
select.country-code-select {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* Ensure options render below select */
select.country-code-select:focus,
select.country-code-select:active {
    position: relative !important;
    z-index: 999 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-contact-popup {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .floating-contact-content {
        margin: 0;
        max-width: 100%;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .floating-form-header {
        padding: 20px 20px 15px 20px;
        flex-shrink: 0;
    }
    
    .floating-form-header h3 {
        font-size: 1.3rem;
    }
    
    .floating-form-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .floating-form-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 30px;
    }
    
    .floating-contact-popup .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .floating-contact-popup .submit-btn {
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-light));
        margin-top: 20px;
        margin-bottom: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    
    .floating-contact-popup .emergency-btn {
        background: linear-gradient(135deg, #dc2626, #ef4444) !important;
        position: sticky !important;
        bottom: 0 !important;
        box-shadow: 0 -2px 10px rgba(220, 38, 38, 0.2);
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .floating-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    .floating-close-btn i {
        width: 16px;
        height: 16px;
    }
}

/* Extra mobile styles for very small screens */
@media (max-width: 480px) {
    .floating-contact-popup {
        padding: 5px;
        padding-top: 10px;
    }
    
    .floating-contact-content {
        border-radius: 12px;
        max-height: calc(100vh - 20px);
    }
    
    .floating-form-header {
        padding: 15px 15px 10px 15px;
    }
    
    .floating-form-body {
        padding: 15px;
        padding-bottom: 25px;
    }
    
    .floating-contact-popup .submit-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
        margin-top: 15px;
        position: sticky;
        bottom: 0;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
    }
    
    .floating-contact-popup .emergency-btn {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
        box-shadow: 0 -3px 15px rgba(220, 38, 38, 0.25) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 10 !important;
    }
    
    /* Ensure form sections don't take too much space */
    .floating-contact-popup .form-section {
        margin-bottom: 15px;
    }
    
    .floating-contact-popup .form-group {
        margin-bottom: 15px;
    }
    
    /* Phone input mobile styles */
    .phone-input-wrapper {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .custom-dropdown {
        flex: none !important;
        width: 100% !important;
        min-width: auto !important;
        margin-bottom: 0.5rem;
    }
    
    .country-code-select {
        flex: none !important;
        width: 100% !important;
        min-width: auto !important;
        margin-bottom: 0.5rem;
    }
    
    .phone-number-input {
        width: 100% !important;
    }

    /* Emergency form specific mobile styles */
    .floating-contact-form[data-form="emergency"] .submit-btn {
        background: linear-gradient(135deg, #dc2626, #ef4444) !important;
        color: white !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
        order: 999 !important; /* Ensure it appears last */
    }
    
    .floating-form-body {
        display: flex !important;
        flex-direction: column !important;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Phone number validation styles */
.form-input.phone-valid {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05);
}

.form-input.phone-invalid {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-input.phone-valid:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.phone-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


