/*
|--------------------------------------------------------------------------
| WEB-01 — BERANDA MODERN MBKM UMSI
|--------------------------------------------------------------------------
| CSS ini hanya digunakan oleh folder /preview-modern/.
|--------------------------------------------------------------------------
*/

:root {
    --green-950: #043428;
    --green-900: #064633;
    --green-800: #07583e;
    --green-700: #006b45;
    --green-600: #008654;
    --green-500: #00a15f;
    --gold-500: #f7bb2e;
    --gold-400: #ffd25b;
    --ink-900: #16251f;
    --ink-700: #40534b;
    --ink-500: #708078;
    --surface: #ffffff;
    --surface-soft: #f4f8f6;
    --border: #e2ece7;
    --shadow-sm: 0 8px 24px rgba(5, 59, 42, 0.08);
    --shadow-md: 0 18px 50px rgba(5, 59, 42, 0.13);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --shell: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: min(var(--shell), calc(100% - 40px));
    margin-inline: auto;
}

.preview-banner {
    position: relative;
    z-index: 1200;
    color: #eaf7f1;
    background: #082f25;
    font-size: 13px;
}

.preview-banner__inner {
    width: min(var(--shell), calc(100% - 40px));
    min-height: 38px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.preview-banner__inner > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-banner__actions {
    display: flex;
    gap: 16px;
}

.preview-banner__actions a {
    color: #d9f4e8;
    font-weight: 700;
}

.preview-banner__actions a:hover {
    color: #ffffff;
}

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--surface);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 10px 30px rgba(5, 59, 42, 0.1);
}

.topbar {
    color: #ffffff;
    background: linear-gradient(90deg, var(--green-800), var(--green-700));
}

.topbar__inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.topbar__location,
.topbar__right,
.social-links {
    display: flex;
    align-items: center;
}

.topbar__location {
    gap: 9px;
    min-width: 0;
}

.topbar__location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__right {
    gap: 18px;
}

.topbar__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.social-links {
    gap: 8px;
}

.social-links a,
.footer-social a {
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: transform .2s ease, background-color .2s ease;
}

.social-links a {
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.social-links a:hover,
.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.login-button {
    min-height: 30px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-950);
    background: var(--gold-400);
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.mainnav {
    border-bottom: 1px solid var(--border);
}

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

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

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand strong {
    color: var(--green-800);
    font-size: 19px;
}

.brand small {
    margin-top: 5px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
}

.main-menu a {
    position: relative;
    color: #21342c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -10px;
    height: 2px;
    background: var(--gold-500);
    transition: right .25s ease;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--green-700);
}

.main-menu a:hover::after,
.main-menu a.active::after {
    right: 0;
}

.nav-toggle {
    display: none;
    width: 45px;
    height: 45px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: var(--surface-soft);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 5px;
    background: var(--green-900);
    transition: transform .25s ease, opacity .25s ease;
}

.hero-section {
    padding: 20px 0 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(247, 187, 46, .15), transparent 23%),
        linear-gradient(#ffffff, #f8fbf9);
}

.hero-slider {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 161, 95, .38), transparent 35%),
        linear-gradient(125deg, #043428 0%, #00543a 58%, #087051 100%);
    box-shadow: var(--shadow-md);
}

.hero-slider::before,
.hero-slider::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hero-slider::before {
    width: 420px;
    height: 420px;
    right: -210px;
    bottom: -220px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .025),
        0 0 0 90px rgba(255, 255, 255, .02);
}

.hero-slider::after {
    width: 240px;
    height: 240px;
    left: -160px;
    top: -130px;
    background: rgba(247, 187, 46, .08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 54px 64px 60px;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(460px, 1.14fr);
    gap: 50px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide__content {
    position: relative;
    z-index: 3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-400);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.eyebrow::after {
    content: "";
    width: 48px;
    height: 2px;
    background: var(--gold-500);
}

.eyebrow--dark {
    color: var(--green-700);
}

.hero-slide h1 {
    max-width: 600px;
    margin: 18px 0 20px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 5vw, 68px);
    line-height: .99;
    letter-spacing: -.035em;
}

.hero-slide p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--gold {
    color: #17352a;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 12px 25px rgba(247, 187, 46, .2);
}

.button--gold:hover {
    box-shadow: 0 16px 28px rgba(247, 187, 46, .28);
}

.button--outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .04);
}

.button--outline:hover {
    background: rgba(255, 255, 255, .12);
}

.hero-slide__visual {
    position: relative;
    min-width: 0;
}

.hero-image {
    min-height: 350px;
    border: 2px solid rgba(247, 187, 46, .55);
    border-radius: 36px 36px 36px 80px;
    background-color: #0d6249;
    background-position: center;
    background-size: cover;
    box-shadow: 0 24px 45px rgba(0, 0, 0, .25);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 55%, rgba(2, 42, 31, .22));
    pointer-events: none;
}

.hero-image--fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(247, 187, 46, .16), transparent 55%),
        linear-gradient(135deg, #087051, #003e2c);
}

.fallback-campus {
    display: grid;
    place-items: center;
    gap: 18px;
    text-align: center;
    color: rgba(255, 255, 255, .86);
}

.fallback-campus i {
    font-size: 72px;
    color: var(--gold-400);
}

.featured-card {
    position: relative;
    z-index: 3;
    width: min(430px, calc(100% - 34px));
    margin: -80px auto 0;
    padding: 21px 22px;
    display: grid;
    grid-template-columns: 1fr 76px;
    gap: 18px;
    align-items: center;
    color: var(--ink-900);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(4, 52, 40, .23);
    backdrop-filter: blur(10px);
}

.featured-card__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.featured-card__text > span {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.featured-card__text strong {
    margin: 5px 0;
    font-size: 15px;
    line-height: 1.3;
}

.featured-card__text small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-card__date {
    min-height: 76px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
    line-height: 1;
}

.featured-card__date b {
    font-family: Georgia, serif;
    font-size: 30px;
}

.featured-card__date span {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 900;
}

.slider-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    width: 44px;
    height: 62px;
    margin-top: -31px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 161, 95, .86);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.slider-arrow:hover {
    background: var(--green-500);
}

.slider-arrow--prev {
    left: 0;
    border-radius: 0 14px 14px 0;
}

.slider-arrow--next {
    right: 0;
    border-radius: 14px 0 0 14px;
}

.slider-dots {
    position: absolute;
    z-index: 12;
    left: 64px;
    bottom: 28px;
    display: flex;
    gap: 9px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
}

.slider-dots button.is-active {
    width: 26px;
    border-radius: 10px;
    background: var(--gold-500);
}

.quick-section {
    position: relative;
    z-index: 20;
    margin-top: -28px;
}

.quick-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-md);
}

.quick-card {
    min-width: 0;
    min-height: 92px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    background: var(--surface-soft);
}

.quick-card > i {
    flex: 0 0 40px;
    font-size: 28px;
    color: var(--green-700);
    text-align: center;
}

.quick-card span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.quick-card strong {
    font-size: 13px;
}

.quick-card small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 10px;
    line-height: 1.4;
}

.stats-section {
    padding: 30px 0 0;
}

.stats-card {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgba(247, 187, 46, .06), transparent 20%, transparent 80%, rgba(247, 187, 46, .06)),
        #ffffff;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    min-width: 0;
    padding: 0 26px;
    display: flex;
    align-items: center;
    gap: 17px;
    border-right: 1px solid var(--border);
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.stat-item > i {
    flex: 0 0 auto;
    font-size: 35px;
    color: var(--green-700);
}

.stat-item div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    color: var(--green-800);
    font-family: Georgia, serif;
    font-size: 29px;
    line-height: 1;
}

.stat-item span {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 900;
}

.stat-item small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 10px;
}

.news-section {
    padding: 66px 0;
}

.section-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.cta-card h2 {
    margin: 8px 0 0;
    font-family: Georgia, serif;
    font-size: clamp(31px, 4vw, 45px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 900;
}

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

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-card__image {
    min-height: 210px;
    display: block;
    background-color: #dfeee7;
    background-position: center;
    background-size: cover;
}

.news-card__image--fallback {
    display: grid;
    place-items: center;
    color: var(--green-700);
    background:
        radial-gradient(circle at 80% 15%, rgba(247, 187, 46, .2), transparent 28%),
        linear-gradient(135deg, #edf7f2, #dbece4);
}

.news-card__image--fallback i {
    font-size: 58px;
}

.news-card__body {
    padding: 22px;
}

.news-card__category {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.news-card h3 {
    margin: 7px 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.news-card h3 a:hover {
    color: var(--green-700);
}

.news-card p {
    min-height: 50px;
    margin: 0;
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.65;
}

.news-card__meta {
    margin-top: 18px;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    color: var(--ink-500);
    font-size: 11px;
}

.news-card__meta a {
    color: var(--green-700);
    font-weight: 900;
}

.empty-state {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px dashed #b8ccc3;
    border-radius: var(--radius-md);
    color: var(--ink-500);
    background: var(--surface-soft);
}

.empty-state i {
    font-size: 42px;
    color: var(--green-700);
}

.cta-section {
    padding: 0 0 70px;
}

.cta-card {
    padding: 42px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 30%, rgba(247, 187, 46, .16), transparent 28%),
        linear-gradient(125deg, #043428, #006b45);
    box-shadow: var(--shadow-md);
}

.cta-card::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -120px;
    bottom: -170px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025), 0 0 0 70px rgba(255, 255, 255, .02);
}

.cta-card > * {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    max-width: 760px;
    color: #ffffff;
}

.cta-card p {
    max-width: 750px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
}

.site-footer {
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(circle at 88% 0, rgba(247, 187, 46, .08), transparent 24%),
        #043428;
}

.footer-grid {
    padding: 52px 0 45px;
    display: grid;
    grid-template-columns: 1.6fr .75fr 1.25fr .65fr;
    gap: 50px;
}

.footer-brand > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
}

.footer-brand span {
    color: var(--gold-400);
    font-size: 11px;
    font-weight: 700;
}

.footer-brand p {
    max-width: 390px;
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.75;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 14px;
}

.footer-column a,
.footer-column p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.65;
}

.footer-column a:hover {
    color: var(--gold-400);
}

.footer-column p i {
    width: 18px;
    color: var(--gold-400);
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom .shell {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
}

@media (max-width: 1120px) {
    .main-menu {
        gap: 15px;
    }

    .main-menu a {
        font-size: 11px;
    }

    .hero-slide {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
        gap: 34px;
        padding-inline: 52px;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .preview-banner__actions a:first-child {
        display: none;
    }

    .topbar__location {
        max-width: 58%;
    }

    .topbar__date,
    .social-links {
        display: none;
    }

    .mainnav__inner {
        min-height: 76px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand strong {
        font-size: 16px;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-menu {
        position: fixed;
        z-index: 1001;
        inset: 0 0 0 auto;
        width: min(360px, 88vw);
        padding: 110px 32px 40px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        background: #ffffff;
        box-shadow: -20px 0 50px rgba(3, 40, 29, .18);
        transform: translateX(110%);
        transition: transform .3s ease;
    }

    .main-menu::before {
        content: "";
        position: fixed;
        z-index: -1;
        inset: 0 100% 0 auto;
        width: 100vw;
        background: rgba(3, 31, 23, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }

    .main-menu.is-open {
        transform: translateX(0);
    }

    .main-menu.is-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .main-menu a {
        padding: 14px 6px;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
    }

    .main-menu a::after {
        display: none;
    }

    .hero-slider {
        min-height: 0;
    }

    .hero-slide {
        padding: 46px 42px 72px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-slide h1 {
        font-size: clamp(43px, 9vw, 62px);
    }

    .hero-image {
        min-height: 380px;
    }

    .slider-dots {
        left: 42px;
    }

    .stats-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 0;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(3) {
        padding-left: 0;
    }

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

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

@media (max-width: 640px) {
    .shell,
    .preview-banner__inner {
        width: min(100% - 24px, var(--shell));
    }

    .preview-banner {
        font-size: 11px;
    }

    .preview-banner__actions {
        display: none;
    }

    .topbar__inner {
        min-height: 82px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .topbar__location {
        max-width: 100%;
        align-items: flex-start;
    }

    .topbar__location span {
        white-space: normal;
        font-size: 11px;
        line-height: 1.45;
    }

    .topbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .topbar__date {
        display: inline-flex;
        font-size: 11px;
    }

    .login-button {
        min-height: 28px;
        padding-inline: 12px;
        font-size: 10px;
    }

    .mainnav__inner {
        min-height: 74px;
    }

    .brand {
        gap: 9px;
    }

    .brand img {
        width: 47px;
        height: 47px;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        font-size: 9px;
    }

    .hero-section {
        padding-top: 12px;
    }

    .hero-slider {
        border-radius: 24px;
    }

    .hero-slide {
        padding: 34px 22px 68px;
        gap: 27px;
    }

    .hero-slide h1 {
        margin-block: 13px 16px;
        font-size: 39px;
    }

    .hero-slide p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-actions {
        margin-top: 23px;
        gap: 9px;
    }

    .button {
        min-height: 43px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .hero-image {
        min-height: 270px;
        border-radius: 26px 26px 26px 54px;
    }

    .featured-card {
        width: calc(100% - 18px);
        margin-top: -55px;
        padding: 15px;
        grid-template-columns: 1fr 55px;
        gap: 10px;
        border-radius: 16px;
    }

    .featured-card__text strong {
        font-size: 12px;
    }

    .featured-card__text small {
        font-size: 9px;
    }

    .featured-card__date {
        min-height: 58px;
        padding-left: 9px;
    }

    .featured-card__date b {
        font-size: 23px;
    }

    .featured-card__date span {
        font-size: 8px;
    }

    .slider-arrow {
        width: 36px;
        height: 54px;
        margin-top: -27px;
    }

    .slider-dots {
        left: 22px;
        bottom: 27px;
    }

    .quick-section {
        margin-top: -18px;
    }

    .quick-grid {
        padding: 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        border-radius: 18px;
    }

    .quick-card {
        min-height: 100px;
        padding: 11px 7px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .quick-card > i {
        flex-basis: auto;
        font-size: 23px;
    }

    .quick-card strong {
        font-size: 11px;
    }

    .quick-card small {
        display: none;
    }

    .stats-section {
        padding-top: 20px;
    }

    .stats-card {
        padding: 20px 12px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        overflow-x: auto;
    }

    .stat-item {
        min-width: 0;
        padding: 0 8px !important;
        flex-direction: column;
        gap: 6px;
        border-right: 1px solid var(--border) !important;
        text-align: center;
    }

    .stat-item:last-child {
        border-right: 0 !important;
    }

    .stat-item > i {
        font-size: 22px;
    }

    .stat-item strong {
        font-size: 18px;
    }

    .stat-item span {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.2;
    }

    .stat-item small {
        display: none;
    }

    .news-section {
        padding-block: 48px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .section-heading > a {
        font-size: 10px;
        white-space: nowrap;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        border-radius: 17px;
    }

    .news-card__image {
        min-height: 100%;
    }

    .news-card__body {
        padding: 16px;
    }

    .news-card h3 {
        margin-block: 5px 7px;
        font-size: 15px;
    }

    .news-card p {
        min-height: 0;
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .news-card__meta {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 9px;
    }

    .cta-card {
        padding: 34px 25px;
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        border-radius: 23px;
    }

    .cta-card h2 {
        font-size: 31px;
    }

    .cta-card p {
        font-size: 13px;
    }

    .footer-grid {
        padding-block: 42px 35px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .shell {
        min-height: 66px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================================
   WEB-02 LINK01 — NAVIGASI SESUAI RUTE LEGACY
   ========================================================================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-dropdown > a {
    position: relative;
    color: #21342c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .015em;
    white-space: nowrap;
}

.nav-dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -10px;
    height: 2px;
    background: var(--gold-500);
    transition: right .25s ease;
}

.nav-dropdown:hover > a,
.nav-dropdown:focus-within > a,
.nav-dropdown.is-open > a {
    color: var(--green-700);
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after,
.nav-dropdown.is-open > a::after {
    right: 0;
}

.nav-dropdown__toggle {
    width: 27px;
    height: 31px;
    margin-left: 2px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--ink-700);
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown__toggle {
    color: var(--green-700);
    background: var(--surface-soft);
}

.nav-dropdown__toggle i {
    font-size: 9px;
    transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown__toggle i,
.nav-dropdown:focus-within .nav-dropdown__toggle i,
.nav-dropdown.is-open .nav-dropdown__toggle i {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 15px);
    left: -18px;
    width: max-content;
    min-width: 230px;
    max-width: min(340px, 82vw);
    padding: 10px;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(9px);
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(5, 59, 42, .16);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.nav-dropdown__menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -17px;
    height: 18px;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-menu .nav-dropdown__menu a {
    padding: 10px 12px;
    display: block;
    color: var(--ink-700);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.main-menu .nav-dropdown__menu a::after {
    display: none;
}

.main-menu .nav-dropdown__menu a:hover,
.main-menu .nav-dropdown__menu a:focus-visible {
    color: var(--green-800);
    background: var(--surface-soft);
}

.nav-dropdown__empty {
    padding: 10px 12px;
    color: var(--ink-500);
    font-size: 12px;
}

@media (max-width: 1120px) and (min-width: 901px) {
    .nav-dropdown > a {
        font-size: 11px;
    }

    .nav-dropdown__toggle {
        width: 22px;
        margin-left: -1px;
    }
}

@media (max-width: 900px) {
    .nav-dropdown {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 45px;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
    }

    .nav-dropdown > a {
        padding: 14px 6px;
        display: flex;
        align-items: center;
        font-size: 14px;
        border-bottom: 0;
    }

    .nav-dropdown > a::after {
        display: none;
    }

    .nav-dropdown__toggle {
        width: 45px;
        height: auto;
        min-height: 48px;
        margin: 0;
        border-radius: 10px;
    }

    .nav-dropdown__menu {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 0;
        padding: 0 0 0 14px;
        gap: 2px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: none;
        border: 0;
        border-radius: 0;
        background: #f7faf8;
        box-shadow: none;
        transition:
            max-height .28s ease,
            padding .28s ease;
    }

    .nav-dropdown__menu::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown__menu,
    .nav-dropdown:focus-within .nav-dropdown__menu {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        pointer-events: none;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        max-height: 520px;
        padding-top: 7px;
        padding-bottom: 10px;
        pointer-events: auto;
    }

    .main-menu .nav-dropdown__menu a {
        padding: 10px 12px;
        border-bottom: 0;
        font-size: 13px;
    }
}

