/* Ensure header links are always visible and accessible, regardless of visited state */
.govuk-header__link,
.govuk-header__link:visited {
    color: #fff !important;
    background: none;
    text-decoration: none;
}
.govuk-header__link:hover,
.govuk-header__link:focus {
    color: #ffdd00 !important;
    background: none;
    text-decoration: underline;
}
/* Custom enhancements for navbar/header, keeping GOV.UK style */

.govuk-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.govuk-header__logo {
    flex: 0 0 auto;
}

.govuk-header__content {
    flex: 1 1 auto;
    text-align: right;
}

.govuk-service-navigation__service-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1d70b8;
    letter-spacing: 0.01em;
}

.govuk-service-navigation__wrapper {
    margin-top: 0.5rem;
}

.govuk-service-navigation__list {
    display: flex;
    gap: 1.5rem;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.govuk-service-navigation__link {
    color: #1d70b8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.govuk-service-navigation__link:hover,
.govuk-service-navigation__link:focus {
    background: #e7f1fa;
    color: #003078;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .govuk-header__container,
    .govuk-service-navigation__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .govuk-header__content {
        text-align: left;
    }
}
