/* Reskins the existing site header to match the SWRAC reference template
   (navy topbar + white mainnav, gold accent) without touching markup/JS. */

:root {
    --swrac-navy: #1f2d5c;
    --swrac-navy-dark: #16214a;
    --swrac-gold: #f2b600;
    --swrac-gold-dark: #d9a400;
}

/* Topbar strip: brand + actions, single row like the reference */
.swrac-topbar {
    background: var(--swrac-navy) !important;
    padding: 10px 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.swrac-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.swrac-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.swrac-brand-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.swrac-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--swrac-gold);
    letter-spacing: 1px;
    white-space: nowrap;
}

.swrac-brand-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, .3);
    flex-shrink: 0;
}

.swrac-brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    max-width: 220px;
}

.swrac-topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.swrac-topbar-sep {
    color: rgba(255, 255, 255, .3);
}

.swrac-top-link,
#swsc_login.swrac-top-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.swrac-top-link:hover {
    color: var(--swrac-gold) !important;
}

.swrac-top-btn {
    background: var(--swrac-gold);
    color: var(--swrac-navy) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.swrac-top-btn:hover {
    background: var(--swrac-gold-dark);
}

.swrac-topbar .input-wrapper .input {
    width: 0;
}

.swrac-topbar .input-wrapper:hover .input,
.swrac-topbar .input-wrapper:focus-within .input {
    width: 140px;
}

@media (max-width: 900px) {
    .swrac-brand-sub { display: none; }
    .swrac-topbar-actions .input-wrapper { display: none; }
}

@media (max-width: 560px) {
    .swrac-topbar { flex-wrap: wrap; gap: 10px; }
    .swrac-topbar-actions { gap: 12px; }
    .swrac-top-btn { padding: 6px 12px; font-size: 12px; }
}

/* Main nav row */
.navbar_main_row {
    background: #ffffff !important;
    border-top: 1px solid #e6e9f2;
    border-bottom: 1px solid #e6e9f2;
}

.nav__item .nav__link,
.nav__list li > a {
    text-transform: none !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    color: var(--swrac-navy) !important;
}

.nav__item .nav__link::after,
.nav__list li > a::after {
    background: var(--swrac-gold) !important;
}

.nav__item .nav__link:hover,
.nav__list li > a:hover,
.nav__item.active .nav__link,
.nav__item .active_nav,
.nav__list li.active > a {
    color: var(--swrac-navy) !important;
}

.nav-apply-btn {
    background: var(--swrac-gold) !important;
    color: var(--swrac-navy) !important;
}

.nav-apply-btn:hover {
    background: var(--swrac-gold-dark) !important;
}
