/* CSS Variables & Fonts */
:root {
    --navy: #0B2447;
    --navy-light: #19376D;
    --maroon: #800000;
    --maroon-light: #A52A2A;
    --gold: #D4AF37;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --text-dark: #333333;
    --text-gray: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo span {
    font-family: 'Playfair Display', serif;
}

/* Global Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-secondary:hover {
    background-color: var(--cream);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.shrink {
    padding: 5px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.shrink .header-container {
    padding: 5px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--maroon);
    font-size: 1.8rem;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--maroon);
}

.login-group {
    display: flex;
    gap: 10px;
}

.login-btn {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.student-btn {
    color: var(--navy);
    border-color: var(--navy);
}
.student-btn:hover { background: var(--navy); color: var(--white); }

.teacher-btn {
    color: var(--maroon);
    border-color: var(--maroon);
}
.teacher-btn:hover { background: var(--maroon); color: var(--white); }

.parent-btn {
    color: #B8860B; /* Darker gold for text readability */
    border-color: #B8860B;
}
.parent-btn:hover { background: #B8860B; color: var(--white); }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
    border-top: 5px solid transparent;
}

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

.student-theme { border-top-color: var(--navy); }
.teacher-theme { border-top-color: var(--maroon); }
.parent-theme { border-top-color: var(--gold); }

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.close:hover {
    color: var(--maroon);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.student-theme h2 { color: var(--navy); }
.teacher-theme h2 { color: var(--maroon); }
.parent-theme h2 { color: #B8860B; }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}

.login-form input:focus {
    border-color: var(--navy);
}

.login-form button {
    padding: 12px;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-form button:hover {
    background-color: var(--maroon);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(11, 36, 71, 0.85), rgba(128, 0, 0, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--cream);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid var(--gold);
}

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

.feature-card i {
    font-size: 3rem;
    color: var(--maroon);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
}

/* Academics Section */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.academic-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.academic-img {
    height: 200px;
    overflow: hidden;
}

.academic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.academic-info {
    padding: 25px;
}

.academic-info h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.academic-info p {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 15px;
}

.academic-info .desc {
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

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

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2); /* Gold, low opacity */
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card h4 {
    color: var(--navy);
    margin-bottom: 5px;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: var(--maroon);
}

/* Admission CTA Banner */
#cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--cream);
}

/* Footer */
footer {
    background-color: #051326; /* Very dark navy */
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.95rem;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact i {
    color: var(--gold);
    margin-right: 10px;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.footer-bottom {
    background-color: #030b17;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links, .login-group {
        display: none;
        width: 100%;
        text-align: center;
    }

    .nav-links.active, .login-group.active {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 15px;
    }

    .login-group.active {
        gap: 10px;
        align-items: center;
        padding-bottom: 20px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Override flex-wrap to keep logo and hamburger inline, push menus below */
    header {
        overflow: hidden;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .nav-links.active {
        order: 3;
    }
    .login-group.active {
        order: 4;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .social-icons {
        justify-content: center;
    }
}
