/* Fixed Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 20px 160px; /* Increased horizontal padding for balance */
    height: 100px; /* Increased height for a taller navbar */
    z-index: 1000; /* Ensure it's on top of other elements */
    border-bottom: 1px solid #0000001a;
}

.navbar .logo img {
    height: 40px;
    width: auto;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Increased gap between links */
    padding-left: 0;
}

/* Individual Links */
.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #1C1C1C;
    font-size: 18px;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #e86e0a;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 3rem;
}

/* Mobile Menu */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 20px 0;
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 1000; /* Ensure it's on top of other elements */
    }

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

    .menu-icon {
        display: flex;
    }

    .dropdown {
        position: static;
        display: none;
    }

    .nav-links li:hover .dropdown {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        height: 70px;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        background-color: #1C1C1C;
        padding: 20px 0;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 16px;
        color: #F8F8F8;
    }

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

    .navbar .logo img {
        height: 28px;
        width: auto;
    }
    
}
