* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 80px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.school-name h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.school-name p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
    flex: 1;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #2c5aa0;
}

.quick-links {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary, .btn-hero {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838, #1ba085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-hero {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: #333;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #e0a800, #e6b800);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2c5aa0, #28a745);
    border: none;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
    display: block;
}

.hamburger.active {
    background: linear-gradient(135deg, #28a745, #ffc107);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-top: 80px;
    height: 70vh;
    overflow: hidden;
    will-change: transform;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-social {
    margin-top: 2rem;
    text-align: center;
}

.hero-social p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.hero-social .social-links {
    justify-content: center;
    gap: 1.5rem;
}

.hero-social .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-social .social-links a:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.hero-social .social-links img {
    width: 24px;
    height: 24px;
}

/* Welcome Section */
.welcome {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.welcome h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
}

.welcome p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Highlights */
.highlights {
    padding: 5rem 0;
    background: #f8f9fa;
}

.highlight-grid {
    display: grid;
    /* Responsive columns; keep cards equal-sized but align the group to the left */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1000px; /* keeps a predictable column width */
    margin: 0; /* align grid to the container's left edge */
    justify-items: start; /* left-align each grid cell inside its column */
    justify-content: start; /* position the whole grid to the left */
    align-items: start;
}

.highlight-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;      /* take full column width */
    max-width: 360px; /* make each card an even, consistent size */
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.highlight-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
    text-align: center;
}

.highlight-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.highlight-item .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
}

.highlight-item .icon img {
    width: 100%;
    height: 100%;
}

.highlight-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

/* News Ticker */
.news-ticker {
    background: #2c5aa0;
    color: white;
    padding: 1rem 0;
}

.news-ticker h3 {
    margin-bottom: 0.5rem;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content p {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* About Intro Section */
.about-intro {
    padding: 5rem 0;
    background: white;
}

/* About page specific layout tweaks */
.about-history-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mission-section {
    background: #f8f9fa;
}

/* Academics page: limit program images so they don't dominate layout */
#nursery .program-image img,
#primary .program-image img {
    width: 100%;
    max-width: 360px; /* smaller size on desktop */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    #nursery .program-image img,
    #primary .program-image img {
        max-width: 100%;
    }
}

/* Professional tabs for Mission / Vision / Core Values (about page only) */
.mission-section.about-only .mission-tabs {
    max-width: 1100px;
    margin-left: 0; /* align to left of container */
    padding: 2rem 0 0 0;
}

.mission-section.about-only .tab-list {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start; /* left aligned */
    flex-wrap: wrap;
}

.mission-section.about-only .tab-button {
    background: #ffffff;
    border: 1px solid rgba(44,90,160,0.08);
    color: #2c5aa0;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 180ms ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.mission-section.about-only .tab-button[aria-selected="true"] {
    background: linear-gradient(135deg,#2c5aa0,#28a745);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(44,90,160,0.15);
}

.mission-section.about-only .tab-button:focus {
    outline: 3px solid rgba(44,90,160,0.12);
    outline-offset: 3px;
}

.mission-section.about-only .tab-panels {
    margin-top: 1.25rem;
}

.mission-section.about-only .tab-panel {
    background: #fff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    max-width: 100%;
}

.mission-section.about-only .tab-panel h3 {
    color: #2c5aa0;
    margin-bottom: 0.75rem;
}

.mission-section.about-only .core-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.mission-section.about-only .core-values-list li {
    background: rgba(44,90,160,0.06);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 800px) {
    .mission-section.about-only .tab-button { padding: 10px 14px; }
    .mission-section.about-only .tab-panel { padding: 1rem; }
}

.core-values-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.core-values-list li {
    background: rgba(44,90,160,0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.headteacher-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.headteacher-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.headteacher-text .position {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .about-history-grid {
        grid-template-columns: 1fr;
    }
    .about-image img {
        height: 240px;
    }
}

/* Page-scoped styles moved from about.html: Mission/Vision/Core Values layout
   These target only the mission section when it has the `about-only` class. */
.mission-section.about-only .highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 360px); /* three equal cards */
    gap: 2rem;
    /* Make the grid span the full viewport width and align to the left edge */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    justify-content: start; /* push the group to the left */
    justify-items: start;   /* align content inside columns to the left */
    align-items: start;
    padding: 20px 40px; /* small inner spacing so cards aren't flush to edge */
}

.mission-section.about-only .highlight-item {
    width: 360px;
    max-width: 360px;
    box-sizing: border-box;
    text-align: center; /* keep text visually centered inside each card */
}

.mission-section.about-only .core-values-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin-top: 1rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .mission-section.about-only .highlight-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        width: 100%;
        margin-left: 0;
        padding: 0;
    }
    .mission-section.about-only .highlight-item {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .mission-section.about-only .highlight-grid {
        grid-template-columns: 1fr;
        justify-content: start;
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }
    .mission-section.about-only .highlight-item {
        width: 100%;
        max-width: none;
    }
}



.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Programs Section */
.programs {
    padding: 5rem 0;
    background: #f8f9fa;
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #1e7e34;
}

/* Values Section */
.values {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%);
    color: white;
}

.values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #ffc107;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Home CTA Section */
.home-cta {
    padding: 5rem 0;
    background: #f8f9fa;
}

.cta-box {
    background: linear-gradient(135deg, #2c5aa0 0%, #28a745 100%);
    color: white;
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #2c5aa0;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: #ffc107;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ffc107;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links img {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Page Headers */
.page-header {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5aa0, #28a745);
    color: white;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.page-header .container {
    width: 100%;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.page-header .hero-social {
    margin-top: 2rem;
}

.page-header .hero-social p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.page-header .hero-social .social-links a {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.page-header .hero-social .social-links a:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: #2c5aa0;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background: #ddd;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Gallery Filters */
.gallery-filters {
    padding: 2rem 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 500;
    outline: none;
    user-select: none;
}

.filter-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.filter-btn.active {
    background: #007bff;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
}

.filter-btn:active {
    transform: scale(1.05);
}

.filter-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.gallery-section {
    padding: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #fff;
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.close:active {
    transform: scale(0.95) rotate(90deg);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

.gallery-item.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    border-radius: 50px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* News Items */
.news-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Academic Page Styles */
.curriculum-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.curriculum-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.curriculum-item strong {
    display: block;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.subject-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.subject-card h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.calendar-terms {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.term {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.term strong {
    color: #2c5aa0;
}

.excellence-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 66.67%;
    margin: 0 auto;
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}



/* Mobile Navigation */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .curriculum-list {
        gap: 0.5rem;
    }
    
    .header .container {
        padding: 0.8rem 15px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .school-name h1 {
        font-size: 1.3rem;
    }
    
    .school-name p {
        font-size: 0.85rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .highlight-item {
        padding: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 100px;
        flex: 1;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .programs h2,
    .values h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .program-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        width: 100%;
        max-width: 280px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .quick-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
    }
    
    .modal-caption {
        width: 95%;
        font-size: 1rem;
    }
}

/* Cinematic Animations */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    transform: translateY(-100%);
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.hero-content {
    transform: translateY(50px);
    opacity: 0;
    animation: heroFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes heroFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

section {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-item, .gallery-item, .staff-card, .news-item {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: itemFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes itemFade {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }

button, .btn-primary, .btn-secondary, .btn-hero {
    transform: scale(1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, .btn-primary:hover, .btn-secondary:hover, .btn-hero:hover {
    transform: scale(1.05) translateY(-2px);
}

button:active, .btn-primary:active, .btn-secondary:active, .btn-hero:active {
    transform: scale(0.98);
}



/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2c5aa0;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Universal Button Enhancements */
button, .btn-primary, .btn-secondary, .btn-hero {
    transition: all 0.3s ease;
    user-select: none;
}

button:hover, .btn-primary:hover, .btn-secondary:hover, .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active, .btn-primary:active, .btn-secondary:active, .btn-hero:active {
    transform: scale(0.95);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.hamburger {
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.prev, .next {
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background: #1e3f73;
    transform: scale(1.1);
}

/* Academics Page Styles */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 120px;
}

.stat-item h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.program-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.program-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.program-text {
    padding: 1rem 0;
}

.program-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-list {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature .icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature strong {
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.3rem;
}

.feature p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.subject {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subject .icon {
    font-size: 1.2rem;
}

.subject strong {
    color: #2c5aa0;
    font-size: 0.95rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.activity-card h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.activity-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.assessment-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.assessment-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.assessment-item h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.assessment-item p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Interactive Features */
.expand-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.program-details {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.program-details.hidden {
    display: none;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.detail-card h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.curriculum-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.tab-content.active {
    display: block;
}

.activity-toggle {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.activity-toggle:hover {
    background: #3498db;
    color: white;
}

.activity-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-details.hidden {
    display: none;
}

.activity-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-details li {
    padding: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 1rem 0 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease;
}

.percentage {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.quick-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    border: 2px solid #3498db;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-dot:hover,
.nav-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(400px) rotateY(-90deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(400px) rotateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .program-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-layout.reverse {
        grid-template-columns: 1fr;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .quick-nav {
        display: none;
    }
    
    .expand-btn,
    .activity-toggle {
        width: 100%;
        text-align: center;
    }
}

/* Cinematic Animations */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    transform: translateY(-100%);
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    to { transform: translateY(0); }
}

.hero-content {
    transform: translateY(50px);
    opacity: 0;
    animation: heroFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes heroFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

section {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-item, .gallery-item, .staff-card, .news-item {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: itemFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes itemFade {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .page-header h1 {
        font-size: 4rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .highlight-item {
        padding: 1.2rem;
    }
    
    .btn-primary, .btn-secondary, .btn-hero {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cta-box {
        padding: 1.5rem 1rem;
    }
    
    .cta-box h2 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
}
/* Cinematic Animation System */
body {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

body.cinema-loaded {
    opacity: 1;
}

body.cinema-exit {
    opacity: 0;
    transform: scale(0.98);
}

/* Section Animations */
.cinema-section {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-section.cinema-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Item Animations */
.cinema-item {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-item.cinema-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Title Animations */
.cinema-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-title.cinema-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text Animations */
.cinema-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-text.cinema-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Button Animations */
.btn-primary, .btn-secondary, .btn-hero {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(0);
}

.btn-primary:hover, .btn-secondary:hover, .btn-hero:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Gallery Item Enhancements */
.gallery-item {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Form Enhancements */
.form-group input, .form-group textarea, .form-group select {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

/* Header Animation */
.header {
    transform: translateY(-100%);
    animation: slideDownCinema 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideDownCinema {
    to { transform: translateY(0); }
}

/* Hero Content Animation */
.hero-content {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    animation: heroFadeCinema 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

@keyframes heroFadeCinema {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered Animations */
.cinema-item:nth-child(1) { animation-delay: 0.1s; }
.cinema-item:nth-child(2) { animation-delay: 0.2s; }
.cinema-item:nth-child(3) { animation-delay: 0.3s; }
.cinema-item:nth-child(4) { animation-delay: 0.4s; }
.cinema-item:nth-child(5) { animation-delay: 0.5s; }
.cinema-item:nth-child(6) { animation-delay: 0.6s; }

/* Button Animations */
.cinema-button {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-button.cinema-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cinema-button:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.cinema-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Navigation Animations */
.cinema-nav {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-nav.cinema-visible {
    opacity: 1;
    transform: translateX(0);
}

.cinema-nav:hover {
    transform: translateX(5px);
}

/* Form Element Animations */
.cinema-form {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-form.cinema-visible {
    opacity: 1;
    transform: translateY(0);
}

.cinema-form:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.35);
}

/* CTA Section Animations */
.cinema-cta {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-cta.cinema-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hero Animations */
.cinema-hero {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-hero.cinema-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Social Link Animations */
.cinema-social {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-social.cinema-visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.cinema-social:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Footer Animations */
.cinema-footer {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinema-footer.cinema-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Hover Effects */
.program-card, .testimonial, .value-item, .highlight-item {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.program-card:hover, .testimonial:hover, .value-item:hover, .highlight-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Filter Button Animations */
.filter-btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.filter-btn.active {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(44, 90, 160, 0.4);
}

/* Stat Counter Animations */
.stat {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Page Header Animations */
.page-header {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-header h1 {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* WhatsApp Float Button */
.whatsapp-float {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Hamburger Menu Animation */
.hamburger {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger:hover {
    transform: scale(1.1) rotate(5deg);
}

.hamburger.active {
    transform: rotate(90deg);
}

/* Logo Animation */
.logo {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
    transform: scale(1.05);
}

/* Learn More Link Animations */
.learn-more {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.learn-more:hover {
    transform: translateX(5px);
    letter-spacing: 1px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance Optimizations */
.cinema-section, .cinema-item, .cinema-title, .cinema-text, 
.cinema-button, .cinema-nav, .cinema-form, .cinema-cta, 
.cinema-hero, .cinema-social, .cinema-footer {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Mobile Navigation Control */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .quick-links {
        display: none;
    }
}
/* Complete Responsive Design for All Devices */

/* Mobile First - Base Styles */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .hero-content h2 { font-size: 1.4rem; }
    .page-header h1 { font-size: 1.8rem; }
    .content-section h2 { font-size: 1.6rem; }
    .highlight-item { padding: 1rem; }
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }
}

/* Mobile Portrait */
@media (min-width: 481px) and (max-width: 767px) {
    .container { padding: 0 15px; }
    .hero-content h2 { font-size: 1.8rem; }
    .page-header h1 { font-size: 2.2rem; }
    .content-section h2 { font-size: 1.8rem; }
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; }
    .hamburger { display: flex; }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-content h2 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.8rem; }
    .highlight-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: flex; }
    .hamburger { display: none; }
}

/* Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container { max-width: 1200px; padding: 0 30px; }
    .hero-content h2 { font-size: 3rem; }
    .page-header h1 { font-size: 3.5rem; }
    .highlight-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-menu { display: flex; }
    .hamburger { display: none; }
}

/* Large Desktop */
@media (min-width: 1441px) {
    .container { max-width: 1600px; padding: 0 40px; }
    .hero-content h2 { font-size: 3.5rem; }
    .page-header h1 { font-size: 4rem; }
    .highlight-grid { grid-template-columns: repeat(4, 1fr); }
    .nav-menu { display: flex; }
    .hamburger { display: none; }
}

/* Mobile Navigation Override */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .quick-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
}
/* Ultra-Fast Loading Optimizations */
body {
    font-display: swap;
}

/* Critical CSS - Above the fold */
.header, .page-header, .hero-slider {
    contain: layout style paint;
}

/* Optimize animations for 60fps */
@media (prefers-reduced-motion: no-preference) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fast paint */
img {
    content-visibility: auto;
}

/* Reduce layout shifts */
img[width][height] {
    height: auto;
}

/* GPU acceleration */
.cinema-section, .cinema-item, .cinema-title {
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Instant click response */
a, button {
    touch-action: manipulation;
}

/* Optimize fonts */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}
/* Cinematic Loading Animation */
.cinematic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.loader-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .loader-logo img {
        width: 80px;
        height: 80px;
    }
    .loader-bar {
        width: 250px;
    }
}

/* Hero Slider Navigation Controls */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-prev:hover, .hero-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active, .hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-prev, .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .hero-dots { bottom: 20px; }
    .hero-dot { width: 10px; height: 10px; }
}
