/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #1e4620; /* Deep green like standard school aesthetics */
    --accent-color: #f4b41a;  /* Gold/yellow for buttons and highlights */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* --- FLEX NAVIGATION HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- FLEX HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 70vh;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- FLEX GRID FOR FEATURES --- */
.features-section {
    padding: 5rem 5%;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Using Flexbox wrap to handle a clean grid alternative without Bootstrap */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1 1 calc(25% - 2rem); /* Dynamic resizing for 4 items in a row */
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column-reverse; /* Puts text below image on smaller screens */
        text-align: center;
        padding: 3rem 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .feature-card {
        flex: 1 1 calc(50% - 2rem); /* Drop down to 2 items per row on tablets */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide traditional links for a mobile menu setup */
    }
    
    .menu-toggle {
        display: block;
    }

    .feature-card {
        flex: 1 1 100%; /* Full width stack on mobile phones */
    }
}