:root {
            --primary: #0d9488;
            --primary-dark: #0f766e;
            --primary-light: #5eead4;
            --primary-soft: #ccfbf1;
            --secondary: #0ea5e9;
            --accent: #f59e0b;
            --bg: #ffffff;
            --bg-soft: #f8fafc;
            --bg-muted: #f1f5f9;
            --text: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 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);
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-soft); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

        /* ===== TOP BAR ===== */
        .top-bar {
            background: var(--primary-dark);
            color: white;
            padding: 0.5rem 4%;
            font-size: 0.8rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .top-bar-left { display: flex; gap: 1.5rem; }
        .top-bar-left span { display: flex; align-items: center; gap: 0.4rem; opacity: 0.9; }
        .top-bar-left i { font-size: 0.75rem; }
        .top-bar-right { display: flex; gap: 1rem; }
        .top-bar-right a { color: white; opacity: 0.8; transition: opacity 0.3s; }
        .top-bar-right a:hover { opacity: 1; }

        /* ===== NAVBAR ===== */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-light);
            padding: 0 4%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 72px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            text-decoration: none;
        }
        .logo-icon {
            width: 40px; height: 40px;
            border-radius: var(--radius);
            overflow: hidden;
            display: block;
            flex-shrink: 0;
        }
        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .logo-text { display: flex; flex-direction: column; }
        .logo-text span:first-child {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem; font-weight: 700; color: var(--text);
            line-height: 1.2;
        }
        .logo-text span:last-child {
            font-size: 0.65rem; color: var(--text-muted);
            letter-spacing: 2px; text-transform: uppercase;
        }
        .nav-links {
            display: flex; gap: 2.5rem; list-style: none;
        }
        .nav-links li.nav-action { display: none; }
        .nav-links a {
            color: var(--text-secondary); text-decoration: none;
            font-size: 0.9rem; font-weight: 500;
            transition: color 0.3s; position: relative; padding: 0.3rem 0;
        }
        .nav-links a::after {
            content: ''; position: absolute; bottom: -2px; left: 0;
            width: 0; height: 2px; background: var(--primary);
            transition: width 0.3s ease;
        }
        .nav-links a:hover, .nav-links a.active { color: var(--primary); }
        .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
        .nav-cta {
            display: flex; align-items: center; gap: 1rem;
        }
        .btn-primary {
            padding: 0.7rem 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white; text-decoration: none; border: none; cursor: pointer;
            border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
            transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(13,148,136,0.3);
        }
        .btn-secondary {
            padding: 0.7rem 1.5rem; background: transparent;
            color: var(--primary); text-decoration: none;
            border: 1.5px solid var(--primary); border-radius: var(--radius);
            font-size: 0.85rem; font-weight: 600; cursor: pointer;
            transition: all 0.3s;
        }
        .btn-secondary:hover { background: var(--primary-soft); }
        .btn-white {
            padding: 0.9rem 2rem; background: white; color: var(--primary);
            text-decoration: none; border: none; border-radius: var(--radius);
            font-size: 0.9rem; font-weight: 600; cursor: pointer;
            transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
        }
        .btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
        .mobile-toggle {
            display: none; background: none; border: none;
            font-size: 1.3rem; color: var(--text); cursor: pointer;
        }

        /* ===== HERO ===== */
        .hero {
            display: grid; grid-template-columns: 1fr 1fr;
            min-height: calc(100vh - 110px); align-items: center;
            padding: 0 4%; gap: 3rem; position: relative; overflow: hidden;
        }
        .hero-bg-shape {
            position: absolute; top: -10%; right: -5%;
            width: 600px; height: 600px;
            background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
            z-index: 0; pointer-events: none;
        }
        .hero-content { position: relative; z-index: 1; }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 0.5rem;
            padding: 0.4rem 1rem; background: var(--primary-soft);
            color: var(--primary-dark); border-radius: 50px;
            font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
        }
        .hero-badge i { font-size: 0.7rem; }
        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700; line-height: 1.15;
            margin-bottom: 1.2rem; color: var(--text);
        }
        .hero h1 em {
            font-style: normal;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-text-fill-color: transparent;
        }
        .hero-desc {
            color: var(--text-secondary); font-size: 1.05rem;
            max-width: 480px; margin-bottom: 2rem; line-height: 1.8;
        }
        .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
        .hero-stats {
            display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem;
            border-top: 1px solid var(--border-light);
        }
        .hero-stat h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2rem; color: var(--primary); font-weight: 700;
        }
        .hero-stat p { font-size: 0.8rem; color: var(--text-muted); }
        .hero-image {
            position: relative; z-index: 1;
            display: flex; justify-content: center; align-items: center;
        }
        .hero-image img {
            width: 100%; max-width: 550px; border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl); object-fit: cover;
        }
        .hero-floating-card {
            position: absolute; background: white;
            border-radius: var(--radius); padding: 1rem 1.5rem;
            box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.8rem;
        }
        .hero-floating-card.card-1 {
            top: 10%; left: -20px;
            animation: float 4s ease-in-out infinite;
        }
        .hero-floating-card.card-2 {
            bottom: 15%; right: -10px;
            animation: float 4s ease-in-out infinite reverse;
        }
        .float-icon {
            width: 40px; height: 40px; border-radius: 50%;
            background: var(--primary-soft); display: flex;
            align-items: center; justify-content: center;
            color: var(--primary); font-size: 0.9rem;
        }
        .float-text h4 { font-size: 0.85rem; font-weight: 600; }
        .float-text p { font-size: 0.75rem; color: var(--text-muted); }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* ===== SECTIONS ===== */
        section { padding: 5rem 4%; }
        .section-header {
            text-align: center; max-width: 600px; margin: 0 auto 3rem;
        }
        .section-label {
            display: inline-flex; align-items: center; gap: 0.5rem;
            padding: 0.3rem 1rem; background: var(--primary-soft);
            color: var(--primary-dark); border-radius: 50px;
            font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
            text-transform: uppercase; margin-bottom: 1rem;
        }
        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
            margin-bottom: 0.8rem; color: var(--text);
        }
        .section-subtitle {
            color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
        }

        /* ===== SERVICES ===== */
        .services { background: var(--bg-soft); }
        .services-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem; max-width: 1200px; margin: 0 auto;
        }
        .service-card {
            background: white; border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); padding: 2rem;
            transition: all 0.4s ease; cursor: pointer;
        }
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-soft);
        }
        .service-icon {
            width: 56px; height: 56px; border-radius: var(--radius);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; margin-bottom: 1.2rem;
            transition: all 0.3s;
        }
        .service-card:nth-child(1) .service-icon { background: #dbeafe; color: #2563eb; }
        .service-card:nth-child(2) .service-icon { background: #dcfce7; color: #16a34a; }
        .service-card:nth-child(3) .service-icon { background: #fef3c7; color: #d97706; }
        .service-card:nth-child(4) .service-icon { background: #fce7f3; color: #db2777; }
        .service-card:nth-child(5) .service-icon { background: #e0e7ff; color: #4f46e5; }
        .service-card:nth-child(6) .service-icon { background: #ccfbf1; color: #0d9488; }
        .service-card:nth-child(7) .service-icon { background: #fde68a; color: #b45309; }
        .service-card:nth-child(8) .service-icon { background: #edd5ff; color: #7c3aed; }
        .service-card:hover .service-icon { transform: scale(1.1); }
        .service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
        .service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
        .service-link {
            display: inline-flex; align-items: center; gap: 0.3rem;
            margin-top: 1rem; color: var(--primary); font-size: 0.85rem;
            font-weight: 600; text-decoration: none; transition: gap 0.3s;
        }
        .service-link:hover { gap: 0.6rem; }
        .more-text { display: none; }
        .service-card.expanded .more-text { display: inline; }

        /* ===== ABOUT / WHY US ===== */
        .about-grid {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: center;
        }
        .about-image { position: relative; }
        .about-image img {
            width: 100%; border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
        }
        .about-image::before {
            content: ''; position: absolute; top: -20px; left: -20px;
            width: 100%; height: 100%;
            border: 3px solid var(--primary); border-radius: var(--radius-xl);
            z-index: -1; opacity: 0.3;
        }
        .about-content h2 { margin-bottom: 1rem; }
        .about-content > p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.8; }
        .about-checklist { list-style: none; margin-bottom: 2rem; }
        .about-checklist li {
            display: flex; align-items: center; gap: 0.8rem;
            margin-bottom: 0.8rem; font-size: 0.95rem;
        }
        .about-checklist i {
            width: 24px; height: 24px; border-radius: 50%;
            background: var(--primary-soft); color: var(--primary);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.7rem;
        }

        /* ===== DOCTORS ===== */
        .doctors { background: var(--bg-soft); }
        .doctors-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem; max-width: 1100px; margin: 0 auto;
        }
        .doctor-card {
            background: white; border-radius: var(--radius-lg);
            overflow: hidden; border: 1px solid var(--border-light);
            transition: all 0.4s ease;
        }
        .doctor-card:hover {
            transform: translateY(-5px); box-shadow: var(--shadow-xl);
        }
        .doctor-image { position: relative; aspect-ratio: 1; overflow: hidden; }
        .doctor-image img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform 0.5s ease;
        }
        .doctor-card:hover .doctor-image img { transform: scale(1.05); }
        .doctor-social {
            position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
            display: flex; gap: 0.5rem; opacity: 0; transition: all 0.4s ease;
        }
        .doctor-card:hover .doctor-social { opacity: 1; }
        .doctor-social a {
            width: 36px; height: 36px; border-radius: 50%;
            background: white; display: flex; align-items: center; justify-content: center;
            color: var(--primary); font-size: 0.85rem; text-decoration: none;
            box-shadow: var(--shadow); transition: all 0.3s;
        }
        .doctor-social a:hover { background: var(--primary); color: white; }
        .doctor-info { padding: 1.5rem; text-align: center; }
        .doctor-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
        .doctor-info p {
            font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 0.5rem;
        }
        .doctor-rating {
            display: flex; align-items: center; justify-content: center;
            gap: 0.3rem; font-size: 0.8rem; color: var(--accent);
        }
        .doctor-rating span { color: var(--text-muted); }

        /* ===== APPOINTMENT ===== */
        .appointment {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white; position: relative; overflow: hidden;
        }
        .appointment::before {
            content: ''; position: absolute; top: -50%; right: -20%;
            width: 600px; height: 600px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        }
        .appointment-grid {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 4rem; max-width: 1100px; margin: 0 auto;
            align-items: center; position: relative; z-index: 1;
        }
        .appointment-content h2 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem;
        }
        .appointment-content > p { opacity: 0.9; margin-bottom: 2rem; line-height: 1.7; }
        .appointment-features { display: flex; flex-direction: column; gap: 1rem; }
        .appointment-feature {
            display: flex; align-items: center; gap: 1rem;
            background: rgba(255,255,255,0.1); padding: 1rem 1.2rem;
            border-radius: var(--radius); backdrop-filter: blur(10px);
        }
        .appointment-feature i { font-size: 1.2rem; opacity: 0.9; }
        .appointment-feature h4 { font-size: 0.9rem; font-weight: 600; }
        .appointment-feature p { font-size: 0.8rem; opacity: 0.8; }
        .appointment-form {
            background: white; border-radius: var(--radius-xl);
            padding: 2.5rem; color: var(--text);
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        }
        .appointment-form h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem; margin-bottom: 0.3rem;
        }
        .appointment-form > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .form-group { margin-bottom: 1rem; }
        .form-group label {
            display: block; font-size: 0.8rem; font-weight: 500;
            color: var(--text-secondary); margin-bottom: 0.4rem;
        }
        .form-group input, .form-group select, .form-group textarea {
            width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border);
            border-radius: var(--radius); font-family: 'Inter', sans-serif;
            font-size: 0.9rem; transition: all 0.3s; outline: none;
        }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
        }
        .form-group textarea { resize: vertical; min-height: 80px; }
        .form-submit {
            width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white; border: none; border-radius: var(--radius);
            font-size: 0.95rem; font-weight: 600; cursor: pointer;
            transition: all 0.3s; margin-top: 0.5rem;
        }
        .form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(13,148,136,0.3);
        }

        /* ===== TESTIMONIALS ===== */
        .testimonials-grid {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem; max-width: 1100px; margin: 0 auto;
        }
        .testimonial-card {
            background: white; border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); padding: 2rem;
            transition: all 0.4s ease;
        }
        .testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
        .testimonial-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 1rem; }
        .testimonial-text {
            font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
            margin-bottom: 1.5rem;
        }
        .testimonial-author {
            display: flex; align-items: center; gap: 1rem;
        }
        .testimonial-author img {
            width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
        }
        .testimonial-author h4 { font-size: 0.95rem; font-weight: 600; }
        .testimonial-author p { font-size: 0.8rem; color: var(--text-muted); }

        /* ===== CTA BANNER ===== */
        .cta-banner {
            background: var(--bg-soft); padding: 4rem 4%; text-align: center;
        }
        .cta-banner h2 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem;
        }
        .cta-banner p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 1.5rem; }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--text); color: white; padding: 4rem 4% 1.5rem;
        }
        .footer-grid {
            display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem; max-width: 1100px; margin: 0 auto 3rem;
        }
        .footer-brand .logo-text span:first-child { color: white; }
        .footer-brand .logo-text span:last-child { color: var(--text-muted); }
        .footer-brand > p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin: 1rem 0; }
        .footer-social { display: flex; gap: 0.8rem; }
        .footer-social a {
            width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
            display: flex; align-items: center; justify-content: center;
            color: var(--text-muted); font-size: 0.9rem; text-decoration: none;
            transition: all 0.3s;
        }
        .footer-social a:hover { background: var(--primary); color: white; border-color: var(--primary); }
        .footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; }
        .footer-links ul { list-style: none; }
        .footer-links li { margin-bottom: 0.7rem; }
        .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
        .footer-links a:hover { color: white; }
        .footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
        .footer-contact i { color: var(--primary); font-size: 0.8rem; width: 16px; }
        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem;
            display: flex; justify-content: space-between; align-items: center;
            max-width: 1100px; margin: 0 auto;
        }
        .footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

        /* ===== REVEAL ANIMATIONS ===== */
        .reveal {
            opacity: 0; transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .reveal.active { opacity: 1; transform: translateY(0); }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
            .hero-content { order: 1; }
            .hero-image { order: 0; }
            .hero-desc { margin: 0 auto 2rem; }
            .hero-cta { justify-content: center; }
            .hero-stats { justify-content: center; }
            .about-grid, .appointment-grid { grid-template-columns: 1fr; gap: 3rem; }
            .testimonials-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 768px) {
            .navbar {
                flex-wrap: wrap;
                align-items: flex-start;
                height: auto;
                padding: 0.75rem 4%;
                row-gap: 0.75rem;
            }
            .logo { order: 1; }
            .mobile-toggle {
                display: block;
                order: 2;
                align-self: flex-start;
                margin-top: 0.5rem;
            }
            .nav-links {
                display: none;
                order: 3;
                flex-direction: column;
                gap: 1rem;
                width: 100%;
                margin-top: 0.5rem;
            }
            .navbar.nav-open .nav-links { display: flex; }
            .nav-links a {
                width: 100%;
                padding: 0.75rem 0;
            }
            .nav-cta {
                display: none;
                order: 4;
                width: 100%;
            }
            .navbar.nav-open .nav-cta {
                display: flex;
                justify-content: center;
                width: 100%;
                margin-top: 0.5rem;
            }
            .nav-cta a {
                width: 100%;
                justify-content: center;
            }
            .top-bar { display: none; }
            .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
            .services-grid, .doctors-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
            .footer-brand, .footer-links { text-align: center; }
            .footer-social { justify-content: center; }
            .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
            .form-row { grid-template-columns: 1fr; }
            .hero-floating-card { display: none; }
        }

        /* ===== MODAL ===== */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            animation: fadeIn 0.3s ease-in-out;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: white;
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            animation: slideIn 0.4s ease-out;
            position: relative;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
        }

        .modal-content.modal-large {
            max-width: 800px;
        }

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
        }

        .modal-close:hover {
            color: var(--text);
            transform: scale(1.2);
        }

        .modal-header {
            padding: 2rem 2rem 1rem;
            border-bottom: 1px solid var(--border-light);
        }

        .modal-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            color: var(--text);
            margin: 0;
        }

        .modal-body {
            padding: 2rem;
        }

        .policy-body {
            padding: 2rem;
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--text-secondary);
        }

        .policy-body h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            color: var(--primary);
            margin: 1.5rem 0 0.8rem;
            margin-top: 2rem;
        }

        .policy-body h3:first-child {
            margin-top: 0;
        }

        .policy-body ul, .policy-body ol {
            margin: 1rem 0 1rem 1.5rem;
        }

        .policy-body li {
            margin-bottom: 0.6rem;
        }

        .policy-body p {
            margin-bottom: 1rem;
        }

        /* Department Modal Styles */
        .dept-modal-image {
            margin-bottom: 1.5rem;
            border-radius: var(--radius);
            overflow: hidden;
            max-height: 300px;
        }

        .dept-modal-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .dept-modal-content {
            padding-bottom: 1rem;
        }

        .dept-modal-content p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }

        #deptFeatures {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .dept-feature {
            background: var(--bg-soft);
            padding: 1rem;
            border-radius: var(--radius);
            border-left: 4px solid var(--primary);
        }

        .dept-feature strong {
            display: block;
            color: var(--primary);
            margin-bottom: 0.3rem;
            font-size: 0.9rem;
        }

        .dept-feature span {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Scrollbar for modal */
        .modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: var(--bg-soft);
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Footer link styling */
        .dept-link,
        .policy-link {
            position: relative;
            transition: color 0.3s;
        }

        .footer-links .dept-link:hover,
        .footer-links .policy-link:hover {
            color: white !important;
        }

        .footer-bottom .policy-link:hover {
            color: white !important;
        }

        @media (max-width: 768px) {
            #deptFeatures {
                grid-template-columns: 1fr;
            }

            .modal-content {
                width: 95%;
                max-height: 90vh;
            }

            .modal-header {
                padding: 1.5rem 1.5rem 1rem;
            }

            .modal-body {
                padding: 1.5rem;
            }

            .modal-header h2 {
                font-size: 1.4rem;
            }
        }
    }