/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: #f4f4f4;
    height: auto;
}

/* Navbar Styling */
.navbar {
    background-color: #3a7d60;
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    left: 0.5rem;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px 15px 10px 10px;
}

.logo {
    
    color: #2c3e50;
    padding: 5px 5px;
    font-weight: bold;
    border-radius: 4px;
}
.logo img{
    color: #2c3e50;
    width: 3rem;
    height: 3.6rem;
    margin: 0px;
}

.school-name {
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: #fff;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3cc0f4;
}

/* Dropdown Logic */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3a7d60;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    border-radius: 4px;
}
.dropdown-content li{
    list-style: none;
}

.dropdown-content li a {
    color: white;
    padding: 10px;
    display: block;
}

.dropdown-content li a:hover {
    background-color: rgb(2, 74, 2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Footer with Three Lines */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-line {
    height: 2px;
    background-color: #3498db;
    width: 60%;
    margin: 5px auto;
}

/* Responsive Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100px;
        left: 0;
        background-color: #6a8e91;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-content {
        position: static;
        background-color: #34495e;
        box-shadow: none;
    }

    .dropdown-content li a {
        color: #ecf0f1;
        padding-left: 20px;
    }
}