body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background: #333; /* Changed to a darker color */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative; /* Ensure positioning for the menu */
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}

#hero {
    position: relative;
    text-align: center;
    color: white;
    height: 400px; /* Set a fixed height for the hero section */
    overflow: hidden; /* Prevent overflow */
    z-index: 1; /* Set a lower z-index for the hero */
}

.hero-image {
    width: 100%;
    height: 100%; /* Ensure the image fills the hero section */
    object-fit: cover; /* Maintain aspect ratio without distortion */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

section {
    padding: 20px;
    margin: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 15px 0;
    background: #333; /* Keep footer color consistent */
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #444; /* Darker background for mobile menu */
        position: absolute;
        top: 60px; /* Adjust position to avoid overlap */
        left: 0;
        z-index: 2; /* Set a higher z-index for the mobile menu */
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    #hero {
        height: 250px; /* Adjust height for smaller screens */
    }
}
