/* General Styles */

html, body {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* General Header Styling */
header {
    background-color: #ff9e37;
    color: white;
    display: flex;
    justify-content: end;  /* This keeps space between elements */
    align-items: center;
}

/* Navigation Button Styling */
.nav-btn {
    font-size: 16px;
    background: #ff9e37;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Navigation Button Hover Effect */
.nav-btn:hover {
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.7);
    background-color: white;
    color: #ff9e37;
}

/* Sign-In Button Styling */
.signIn {
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: red;
    color: white;
    font-weight: bolder;
    font-size: 17px;
}
.signIn:hover{
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.7);
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    min-width: 200px;
}

/* Dropdown Item */
.dropdown-item {
    position: relative;
}

/* Sub-dropdown */
.sub-dropdown {
    display: none;
    position: absolute;
    left: 100%; /* Position it to the right of the parent */
    top: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 150px;
    z-index: 10;
}

/* Button Styling */
.dropdown-content button, .sub-dropdown button {
    background: #f9f9f9;
    color: #333;
    border: none;
    padding: 10px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content button:hover, .sub-dropdown button:hover {
    background-color: #ff9e37;
    color: white;    
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Show Sub-dropdown on Hover */
.dropdown-item:hover .sub-dropdown {
    display: block;
}

/* Mobile Menu Styling */

/* Hamburger Icon */
#hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Mobile View: Show Hamburger, hide other nav buttons */
@media (max-width: 768px) {
    /* .nav-btn, .dropdown {
        display: none;
    } */

    #hamburger {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 30px;
        z-index: 1;
        cursor: pointer;
    }

    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.5);
        z-index: 100;
        display: none;
        flex-direction: column;
        padding-top: 60px;
        transition: transform 0.3s ease;
    }

    
    /* Make the nav buttons stacked vertically in mobile */
    .nav-btn, .dropdown-content button {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .dropdown {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Handle the dropdown on mobile */
    .dropdown-content {
        display: none;
        position: relative;
        width: 100%;
    }

    /* Show Dropdown Content when clicked */
    .dropdown.show .dropdown-content {
        display: block;
    }
    
    .dropdown-content button {
        padding-left: 40px; /* Indentation for sub-items */
    }
    
    .signIn {
        margin-top: 20px;
        width: 100%;
    }
    #mobile-menu.show {
        display: flex;
        transform: translateX(0);
    }
}
