
/* Custom Properties (CSS Variables) */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --accent-color: #28a745; /* Green */
    --light-bg-color: #f8f9fa; /* Light Gray */
    --dark-text-color: #343a40; /* Dark Gray */
    --light-text-color: #ffffff; /* White */
    --header-height: 80px;
    --header-height-sticky: 60px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    background-color: var(--light-text-color);
}

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

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

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-newsletter {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    margin-left: 10px;
}

.btn-newsletter:hover {
    background-color: #218838;
}

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

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.ml-2 { margin-left: 0.5rem; }

/* Header */
#main-header {
    background-color: var(--light-text-color);
    color: var(--dark-text-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

#main-header.sticky {
    padding: 10px 0;
    height: var(--header-height-sticky);
    background-color: var(--light-text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.main-nav .nav-list a {
    color: var(--dark-text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.main-nav .nav-list a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-text-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--dark-text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero-section {
   background: url('images/school.png') no-repeat center center/cover;
    height: 100vh;
    min-height: 600px; /* Ensure a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--light-text-color);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.program-card {
    background-color: var(--light-text-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.program-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

.program-card p {
    color: var(--secondary-color);
}

/* Admissions Section */
.admissions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
    text-align: center;
}

.step-card {
    background-color: var(--light-text-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.admissions-info {
    background-color: var(--light-text-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.admissions-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.admissions-info ul {
    margin-bottom: 30px;
}

.admissions-info ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-text-color);
}

.admissions-info ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Campus Life */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.campus-feature {
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.campus-feature img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.campus-feature h3 {
    padding: 20px 20px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.campus-feature p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    background-image: url('https://via.placeholder.com/1920x500/007bff/0056b3?text=Testimonials+Background+Pattern'); /* Subtle background pattern */
    background-size: cover;
    background-position: center;
}

.testimonials-section .section-title,
.testimonials-section .section-description {
    color: var(--light-text-color);
}

.testimonials-section .section-title::after {
    background-color: var(--accent-color);
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    backdrop-filter: blur(5px); /* Frosty glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--light-text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-card h4 {
    font-weight: 600;
    color: var(--light-text-color);
}

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

.news-card {
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

.news-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 8px;
    color: var(--accent-color);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--dark-text-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.read-more:hover i {
    margin-left: 12px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info takes less space than form */
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-text-color);
}

.contact-info p i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 25px; /* Ensure consistent alignment */
    text-align: center;
}

.social-icons {
    margin-top: 20px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.map-placeholder img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
}

.map-placeholder p {
    text-align: center;
    margin-top: 10px;
}

.contact-form-container {
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
.main-footer {
    background-color: var(--dark-text-color);
    color: var(--light-text-color);
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--light-text-color);
}

.footer-col .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
    margin-bottom: 8px;
}

.footer-col .social-icons a:hover {
    background-color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}


.footer-bottom {
    background-color: #212529;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }

    .main-nav .nav-list {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        width: 100%;
        background-color: var(--light-text-color);
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        border-top: 1px solid #eee;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        pointer-events: none; /* Prevent interaction when hidden */
    }

    #main-header.sticky .main-nav .nav-list {
        top: var(--header-height-sticky); /* Adjust if sticky header height changes */
    }

    .main-nav .nav-list.active {
        display: flex;
        opacity: 1;
        pointer-events: all; /* Allow interaction when active */
    }

    .main-nav .nav-list li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 20px;
        color: var(--dark-text-color);
    }
    .main-nav .nav-list a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Image above text on mobile */
        margin-bottom: 2rem;
    }

    .admissions-info {
        padding: 30px;
    }
    .admissions-info ul li {
        justify-content: flex-start;
        padding-left: 10%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: 2;
    }
    .contact-form-container {
        order: 1;
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }

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

    .hero-section {
        min-height: 500px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .program-card, .step-card, .campus-feature, .testimonial-card, .news-card {
        padding: 25px;
    }

    .admissions-steps, .program-grid, .campus-grid, .testimonial-grid, .news-grid {
        grid-template-columns: 1fr;
    }

    .admissions-info ul li {
        padding-left: 0;
    }

    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    .newsletter-form button {
        border-radius: var(--border-radius);
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
    .footer-col ul li a {
        padding: 5px 0;
        display: inline-block;
    }
    .footer-col .social-icons {
        justify-content: center;
        display: flex; /* Centered icons */
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .main-nav .nav-list li a {
        font-size: 1.1rem;
    }
    .hero-section {
        min-height: 400px;
    }
}