:root {
    --navy-950: #071e41;
    --navy-900: #0b2e63;
    --navy-800: #123f8c;
    --blue-600: #1d4f91;
    --red-500: #d71920;
    --gold-500: #ffd100;
    --gold-200: #fff1a8;
    --ink: #17284a;
    --muted: #62718a;
    --line: #d9e1ec;
    --wash: #fff;
    --white: #fff;
    --shadow-sm: 0 5px 18px rgba(16, 41, 75, .06);
    --shadow-md: 0 14px 38px rgba(16, 41, 75, .1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Susun atur portal rasmi berinspirasikan hierarki Portal KPM */
.site-header {
    border: 0;
    box-shadow: none;
}

.site-header::after {
    display: none;
}

.utility-bar {
    color: #fff;
    background: #103d69;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    min-height: 42px;
    margin-inline: auto;
    gap: 24px;
}

.utility-inner p {
    margin: 0;
    font-size: .65rem;
    letter-spacing: .01em;
}

.utility-links {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.utility-links a {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .16);
    font-size: .62rem;
    font-weight: 600;
    text-decoration: none;
}

.utility-links a:hover,
.utility-links a:focus-visible {
    color: var(--gold-500);
    background: rgba(255, 255, 255, .07);
}

.brand-band {
    background: #fff;
}

.brand-band .header-inner {
    min-height: 126px;
}

.brand-band .identity {
    min-width: 0;
}

.brand-band .identity-logo {
    width: 78px;
    height: 78px;
}

.brand-band .identity small {
    margin-bottom: 5px;
    color: #596474;
    font-size: .68rem;
}

.brand-band .identity strong {
    color: #303a47;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    line-height: 1.13;
    text-transform: uppercase;
}

.brand-band .identity em {
    margin-top: 7px;
    color: var(--navy-800);
    font-size: .66rem;
    font-weight: 600;
}

.brand-motto {
    padding-left: 25px;
    text-align: right;
    border-left: 1px solid var(--line);
}

.brand-motto span,
.brand-motto strong {
    display: block;
}

.brand-motto span {
    color: var(--red-500);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-motto strong {
    margin-top: 5px;
    color: var(--navy-900);
    font-size: .72rem;
}

.primary-nav {
    background: #0c3762;
    border-bottom: 5px solid var(--gold-500);
}

.primary-nav .navigation {
    display: grid;
    grid-template-columns: repeat(8, minmax(105px, 1fr));
    justify-content: stretch;
    width: min(1180px, 100%);
    margin-inline: auto;
    gap: 0;
}

.primary-nav .navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 9px;
    color: #fff;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, .13);
    border-radius: 0;
    font-size: .68rem;
    text-transform: uppercase;
}

.primary-nav .navigation a:first-child {
    border-left: 1px solid rgba(255, 255, 255, .13);
}

.primary-nav .navigation a:hover,
.primary-nav .navigation a:focus-visible {
    color: var(--gold-500);
    background: rgba(0, 0, 0, .13);
}

.primary-nav .navigation a.active {
    color: var(--navy-950);
    background: var(--gold-500);
}

.primary-nav .navigation a.active::after {
    display: none;
}

@media (max-width: 820px) {
    .brand-motto {
        display: none;
    }

    .brand-band .header-inner {
        min-height: 105px;
    }

    .primary-nav {
        overflow-x: auto;
    }

    .primary-nav .navigation {
        width: max-content;
        min-width: 100%;
    }

    .primary-nav .navigation a {
        min-width: 118px;
    }
}

@media (max-width: 560px) {
    .utility-inner {
        width: min(100% - 24px, 1180px);
    }

    .utility-links a {
        padding-inline: 8px;
    }

    .utility-links a:nth-child(2) {
        display: none;
    }

    .brand-band .header-inner {
        width: min(100% - 24px, 1180px);
        min-height: 96px;
    }

    .brand-band .identity-logo {
        width: 62px;
        height: 62px;
    }

    .brand-band .identity strong {
        font-size: .96rem;
    }

    .brand-band .identity em {
        font-size: .55rem;
    }
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    border-top: 5px solid var(--navy-900);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(16, 41, 75, .04);
}

.site-header::after {
    position: absolute;
    top: -5px;
    right: 0;
    width: 34%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-500) 0 62%, var(--red-500) 62%);
    content: "";
}

.header-inner,
.hero-inner,
.content,
.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 30px;
}

.identity {
    display: inline-flex;
    align-items: center;
    min-width: 310px;
    color: var(--ink);
    text-decoration: none;
    gap: 13px;
}

.identity-logo {
    display: block;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.identity span {
    min-width: 0;
}

.identity strong,
.identity small,
.identity em {
    display: block;
}

.identity strong {
    color: var(--navy-900);
    font-size: 1.28rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.15;
}

.identity small {
    margin-bottom: 2px;
    color: var(--red-500);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.identity em {
    margin-top: 3px;
    color: var(--muted);
    font-size: .63rem;
    font-style: normal;
    line-height: 1.3;
}

.identity strong + small {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .63rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.navigation a {
    position: relative;
    padding: 12px 9px;
    color: #40526d;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.navigation a:hover,
.navigation a:focus-visible {
    color: var(--navy-900);
    background: #eef3f8;
}

.navigation a.active {
    color: var(--white);
    background: var(--navy-900);
}

.navigation a.active::after {
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    height: 2px;
    background: var(--gold-500);
    content: "";
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 30, 65, .98), rgba(11, 46, 99, .94)),
        var(--navy-900);
    border-bottom: 5px solid var(--gold-500);
}

.hero::after {
    position: absolute;
    top: -180px;
    right: -100px;
    width: 430px;
    height: 430px;
    border: 70px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-block: 53px 58px;
}

.eyebrow,
.section-label,
.portal-kicker {
    margin: 0 0 10px;
    color: var(--gold-500);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-label {
    color: var(--blue-600);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}

.hero-copy {
    max-width: 720px;
    margin: 18px 0 0;
    color: #d4e0ec;
    font-size: .95rem;
    line-height: 1.7;
}

.content {
    padding-block: 48px 75px;
}

.section-heading,
.portal-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 23px;
    gap: 28px;
}

.section-heading h2,
.portal-section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.portal-section-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.65;
}

.academic-year {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--navy-800);
    background: #e6edf6;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 800;
}

.lead-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 175px;
    padding: 31px;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-900);
    border-left: 6px solid var(--gold-500);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    gap: 24px;
}

.lead-card::after {
    position: absolute;
    right: -45px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 45px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
}

.lead-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 104px;
    height: 122px;
    overflow: hidden;
    color: var(--navy-950);
    background: var(--gold-500);
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 900;
    place-items: center;
}

.lead-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.role {
    margin: 0 0 7px;
    color: var(--blue-600);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.lead-card .role {
    color: var(--gold-200);
}

.lead-card h3 {
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.15;
}

.lead-note {
    margin: 9px 0 0;
    color: #c5d4e3;
    font-size: .78rem;
}

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

.officer-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy-800);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.officer-card .number {
    display: block;
    margin: 0;
    color: #a9b6c5;
    font-size: 1.25rem;
    font-weight: 700;
}

.officer-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 88px;
    margin-bottom: 20px;
    gap: 14px;
}

.officer-photo {
    display: block;
    width: 70px;
    height: 84px;
    object-fit: cover;
    object-position: center top;
    background: #edf2f7;
    border: 1px solid #d8e1eb;
    border-radius: 6px;
}

.officer-photo-fallback {
    display: grid;
    color: #fff;
    background: var(--navy-800);
    border-color: var(--navy-800);
    font-size: 1rem;
    font-weight: 800;
    place-items: center;
}

.officer-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.officer-card.vacant {
    background: repeating-linear-gradient(135deg, #fff, #fff 10px, #fafbfd 10px, #fafbfd 20px);
    border-top-color: #b5c0cd;
}

.officer-card.vacant h3 {
    color: #8a98a8;
    font-style: italic;
    font-weight: 500;
}

.vacancy-label {
    display: inline-block;
    margin-top: 13px;
    padding: 6px 9px;
    color: #66788b;
    background: #edf2f7;
    border-radius: 4px;
    font-size: .62rem;
    font-weight: 700;
}

.site-footer {
    color: #d0dceb;
    background: var(--navy-950);
    border-top: 4px solid var(--red-500);
}

.footer-main,
.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.65fr 1.15fr .9fr .9fr;
    padding-block: 46px 40px;
    gap: 38px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-brand img {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    color: var(--gold-500);
    font-size: 1.18rem;
}

.footer-brand p,
.footer-brand small {
    display: block;
    margin: 5px 0 0;
    line-height: 1.55;
}

.footer-brand p {
    color: #e1e9f2;
    font-size: .7rem;
    font-weight: 600;
}

.footer-brand small {
    color: #9dafc3;
    font-size: .6rem;
}

.footer-section {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.footer-section h2 {
    margin: 0 0 7px;
    color: var(--white);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-section a,
.footer-section span,
.footer-section address {
    color: #adbdcf;
    font-size: .63rem;
    font-style: normal;
    line-height: 1.6;
    text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus-visible {
    color: var(--gold-500);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    gap: 25px;
}

.footer-bottom p {
    margin: 0;
    color: #94a7bc;
    font-size: .6rem;
}

.site-footer > center {
    display: block;
    padding: 12px 20px 14px;
    background: #041a35;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.site-footer > center a,
.site-footer > center img {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 1040px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 14px 12px;
        gap: 8px;
    }

    .navigation {
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 2px;
        overflow-x: auto;
    }
}

@media (max-width: 780px) {
    .officer-grid {
        grid-template-columns: 1fr;
    }

    .officer-card {
        min-height: 0;
    }

    .officer-card .number {
        margin: 0;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .header-inner,
    .hero-inner,
    .content,
    .footer-main,
    .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .identity {
        min-width: 0;
    }

    .identity-logo {
        width: 50px;
        height: 50px;
    }

    .identity em,
    .identity strong + small {
        max-width: 240px;
    }

    .navigation a {
        padding: 10px 9px;
    }

    .hero-inner {
        padding-block: 43px 48px;
    }

    .content {
        padding-block: 35px 55px;
    }

    .section-heading,
    .portal-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .lead-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .lead-avatar {
        width: 68px;
        height: 68px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding-block: 36px;
        gap: 28px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 24px;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
