/* =========================================================
1. DESIGN TOKENS
========================================================= */
:root {
    /* Brand */
    --primary: #008040;
    --primary-600: #006b36;
    --primary-700: #00552b;
    --primary-900: #00381c;
    --primary-100: #d5e9dd;
    --primary-50: #eef7f2;

    /* Surfaces */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8f7f3; /* warm neutral */
    --surface-glass: rgba(255, 255, 255, 0.3); /* warm neutral 80 opacity */
    --surface-soft: #e6f1ea; /* soft green */
    --surface-tint: #f0f7f3; /* very light green */
    --deep: #00552b; /* PPDB section */
    --footer-bg: #0c3a21;

    /* Text */
    --text: #14201a;
    --text-secondary: #3d4b44;
    --text-muted: #6d7c74;

    /* Lines */
    --border: #e3e9e4;
    --border-strong: #cdd8d1;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(16, 32, 24, 0.05), 0 1px 3px rgba(16, 32, 24, 0.04);
    --shadow-md: 0 10px 28px -14px rgba(16, 32, 24, 0.22);

    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

    --hero-overlay-desktop: linear-gradient(90deg, rgba(0, 128, 64, 100) 0%, rgba(0, 128, 64, 0.82) 32%, rgba(0, 128, 64, 0.34) 64%, rgba(0, 128, 64, 0) 100%);
    --hero-overlay-mobile: linear-gradient(180deg, rgba(0, 128, 64, 0.86) 0%, rgba(0, 128, 64, 0.58) 54%, rgba(0, 128, 64, 0.12) 100%);
}

/* html[data-theme="dark"] {
    --primary: #33a06c;
    --primary-600: #2e9362;
    --primary-700: #46b47e;
    --primary-900: #0b2a1a;
    --primary-100: #17301f;
    --primary-50: #111d16;

    --bg: #0d1310;
    --surface: #141b17;
    --surface-alt: #111815;
    --surface-glass: rgba(17, 24, 21, 0.5);
    --surface-soft: #12211a;
    --surface-tint: #101a15;
    --deep: #0e2a1b;
    --footer-bg: #0a1a12;

    --text: #e9efeb;
    --text-secondary: #c0cec6;
    --text-muted: #8b9a92;

    --border: #24302a;
    --border-strong: #33413a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 30px -16px rgba(0, 0, 0, 0.8);
} */

/* =========================================================
2. BASE
========================================================= */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.72;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

html,
body {
    max-width: 100vw;
    overflow-x: clip;
}

ol,
ul {
    padding-left: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
}

p {
    margin: 0;
}

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

img {
    max-width: 100%;
}

section[id] {
    scroll-margin-top: 92px;
}

::selection {
    background: color-mix(in srgb, var(--primary) 60%, transparent);
    color: #fff;
}

/* =========================================================
3. UTILITIES
========================================================= */
.section {
    padding: 3.5rem 0;
    position: relative;
}
.section--tight {
    padding: 4.25rem 0;
}
.section--white {
    background: var(--bg);
}
.section--tint {
    background: var(--surface-tint);
}
.section--soft {
    background: var(--surface-soft);
}
.section--neutral {
    background: var(--surface-alt);
}
.section--deep {
    background: var(--deep);
    color: #fff;
}

.eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.9rem;
    display: block;
}
.section--deep .eyebrow {
    color: #8fd7b2;
}

.h-section {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 600;
}

.lead-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 60ch;
}
.section--deep .lead-text {
    color: rgba(255, 255, 255, 0.78);
}

.text-muted-2 {
    color: var(--text-muted);
}

.hairline {
    height: 1px;
    background: var(--border);
    border: 0;
    opacity: 1;
    margin: 0;
}

/* =========================================================
4. BUTTONS
========================================================= */
.btn {
    position: relative !important;

    overflow: hidden !important;

    isolation: isolate !important;

    font-family: "Inter", sans-serif !important;

    font-size: 0.9375rem !important;

    font-weight: 500 !important;

    border-radius: var(--radius-sm) !important;

    padding: 0.72rem 1.35rem !important;

    display: inline-flex !important;

    align-items: center !important;

    gap: 0.55rem !important;

    cursor: pointer !important;

    border: 1px solid var(--btn-border) !important;

    background: var(--btn-bg) !important;

    color: var(--btn-text) !important;

    transition:
        color 0.45s var(--ease),
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}

/* SWIPE / FILL LAYER */

.btn::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    top: -25% !important;
    left: -10% !important;
    width: 0% !important;
    height: 150% !important;
    border-radius: 999px !important;
    background: var(--swipe-color) !important;
    transform: scaleX(1) !important;
    transition: width 0.9s var(--ease), border-radius 0.7s var(--ease);
}

/* HOVER → FULL BACKGROUND */
.btn:hover::before {
    width: 120% !important;
    border-radius: var(--radius-sm) !important;
}

/* CONTENT */
.btn > * {
    position: relative !important;
    z-index: 2 !important;
    transition: color 0.45s var(--ease);
}

/* PRIMARY */
.btn-primary {
    --btn-bg: var(--primary);
    --btn-text: #fff;
    --btn-border: var(--surface);
    /* Warna background setelah swipe */
    --swipe-color: var(--primary-700);
}

/* LIGHT SOLID */
.btn-light-solid {
    --btn-bg: #fff;
    --btn-text: var(--primary-700);
    --btn-border: var(--primary-700);
    /* Background baru */
    --swipe-color: var(--primary);
}

/* OUTLINE WHITE */
.btn-outline-white {
    --btn-bg: transparent;
    --btn-text: #fff;
    --btn-border: rgba(255, 255, 255, 0.65);
    /* Background baru */
    --swipe-color: #fff;
}

/* TEXT COLOR AFTER SWIPE */
.btn-primary:hover > * {
    color: #fff !important;
}

.btn-light-solid:hover > * {
    color: #fff !important;
}

.btn-outline-white:hover > * {
    color: var(--primary-900) !important;
}

/* FOCUS */
.btn:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* =========================================================
5. TOPBAR + NAVBAR
========================================================= */
.topbar {
    background: var(--primary-700);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.topbar__group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar__item i {
    font-size: 0.78rem;
    opacity: 0.8;
}

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition:
        box-shadow 0.25s var(--ease),
        background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: 0 4px 18px -12px rgba(16, 32, 24, 0.35);
}

.navbar-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.brand__mark {
    width: 42px;
    height: 42px;
    /* border-radius: var(--radius-sm); */
}
.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand__text strong {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
}
.brand__text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
/* hamburger */
.hamburger {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    flex-shrink: 0;
    background: #111;
    border-radius: 999px;
    transform-origin: center;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}
.hamburger.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.nav-desktop {
    align-items: center;
    gap: 0.25rem;
}
.nav-desktop .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition:
        color 0.2s var(--ease),
        background-color 0.2s var(--ease);
}
.nav-desktop .nav-link.is-active,
.nav-desktop .nav-link:hover {
    color: var(--primary);
    font-weight: bolder;
}
@media (min-width: 992px) {
    .nav-desktop .dropdown {
        position: relative;
    }

    /*
     * Invisible hover bridge
     */
    .nav-desktop .dropdown::after {
        content: "";
        position: absolute;

        left: -5px;
        right: -5px;
        top: 100%;
        height: 25px;

        background: transparent;

        z-index: 999;
    }

    /*
     * DROPDOWN MENU
     */
    .nav-desktop .dropdown > .dropdown-menu {
        display: block;

        position: absolute;
        left: 0;
        top: calc(100% + 10px);

        margin: 0;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-16px);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s linear 0.2s;

        z-index: 1000;
    }

    /*
     * Hover parent
     */
    .nav-desktop .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s;
    }
    .nav-desktop .dropdown > .dropdown-menu::before {
        content: "";

        position: absolute;

        top: -7px;
        left: 24px;

        width: 14px;
        height: 14px;

        background: var(--surface);

        border-radius: 2px 0 0 0;

        transform: rotate(45deg);

        z-index: -1;
    }
}
.nav-desktop .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.28rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-desktop .dropdown-toggle::after {
    font-size: 0.6rem;
    margin-left: 0.35rem;
    vertical-align: 0.12em;
}
.dropdown-toggle.active {
    color: var(--primary);
    font-weight: bolder;
}
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    margin-top: 0.5rem !important;
    min-width: 210px;
}
.dropdown-item .title__page {
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    transition:
        background-color 0.18s var(--ease),
        color 0.18s var(--ease);
    width: 100%;
    margin-bottom: -8px;
}
.dropdown-item span {
    font-size: 0.775rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    transition:
        background-color 0.18s var(--ease),
        color 0.18s var(--ease);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-50);
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    transition: all 0.2s var(--ease);
    border: var(--border) 0.3px solid;
}
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-burger {
    /* width: 40px;
    height: 40px; */
    font-size: 2rem;
    border: none;
    background: transparent;
    color: var(--text);
    display: grid;
    place-items: center;
}

.mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1rem 0 1.4rem;
}
.mobile-nav__links {
    display: flex;
    flex-direction: column;
}
.mobile-nav__links a {
    padding: 0.8rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.mobile-nav__links a:hover {
    color: var(--primary);
}
.mobile-nav__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    padding: 0.85rem 0 0;
}
.mobile-nav__sub a {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem;
    border: 0;
}
.mobile-nav__sub a:hover,
.mobile-nav__sub a:active {
    background: var(--primary);
    border-radius: 2px;
}
/* =========================================================
COUNT
========================================================= */
.count--section {
    position: relative;
    margin-bottom: 2rem;
}

.count--section > .container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    background: var(--surface-glass);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    padding: 1rem;
    z-index: 9999;
    border-radius: var(--radius-md);
}

.count--section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.count-item h3 {
    margin: 0;
    line-height: 1;
}

.count-item small {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.vertical-line {
    display: none;
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
    .count--section .row {
        grid-template-columns: repeat(4, 1fr);
    }

    .count-item {
        position: relative;
    }

    .count-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);

        width: 1px;
        height: 40px;

        background: linear-gradient(to bottom, rgba(var(--border), 0), rgba(var(--border), 1), rgba(var(--border), 0));
    }
}
/* =========================================================
6. HERO
========================================================= */
/* html[data-theme="dark"] .hero::before {
    opacity: 0.07;
} */
.hero > .container {
    position: relative;
    z-index: 1;
}
.hero__title {
    position: relative;
    font-size: clamp(3.8rem, 7vw, 6rem);
    line-height: 0.55; /* Teks saling bertumpuk rapat */
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
    color: #fff;
}
.hero__title span {
    display: block;
    position: relative;
    filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 9px 10px rgba(0, 0, 0, 0.5));
}

.hero__title span:nth-child(1) {
    z-index: 1;
}
.hero__title span:nth-child(2) {
    z-index: 2;
}
.hero__tagline {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.01em;
    margin-bottom: 1.35rem;
}
.hero__tagline span {
    color: var(--border-strong);
    margin: 0 0.35rem;
}
.hero__lead {
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: 1.9rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.hero__points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.hero__points li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

.hero__media {
    position: relative;
    padding-bottom: 1.5rem;
}
.hero__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
    box-shadow: var(--shadow-md);
    margin: 0;
}
.hero__photo--main {
    aspect-ratio: 5 / 4;
}
.hero__photo--sub {
    position: absolute;
    right: -14px;
    bottom: 0;
    width: 42%;
    aspect-ratio: 4 / 3;
    border: 5px solid var(--surface-tint);
    box-shadow: var(--shadow-sm);
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__note {
    position: absolute;
    left: -18px;
    bottom: 2.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.95rem;
    max-width: 215px;
    box-shadow: var(--shadow-sm);
}
.hero__note span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.hero__note p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* =========================================================
7. ABOUT
========================================================= */
.about__media {
    position: relative;
}
.about__media .media {
    border-radius: var(--radius-lg);
    aspect-ratio: 3.5 / 5;
}
.about__accent {
    position: absolute;
    left: -16px;
    bottom: -16px;
    width: 130px;
    height: 130px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    z-index: -1;
}
.about__media-wrap {
    position: relative;
    z-index: 1;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.8rem;
    margin-top: 2.1rem;
}
.pillar {
    border-top: 2px solid var(--border-strong);
    padding-top: 0.9rem;
}
.pillar__label {
    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.35rem;
}
.pillar p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =========================================================
8. PRINCIPAL
========================================================= */
.principal__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
}
.principal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.principal__caption {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-strong);
}
.principal__caption strong {
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    color: var(--text);
}
.principal__caption span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.principal__body p {
    color: var(--text-secondary);
    margin-bottom: 1.05rem;
}
.principal__body p:last-of-type {
    margin-bottom: 0;
}

.principal__more {
    display: none;
}
.principal__more.is-open {
    display: block;
}

.principal__toggle {
    margin-top: 1.6rem;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.principal__toggle i {
    transition: transform 0.25s var(--ease);
    font-size: 0.8rem;
}
.principal__toggle.is-open i {
    transform: rotate(180deg);
}

/* =========================================================
PROGRAM & EKSTRAKURIKULER — EDITORIAL LIST
========================================================= */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}
.section-head__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.section-head__link i {
    font-size: 0.78rem;
    transition: transform 0.25s var(--ease);
}
.section-head__link:hover i {
    transform: translateX(4px);
}
.extra-section {
    overflow: hidden;
}

.extra-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.extra-heading {
    max-width: 760px;
}

.extra-list {
    border-top: 1px solid var(--border);
}

.extra-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 2rem;
    min-height: 175px;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition:
        background-color 0.3s ease,
        padding 0.3s ease;
}

.extra-number {
    align-self: start;
    padding-top: 0.25rem;

    font-family: "Poppins", sans-serif;
    font-size: 2.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.extra-content {
    max-width: 680px;
}

.extra-category {
    display: block;
    margin-bottom: 0.45rem;

    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;

    color: var(--primary);
}

.extra-content h3 {
    margin: 0 0 0.45rem;

    font-family: "Poppins", sans-serif;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 600;

    color: var(--text);
}

.extra-content p {
    max-width: 620px;
    margin: 0;

    font-size: 0.92rem;
    line-height: 1.7;

    color: var(--text-secondary);
}

.extra-media {
    width: 150px;
    height: 105px;
    overflow: hidden;

    border-radius: var(--radius-md);
    background: var(--primary-100);
}

.extra-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.extra-item:not(.extra-item--blur):hover {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background: var(--primary-50);
}

.extra-item:not(.extra-item--blur):hover .extra-number {
    color: var(--primary);
    transform: translateX(2px);
}

.extra-item:not(.extra-item--blur):hover .extra-media img {
    transform: scale(1.06);
}

@media (max-width: 991.98px) {
    .extra-head {
        margin-bottom: 2.5rem;
    }

    .extra-item {
        grid-template-columns: 55px minmax(0, 1fr) 125px;
        gap: 1.35rem;
        min-height: 160px;
    }

    .extra-blur-content {
        grid-template-columns: 55px minmax(0, 1fr) 125px;
        gap: 1.35rem;
    }

    .extra-media {
        width: 125px;
        height: 92px;
    }

    .extra-content h3 {
        font-size: 1.3rem;
    }

    .extra-content p {
        font-size: 0.88rem;
    }
}

@media (max-width: 767.98px) {
    .extra-head {
        display: block;
        margin-bottom: 2rem;
    }

    .extra-item {
        grid-template-columns: 45px minmax(0, 1fr) 76px;
        gap: 1rem;
        min-height: 0;
        padding: 1.35rem 0;
    }

    .extra-number {
        font-size: 1.95rem;
    }

    .extra-content h3 {
        font-size: 1.15rem;
    }

    .extra-category {
        font-size: 0.62rem;
    }

    .extra-content p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .extra-media {
        width: 76px;
        height: 76px;
        border-radius: 8px;
    }

    .extra-item:not(.extra-item--blur):hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .extra-more {
        margin-top: 1.75rem;
    }
}

@media (max-width: 480px) {
    .extra-item {
        grid-template-columns: 40px minmax(0, 1fr) 64px;
        gap: 0.8rem;
    }

    .extra-media {
        width: 64px;
        height: 64px;
    }

    .extra-content h3 {
        font-size: 1.05rem;
    }

    .extra-content p {
        font-size: 0.78rem;
    }

    .extra-category {
        margin-bottom: 0.3rem;
        font-size: 0.58rem;
    }

    .extra-more__link {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
10. NEWS
========================================================= */
.news-feature {
    display: flex;
    flex-direction: column;
    height: 100%;

    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);

    transition:
        border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}
.news-feature:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.news-feature__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
}
.news-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}
.news-feature:hover .news-feature__media img {
    transform: scale(1.035);
}
.news-feature__body {
    padding: 1.5rem 1.6rem 1.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-feature h3 {
    font-size: 1.28rem;
    margin: 0.55rem 0 0.7rem;
    line-height: 1.35;
}
.news-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.news-feature__meta {
    margin-top: 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.news-feature__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-strong);
}

.news-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.news-list {
    display: flex;
    flex-direction: column;
}
.news-item {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s var(--ease);
}
.news-item:first-child {
    padding-top: 0;
}
.news-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.news-item:hover {
    opacity: 0.78;
}
.news-item__thumb {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
}
.news-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-item h4 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0.3rem 0 0.35rem;
}
.news-item__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================================
11. FACILITIES
========================================================= */
.facility-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =========================================================
   MEDIA
   ========================================================= */
.facility-card__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
    border-radius: var(--radius-md);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}
.facility-card__media:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   SLIDESHOW
   ========================================================= */
.facility-card__slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   SLIDE
   ========================================================= */
.facility-card__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition:
        opacity 0.55s ease,
        transform 0.8s ease;
}
.facility-card__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   OVERLAY
   ========================================================= */
.facility-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 15, 30, 0.2), rgba(8, 15, 30, 0.05));
    pointer-events: none;
    z-index: 2;
}

/* =========================================================
   NUMBER
   ========================================================= */
.facility-card__num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 2.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--surface);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    z-index: 4;
}

/* =========================================================
   INDICATOR
   ========================================================= */
.facility-card__indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

/* =========================================================
   INDICATOR DOT
   ========================================================= */
.facility-card__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition:
        width 0.3s ease,
        background 0.3s ease,
        transform 0.2s ease;
}

/* ACTIVE */
.facility-card__dot.is-active {
    width: 22px;
    background: rgba(255, 255, 255, 0.95);
}

/* HOVER */
.facility-card__dot:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   CARD BODY
   ========================================================= */
.facility-card__body {
    padding: 1.15rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* =========================================================
   TITLE
   ========================================================= */
.facility-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */
.facility-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =========================================================
   REDUCE MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .facility-card__slide {
        transition: none;
    }
}

/* =========================================================
   CARD NUMBER
   ========================================================= */
.facility-card__num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 2.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--surface);
    display: block;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.45rem;
    z-index: 3;
}

/* =========================================================
   DARK OVERLAY DI DALAM CARD
   Agar nomor tetap mudah dibaca
   ========================================================= */
.facility-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 15, 30, 0.2), rgba(8, 15, 30, 0.05));
    pointer-events: none;
    z-index: 2;
}

/* =========================================================
   CARD BODY
   ========================================================= */
.facility-card__body {
    padding: 1.15rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* =========================================================
   TITLE
   ========================================================= */
.facility-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */
.facility-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =========================================================
   LINK
   ========================================================= */
.facility-card__link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.facility-card__link i {
    font-size: 0.72rem;
    transition: transform 0.25s var(--ease);
}
.facility-card:hover .facility-card__link i {
    transform: translateX(4px);
}

/* =========================================================
   REDUCE MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .facility-card__slide {
        animation: none;
    }
    .facility-card__slide:first-child {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
12. GALLERY GURU
========================================================= */
.tidc-wrapper {
    width: 100%;
    padding: 30px 15px;
}
.tidc-gallery {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 440px;
    margin: 0 auto;
    gap: 8px;
}
.tidc-item {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: var(--tidc-color);
    transition:
        flex 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.4s ease,
        opacity 0.4s ease;
}
.tidc-item:nth-child(1) {
    --tidc-color: #4361ee;
}
.tidc-item:nth-child(2) {
    --tidc-color: #e76f51;
}
.tidc-item:nth-child(3) {
    --tidc-color: #2a9d8f;
}
.tidc-item:nth-child(4) {
    --tidc-color: #9b5de5;
}
.tidc-item {
    filter: grayscale(0);
}
.tidc-gallery:has(.tidc-item.tidc-active) .tidc-item:not(.tidc-active) {
    filter: grayscale(100%);
    opacity: 0.7;
}
.tidc-item.tidc-active {
    flex: 4;
    filter: grayscale(0);
    opacity: 1;
}
.tidc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.tidc-person {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 43%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    transition:
        width 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tidc-person img {
    display: block;
    width: auto;
    height: 112%;
    max-width: none;
    object-fit: contain;
    transform: translateX(0) translateY(0);
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tidc-item.tidc-active .tidc-person {
    width: 42%;
    transform: translateX(8px);
}
.tidc-item.tidc-active .tidc-person img {
    transform: translateX(30px) translateY(-3px) scale(1.03);
}
.tidc-info {
    position: absolute;
    left: 42%;
    top: 0;
    width: 58%;
    height: 100%;
    padding: 45px 30px 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: translateX(35px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tidc-item.tidc-active .tidc-info {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.tidc-line {
    width: 45px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}
.tidc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}
.tidc-name {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.05;
}
.tidc-description {
    max-width: 340px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.88;
}
.tidc-number {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 10;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.6;
}
.tidc-info > * {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 0.45s ease,
        transform 0.55s ease;
}

.tidc-item.tidc-active .tidc-info > * {
    opacity: 1;
    transform: translateY(0);
}

.tidc-item.tidc-active .tidc-info .tidc-label {
    transition-delay: 0.08s;
}

.tidc-item.tidc-active .tidc-info .tidc-name {
    transition-delay: 0.14s;
}

.tidc-item.tidc-active .tidc-info .tidc-description {
    transition-delay: 0.2s;
}

@media (max-width: 700px) {
    .tidc-wrapper {
        padding: 20px 10px;
    }
    .tidc-gallery {
        height: 370px;
        gap: 5px;
    }
    .tidc-item {
        border-radius: 12px;
    }
    .tidc-item.tidc-active {
        flex: 5;
    }
    .tidc-person {
        width: 44%;
    }

    .tidc-person img {
        height: 104%;
    }

    .tidc-item.tidc-active .tidc-person {
        width: 42%;
        transform: translateX(5px);
    }

    .tidc-item.tidc-active .tidc-person img {
        transform: translateX(18px) translateY(-3px) scale(1.02);
    }

    .tidc-info {
        left: 42%;
        width: 58%;
        padding: 30px 15px 25px 25px;
    }

    .tidc-label {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .tidc-name {
        font-size: 20px;
        margin-bottom: 9px;
    }

    .tidc-description {
        font-size: 10px;

        line-height: 1.45;
    }

    .tidc-line {
        width: 30px;

        height: 3px;

        margin-bottom: 12px;
    }

    .tidc-number {
        top: 14px;

        right: 12px;

        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .tidc-gallery {
        height: 320px;
    }

    .tidc-info {
        padding-left: 20px;
    }

    .tidc-name {
        font-size: 17px;
    }

    .tidc-description {
        font-size: 9px;
    }
}
/* =========================================================
13. PPDB / COUNTDOWN
========================================================= */
.ppdb {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 5rem);
    margin: 3rem 0;
    border-radius: var(--radius-md);
}
.ppdb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.05;
    pointer-events: none;
}
.ppdb > .container {
    position: relative;
    z-index: 1;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}
.countdown__box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 0.9rem 0.5rem 0.8rem;
    text-align: center;
}
.countdown__num {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 600;
    line-height: 1;
    color: #fff;
    display: block;
    font-variant-numeric: tabular-nums;
}
.countdown__label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}
.countdown__note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 1.6rem;
}

.ppdb__list {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: grid;
    gap: 0.6rem;
}
.ppdb__list li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}
.ppdb__list i {
    color: #8fd7b2;
    font-size: 0.75rem;
    margin-top: 0.45rem;
}

/* =========================================================
13. FOOTER
========================================================= */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.72);
    padding: 3.75rem 0 0;
    font-size: 0.875rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}
.footer__brand .brand__mark {
    background: rgba(255, 255, 255, 0.12);
}
.footer__brand strong {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    display: block;
    line-height: 1.25;
}
.footer__brand small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}
.site-footer p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}
.footer__links a {
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.2s var(--ease);
}
.footer__links a:hover {
    color: #fff;
}

.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}
.footer__contact li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}
.footer__contact i {
    color: #7ccfa4;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.footer__social {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.3rem;
}
.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    transition: all 0.2s var(--ease);
}
.footer__social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer__bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================
14. REVEAL ANIMATION
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(5rem);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
15. RESPONSIVE
========================================================= */
@media (max-width: 1199.98px) {
    .program-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .p-card--feature {
        grid-column: span 4;
        grid-row: span 1;
        aspect-ratio: 16/10;
    }
    .p-card--mid {
        grid-column: span 2;
    }
    .p-card--small {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .section {
        padding: 4rem 0;
    }
    .hero {
        padding: 3rem 0 3.5rem;
        height: 90vh !important;
    }
    .hero__note {
        left: 0;
        bottom: -12px;
    }
    .about__accent {
        display: none;
    }
    .about__media .media {
        aspect-ratio: 11 / 16;
    }
    .principal__photo {
        aspect-ratio: 16 / 11;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3.25rem 0;
    }
    .section-head {
        margin-bottom: 1.9rem;
        gap: 1rem;
    }
    .pillars {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .p-card--feature,
    .p-card--mid,
    .p-card--small {
        grid-column: span 1;
    }
    .p-card--feature {
        aspect-ratio: 4 / 3;
    }
    .hero__photo--sub {
        display: none;
    }
    .hero__media {
        padding-bottom: 0;
    }
    .hero__note {
        position: static;
        max-width: 100%;
        margin-top: 1rem;
    }
    .news-item__thumb {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
    .footer__bottom {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    .topbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================================
16. SMP MA'ARIF BATU — VISUAL REFINEMENTS
========================================================= */
:root {
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* Font Awesome chevrons for Bootstrap dropdown triggers */
.nav-desktop .dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: 0 !important;
    width: auto;
    height: auto;
    margin-left: 0.5rem;
    font-size: 0.64rem;
    vertical-align: 0.08em;
    transition: transform 0.28s var(--ease);
}
.nav-desktop .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mobile nav mirrors the desktop hierarchy and includes descriptions. */
.mobile-nav__links {
    gap: 0;
}
.mobile-nav__item,
.mobile-nav__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-align: left;
}
.mobile-nav__item span,
.mobile-nav__trigger span {
    display: grid;
    gap: 0.22rem;
}
.mobile-nav__item strong,
.mobile-nav__trigger strong {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}
.mobile-nav__item small,
.mobile-nav__trigger small {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.mobile-nav__item > i,
.mobile-nav__trigger > i {
    flex: 0 0 auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    transition:
        color 0.2s var(--ease),
        transform 0.28s var(--ease);
}
.mobile-nav__item:hover strong,
.mobile-nav__item:focus-visible strong,
.mobile-nav__trigger:hover strong,
.mobile-nav__trigger:focus-visible strong {
    color: var(--primary);
}
.mobile-nav__trigger[aria-expanded="true"] > i {
    transform: rotate(180deg);
    color: var(--primary);
}
.mobile-nav__sub {
    display: grid;
    gap: 0;
    padding: 0 0 0 1rem;
    margin: 0.15rem 0 0.15rem 0.2rem;
}
.mobile-nav__sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 0 0.72rem 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px dashed color-mix(in srgb, var(--border) 86%, transparent);
    transition:
        color 0.2s var(--ease),
        padding-left 0.25s var(--ease);
}
.mobile-nav__sub-item:last-child {
    border-bottom: 0;
}
.mobile-nav__sub-item span {
    display: grid;
    gap: 0.18rem;
}
.mobile-nav__sub-item strong {
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.mobile-nav__sub-item small {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.mobile-nav__sub-item > i {
    font-size: 0.66rem;
    opacity: 0.75;
    transition:
        transform 0.25s var(--ease),
        color 0.2s var(--ease);
}
.mobile-nav__item:focus-visible,
.mobile-nav__trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}
.mobile-nav__sub-item:hover,
.mobile-nav__sub-item:focus-visible {
    color: var(--surface);
    padding-left: 1.15rem;
}
.mobile-nav__sub-item:hover strong,
.mobile-nav__sub-item:focus-visible strong,
.mobile-nav__sub-item:hover small,
.mobile-nav__sub-item:focus-visible small {
    color: var(--surface);
}
.mobile-nav__sub-item:hover > i,
.mobile-nav__sub-item:focus-visible > i {
    color: var(--surface);
    transform: translateX(3px);
}

/* Hero: responsive full-bleed imagery + legibility overlay. */
.hero {
    min-height: 95vh;
    height: auto;
    padding: 5.5rem 0 7rem;
    color: #fff;
    border-bottom: 0;
    background-color: #16231b;
    background-image: url("../img/herodesktop.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hero-overlay-desktop);
    pointer-events: none;
}
.hero::before {
    z-index: 1;
    opacity: 0.055;
}
.hero > .container {
    z-index: 2;
}
.hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}
.hero__title {
    color: #fff;
    text-shadow: 0 5px 24px rgba(0, 0, 0, 0.22);
}
.hero__tagline {
    padding-top: 1rem;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
}
.hero__tagline span {
    color: rgba(255, 255, 255, 0.52);
}
.hero__lead {
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.hero__actions {
    margin-bottom: 1.6rem;
}
.hero__points {
    color: rgba(255, 255, 255, 0.74);
}
.hero__points li::before {
    background: #9fe0bd;
    opacity: 0.9;
}
/* Count band: normal-flow, layered card instead of an absolute floating block. */
.count--section {
    position: relative;
    z-index: 3;
    margin: -58px 0 0;
}
.count--section > .container {
    position: relative;
    left: auto;
    transform: none;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.4rem 1.2rem 1.15rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(7px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-lg) + 2px);
    box-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.count--section__intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.6rem 0.35rem;
}
.count--section__intro .eyebrow {
    margin-bottom: 0;
}
.count--section__note {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.count--section .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin: 0;
}
.count-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    text-align: left;
}
.count-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 42px;
    transform: translateY(-50%);
    background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
}
.count-item__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
    font-size: 0.8rem;
}
.count-item h3 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.18rem;
}
.count-item small {
    margin-top: 0;
    color: var(--text-muted);
    opacity: 1;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* Subtle perimeter-draw hover: the accent makes one circuit first. */
.sweep-border {
    position: relative;
    isolation: isolate;
}
.sweep-border::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent 0deg 298deg, color-mix(in srgb, var(--primary) 82%, white) 324deg 344deg, transparent 356deg 360deg);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transform: rotate(0deg);
}
.sweep-border:hover::after,
.sweep-border:focus-within::after {
    opacity: 1;
    animation: perimeterSweep 0.9s var(--ease) forwards;
}
@keyframes perimeterSweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Make the card hover state feel dimensional without replacing the border. */
.p-card,
.news-feature,
.facility-card {
    overflow: hidden;
}
.p-card--feature {
    border: 1px solid transparent;
}
.p-card:hover,
.news-feature:hover,
.facility-card:hover {
    border-color: var(--primary);
}
.p-card::before,
.news-feature::before,
.facility-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 0 var(--radius-sm);
    background: var(--primary);
    opacity: 0.35;
    transform: translateX(9px);
    transition:
        transform 0.35s var(--ease),
        opacity 0.35s var(--ease);
    z-index: 5;
}
.p-card:hover::before,
.news-feature:hover::before,
.facility-card:hover::before {
    transform: translateX(0);
    opacity: 0.9;
}

/* A restrained section ornament. */
.section-head {
    position: relative;
    padding-left: 1.8rem;
}
.footer__school-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.52);
}
.footer__school-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 991.98px) {
    .hero {
        min-height: 72vh;
        padding: 5rem 0 7rem;
    }
    .count--section {
        margin-top: -44px;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 74vh;
        padding: 4.8rem 0 6.2rem;
        background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1100&q=85");
        background-position: 58% center;
    }
    .hero::after {
        background: var(--hero-overlay-mobile);
    }
    .count--section {
        margin-top: -36px;
        padding-bottom: 1rem;
    }
    .count--section > .container {
        width: min(100% - 1rem, 720px);
        padding-inline: 0.7rem;
    }
    .count--section__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
        padding-inline: 0.45rem;
    }
    .count--section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .count-item {
        justify-content: flex-start;
        padding: 0.95rem 0.6rem;
        gap: 0.65rem;
    }
    .count-item:nth-child(2)::after {
        display: none;
    }
    .count-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }
    .count-item:not(:last-child)::after {
        height: 34px;
    }
    .count-item__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0.74rem;
    }
    .section-head {
        padding-left: 1.45rem;
    }
    .mobile-nav {
        padding-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::before,
    .btn-ghost::before,
    .sweep-border::after,
    .mobile-nav__sub-item,
    .mobile-nav__item,
    .mobile-nav__trigger {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
SCROLL TO TOP
========================================================= */
.scroll-top {
    --progress-color: var(--primary);

    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--progress-color);

    cursor: pointer;
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        background 0.3s ease;
}

/* Muncul setelah scroll */
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* SVG progress */
.scroll-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    transform: rotate(-90deg);
    overflow: visible;
}

/* Lingkaran background */
.progress-bg,
.progress-bar {
    fill: none;
    stroke-width: 2.5;
}

.progress-bg {
    stroke: currentColor;
    opacity: 0.15;
}

/* Lingkaran progress */
.progress-bar {
    stroke: var(--progress-color);
    stroke-linecap: round;

    stroke-dasharray: 131.95;
    stroke-dashoffset: 131.95;

    transition: stroke-dashoffset 0.08s linear;
}

/* Ikon panah */
.scroll-top i {
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    display: inline-block;
}
#scrollTop.bounce .arrow {
    animation: bounceArrow 0.8s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}
.scroll-top:hover i {
    transform: translateY(-3px);
}

.scroll-top:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .scroll-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================================
PAGE-LEVEL STYLES
Tambahan untuk halaman internal — mengikuti design token
yang sama dengan style.css. Tidak mengubah style.css.
========================================================= */
/* ---------- Page hero (foto saja, tanpa text overlay) ---------- */
.page-hero {
    position: relative;
    height: clamp(260px, 65vh, 420px);
    overflow: hidden;
    background: var(--surface-alt);
}
.page-hero__media {
    position: absolute;
    inset: 0;
}
.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 30, 15, 0.24) 0%, rgba(0, 30, 15, 0.45) 100%);
    pointer-events: none;
}

/* Divider di dalam .page-hero */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
    transform: rotateY(180deg);
}
.section-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}
.section-divider--mobile {
    height: 90px;
}
@media (max-width: 480px) {
    .section-divider--mobile {
        height: 75px;
    }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    /* background: var(--surface-tint); */
    /* border-bottom: 1px solid var(--border); */
    padding: 0.85rem 0;
}
.breadcrumb-nav .breadcrumb {
    --bs-breadcrumb-divider: "";
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.82rem;
    background: transparent;
}
.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
}
.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    color: var(--border-strong);
    margin-right: 0.15rem;
}
.breadcrumb__item a {
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}
.breadcrumb__item a:hover {
    color: var(--primary);
}
.breadcrumb__item.is-current span {
    color: var(--text);
    font-weight: 500;
}

/* ---------- Generic page title header ---------- */
.page-header {
    padding: 3.25rem 0 1.5rem;
}
.page-header__title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.page-header__lead {
    color: var(--text-secondary);
    max-width: 62ch;
}

/* ---------- Timeline (Sejarah) ---------- */

.timeline {
    list-style: none;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 220px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-strong);
}
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 200px 42px minmax(0, 1fr);
    align-items: start;
    padding: 0 0 2.4rem;
}
.timeline__item:last-child {
    padding-bottom: 0;
}
.timeline__date {
    text-align: right;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding-top: 0.1rem;
}
.timeline__dot {
    justify-self: center;
    width: 14px;
    height: 14px;
    margin-top: 0.3rem;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--primary);
    position: relative;
    z-index: 1;
}
.timeline__body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.timeline__body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.timeline__body p + p {
    margin-top: 0.4rem;
}
@media (max-width: 767.98px) {
    .timeline::before {
        left: 6px;
    }
    .timeline__item {
        grid-template-columns: 14px minmax(0, 1fr);
        column-gap: 1.1rem;
    }
    .timeline__date {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        margin-bottom: 0.25rem;
    }
    .timeline__dot {
        grid-column: 1;
        grid-row: 1;
    }
    .timeline__body {
        grid-column: 2;
        grid-row: 2;
    }
    .org-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Vision / Mission blocks ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 767.98px) {
    .vm-grid {
        grid-template-columns: 1fr;
    }
}
.vm-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.65rem 1.6rem;
}
.vm-block__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.85rem;
}
.vm-block h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.vm-list {
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}
.vm-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    color: var(--text);
    counter-increment: vm;
    transition: all 0.3s var(--ease);
}
.vm-list li:hover {
    background-color: var(--surface-tint);
}
.vm-list li::before {
    content: counter(vm, decimal-leading-zero) ".";
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    width: 1.6rem;
}

/* Vision highlight */
.vision-quote {
    background: var(--surface-soft);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 1.75rem;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    margin: 1.25rem 0 1.5rem;
    max-width: 62ch;
}

/* ---------- Staff / Warga Sekolah ---------- */
.staff-grid {
    margin-top: 1.75rem; 
}

.staff-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        border-color 0.25s var(--ease),
        transform 0.25s var(--ease); 
    height: 100%;
}
.staff-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.staff-card__photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 2rem;
}
.staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.staff-card__body {
    padding: 0.95rem 1.05rem 1.15rem;
}
.staff-card__role {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.35rem;
}
.staff-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.staff-card small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- Article ---------- */
.article {
    max-width: 760px;
    margin: 0 auto;
}
.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}
.article__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-strong);
}
.article__featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
}
.article__featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article__body p {
    margin-bottom: 1.15rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
}
.article__body p:last-child {
    margin-bottom: 0;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-nav a {
    flex: 1;
    max-width: 48%;
    padding: 0.9rem 1.1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    transition:
        background 0.2s var(--ease),
        color 0.2s var(--ease);
}
.article-nav a:hover {
    background: var(--primary-50);
}
.article-nav small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.article-nav strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.article-nav .next {
    text-align: right;
    margin-left: auto;
}

/* ---------- Program / Pembiasaan list ---------- */
.habit-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.75rem;
    counter-reset: habit;
}
.habit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    counter-increment: habit;
    transition:
        border-color 0.2s var(--ease),
        transform 0.2s var(--ease);
}
.habit-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}
.habit-item::before {
    content: counter(habit, decimal-leading-zero);
    font-family: "Poppins", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary);
    flex: 0 0 auto;
    padding-top: 0.15rem;
}
.habit-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

/* ---------- Religion activity / gallery ---------- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}
.activity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        border-color 0.25s var(--ease),
        transform 0.25s var(--ease);
}
.activity-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.activity-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--surface-alt));
}
.activity-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}
.activity-card:hover .activity-card__media img {
    transform: scale(1.05);
}
.activity-card__body {
    padding: 1rem 1.15rem 1.2rem;
}
.activity-card__tag {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.4rem;
}
.activity-card h3 {
    font-size: 0.98rem;
    line-height: 1.4;
    margin: 0;
}

/* ---------- SPMB wave cards ---------- */
.wave-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}
.wave-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.wave-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.35rem;
}
.wave-card__name {
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}
.wave-status {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.wave-status--open {
    background: #d5e9dd;
    color: #00552b;
}
.wave-status--not_open {
    background: #eef1ee;
    color: #4a5c52;
}
.wave-status--closed {
    background: #f1e6e6;
    color: #8c3b3b;
}

.wave-card__period {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.wave-card__benefit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    margin-top: 0.25rem;
}

/* ---------- SPMB requirement list ---------- */
.req-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.55rem;
}
.req-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.req-list li i {
    color: var(--primary);
    font-size: 0.7rem;
    margin-top: 0.55rem;
}

/* ---------- SPMB big number ---------- */
.benefit-callout {
    background: var(--surface-soft);
    border-left: 3px solid var(--primary);
    padding: 1.25rem 1.4rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
    margin: 1rem 0;
}

/* ---------- Stepper ---------- */
.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}
.stepper__item {
    flex: 1 1 140px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.stepper__item.is-active {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary-700);
}
.stepper__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    flex: 0 0 26px;
}
.stepper__item.is-active .stepper__num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- Page 404 / empty ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.55;
}
