.about-levels .level-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 1.2rem;
}
/* Global Styles & Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInStudentImg {
    0% {
        opacity: 0;
        transform: translateX(120px) scale(0.95);
    }
    80% {
        opacity: 1;
        transform: translateX(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.hero-image-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.student-slide-img {
    width: 180px;
    max-width: 90vw;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(30,64,175,0.12);
    animation: slideInStudentImg 1.2s cubic-bezier(0.77,0,0.175,1) both;
}

.about-levels {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin: 2rem 0 1rem 0;
}
.level-btn {
    padding: 0.7rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(30,64,175,0.08);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    color: #fff;
    letter-spacing: 0.03em;
}
.level-btn.nursery {
    background: linear-gradient(135deg, #fbbf24 60%, #f59e42 100%);
}
.level-btn.primary {
    background: linear-gradient(135deg, #3b82f6 60%, #1e40af 100%);
}
.level-btn.secondary {
    background: linear-gradient(135deg, #dc2626 60%, #9333ea 100%);
}
.level-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px rgba(30,64,175,0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


@keyframes slideInHeroText {
    0% {
        opacity: 1;
        transform: translateX(100vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    animation: slideInHeroText 1s ease-out forwards;
    overflow: hidden;
}

#animated-hero-text {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e40af;
    animation: zoomInOut 2s infinite alternate ease-in-out;
    white-space: pre-line;
}
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

@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.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(100px); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.18); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.4); }
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(30,64,175,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30,64,175,0.4);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30,64,175,0.3);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1200;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,211,102,0.2);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(37,211,102,0.1);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover,
.whatsapp-float.active {
    background: #25d366;
    box-shadow: 0 4px 18px rgba(37,211,102,0.3);
    width: auto;
    padding: 0.7rem 1.3rem 0.7rem 0.7rem;
    border-radius: 40px;
}

.whatsapp-icon {
    width: 1.8rem;
    height: 1.8rem;
    background: #25d366;
    border-radius: 50%;
    padding: 0.3rem;
    box-shadow: none;
}

.whatsapp-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: none;
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float.active .whatsapp-label {
    display: inline-block;
    margin-left: 0.7rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 4rem 8% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #dc2626);
    border-radius: 2px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-icon {
    font-size: 1rem;
    min-width: 20px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.15);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .footer-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

.footer-item p {
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #1e40af;
    background: linear-gradient(90deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 8px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    padding: 0.95rem 1.15rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #dc2626, #1e40af);
    transform: translateY(-2px) scale(1.04);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #1e40af, #dc2626);
    transform: translateY(-3px) scale(1.08);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    /* Hamburger Button */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 8px;
    }
    .hamburger .bar {
        display: block;
        width: 28px;
        height: 3px;
        margin: 3px 0;
        background: #1e40af;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    /* Hamburger animation when active */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Navigation Slide-out Panel */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #fff !important;
        flex-direction: column !important;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15) !important;
        padding: 80px 0 2rem 0 !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        transition: right 0.3s ease-in-out !important;
        display: flex !important;
    }
    .nav-links.active {
        right: 0 !important;
    }
    
    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }
    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Mobile menu items */
    .nav-links li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links > li > a {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 1.5rem;
        color: #334155;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links > li > a:hover {
        background: #f8fafc;
        color: #1e40af;
    }
    
    /* Remove underline animation on mobile */
    .nav-links li a::after {
        display: none;
    }
    
    /* Dropdown arrow for mobile */
    .nav-links li.dropdown > a::before {
        content: '▼';
        font-size: 0.65rem;
        order: 2;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }
    .nav-links li.dropdown.active > a::before {
        transform: rotate(180deg);
        color: #1e40af;
    }
    
    /* Dropdown Menu - Submenu styling */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f8fafc !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        border-top: 1px solid #e2e8f0;
    }
    .nav-links li.dropdown.active .dropdown-menu {
        display: block !important;
    }
    .dropdown-menu li {
        border-bottom: 1px solid #e2e8f0;
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    .dropdown-menu a {
        padding: 0.9rem 1.5rem 0.9rem 2.5rem !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #475569 !important;
        border-left: 3px solid transparent !important;
        display: block !important;
        text-decoration: none !important;
    }
    .dropdown-menu a:hover {
        background: #e2e8f0 !important;
        color: #1e40af !important;
        border-left-color: #1e40af !important;
        padding-left: 2.8rem !important;
    }
    
    /* CTA Button in mobile menu */
    .cta-btn {
        width: calc(100% - 3rem);
        margin: 1.5rem 1.5rem 1rem;
        display: block;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }
    
    /* Logo adjustment */
    .logo {
        flex: 1;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Nav wrapper */
    nav {
        flex-wrap: wrap;
        padding: 1rem 4%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 8% 4rem 8%;
    background: #f8fafc;
    scroll-margin-top: 80px;
}

.gallery-section .section-title {
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1.5rem;
    justify-items: stretch;
    align-items: stretch;
}

/* Modern variable-size gallery items */
.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.4s;
    cursor: pointer;
    position: relative;
    animation: galleryFadeIn 1s ease both;
        /* Add dynamic size animation */
        animation: galleryFadeIn 1s ease both, gallerySizeChange 60s ease-in-out infinite;
        /* Each item will have a different animation delay for randomness */
}

.gallery-item:nth-child(1) { animation-delay: 0.1s, 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s, 1.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s, 2.4s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s, 0.6s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s, 1.8s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s, 3s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s, 0.9s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s, 2.1s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s, 0.3s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s, 1.5s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s, 2.7s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s, 0.75s; }

@keyframes gallerySizeChange {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(1.08) rotate(-2deg);
    }
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.04);
    }
    20% {
        transform: scale(0.965);
    }
    30% {
        transform: scale(1.06);
    }
    40% {
        transform: scale(0.985);
    }
    50% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.975);
    }
    90% {
        transform: scale(1.035);
    }
    93.33% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
}
.gallery-item:nth-child(2) {
    grid-row: span 1;
    grid-column: span 1;
}
.gallery-item:nth-child(3) {
    grid-row: span 2;
    grid-column: span 1;
}
.gallery-item:nth-child(4) {
    grid-row: span 1;
    grid-column: span 2;
}
.gallery-item:nth-child(5) {
    grid-row: span 1;
    grid-column: span 1;
}
.gallery-item:nth-child(6) {
    grid-row: span 2;
    grid-column: span 1;
}
.gallery-item:nth-child(7) {
    grid-row: span 1;
    grid-column: span 1;
}
.gallery-item:nth-child(8) {
    grid-row: span 1;
    grid-column: span 2;
}
.gallery-item:nth-child(9) {
    grid-row: span 1;
    grid-column: span 1;
}
.gallery-item:nth-child(10) {
    grid-row: span 2;
    grid-column: span 1;
}
.gallery-item:nth-child(11) {
    grid-row: span 1;
    grid-column: span 1;
}
.gallery-item:nth-child(12) {
    grid-row: span 1;
    grid-column: span 1;
}

@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
}
@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(30,64,175,0.25);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #b91c1c;
    background: repeating-linear-gradient(135deg, #f3f4f6 0 20px, #fff 20px 40px);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 16px;
    user-select: none;
}

/* Contact Section */
.contact-section {
    padding: 6rem 8%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    scroll-margin-top: 80px;
}

.contact-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}

.contact-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.contact-title::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 70px;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
}

.contact-subtitle {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 30px 60px rgba(15,23,42,0.12);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInLeft 0.9s ease both;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    color: #0f172a;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 26px rgba(15,23,42,0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30,64,175,0.15);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-submit {
    margin-top: 0.5rem;
    align-self: flex-start;
    padding: 0.95rem 2.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    box-shadow: 0 20px 45px rgba(30,64,175,0.25);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contact-submit:hover {
    background: linear-gradient(135deg, #dc2626, #1e40af);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 28px 60px rgba(30,64,175,0.35);
}

.contact-map {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15,23,42,0.12);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInRight 0.9s ease both;
}

.contact-map iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.2rem auto 1.6rem;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 32px rgba(30,64,175,0.25);
}

.directions-btn:hover {
    background: linear-gradient(135deg, #dc2626, #1e40af);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 36px rgba(30,64,175,0.35);
}

@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 2.5rem 2.25rem;
    }
    .contact-map iframe {
        min-height: 360px;
    }
}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form {
        padding: 2.2rem 1.75rem;
    }
    .contact-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .contact-section {
        padding: 4.5rem 6%;
    }
    .contact-title {
        font-size: 2.2rem;
        letter-spacing: 0.05em;
    }
    .contact-map iframe {
        min-height: 280px;
    }
}
/* Facilities Section */
.facilities-section {
    padding: 5rem 8% 4rem 8%;
    background: #fff;
    scroll-margin-top: 80px;
}

.facilities-section .section-title {
    margin-bottom: 2.5rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    justify-items: center;
}

.facility-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    padding: 2.5rem 1.5rem;
    text-align: center;
    min-width: 220px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.4s ease;
    animation: fadeInScale 0.6s ease both;
}

.facility-card:nth-child(1) { animation-delay: 0.1s; }
.facility-card:nth-child(2) { animation-delay: 0.2s; }
.facility-card:nth-child(3) { animation-delay: 0.3s; }
.facility-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.facility-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.facility-alt {
    background: #faf8ed;
}

.facility-icon {
    font-size: 2rem;
    color: #1e40af;
    background: #e0e7ef;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
    background: #1e40af;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 600px) {
    .facility-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.facility-list div {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.1rem;
    letter-spacing: 0.01em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.facility-list div:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    .facility-card {
        min-width: 0;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #f8fafc;
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger - hidden by default on desktop */
.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #1e40af;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #dc2626);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links li.dropdown > a::before {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-links li.dropdown:hover > a::before {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.08), transparent);
    color: #1e40af;
    border-left-color: #1e40af;
    padding-left: 1.8rem;
}

.dropdown-menu a::after {
    display: none;
}

.cta-btn {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,64,175,0.85) 0%, rgba(59,130,246,0.75) 50%, rgba(220,38,38,0.85) 100%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideShow 24s infinite;
}

.hero-background img:nth-child(1) { animation-delay: 0s; }
.hero-background img:nth-child(2) { animation-delay: 6s; }
.hero-background img:nth-child(3) { animation-delay: 12s; }
.hero-background img:nth-child(4) { animation-delay: 18s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.05); }
    25% { opacity: 1; transform: scale(1.08); }
    33% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    flex: 1;
    color: white;
    z-index: 3;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: white;
    color: #1e40af;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.secondary-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-3px);
}

/* Stats Section */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 8%;
    background: white;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.05);
}

.stat-card {
    text-align: center;
    padding: 1.2rem;
    transition: transform 0.3s;
    animation: slideUp 0.6s ease both;
}

.stat-icon {
    display: inline-block;
    font-size: 2.2rem;
    color: #1e40af;
    background: #e0e7ef;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    text-align: center;
    margin-bottom: 0.7rem;
}

@media (max-width: 600px) {
    .stat-icon {
        font-size: 1.5rem;
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
        margin-bottom: 0.4rem;
    }
    .stat-card {
        padding: 0.7rem;
    }
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* About Us Section */
.about-section {
    padding: 6rem 8%;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 50%, #fef2f2 100%);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,64,175,0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    animation: fadeInLeft 1s ease both;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.proprietress-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #dbeafe 0%, #fee2e2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    box-shadow: 0 20px 60px rgba(30,64,175,0.15);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s ease, transform 0.3s ease;
}

.proprietress-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.proprietress-placeholder:hover {
    box-shadow: 0 25px 70px rgba(30,64,175,0.25);
    transform: translateY(-5px);
}

.proprietress-placeholder:hover img {
    transform: scale(1.12);
}

.proprietress-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 20px,
        transparent 20px,
        transparent 40px
    );
}

.proprietress-placeholder span {
    position: relative;
    z-index: 1;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-content {
    animation: fadeInRight 1s ease both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.about-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-signature {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 3px solid #e2e8f0;
}

.signature-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.signature-title {
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
}

/* Features Section */
.features {
    padding: 6rem 8%;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #dc2626);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #e0e7ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    color: #1e40af;
}

.feature-card:hover .feature-icon {
    background: #1e40af;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 600px) {
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    /* Hide nav-links on mobile - hamburger takes over */
    .nav-links {
        display: none !important;
    }

    /* Show hamburger at 768px */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 8px;
    }
    .hamburger .bar {
        display: block;
        width: 28px;
        height: 3px;
        margin: 3px 0;
        background: #1e40af;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    /* Hamburger animation when active */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile Navigation Slide-out Panel */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #fff !important;
        flex-direction: column !important;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15) !important;
        padding: 80px 0 2rem 0 !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        transition: right 0.3s ease-in-out !important;
        display: flex !important;
    }
    .nav-links.active {
        right: 0 !important;
    }

    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }
    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* Mobile menu items */
    .nav-links li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links > li > a {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 1.5rem;
        color: #334155;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links > li > a:hover {
        background: #f8fafc;
        color: #1e40af;
    }

    /* Remove underline animation on mobile */
    .nav-links li a::after {
        display: none;
    }

    /* Dropdown arrow for mobile */
    .nav-links li.dropdown > a::before {
        content: '▼';
        font-size: 0.65rem;
        order: 2;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }
    .nav-links li.dropdown.active > a::before {
        transform: rotate(180deg);
        color: #1e40af;
    }

    /* Dropdown Menu - Submenu styling */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f8fafc !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        border-top: 1px solid #e2e8f0;
    }
    .nav-links li.dropdown.active .dropdown-menu {
        display: block !important;
    }
    .dropdown-menu li {
        border-bottom: 1px solid #e2e8f0;
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    .dropdown-menu a {
        padding: 0.9rem 1.5rem 0.9rem 2.5rem !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #475569 !important;
        border-left: 3px solid transparent !important;
        display: block !important;
        text-decoration: none !important;
    }
    .dropdown-menu a:hover {
        background: #e2e8f0 !important;
        color: #1e40af !important;
        border-left-color: #1e40af !important;
        padding-left: 2.8rem !important;
    }

    /* CTA Button in mobile menu */
    .cta-btn {
        width: calc(100% - 3rem);
        margin: 1.5rem 1.5rem 1rem;
        display: block;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    /* Logo adjustment */
    .logo {
        flex: 1;
    }
    .logo-text {
        font-size: 1.3rem;
    }

    /* Nav wrapper */
    nav {
        flex-wrap: wrap;
        padding: 1rem 4%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Admission Modal */
.admission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.admission-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.3);
    animation: modalSlideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admission-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.1);
}

.admission-close:hover {
    color: #dc2626;
    transform: rotate(90deg);
    background: rgba(220, 38, 38, 0.1);
}

.admission-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.admission-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.95rem 1.15rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.admission-submit {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25);
}

.admission-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.35);
}

@media (max-width: 768px) {
    .admission-modal {
        padding: 1rem;
    }

    .admission-modal-content {
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .admission-title {
        font-size: 1.6rem;
    }

    .admission-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .admission-submit {
        width: 100%;
    }
}

/* Events Section */
.events-section {
    padding: 6rem 8%;
    background: #fff;
    scroll-margin-top: 80px;
}

.events-section .section-title {
    margin-bottom: 1rem;
}

.events-section .section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
    animation: fadeInUp 0.6s ease both;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    min-width: 65px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content {
    padding: 1.75rem;
}

.event-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.event-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.event-date-text {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.loading-message {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .events-section {
        padding: 4rem 6%;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-image-container {
        height: 200px;
    }
}

/* Page Hero Sections - Consistent Design */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #dc2626 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,64,175,0.9) 0%, rgba(124,58,237,0.85) 50%, rgba(220,38,38,0.9) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease both;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.page-hero-breadcrumb a:hover {
    color: white;
}

/* Section Titles - Consistent Design */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Content Cards - Consistent Design */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30,64,175,0.15);
}

.content-card-icon {
    width: 55px;
    height: 55px;
    background: #e0e7ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1e40af;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.content-card:hover .content-card-icon {
    background: #1e40af;
    color: white;
}

@media (max-width: 600px) {
    .content-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

.content-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.content-card-text {
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
}

/* Feature Grid - Consistent Design */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: #1e40af;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30,64,175,0.15);
}

.feature-item .feature-icon {
    font-size: 1.8rem;
    color: #1e40af;
    background: #e0e7ef;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #1e40af;
    color: white;
}

@media (max-width: 600px) {
    .feature-item .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Stats Section - Consistent Design */
.stats-section {
    padding: 4rem 8%;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef2f2 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
}

/* CTA Section - Consistent Design */
.cta-section {
    padding: 5rem 8%;
    background: linear-gradient(135deg, #1e40af, #7c3aed, #dc2626);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: float 20s infinite linear;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
}

.cta-button {
    background: white;
    color: #1e40af;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

@media (max-width: 968px) {
    .page-hero {
        height: 50vh;
        min-height: 400px;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    .page-hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Section Backgrounds - Consistent Design */
.section-white {
    background: #ffffff;
    padding: 6rem 8%;
}

.section-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 50%, #fef2f2 100%);
    padding: 6rem 8%;
}

.section-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #fef2f2 100%);
    padding: 6rem 8%;
}

/* Enhanced Card Styles */
.card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(30,64,175,0.15);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.card-body {
    color: #475569;
    line-height: 1.8;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* List Styles */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    line-height: 1.8;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e40af;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Divider Styles */
.divider {
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #7c3aed, #dc2626);
    border-radius: 2px;
    margin: 3rem auto;
    max-width: 120px;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #1e40af, #dc2626);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-outline {
    background: transparent;
    border: 2px solid #1e40af;
    color: #1e40af;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 968px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-white, .section-light, .section-gradient {
        padding: 4rem 6%;
    }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-white, .section-light, .section-gradient {
        padding: 3rem 5%;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Overlay Styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay:hover {
    opacity: 1;
}

/* Responsive Utilities */
@media (max-width: 968px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 969px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Print styles for publication-quality math */
@media print {
  .MathJax {
    font-size: 1.2em !important;
    color: #000 !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  nav, .whatsapp-float, .footer {
    display: none !important;
  }
  .page-hero, .hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
