/* Encapsulate navbar styles within .custom-navbar */
.custom-navbar {
    background-color: #fff;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.custom-navbar .navbar-inner {
    display: flex;
    flex-direction: column; /* Stack logo above links on small screens */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.custom-navbar .logo {
    height: auto;
    width: 35vw;
}

.custom-navbar .nav-toggle {
    display: none; /* Hidden by default, visible on smaller screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.custom-navbar .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 1.5rem; /* Adjusted gap between links */
    padding: 0;
    margin: 0;
}

.custom-navbar .nav-links a.nav-link {
    font-size: 1rem;
    color: #555; /* Neutral color to blend with white background */
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem; /* Add padding for clickable area */
    border-radius: 5px; /* Rounded corners for a modern look */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.custom-navbar .nav-links a.nav-link:hover {
    background-color: #f0f0f0; /* Light gray highlight on hover */
    color: #0071bb; /* Highlight text color */
    transform: scale(1.05); /* Slight zoom effect */
}

.custom-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px; /* Position underline slightly below the text */
    width: 0%;
    height: 2px;
    background-color: #0071bb; /* Match hover color */
    border-radius: 8px; /* Rounded underline */
    transition: width 0.3s ease, left 0.3s ease;
}

.custom-navbar .nav-link:hover::after {
    width: 100%; /* Expand underline on hover */
    left: 0; /* Center it */
}

.custom-navbar .yellow-tab a.nav-link::after {
    display: none;
}

.custom-navbar .nav-links a.nav-link:hover {
    color: #0071bb; /* Match existing link hover color */
}

.custom-navbar .yellow-tab a.nav-link {
    background-color: #e40000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: inline-flex;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-navbar .navbar-inner {
        flex-direction: column;
    }

    .custom-navbar .logo-container {
        flex-direction: row;
        justify-content: space-between;
        display: flex;
        gap: 1rem;
    }

    .custom-navbar .nav-links-container {
        width: 100%;
        max-width: 80vw;
        display: none; /* Hidden by default */
    }

    .custom-navbar .logo {
        aspect-ratio: 305 / 60;
        height: 4rem;
        width: auto;
    }

    .hamburger-icon {
        width: 24px;
        height: 24px;
    }

    .custom-navbar .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .custom-navbar .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-navbar.active .nav-links-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}
