/* Header navigation overrides to prevent wrapping and alignment issues */

.c-navbar {
    padding: 10px 0;
    transition: all 0.3s ease;
}

.c-navbar .container {
    max-width: 1400px;
    width: 100%;
}

@media (min-width: 992px) {
    .c-navbar__menu {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 3px !important; /* Extremely tight gap between tabs */
    }
}

.c-navbar__link {
    font-size: 13px !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 4px 6px !important; /* Tight horizontal padding */
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.c-navbar__link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.c-navbar__logo-link {
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

/* For smaller screens, compress padding and size even more */
@media (min-width: 992px) and (max-width: 1250px) {
    .c-navbar__menu {
        gap: 3px !important;
    }
    
    .c-navbar__link {
        font-size: 11.5px !important;
        padding: 3px 5px !important;
    }
    .c-navbar__btn {
        padding: 6px 10px !important;
        font-size: 12.5px !important;
    }
}

/* Override to make header sticky on mobile instead of fixed to prevent overlapping/hiding the hero section */
@media (max-width: 991.98px) {
    .c-navbar {
        position: sticky !important;
    }
}

/* Ensure logo text color updates dynamically based on the navbar link color when scrolled or on mobile */
.c-navbar__logo-link span {
    color: currentColor !important;
}

