/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CSS Variables for Light Theme */
.light-theme {
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --primary: #16a34a;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #16a34a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #dcfce7;
    --accent-foreground: #166534;
    --border: rgba(0, 0, 0, 0.1);
    --input-background: #f8fafc;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

/* CSS Variables for Dark Theme */
.dark-theme {
    --background: #0f172a;
    --foreground: #f1f5f9;
    --card: #1e293b;
    --card-foreground: #f1f5f9;
    --primary: #035a23;
    --primary-foreground: #dfdfdf;
    --secondary: #334155;
    --secondary-foreground: #f1f5f9;
    --muted: #334155;
    --muted-foreground: #94a3b8;
    --accent: #1e493b;
    --accent-foreground: #dcfce7;
    --border: #334155;
    --input-background: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.4);
}

body.light-theme,
body.dark-theme {
    background-color: var(--background);
    color: var(--foreground);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all 0.2s ease;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--background), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px var(--shadow);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo Styles */
.logo-section {
    flex-shrink: 0;
    animation: slideInLeft 0.8s ease-out;
}

.logo-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.logo-btn:hover {
    opacity: 0.8;
}

.logo-img {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--primary), 0.2);
    transition: transform 0.2s ease;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s ease;
}

@media (max-width: 640px) {
    .logo-text {
        display: none;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2.5rem;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--foreground);
}

.nav-item:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    transform: scale(1.05);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 6px var(--shadow);
}

/* Theme Toggle Button */
.theme-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.theme-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.light-theme .sun-icon {
    display: none;
}

.light-theme .moon-icon {
    display: block;
    color: #64748b;
}

.dark-theme .sun-icon {
    display: block;
    color: #fbbf24;
}

.dark-theme .moon-icon {
    display: none;
}

/* Mobile Controls */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
}

.mobile-menu-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background-color: var(--background);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-items {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    transform: scale(1.02);
}

.mobile-nav-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 6px var(--shadow);
}

/* Main Content */
main {
    padding-top: 4rem;
    min-height: 100vh;
}

/* Page System */
.page {
    display: none;
    min-height: calc(100vh - 4rem);
}

.page.active {
    display: block;
}

/* Page Header */
.page-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--accent) 100%);
    text-align: center;
    transition: all 0.3s ease;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 4xl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background) 0%, rgba(var(--accent), 0.05) 50%, rgba(var(--primary), 0.05) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    space-y: 2rem;
}

.hero-text {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 6px var(--shadow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    transform: scale(1.05);
}

/* Hero Image */
.hero-image {
    max-width: 150%;
    position: relative;
    animation: slideInRight 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-lg);
    transform: rotate(3deg);
    transition: all 0.5s ease;
}

.image-container:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.blob-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: var(--primary);
}

.blob-2 {
    bottom: -1rem;
    left: -1rem;
    width: 8rem;
    height: 8rem;
    background-color: var(--accent);
    animation-delay: 1s;
}

/* Mission Section */
.mission-section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 4xl;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    background-color: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted-foreground);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
}

.stats-bg::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 3s infinite;
}

.stats-bg::after {
    content: '';
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 15rem;
    height: 15rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 3s infinite;
    animation-delay: 2s;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.stat-item {
    animation: scaleIn 0.5s ease-out;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(var(--primary-foreground), 0.8);
}

                    /* Director Profile Section Styles */
                    .director-profile-section {
                        background-color: var(--secondary);
                        padding: 40px 0;
                        color: var(--foreground);
                    }
                    .director-profile-card {
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;
                        gap: 30px;
                        background-color: var(--card);
                        padding: 20px;
                        border-radius: 10px;
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                    }
                    .director-image img {
                        width: 200px;
                        height: 200px;
                        object-fit: cover;
                        border-radius: 50%;
                        border: 4px solid var(--primary);
                    }
                    .director-info {
                        flex: 1;
                    }
                    .director-info h2 {
                        margin: 0 0 10px;
                        font-size: 28px;
                    }
                    .director-info h4 {
                        margin: 0 0 15px;
                        font-size: 20px;
                        color: var(--primary);
                    }
                    .director-info p {
                        font-size: 16px;
                        line-height: 1.6;
                    }



/* Content Sections */
.content-section {
    margin-bottom: 5rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .two-column-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.content-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.content-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

/* Card Styles */
.card {
    background-color: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-align: center;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vision-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.vision-item p {
    color: var(--muted-foreground);
}

/* Values Section */
.values-section {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.values-bg {
    position: absolute;
    inset: 0;
}

.values-bg::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 3s infinite;
}

.values-bg::after {
    content: '';
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 3s infinite;
    animation-delay: 2s;
}

.values-content {
    position: relative;
    z-index: 1;
}

.values-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-item p {
    color: rgba(var(--primary-foreground), 0.8);
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

.program-card {
    background-color: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.program-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card li {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.program-card li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.contact-item p {
    color: var(--muted-foreground);
}

/* Form Styles */
.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--input-background);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    transition: all 0.3s ease;
}

.footer-qr {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .footer-qr {
        display: flex;
    }
}

.footer-qr img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-qr:hover img {
    transform: scale(1.06);
}

.footer-qr-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

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

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

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section button {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-section button:hover {
    color: var(--primary);
    transform: translateX(4px);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-link:hover {
    color: var(--primary);
    background-color: var(--accent);
    transform: scale(1.1);
}

.contact-info-footer p {
    margin-bottom: 0.5rem;
}

.footer-separator {
    height: 1px;
    background-color: var(--border);
    margin: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-links button:hover {
    color: var(--primary);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Enhanced Academics Page Styles */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.program-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.program-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.program-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.program-highlights span {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Curriculum Section */
.curriculum-section {
    margin-bottom: 3rem;
}

.grade-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.grade-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grade-tab:hover {
    background: var(--muted);
}

.grade-tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.curriculum-content {
    max-width: 800px;
    margin: 0 auto;
}

.grade-content {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.grade-content.active {
    display: block;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: 8px;
}

.subject-hours {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Schedule Section */
.schedule-section {
    margin-bottom: 3rem;
}

.schedule-table-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.schedule-table th {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.schedule-table tr:hover {
    background: var(--muted);
}

.schedule-item {
    font-size: 0.875rem;
}

.schedule-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.schedule-item small {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.schedule-item.lunch {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

/* Special Programs */
.special-programs {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.programs-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.showcase-item {
    text-align: center;
}

/* Admissions Page Styles */
.process-section {
    margin-bottom: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-step {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.step-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tuition-section {
    margin-bottom: 3rem;
}

.tuition-table-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.tuition-table {
    width: 100%;
    border-collapse: collapse;
}

.tuition-table th {
    background: var(--muted);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.tuition-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.tuition-table tr:last-child td {
    border-bottom: none;
}

.tuition-table tr:hover {
    background: var(--muted);
}

/* Application Form Styles */
.application-form-section {
    margin-bottom: 3rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.admissions-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admissions-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-help {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

.success-message {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.success-message h2 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.success-message p {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

/* Gallery Page Styles */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--muted);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
}

.gallery-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-info p {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: capitalize;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
}

.lightbox-info h3 {
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    opacity: 0.8;
    text-transform: capitalize;
}

/* News Page Styles */
.news-section {
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-date {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.news-category {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-item h3 {
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.news-item p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.news-link:hover {
    text-decoration: underline;
}

/* Events Section */
.events-section {
    margin-bottom: 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateX(4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.event-month {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-details h3 {
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.event-details p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.event-time {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 3rem;
}

.newsletter-card {
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.newsletter-card h2 {
    margin-bottom: 1rem;
}

.newsletter-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
}

/* EmailJS Notice */
.emailjs-notice {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.emailjs-notice p {
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.emailjs-notice ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.emailjs-notice a {
    color: var(--primary);
    text-decoration: none;
}

.emailjs-notice a:hover {
    text-decoration: underline;
}

/* Form Error States */
input.error,
textarea.error,
select.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .mission-section,
    .content-section {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-table-container {
        overflow-x: auto;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        align-self: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}
