@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #004b93;
    --primary-dark: #002f6c;
    --primary-soft: #e8f1fb;
    --accent: #f5c400;
    --accent-dark: #d9a900;
    --ink: #1f2937;
    --muted: #667085;
    --bg: #f5f7fb;
    --card: #ffffff;
    --line: #dde5ef;
    --shadow: 0 10px 28px rgba(0, 47, 108, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.utility-bar {
    background: var(--primary-dark);
    border-bottom: 4px solid var(--accent);
    color: #fff;
    font-size: 0.84rem;
}

.utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.utility-links,
.utility-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.utility-bar a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #d7e2ee;
    box-shadow: 0 4px 14px rgba(0, 47, 108, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand-title {
    color: var(--primary-dark);
    font-weight: 900;
    line-height: 1.15;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
}

.menu-line {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-link.active,
.nav-link:hover {
    background: var(--primary);
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.nav-caret {
    margin-left: 6px;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: none;
    min-width: 230px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel {
    display: block;
}

.dropdown-link,
.dropdown-empty {
    display: block;
    padding: 10px 12px;
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.dropdown-link:hover {
    background: var(--primary-soft);
}

/* Homepage: slides only */
.home-hero {
    position: relative;
    height: clamp(420px, 62vw, 680px);
    overflow: hidden;
    background: #000;
}

.home-slider,
.home-slide {
    position: absolute;
    inset: 0;
}

.home-slide {
    opacity: 0;
    visibility: hidden;
    background: #000;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.home-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 46px;
    height: 58px;
    border: 0;
    background: rgba(0, 47, 108, 0.86);
    color: #fff;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.slide-arrow:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.slide-arrow.prev {
    left: 18px;
}

.slide-arrow.next {
    right: 18px;
}

.home-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 7;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(0, 47, 108, 0.45);
    cursor: pointer;
}

.dot.active {
    width: 38px;
    background: var(--accent);
    border-color: var(--accent);
}

.portal-links {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.portal-links .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-link-card {
    display: grid;
    gap: 7px;
    min-height: 145px;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.portal-link-card:hover {
    background: #f8fbff;
}

.portal-link-card.highlight {
    background: var(--primary);
    color: #fff;
}

.portal-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

.portal-link-card.highlight .portal-icon {
    background: var(--accent);
    color: var(--primary-dark);
}

.portal-link-card strong {
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.portal-link-card small {
    color: var(--muted);
    line-height: 1.5;
}

.portal-link-card.highlight strong,
.portal-link-card.highlight small {
    color: #fff;
}

.home-main,
.page {
    padding: 62px 0 78px;
}

.home-main .container {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 32px;
}

.section-title {
    margin-bottom: 22px;
}

.section-title span,
.news-date {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title h2,
.welcome-card h2,
.home-about-strip h2,
.page h2 {
    margin: 6px 0 0;
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card,
.welcome-card,
.announcements-card,
.card,
.feature {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 23px;
    border-top: 5px solid var(--accent);
}

.news-card h3,
.card h3,
.card h4,
.feature h4 {
    color: var(--primary-dark);
}

.news-card p,
.welcome-card p,
.card p,
.feature p,
.page p,
.card li {
    color: var(--muted);
    line-height: 1.7;
}

.news-card a {
    margin-top: auto;
    color: var(--primary);
    font-weight: 900;
}

.side-column {
    display: grid;
    gap: 20px;
}

.welcome-card,
.announcements-card,
.card,
.feature {
    padding: 24px;
}

.welcome-card {
    border-top: 5px solid var(--accent);
}

.welcome-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.announcements-card,
.home-about-strip,
.prefooter-callout,
.site-footer {
    background: var(--primary-dark);
    color: #fff;
}

.announcements-card h3 {
    margin-top: 0;
}

.announcements-card li {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.home-about-strip {
    padding: 56px 0;
    border-top: 5px solid var(--accent);
}

.home-about-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.home-about-strip h2 {
    color: #fff;
}

.home-about-strip p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 900;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

.card-grid,
.features .container,
.prefooter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card-grid {
    margin-top: 24px;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 38px;
    margin-bottom: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

.site-prefooter {
    padding: 34px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.prefooter-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px;
}

.site-prefooter h4 {
    color: var(--primary-dark);
}

.site-prefooter p {
    color: var(--muted);
    line-height: 1.6;
}

.site-prefooter a {
    color: var(--primary);
    font-weight: 800;
}

.site-footer {
    padding: 18px 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: calc(100% - 32px);
    max-width: 540px;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(0, 47, 108, 0.96);
    color: #fff;
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.cookie-banner-close {
    border: 0;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 980px) {
    .site-header .container,
    .utility-bar .container,
    .home-about-strip .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .portal-links .container,
    .home-main .container,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 16px;
    }

    .utility-bar .container {
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .utility-links,
    .utility-contact {
        gap: 10px;
    }

    .site-header .container {
        display: grid;
        grid-template-columns: 1fr 44px;
        align-items: center;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand {
        gap: 10px;
        overflow: hidden;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 0.72rem;
    }

    .brand-title {
        font-size: 0.82rem;
    }

    .brand-subtitle {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .mobile-menu-toggle.is-open {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 2px;
        border-top: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 11px 12px;
        border-color: var(--line);
        white-space: normal;
    }

    .dropdown-panel {
        position: static;
        min-width: 0;
        width: 100%;
        padding: 6px;
        border-top: 0;
        box-shadow: none;
        background: var(--primary-soft);
    }

    .dropdown-link,
    .dropdown-empty {
        padding: 11px 12px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .dropdown-link:last-child,
    .dropdown-empty:last-child {
        border-bottom: 0;
    }

    .home-hero {
        height: 320px;
    }

    .slide-arrow {
        width: 38px;
        height: 48px;
        font-size: 1.8rem;
    }

    .home-dots {
        bottom: 18px;
    }

    .portal-link-card {
        min-height: auto;
        border: 1px solid var(--line);
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
