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

body {
    font-family: Arial, sans-serif;
    background-color: #004f91; /* Blue background for the entire page */
    color: white;
}

/* Header Styling */
header {
    position: sticky; /* Keeps the top bar fixed on screen when scrolling */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white; /* Top bar background */
    color: #004f91;
    padding: 1.5rem 1.5rem; /* Thicker top bar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header .logo img {
    width: 220px; /* Increased logo size */
    height: auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin-right: 2rem;
}

nav ul li {
    margin: 0 15px;
    position: relative; /* For dropdown positioning */
}

nav ul li a {
    color: #004f91; /* Text color matches blue theme */
    text-decoration: none;
    font-size: 1.4rem;
    font-family: 'Avenir Light', sans-serif; /* Avenir Light font for menu */
    transition: color 0.3s; /* Smooth color transition on hover */
}

nav ul li a:hover {
    color: #006bb3; /* Color change on hover */
    text-decoration: none; /* Removed underline on hover */
}

/* Dropdown Menu - Desktop Base State */
nav ul li ul.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    transform: translateY(-10px); /* Menu slides down slightly as it fades in */

    position: absolute;
    background-color: white; /* Background color for dropdown */
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    flex-direction: column; 
}

/* Fades in smoothly on hover (Desktop) OR when clicked (Mobile) */
nav ul li:hover ul.dropdown-content,
nav ul li ul.dropdown-content.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Returns menu to its normal position */
}

nav ul li ul.dropdown-content li {
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

nav ul li ul.dropdown-content li:last-child {
    border-bottom: none; /* Remove border from last item */
}

nav ul li ul.dropdown-content li a {
    color: #004f91; /* Dropdown links color */
    text-decoration: none;
    display: block;
    font-size: 1.2rem; /* Slightly smaller font for dropdown items */
}

nav ul li ul.dropdown-content li a:hover {
    background-color: #e6f2ff; /* Light background on hover */
    color: #006bb3; /* Hover text color change */
    border-radius: 5px;
}

/* Main Content Layout */
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004f91; /* Set the main section background blue */
    padding: 3rem;
    color: white; /* Text in the main content section is white */
}

.text-content {
    max-width: 50%;
}

.text-content h2 {
    font-size: 3rem; /* Increased heading size */
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.4rem; /* Increased paragraph size */
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.image-content {
    max-width: 40%;
}

.image-content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #003366; /* Darker blue for the footer */
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Hide the mobile menu button on larger screens */
.menu-toggle {
    display: none;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack logo and nav vertically */
        padding: 1rem;
    }

    nav ul {
        display: none; /* Controlled completely via JavaScript class toggle */
        flex-direction: column; /* Stack menu items vertically */
        margin-right: 0;
    }

    nav ul.is-open {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .content-section {
        flex-direction: column; /* Stack content vertically */
        padding: 2rem;
    }

    .text-content, .image-content {
        max-width: 100%; /* Full width on mobile */
        margin-bottom: 1rem;
    }

    .image-content img {
        width: 100%;
        height: auto;
    }

    footer {
        padding: 0.5rem;
        font-size: 0.9rem; /* Smaller footer on mobile */
    }

    /* Mobile Dropdown Configuration Layout */
    nav ul li ul.dropdown-content {
        display: none; /* Closed by default on mobile */
        position: static; /* Drops links into mobile menu flow natively */
        min-width: 100%; 
        box-shadow: none; 
        border-radius: 0;
        opacity: 1; /* Keep fully visible when open on mobile viewport */
        transform: none;
    }

    nav ul li ul.dropdown-content.is-open {
        display: block;
    }

    .menu-toggle {
        display: block;
        background-color: #004f91;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 1.2rem;
        cursor: pointer;
    }
}
