/* Universal Box-Sizing for consistent sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- Base Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for the whole page */
}

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

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* A more distinct font for headings */
    color: #2c3e50; /* Darker blue/grey for headings */
    margin-top: 0;
    margin-bottom: 0.5em;
}

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

p {
    margin-bottom: 1em;
}

a {
    color: #3498db; /* A vibrant blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9; /* Slightly darker on hover */
    text-decoration: underline;
}

/* --- Header Styles --- */
header {
    background-color: #ffffff; /* White background for header */
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex; /* Use flexbox to align logo, title, and nav */
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Space out items */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

header .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between; /* Keep main header items spread */
    width: 100%; /* Ensure container takes full width */
}

header .logo {
    height: 70px; /* Adjust logo size */
    margin-right: 15px;
}

header h1 {
    font-size: 2.2em;
    margin: 0;
    color: #2c3e50;
    flex-grow: 1; /* Allow title to take available space */
}

header .tagline {
    font-style: italic;
    color: #7f8c8d; /* Muted grey for tagline */
    margin-left: 20px; /* Space from main title */
    align-self: flex-end; /* Align to the bottom of the flex container */
}

/* --- Navigation Styles --- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Make nav items inline */
    flex-wrap: wrap; /* Allow nav items to wrap */
    justify-content: flex-end; /* Align to the right */
}

nav ul li {
    margin-left: 30px; /* Space between nav items */
}

nav ul li a {
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    position: relative; /* For underline effect */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after,
nav ul li a.current::after { /* Add 'current' class to active page link */
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    background-color: #3498db; /* Primary blue background */
    color: white;
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1500x500/3498db/ffffff?text=School+Building+Image'); /* Placeholder image, replace with your own */
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* Slightly rounded corners for a modern look */
    margin: 20px auto; /* Center with some margin */
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white; /* Ensure heading is white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Subtle shadow for readability */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    background-color: #2ecc71; /* A contrasting green for the button */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #27ae60; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    text-decoration: none;
}

/* --- Features Section --- */
.features {
    padding: 60px 0;
    background-color: #ffffff;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.features h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #2c3e50;
}

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

.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.feature-item h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* --- News & Events Section --- */
.news-events {
    padding: 60px 0;
    background-color: #eaf2f8; /* Light blue background for this section */
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.news-events h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #2c3e50;
}

.news-item {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #3498db; /* Accent border */
}

.news-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.news-item p {
    margin-bottom: 10px;
}

.news-item .date {
    font-size: 0.9em;
    color: #7f8c8d;
    display: block; /* Make date appear on its own line */