/* Navbar */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    /* Smooth transition for background color */
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.60);
    /* Dark, transparent background */
}

.navbar {
    position: relative;
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -6px;
    /* Adjust position as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Adjust width as needed */
    height: 4px;
    /* Adjust height as needed */
    background-color: #0E9294;
    /* Teal color */
    border-radius: 2px;
    /* Rounded corners */
    transition: opacity 0.3s ease;
    /* Smooth transition for hiding the line */
}

.navbar.line-hidden::after {
    opacity: 0;
    /* Hide the teal line */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
    text-wrap: nowrap;
}
#resource-button{
    flex-wrap: nowrap;
    text-wrap: nowrap;
}
#products-button{
    flex-wrap: nowrap;
    text-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    /* Center the logo and text vertically */
    margin-left: 5rem;
}

.logo img {
    height: 60px;
    /* Adjust as necessary for bigger logo */
    width: auto;
    cursor: pointer;
    opacity: 1;
    /* Set opacity to 1 */
    visibility: visible;
    /* Set visibility to visible */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.logo span {
    margin-left: 10px;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    padding-left: 6rem;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    /* Ensure the submenu is positioned correctly */
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    /* Increased font size */
    font-family: 'Poppins', sans-serif;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    /* Make underline invisible initially */
}

.nav-links a.active {
    color: #0E9294;
    border-bottom: 2px solid #0E9294;
    /* Underline visible when active */
}

.nav-links a:hover {
    color: #0E9294;
}

/* Dropdown Menu Styles */
.dropdown:hover .dropdown-menu {
    display: block;
    /* Show the dropdown menu on hover */
}

.dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark background */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 5px;
    /* Rounded corners */
    z-index: 5;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    /* Smooth transition for visibility and opacity */
    width: 350px; /* Adjust the width as needed */
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

.dropdown-menu li {
    margin: 0;
    padding: 5px 20px;
}

.dropdown-menu a {
    display: block;
    /* Ensure the link takes the full width */
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.dropdown-menu a:hover {
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly darker background on hover */
}

.dropdown-section {
    font-weight: bold;
    color: #C9FEFF;
    padding: 10px 20px;
    text-transform: uppercase;
    border-bottom: 1px solid #C9FEFF;
    /* Light teal border at the bottom of each section */
}




/* Download Button */
.download-btn {
    margin-right: 2rem;
    
    
    /* Adjust as needed for spacing */
}

.download-btn a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.download-btn a:hover {
    background-color: white;
    color: #0E9294;
    /* Teal color on hover */
}

/* General styles for the hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    margin-right: 25px;
    /* Position it in the top right corner */
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #0E9294;
    margin: 4px 0;
    border-radius: 5px;
}


/* Mobile View */
@media (max-width: 1247px) {
    .hamburger {
        display: flex;
        right: 1rem; /* Adjust padding to the right */
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: fixed;
        
    }

    header.scrolled {
        background-color: rgba(0, 0, 0, 0); /* Transparent background */
    }

    .navbar::after {
        display: none; /* Hide the teal line */
    }

    .nav-center {
        padding-right: 0; /* Remove padding in mobile view */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        /* Full width */
        text-align: center;
        background-color: rgba(0, 0, 0, 0.8);
        /* Darker transparent black background */
        position: absolute;
        top: 60px;
        left: -23px;
        /* Ensure the menu appears from the left */
        display: none;
        z-index: 1000;
        /* Ensure the overlay is on top */
        justify-content: center;
        /* Center the links vertically */
        
        /* Add padding to the popup */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Move download button into the hamburger menu */
    .download-btn {
        display: none;
    }

    /* Adjust dropdown menu for mobile view */
    .dropdown-menu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        /* Ensure dropdown takes full width */
    }

    .dropdown-menu a {
        padding: 10px;
    }

    .dropdown-menu li {
        text-align: center;
        /* Center text for mobile view */
    }

    .logo {
        margin-left: 0;
    }
}


/* Larger screens (1025px to 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .logo {
        margin-left: 2rem;
    }

    .nav-center {
        padding-right: 15rem;
    }

    .nav-links a {
        font-size: 18px;
    }



    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        width: 350px;
    }
}

/* Extra Large screens (1441px and above) */
@media (min-width: 1441px) {
    .logo {
        margin-left: 2rem;
    }

    .nav-center {
        padding-right: 12rem;
        padding-left: 0;
    }

    .nav-links a {
        font-size: 20px;
    }

    .download-btn {
        display: block;
        margin-right: 2rem;
        position: absolute;
        right: 2rem;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        width: 350px;
    }
}
