/* Reset default margin and padding */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* General banner styling with linked background image */
.banner {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-image: url('banner.png'); /* Link to banner.png */
    background-repeat: no-repeat; /* Prevents multiple banner images */
    background-size: cover; /* Ensures the banner image covers the entire section */
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: white;
    text-align: center;
}

/* Top Banner Styling for Mobile View */
.top-banner {
    display: none; /* Hidden on desktop, visible on mobile */
}

/* Logo styling */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    display: block;
    z-index: 10;
}

.logo img {
    width: 100px; /* Adjusted size for logo */
    height: auto;
}

/* Desktop Overlay Links and Logo Position */
@media (min-width: 768px) {
    .top-banner {
        display: none;
    }

    .overlay-links {
        position: absolute;
        bottom: 20px;
        display: flex;
        gap: 20px;
        justify-content: center;
        width: 100%;
        z-index: 10;
    }

    .overlay-links a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 10px 20px;
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    .overlay-links a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }

    /* Hide extra hyperlinks on desktop */
    nav.dropdown-menu a,
    .top-banner .hamburger {
        display: none;
    }
}

/* Mobile Logo and Menu Position */
@media (max-width: 767px) {
    .top-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background-color: black;
        padding: 10px 10px; /* Adjusted padding for visibility */
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10; /* Ensures it's above other elements */
    }

    .logo img {
        width: 80px; /* Larger size for visibility on mobile */
    }

    .hamburger {
        font-size: 2rem;
        cursor: pointer;
        color: #ffffff;
        display: block;
        margin-left: auto; /* Moves hamburger icon to the right */
        margin-right: 15px; /* Adjusted margin to add spacing from the right */
    }

    /* Ensure banner fills the entire screen without white space */
    .banner {
        padding-top: 60px; /* Adjust based on the top banner height */
        background-size: cover; /* Ensures the banner covers the entire screen */
        background-repeat: no-repeat;
        background-position: center; /* Center the banner image */
        height: calc(100vh - 60px); /* Adjust height to fill screen below top banner */
    }

    /* Hide overlay links on mobile */
    .overlay-links {
        display: none;
    }

    /* Dropdown Menu for Mobile */
    .dropdown-menu {
        display: none; /* Hidden by default, toggled by JavaScript */
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #333333;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        z-index: 10;
    }

    .dropdown-menu a {
        color: #ffffff;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
        font-size: 1.2rem;
        text-align: left;
    }

    .dropdown-menu a:hover {
        background-color: #6A0DAD;
    }
}
