:root {
    --paper: #f2f4ee;
    --ink: #10242e;
    --muted: #51646c;
    --sun: #f0b92b;
    --sea: #1b6f8a;
    --line: #cfd8d2;
    --deep: #10242e;
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-body-font-family: "Instrument Sans", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        animation: none !important;
        transition: none !important
    }
}

body {
    background: var(--paper);
    color: var(--ink)
}

[hidden] {
    display: none !important
}

h1,
h2,
h3,
.display-6 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-weight: 800
}

.text-secondary {
    color: var(--muted) !important
}

.py-section {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem)
}

.line-top {
    border-top: 1px solid var(--line)
}

:focus-visible {
    outline: 3px solid var(--sun) !important;
    outline-offset: 3px;
    box-shadow: none !important
}

/* Navbar */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 0
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%
}

.brand-logo-lg {
    width: 56px;
    height: 56px
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.2;
    white-space: normal
}

.brand-text small {
    font-weight: 400;
    color: var(--muted);
    font-size: .7rem
}

.nav-link {
    color: var(--muted) !important;
    font-size: .92rem;
    font-weight: 500;
    padding: .6rem .8rem !important;
    position: relative
}

.nav-link:hover {
    color: var(--ink) !important
}

.nav-link.active {
    color: var(--ink) !important;
    font-weight: 600
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .2rem;
    height: 3px;
    background: var(--sun);
    border-radius: 2px
}

.dropdown-menu {
    border-radius: 4px;
    border-color: var(--line)
}

.dropdown-item:active {
    background: var(--sun);
    color: var(--ink)
}

.btn-icon {
    background: none;
    border: 0;
    font-size: 1.1rem;
    color: var(--ink)
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 600
}

.btn-sun {
    background: var(--sun);
    color: #10242e;
    border: 0
}

.btn-sun:hover {
    background: #f6c84f;
    color: #10242e
}

.btn-outline-sea {
    background: transparent;
    color: var(--sea);
    border: 1px solid var(--sea)
}

.btn-outline-sea:hover {
    background: var(--sea);
    color: #fff
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: clamp(380px, 48vw, 500px);
    display: flex;
    align-items: center;
    padding: 3rem 0 5.5rem;
    background: var(--deep);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(16, 36, 46, .92) 0%, rgba(16, 36, 46, .72) 40%, rgba(16, 36, 46, .15) 75%)
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1140px
}

.hero-inner>* {
    max-width: 34rem
}

.hero-kicker {
    color: var(--sun);
    font-weight: 600;
    margin-bottom: .5rem
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800
}

.hero h1 span {
    color: var(--sun)
}

.hero-sub {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin: .75rem 0 .5rem
}

.hero-lead {
    color: #d3dee2;
    margin-bottom: 1.5rem
}

/* Strip fitur */
.feature-wrap {
    position: relative;
    z-index: 5;
    margin-top: -3rem
}

.feature-strip {
    list-style: none;
    margin: 0;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .25rem;
    box-shadow: 0 10px 30px rgba(16, 36, 46, .12)
}

.feature-strip li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25
}

.feature-strip li+li {
    border-left: 1px solid var(--line)
}

.feature-strip i {
    font-size: 1.5rem;
    color: var(--sea)
}

/* Kartu program studi */
.prodi-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--sun);
    border-radius: 8px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.prodi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(16, 36, 46, .14);
    border-top-color: var(--sea)
}

.prodi-level {
    position: absolute;
    top: .25rem;
    right: 1rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--sea);
    opacity: .1;
    pointer-events: none
}

.prodi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--sea);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem
}

.prodi-card h3 {
    font-size: 1.25rem;
    margin-bottom: .6rem
}

.prodi-card p {
    color: var(--muted);
    font-size: .95rem;
    flex: 1;
    margin-bottom: 1.25rem
}

.row-tag {
    border: 1px solid var(--sea);
    color: var(--sea);
    border-radius: 99px;
    padding: .1rem .75rem;
    font-size: .85rem;
    white-space: nowrap
}

/* Statistik */
.stats {
    background: var(--deep);
    color: #eef2ec
}

.stat {
    border-left: 3px solid var(--sun);
    padding-left: 1rem;
    display: flex;
    flex-direction: column-reverse
}

.stat dd {
    margin: 0 0 .4rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1
}

.stat dt {
    font-weight: 400;
    color: #b9c9cf;
    font-size: .95rem
}

/* Dokumen PDF (Jadwal & Kalender) */
.doc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--sun);
    border-radius: 8px;
    padding: 1.5rem;
    scroll-margin-top: 90px
}

.doc-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem
}

.doc-frame {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper)
}

.doc-fallback {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted)
}

.doc-fallback a {
    color: var(--sea);
    font-weight: 600
}

/* Berita */
.news-item {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    margin: 0
}

.news-item time {
    color: var(--sea);
    font-weight: 600
}

.news-item h3 {
    font-size: 1.35rem;
    margin-bottom: .35rem
}

/* Footer */
.footer {
    background: var(--deep);
    color: #b9c9cf;
    padding: 2.5rem 0
}

.copy {
    font-size: .85rem
}

@media (max-width:991px) {
    .brand-text small {
        display: none
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr)
    }

    .feature-strip li+li {
        border-left: 0
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(16, 36, 46, .88), rgba(16, 36, 46, .65))
    }

    .nav-link.active::after {
        display: none
    }
}

@media (min-width:576px) and (max-width:991px) {
    .feature-strip {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:575px) {
    .doc-card {
        padding: 1rem
    }

    .doc-frame {
        height: 60vh
    }
}