/* General Body and Container Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden; /* Clear floats */
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #c0392b; /* Reddish background */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #e74c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width within header */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

.logo img {
    height: 60px; /* Adjust logo size */
    width: auto;
    border-radius: 50%; /* Make it circular */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    white-space: nowrap; /* Prevent school name from wrapping */
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow navigation items to wrap */
    justify-content: center; /* Center nav items on smaller screens */
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #f1c40f; /* Yellowish hover effect */
}

/* Hero Section Styles */
.hero {
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/school-background.jpg') no-repeat center center/cover; /* Placeholder background */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative; /* For potential overlays */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #f1c40f; /* Yellowish button */
    color: #333;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e74c3c; /* Reddish hover */
    color: #fff;
}

/* Section Styles (About Us, Contact Us) */
section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #c0392b; /* Reddish heading */
    margin-bottom: 40px;
    position: relative;
}

section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #f1c40f; /* Yellowish underline */
    border-radius: 2px;
}

.about-us p, .contact-us p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
}

.contact-us a {
    color: #c0392b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-us a:hover {
    color: #e74c3c;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 40px 0;
    }

    section h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    section h3 {
        font-size: 1.8rem;
    }
}