body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header section */
header {
    background: #f8f9fa;
    padding: 1rem 2rem 2rem 2rem;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    text-align: left;
}

header h2 {
    margin: 0.3rem 0 1rem;
    font-size: 1.2rem;
    font-weight: normal;
    color: #555;
    text-align: left;
}

/* Logo section (top right) */
.logos {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    gap: 0.7rem;
}

.logos img {
    width: 50px; /* slightly smaller for mobile */
    height: auto; /* preserve aspect ratio */
    background: #ddd;
    border-radius: 6px;
}

/* Navbar styling */
nav {
    background: #004080;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* allows wrapping on small screens */
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 2rem; /* reduced padding for smaller screens */
    display: block;
    transition: background 0.2s;
    text-align: center;
}

nav a:hover {
    background: #0059b3;
    border-radius: 5px;
}

/* Dropdown menu */
.dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #004080;
    padding: 0.5rem 0;
    border-radius: 5px;
    min-width: 200px; /* smaller for mobile */
}

.dropdown ul li {
    width: 100%;
}

.dropdown:hover ul {
    display: block;
}

/* Main content */
main {
    padding: 2rem;
    max-width: 90%;
    margin: auto;
}

/* Footer */
footer {
    background: #f8f9fa;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
}

/* Media queries for mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .logos {
        top: 0.5rem;
        right: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.5rem 1rem;
    }

    .dropdown ul {
        position: static; /* dropdown pushes content down */
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header h2 {
        font-size: 0.9rem;
    }

    .logos img {
        width: 40px;
    }
}
