/**
 * Mediaura Wellness Centre - Premium Frontend Styles
 * Primary Color: #0F6B63 (Teal)
 * Premium Medical Brand Design - Enhanced Edition
 */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --primary: #0F6B63;
    --primary-dark: #0a4a44;
    --primary-light: #128c82;
    --primary-lighter: #E0F2F1;
    --primary-subtle: #F0F9F8;
    --secondary: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #111827;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-500: #9CA3AF;
    --gray-400: #D1D5DB;
    --gray-300: #E5E7EB;
    --gray-200: #F3F4F6;
    --gray-100: #F9FAFB;
    --white: #FFFFFF;
    
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(15, 107, 99, 0.15);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}/* =====================================================
   PRELOADER - Elegant Medical Premium
   ===================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

/* Elegant Logo Animation */
.preloader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.logo-circle {
    position: absolute;
    inset: 0;
    border: 3px solid var(--primary-lighter);
    border-radius: 50%;
    animation: logoCircle 2s ease-in-out infinite;
}

.logo-circle-inner {
    position: absolute;
    inset: 8px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: logoCircleInner 2s ease-in-out infinite;
}

.logo-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    opacity: 0;
    animation: logoCross 0.6s ease-out 0.5s forwards;
}

.logo-cross::before,
.logo-cross::after {
    content: '';
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
}

.logo-cross::before {
    width: 100%;
    height: 8px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo-cross::after {
    width: 8px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Elegant Text */
.preloader-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.6s ease-out 0.3s forwards;
}

.preloader-brand span {
    color: var(--primary);
    font-weight: 800;
}

.preloader-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.6s ease-out 0.5s forwards;
}

/* Progress Bar */
.preloader-progress {
    width: 120px;
    height: 2px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 24px auto 0;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.7s forwards;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    animation: progressBar 1.5s ease-out 0.8s forwards;
}

/* Animations */
@keyframes logoCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoCircleInner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logoCross {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Hide main content initially */
body.loading {
    overflow: hidden;
}
/* =====================================================
   PREMIUM BUTTONS
   ===================================================== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(15, 107, 99, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 107, 99, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-premium-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-premium-outline-dark {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-premium-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-premium-white {
    background: var(--white);
    color: var(--primary);
}

.btn-premium-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-premium-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* =====================================================
   PREMIUM HERO
   ===================================================== */
.hero-premium {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a4a44 0%, #0F6B63 50%, #128c82 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}

.hero-premium-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-premium {
    color: var(--white);
}

.hero-eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title-premium {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description-premium {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-avatars {
    display: flex;
    align-items: center;
}

.trust-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-left: -12px;
    object-fit: cover;
}

.trust-avatars img:first-child {
    margin-left: 0;
}

.trust-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    margin-left: -12px;
    border: 3px solid var(--primary);
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 1rem;
    color: var(--white);
}

.trust-text span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.hero-visual {
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.hero-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}

.card-experience {
    top: 10%;
    left: -30px;
}

.card-rating {
    bottom: 15%;
    right: -20px;
    animation-delay: -3s;
}

.card-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.card-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.stars {
    color: #F59E0B;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}/* =====================================================
   STATS - Simple & Clean (FIXED)
   ===================================================== */
.stats-section {
    background: var(--white);
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
/* =====================================================
   PREMIUM SERVICES - DARK (FIXED)
   ===================================================== */
.services-premium {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 120px 0;
    position: relative;
}

.services-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.section-header-premium {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header-premium.center {
    text-align: center;
}

.section-header-premium.center .section-subtitle-premium {
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title-premium {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle-premium {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    line-height: 1.7;
}

.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-premium-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-premium-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-premium-card:hover::before {
    transform: scaleX(1);
}

.service-premium-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 107, 99, 0.3);
    transition: transform 0.3s ease;
}

.service-premium-card:hover .service-premium-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-premium-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.875rem;
}

.service-premium-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-premium-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-premium-link:hover {
    gap: 0.75rem;
    color: var(--white);
}

.service-premium-link svg {
    transition: transform 0.3s ease;
}

.service-premium-link:hover svg {
    transform: translateX(4px);
}

/* =====================================================
   WHY PREMIUM (FIXED)
   ===================================================== */
.why-premium {
    background: linear-gradient(180deg, #0a1628 0%, #0f1f3d 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.why-premium-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15,107,99,0.12) 0%, rgba(15,107,99,0.06) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.why-premium-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.why-premium-content {
    padding-right: 2rem;
}

.why-premium-content .section-eyebrow {
    color: #4dd8cc;
}

.why-premium-content .section-title-premium {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.why-premium-text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.why-premium-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-feature {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-feature:hover {
    background: rgba(255,255,255,0.05);
}

.why-feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.why-feature:hover .why-feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.why-feature-text {
    display: flex;
    flex-direction: column;
}

.why-feature-text strong {
    font-size: 1.0625rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.why-feature-text span {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
}

.why-premium-visual {
    position: relative;
}

.why-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.why-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.why-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 1.75rem 2.25rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 107, 99, 0.3);
}

.why-badge-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.why-badge-text {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}/* =====================================================
   DOCTORS PREMIUM (FIXED)
   ===================================================== */
.doctors-premium {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.doctors-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,107,99,0.2), transparent);
}

.doctors-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15,107,99,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.doctors-premium .container {
    position: relative;
    z-index: 1;
}

.doctors-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.doctor-premium-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.doctor-premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border-color: rgba(15, 107, 99, 0.2);
}

.doctor-premium-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.doctor-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doctor-premium-card:hover .doctor-premium-image img {
    transform: scale(1.05);
}

.doctor-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,107,99,0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-premium-card:hover .doctor-premium-overlay {
    opacity: 1;
}

.doctor-premium-info {
    padding: 1.75rem;
    text-align: center;
    background: var(--white);
}

.doctor-premium-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.doctor-premium-specialty {
    font-size: 0.9375rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.center-action {
    text-align: center;
    margin-top: 2rem;
}

/* Decorative background pattern for doctors section */
.doctors-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(15,107,99,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15,107,99,0.03) 0%, transparent 50%);
    pointer-events: none;
}
/* =====================================================
   TESTIMONIALS PREMIUM (FIXED & UPDATED)
   ===================================================== */
.testimonials-premium {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1f2e 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Background Circle Decoration */
.testimonials-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15,107,99,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-premium-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left Text : Right Card */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Navigation Buttons */
.testimonial-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10; /* Ensures buttons are clickable */
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Slider Container */
.testimonials-slider {
    position: relative;
    min-height: 300px; /* Prevents jumping height */
}

/* The Card Style */
.testimonial-card {
    background: rgba(255,255,255,0.03); /* Glass effect */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    
    /* Animation Logic */
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    transform: translateY(10px);
}

/* Active State (Triggered by JS) */
.testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* NEW: Icon Styling (Replaces Image) */
.testimonial-avatar-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light); /* Teal Icon */
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-info strong {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-author-info span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .testimonials-premium-inner {
        grid-template-columns: 1fr; /* Stack vertically on tablet/mobile */
        text-align: center;
    }
    
    .testimonial-nav {
        justify-content: center; /* Center buttons on mobile */
    }
    
    .testimonial-author {
        justify-content: center; /* Center author info */
        text-align: left;
    }
}
/* =====================================================
   CTA PREMIUM
   ===================================================== */
.cta-premium {
    background: var(--primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-premium-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-premium-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-premium-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-premium-text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}/* =====================================================
   BLOG - Clean Cards (FIXED)
   ===================================================== */
.blog-section {
    background: linear-gradient(180deg, #0f172a 0%, #1a2540 100%);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    color: var(--primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero-premium-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title-premium {
        font-size: 3rem;
    }
    
    .hero-description-premium {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .stats-premium-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .stat-premium-divider {
        display: none;
    }
    
    .services-premium-grid,
    .doctors-premium-grid,
    .blog-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-premium-inner,
    .testimonials-premium-inner {
        grid-template-columns: 1fr;
    }
    
    .why-premium-bg {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title-premium {
        font-size: 2.5rem;
    }
    
    .services-premium-grid,
    .doctors-premium-grid,
    .blog-premium-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-premium-number {
        font-size: 2.5rem;
    }
    
    .section-title-premium {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.text-primary { color: var(--primary); }
.text-gray { color: var(--gray-600); }
.text-white { color: var(--white); }

/* =====================================================
   Container
   ===================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 960px;
}

/* =====================================================
   Buttons - Enhanced Micro-interactions
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(15, 107, 99, 0.35), 0 0 0 rgba(15, 107, 99, 0);
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 107, 99, 0.45), 0 0 20px rgba(15, 107, 99, 0.2);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width var(--transition-base);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15, 107, 99, 0.2);
}

.btn-outline:hover::after {
    width: 100%;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 255, 255, 0.3);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Button text shift on hover */
.btn span {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.btn:hover span {
    transform: translateX(2px);
}

/* =====================================================
   Header - Glassmorphism & Scroll Behavior
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all var(--transition-base);
    transform: translateY(0);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(229, 231, 235, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 107, 99, 0.3);
    transition: all var(--transition-base);
}

.logo:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(15, 107, 99, 0.4);
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform var(--transition-fast);
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* =====================================================
   Hero Section - Atmospheric Depth
   ===================================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Animated gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(18, 140, 130, 0.3) 0%, transparent 60%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 0;
}

/* Soft light orbs */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
}

/* Floating particles layer */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    animation-delay: -7s;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(30px, -30px) scale(1.1); opacity: 0.8; }
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

/* Staggered text reveal */
.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 2px 30px rgba(0,0,0,0.1);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: var(--radius-xl);
    z-index: -1;
    filter: blur(20px);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-image:hover img {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Stats Bar - Floating Cards
   ===================================================== */
.stats-bar {
    background: transparent;
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transform: translateY(0);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stats-grid:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--gray-50);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: transform var(--transition-bounce);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.stat-item:hover .stat-label {
    color: var(--primary);
}

/* =====================================================
   Section Styles - Reveal on Scroll
   ===================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-subtle);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.section-subtitle:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 107, 99, 0.2);
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    transition: transform var(--transition-base);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =====================================================
   Services Section - 3D Card Lift
   ===================================================== */
.services-section {
    background: var(--gray-100);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, var(--primary-subtle) 0%, transparent 100%);
    transition: height var(--transition-base);
    z-index: 0;
}

.service-card:hover {
    transform: perspective(1000px) translateZ(20px) translateY(-8px);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(15, 107, 99, 0.1);
    border-color: var(--primary-lighter);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(15, 107, 99, 0.3);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.service-card:hover .service-title {
    color: var(--primary);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
    transition: gap var(--transition-fast);
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link:hover::after {
    width: 100%;
}

/* =====================================================
   Doctors Section - Fixed Grid & Cards
   ===================================================== */
.doctors-grid {
    display: grid;
    /* Auto-fill creates responsive columns that are at least 280px wide */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    height: 100%; /* Forces all cards to be equal height */
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-lighter);
}

.doctor-image-wrapper {
    position: relative;
    height: 300px; /* Fixed height for image area */
    overflow: hidden;
    background: var(--gray-200);
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    object-position: top center; /* Focus on face */
    transition: transform 0.6s ease;
}

.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.08);
}

.doctor-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This pushes the buttons to the bottom */
    text-align: center;
}

.doctor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.doctor-specialization {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



/* Button Wrapper */
.doctor-actions {
    margin-top: auto; /* Pushes to bottom of flex container */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
/* =====================================================
   Appointment Section - Split Layout
   ===================================================== */
.appointment-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.appointment-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.appointment-content .section-title {
    color: var(--white);
}

.appointment-content .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.appointment-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(0);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.appointment-form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.appointment-form h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.form-control:focus + .form-label,
.form-group:focus-within .form-label {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--gray-800);
}

.form-control:hover {
    border-color: var(--gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.form-control:focus::placeholder {
    color: var(--gray-500);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
    transition: color var(--transition-fast);
}

.form-control:focus ~ .form-hint {
    color: var(--primary);
}

/* =====================================================
   Blog Section - Magazine Cards
   ===================================================== */
.blog-section {
    background: linear-gradient(180deg, #0f172a 0%, #1a2540 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    background: var(--gray-200);
    position: relative;
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    position: relative;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-meta span {
    color: var(--primary);
}

.blog-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
    position: relative;
}

.blog-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.blog-link:hover {
    gap: 0.75rem;
}

.blog-link:hover::after {
    width: 100%;
}

/* =====================================================
   Contact Section - Interactive Map
   ===================================================== */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.contact-item:hover {
    background: var(--white);
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.contact-details h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.contact-details p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.contact-item:hover .contact-details p {
    color: var(--primary);
}

.contact-map {
    height: 100%;
    min-height: 400px;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

.contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
}

.contact-map:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: filter var(--transition-base);
}

.contact-map:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* =====================================================
   Page Header - Parallax Depth
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 30%);
    animation: gradientShift 15s ease-in-out infinite;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

/* =====================================================
   Alert Messages
   ===================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    animation: slideIn 0.4s ease-out;
    border: 1px solid transparent;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #D1FAE5;
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #991B1B;
}

/* =====================================================
   Footer - Layered Depth
   ===================================================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 1.25rem;
    transition: color var(--transition-fast);
}

.footer-brand:hover .logo-text {
    color: var(--primary-lighter);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.footer-social a:hover::before {
    transform: translateY(0);
}

.footer-social a i,
.footer-social a svg {
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.footer-links:hover .footer-title::after {
    width: 50px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all var(--transition-fast);
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--primary);
}

.footer-bottom p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.875rem;
}

/* =====================================================
   About Page Styles
   ===================================================== */
.about-mission {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: all var(--transition-base);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, transparent 50%);
    border-radius: calc(var(--radius-xl) + 20px);
    z-index: -1;
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-subtle);
    transition: width var(--transition-base);
    z-index: 0;
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.value-card:hover::before {
    width: 100%;
}

.value-card h4,
.value-card p {
    position: relative;
    z-index: 1;
}

.value-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.value-card:hover h4 {
    color: var(--primary);
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

/* Why Choose Us */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-choose-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.why-choose-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.why-choose-card:hover::after {
    transform: scaleX(1);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    font-size: 1.75rem;
    transition: all var(--transition-bounce);
}

.why-choose-card:hover .why-choose-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(15, 107, 99, 0.3);
}

.why-choose-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.why-choose-card:hover h3 {
    color: var(--primary);
}

.why-choose-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   PREMIUM DOCTORS REDESIGN - Enhanced
   ===================================================== */

.premium-doctors-section {
    background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
    padding-top: 110px;
    padding-bottom: 110px;
    position: relative;
}

.premium-doctors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

/* Better breathing in grid */
.doctors-grid {
    gap: 2rem;
}

/* Card Shape Refinement */
.premium-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 0 0 0 rgba(15, 107, 99, 0);
    transition: box-shadow var(--transition-base);
    pointer-events: none;
}

/* Controlled hover (not too dramatic) */
.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.premium-card:hover::before {
    box-shadow: 0 0 0 2px var(--primary-lighter);
}

/* Image Proportion Fix */
.premium-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.premium-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.premium-card:hover .premium-image::after {
    opacity: 1;
}

.premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.premium-card:hover .premium-image img {
    transform: scale(1.08);
}

/* Clean Specialization Badge */
.doctor-specialization-badge {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all var(--transition-base);
}

.premium-card:hover .doctor-specialization-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content Area Balance */
.premium-info {
    padding: 2rem 1.8rem 2.2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Doctor Name */
.premium-info .doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.premium-card:hover .doctor-name {
    color: var(--primary);
}

/* Bio */
.doctor-bio-preview {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 60px;
    transition: color var(--transition-fast);
}

.premium-card:hover .doctor-bio-preview {
    color: var(--gray-700);
}

/* Meta Section */
.doctor-meta-box {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.2rem;
    margin-bottom: 1.6rem;
    transition: border-color var(--transition-fast);
}

.premium-card:hover .doctor-meta-box {
    border-color: var(--primary-lighter);
}

.doctor-meta-item {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.premium-card:hover .doctor-meta-item {
    color: var(--primary);
}

.doctor-meta-item i {
    color: var(--primary);
    margin-right: 6px;
    transition: transform var(--transition-bounce);
}

.premium-card:hover .doctor-meta-item i {
    transform: scale(1.2);
}

/* Push button perfectly to bottom */
.premium-info .btn {
    margin-top: auto;
    transform: translateY(0);
    transition: all var(--transition-base);
}

.premium-card:hover .btn {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 107, 99, 0.35);
}

/* CTA remains clean */
.premium-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.premium-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.premium-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.premium-cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.premium-cta-box p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-inner,
    .appointment-inner,
    .contact-inner,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
    }
    
    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-200);
        transition: all var(--transition-fast);
    }
    
    .nav-link:hover {
        padding-left: 10px;
        color: var(--primary);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .doctors-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .values-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .premium-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
    
    .premium-info {
        padding: 1.5rem;
    }
}

/* =====================================================
   Scroll Reveal Animations
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; }

/* =====================================================
   Utility Animations
   ===================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Selection color */
::selection {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* --- MOBILE RESPONSIVENESS FIX --- */
@media screen and (max-width: 768px) {
    /* Force main containers to be 100% width */
    .container, .wrapper, .main-content {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevents side-scrolling */
    }

    /* Stack flexbox items vertically (like sidebars/columns) */
    .row, .header-inner, .footer-content {
        flex-direction: column !important;
        align-items: center;
    }

    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix tables (allow scrolling if too wide) */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =====================================================
   Doctor Details Modal (Popup)
   ===================================================== */
.doctor-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Dark overlay */
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-modal.active {
    display: flex;
    opacity: 1;
}

.doctor-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    max-height: 90vh; /* Prevents modal from being taller than screen */
    box-shadow: var(--shadow-2xl);
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

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

/* Modal Left Side (Image) */
.modal-left {
    width: 40%;
    background: var(--gray-100);
    position: relative;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Right Side (Content) */
.modal-right {
    width: 60%;
    padding: 3rem;
    overflow-y: auto; /* Scrollbar only for text if long */
}

.modal-right h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.modal-right span {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

/* Preserves Line Breaks from Database */
.modal-full-bio {
    white-space: pre-line; 
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.8;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .doctor-modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .modal-left {
        width: 100%;
        height: 250px; /* Fixed height for mobile image */
    }
    
    .modal-right {
        width: 100%;
        padding: 1.5rem;
    }
}