/* ============================================================
   RichSchool — Design System
   Tema sekolah modern: hero slider, statistik, kartu, dsb.
   Semua variabel di-override dari pengaturan admin.
   ============================================================ */

:root {
    --color1: #0155A3;
    --color2: #F59E0B;
    --bodybg: #ffffff;
    --bodycolor: #333333;
    --colorbg: #fcfcfc;
    --colorborder: #f3f3f3;
    --colordarktrans: #00000020;
    --colorbgtrans: #ffffff20;
    --colorwhite: #ffffff;
    --maxwidth: 1200px;
    --autopad: max(20px, calc((100% - var(--maxwidth)) / 2));
    --bradius: 7px;
    --x2bradius: calc(var(--bradius) * 2);
    --x3bradius: calc(var(--bradius) * 3);
    --x10bradius: calc(var(--bradius) * 10);
    --hero-overlay: 40;

    /* Permukaan biru besar (bilah menu, kartu statistik, CTA, footer).
       Terpisah dari --color1 agar di mode gelap bisa diredupkan tanpa
       membuat teks/judul berwarna biru ikut gelap dan tak terbaca. */
    --blue-bg: var(--color1);
    --blue-bg-soft: color-mix(in srgb, var(--color1) 88%, #000);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6em;
    color: var(--bodycolor);
    background: var(--bodybg);
}
body.no-scroll { overflow: hidden; }
ul, li { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
.nolist { list-style: none; }

a { color: var(--bodycolor); transition: .3s; text-decoration: none; }
a:hover { color: var(--color2); }

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1em; }
h1,h2,h3,h4,h5,h6 { margin: 20px 0; font-weight: 600; line-height: 1.4em; color: var(--bodycolor); }
h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child { margin-top: 0; }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; }

/* ---------------- Utilities ---------------- */
.container {
    position: relative;
    padding: 30px var(--autopad);
    background: var(--bodybg);
    z-index: 1;
}
.container::before {
    position: absolute; inset: 0; content: '';
    background-color: var(--color1);
    background-image: linear-gradient(160deg, #ffffffcc, transparent, #ffffffcc);
    opacity: .07; z-index: -1; pointer-events: none;
}
.container._wide { padding: 60px var(--autopad); }
.container._nogap { padding-top: 0; }

/* Marker classes (ringkas; tidak mengubah tampilan sendiri) */
.mega { position: relative; }
.ofc { overflow: hidden; }
.nm-all { margin: 0; }

.flexcon { display: flex; }
.flexcon.column { flex-direction: column; }
.flexcon.wrap { flex-wrap: wrap; }
.flexcon.align-center { align-items: center; }
.flexcon.justify-between { justify-content: space-between; }
.flexcon.justify-center { justify-content: center; }
.flexcon.center { align-items: center; justify-content: center; }
.flexcon.gap-10 { gap: 10px; }
.flexcon.gap-20 { gap: 20px; }
.flexcon.gap-30 { gap: 30px; }
.flexcon.gap-40 { gap: 40px; }
.flexcon.col-gap-15 { column-gap: 15px; }
.flexcon.row-gap-5 { row-gap: 5px; }
.flexcon.nm { margin: 0; }
.align-self-start { align-self: flex-start; }

.elipsis { display: block; }
.clamp2, .clamp3 {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }

._hidden { display: none !important; }

/* Section title */
.container > ._title, ._title {
    margin: 0 auto 30px;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 800px; gap: 10px; text-align: center; position: relative;
}
._title > * { margin: 0; }
._title h2 {
    font-size: 2em; font-weight: 700;
    display: flex; flex-direction: column; color: var(--color1);
}
._title h2::after {
    content: ''; display: block; width: 300px; height: 4px;
    border-radius: var(--bradius); margin: 10px auto;
    background: linear-gradient(to right, transparent, var(--color2), transparent);
}
._title h2 span {
    color: var(--color2); line-height: initial; font-size: .5em;
    text-transform: uppercase; letter-spacing: .1em; font-weight: normal; align-self: center;
}
._title._left { text-align: left; margin: 0 0 30px 0; max-width: 100%; }
._title._left h2 { max-width: calc(100% - 120px); }
._title._left h2 span { align-self: flex-start; }
._title._left h2::after { background: linear-gradient(to right, var(--color2), transparent); margin: 10px 0 0; }
._title._left p { max-width: calc(100% - 100px); }
._title._left ._more { position: absolute; top: 5px; right: 0; }

/* Box content (sidebar box) */
.box-content { position: relative; width: 100%; display: flex; flex-direction: column; gap: 15px; }
.box-content > ._title { display: flex; align-items: flex-start; position: relative; margin-bottom: 0; }
.box-content > ._title::before {
    background: linear-gradient(to right, var(--color2), transparent);
    width: 250px; height: 4px; content: ''; position: absolute; left: 0; bottom: 0;
    border-radius: var(--bradius);
}
.box-content > ._title h2,
.box-content > ._title h3,
.box-content > ._title h4 {
    margin: 0; font-size: 1.4em; padding-bottom: 10px;
    position: relative; color: var(--color1); flex-shrink: 0;
}
/* Judul di dalam box hanya memakai garis kiri (bukan garis tengah) */
.box-content > ._title h2::after { display: none; }
.box-content > ._title ._more { margin-left: auto; }

/* ---------------- Button ---------------- */
.bttn, .button-primary, input[type='submit'], button, .button-secondary {
    cursor: pointer;
    padding: .6em .8em;
    background: var(--color1);
    border: 0; outline: 0; color: var(--colorwhite);
    transition: .3s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    line-height: normal; font-family: inherit; font-size: inherit;
    border-radius: var(--bradius);
    position: relative; overflow: hidden; z-index: 1;
}
.bttn::before, .button-primary::before, input[type='submit']::before, button::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, transparent, #ffffff20); z-index: -1;
}
.bttn:hover, .button-primary:hover, button:hover, input[type='submit']:hover {
    color: var(--colorwhite); background: var(--color2);
}
.bttn._big { padding: 15px 20px; letter-spacing: .1em; text-transform: uppercase; }
.bttn._ghost {
    background: transparent; border: 2px solid var(--colorwhite);
}
.bttn._ghost:hover { background: var(--color2); border-color: var(--color2); }

/* ---------------- Card loop ---------------- */
.loop {
    border: 1px solid var(--colorborder);
    background: var(--colorbg);
    position: relative; transition: all .3s; overflow: hidden; width: 100%;
    border-radius: var(--x2bradius);
}
.loop:hover { box-shadow: 0 5px 0 var(--colorborder); transform: translateY(-5px); }
.loop ._pigura {
    width: 100%; height: 230px; overflow: hidden; display: flex; flex-shrink: 0; position: relative;
}
.loop ._pigura img { transition: all .3s ease; width: 100%; height: 100%; object-fit: cover; }
.loop:hover ._pigura img { transform: scale(1.1); }
.loop ._content { padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.loop ._content h3 { font-size: 1.1em; color: var(--bodycolor); margin: 0; }
.loop ._category { display: flex; flex-wrap: wrap; gap: 5px; }
.loop ._category a { color: var(--color2); line-height: 1em; font-size: .9em; border-radius: var(--bradius); }
.loop ._category a::after { content: ','; }
.loop ._category a:last-child::after { display: none; }
.loop ._detail {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-size: .9em;
}
.loop ._detail li { display: flex; gap: 5px; align-items: center; opacity: .7; }
.loop ._excerpt p { margin: 0; }
.loop ._read-more {
    text-decoration: underline; text-decoration-style: dotted;
    text-underline-offset: 6px; color: var(--color1); font-size: .95em;
}
.loop ._read-more:hover { color: var(--color2); }
.loop ._img-thumb {
    position: absolute; right: 10px; bottom: 10px;
    background: var(--colordarktrans); color: var(--colorwhite);
    padding: 7px; line-height: 1em; font-size: .8em; border-radius: var(--bradius);
}

.grid { display: grid; gap: 20px; }
.grid._3 { grid-template-columns: repeat(3, 1fr); }
.grid._4 { grid-template-columns: repeat(4, 1fr); }
.grid._2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   HEADER
   Baris 1: kartu putih membulat (logo · kontak · sosial · toggle)
   Baris 2: bilah navigasi penuh warna utama
   ============================================================ */
#header { position: relative; z-index: 60; }

/* --- Kartu atas --- */
#header .top-bar {
    background: var(--blue-bg);
    padding: 14px var(--autopad) 12px;
}
#header .top-inner {
    background: var(--bodybg);
    border-radius: var(--x2bradius);
    padding: 14px 22px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    box-shadow: 0 8px 26px rgba(0,0,0,.10);
}

/* Brand */
#header .brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#header .brand img { height: 46px; width: auto; display: block; }
#header .logo-mark {
    width: 46px; height: 46px; border-radius: 12px; background: var(--color1);
    color: var(--colorwhite); display: grid; place-items: center; font-size: 1.35em;
}
#header .brand .brand-text b {
    font-size: 1.9em; font-weight: 800; letter-spacing: .01em; line-height: 1;
    color: var(--color1); text-transform: uppercase; display: block;
}

#header .top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Kontak */
#header .top-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
#header .top-contact ._item { display: flex; align-items: center; gap: 10px; color: var(--bodycolor); }
#header .top-contact ._ic {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--color1); color: var(--colorwhite);
    display: grid; place-items: center; font-size: 1em; transition: .3s;
}
#header .top-contact ._item:hover ._ic { background: var(--color2); transform: translateY(-2px); }
#header .top-contact ._txt { display: flex; flex-direction: column; line-height: 1.25; }
#header .top-contact ._txt small { font-size: .78em; color: #768399; font-weight: 500; }
#header .top-contact ._txt b { font-size: .95em; font-weight: 600; color: var(--bodycolor); }
#header .top-contact ._item:hover ._txt b { color: var(--color1); }

/* Aksi kanan: sosial + toggle mode + toggle menu */
#header .top-actions { display: flex; align-items: center; gap: 10px; }
#header .socmed { display: flex; gap: 7px; }
#header .socmed ._sc {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .95em; transition: .28s;
}
#header .socmed ._sc:hover { transform: translateY(-3px) scale(1.06); }
#header .socmed ._facebook  { background: #1877F2; }
#header .socmed ._instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
#header .socmed ._tiktok    { background: #010101; }
#header .socmed ._youtube   { background: #FF0000; }
#header .socmed ._threads   { background: #101010; }
#header .socmed ._x         { background: #000000; }

.light-dark {
    cursor: pointer; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--colorborder); color: var(--color1); border: 0; transition: .3s;
}
.light-dark:hover { background: var(--color1); color: var(--colorwhite); transform: rotate(20deg); }

.toggle-menu {
    display: none; background: var(--color1); color: #fff;
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    align-items: center; justify-content: center; font-size: 1.1em; border: 0; cursor: pointer;
}
.toggle-menu:hover { background: var(--color2); }

/* --- Bilah navigasi --- */
nav.top-menu {
    background: var(--blue-bg);
    padding: 0 var(--autopad);
    position: sticky; top: 0; z-index: 55;
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
}
nav.top-menu > ul {
    display: flex; list-style: none; gap: 2px; align-items: stretch;
    max-width: var(--maxwidth); margin: 0 auto;
}
nav.top-menu li { position: relative; list-style: none; display: flex; align-items: stretch; }
nav.top-menu li a {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px; font-weight: 500; color: rgba(255,255,255,.94);
    transition: .25s; white-space: nowrap; position: relative; font-size: .97em;
}
nav.top-menu li a i { font-size: .92em; opacity: .95; }
nav.top-menu li a:hover, nav.top-menu li._active > a { color: var(--color2); background: rgba(0,0,0,.14); }
nav.top-menu > ul > li > a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 3px; background: var(--color2); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
nav.top-menu > ul > li:hover > a::after,
nav.top-menu > ul > li._active > a::after { transform: scaleX(1); }

nav.top-menu li > .caret { font-size: .62em; opacity: .8; transition: .3s; cursor: pointer; color: #fff; padding-left: 2px; align-self: center; }
nav.top-menu li:hover > .caret,
nav.top-menu li._active > .caret,
nav.top-menu li._open > .caret { transform: rotate(180deg); }

/* Dropdown */
nav.top-menu ul ul {
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: var(--bodybg); border: 0;
    border-radius: 0 0 var(--x2bradius) var(--x2bradius);
    box-shadow: 0 16px 36px rgba(0,0,0,.16);
    list-style: none; padding: 6px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all .25s; z-index: 70;
}
nav.top-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
nav.top-menu ul ul li a {
    padding: 10px 13px; font-size: .95em; width: 100%;
    color: var(--bodycolor); border-radius: var(--bradius);
}
nav.top-menu ul ul li a:hover { background: var(--color1); color: #fff; }
nav.top-menu ul ul li a::after { display: none; }
nav.top-menu ul ul ul { top: 0; left: 100%; }

/* ============================================================
   HERO
   ============================================================ */
#hero { overflow: hidden; position: relative; }
#hero ._item { position: relative; }
#hero ._image { position: relative; width: 100%; overflow: hidden; }
#hero ._image img { width: 100%; height: 100%; object-fit: cover; }
#hero ._item::before {
    content: ''; position: absolute; inset: 0; background: #000;
    opacity: calc(var(--hero-overlay) / 100); z-index: 1;
}
#hero ._item ._content {
    max-width: 520px; color: var(--colorwhite);
    position: absolute; top: 50%; transform: translateY(-50%);
    left: var(--autopad); z-index: 2;
    text-shadow: 1px 1px 0 rgba(0,0,0,.25);
    padding-bottom: 60px;
}
#hero ._item ._content h2 {
    color: var(--colorwhite); font-size: 3em; font-weight: bold; line-height: 1.2em; margin: 0 0 5px;
}
#hero ._item ._content h2 span {
    color: var(--color2); line-height: initial; font-size: .4em;
    text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 8px;
    text-shadow: none;
}
#hero ._item ._content p { font-size: 1.15em; line-height: 1.5em; margin-bottom: 8px; }
#hero .splide__pagination { display: none; }
#hero .splide__arrow { background: var(--colordarktrans); }
#hero .splide__arrow:hover { background: var(--color2); }
#hero .splide__arrow svg { fill: #fff; }

/* ============================================================
   STATISTIK
   ============================================================ */
#stats._hero { margin-top: -60px; padding-top: 10px; padding-bottom: 20px; background: none !important; }
#stats._hero::before, #stats._hero::after { display: none; }
#stats ._content {
    background: var(--blue-bg); border-radius: var(--x2bradius);
    overflow: hidden; box-shadow: 0 5px 10px rgba(0,0,0,.15);
    min-height: 120px; display: flex;
}
#stats ._item {
    flex: 1; padding: 25px 15px; text-align: center; color: var(--colorwhite);
    position: relative; list-style: none;
}
#stats ._item:not(:last-of-type)::after {
    content: ''; position: absolute; right: -5px; top: 0; width: 10px; height: 100%;
    background: rgba(0,0,0,.15); transform: skewX(-20deg); z-index: 1;
}
#stats ._item i { display: block; font-size: 1.4em; opacity: .8; margin-bottom: 4px; }
#stats ._item h3 {
    font-size: 2.5em; margin: 0; font-weight: 700; line-height: 1.2;
    color: var(--colorwhite); transition: all .3s ease-in-out;
}
#stats ._item p { margin: 5px 0 0; opacity: .9; }
#stats ._item:hover h3 { transform: scale(1.2); text-shadow: 1px 3px 0 rgba(0,0,0,.25); }

/* ============================================================
   WELCOME / SAMBUTAN
   ============================================================ */
#welcome { align-items: flex-start; }
#welcome ._image {
    width: 270px; flex-shrink: 0; position: relative; overflow: hidden;
    border-radius: var(--x2bradius); transition: all .3s; border: 1px solid var(--colorborder);
    background: var(--colorbg);
}
#welcome ._image:hover { box-shadow: 0 5px 0 var(--colorborder); transform: translateY(-5px); }
#welcome ._image img { transition: all .3s; width: 100%; height: 350px; object-fit: cover; }
#welcome ._image:hover img { transform: scale(1.1); }
#welcome ._body { flex: 1; }
#welcome ._body ._title { margin-bottom: 15px; text-align: left; max-width: 100%; }
#welcome ._body ._title h2 { text-align: left; }
#welcome ._body ._title h2::after { margin-left: 0; background: linear-gradient(to right, var(--color2), transparent); }
#welcome ._body ._title h2 span { align-self: flex-start; }
#welcome ._principle {
    border-top: 1px solid var(--colorborder); margin-top: 20px; padding-top: 20px;
    display: flex; gap: 15px; align-items: center;
}
#welcome ._principle img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
#welcome ._principle ._name b { display: block; color: var(--color1); font-size: 1.15em; }
#welcome ._principle ._name span { opacity: .75; font-size: .9em; }

/* ============================================================
   INFORMASI (Pengumuman / Agenda / Berita)
   ============================================================ */
#information .box-content {
    flex: 1; transition: all .3s; border: 1px solid var(--colorborder);
    border-radius: var(--x2bradius); padding: 15px; background: var(--colorbg);
}
#information ._item:hover { box-shadow: 0 5px 0 var(--colorborder); transform: translateY(-5px); }
#information ._more { margin-top: auto; font-size: .95em; }
#information .loop {
    border: none; border-bottom: 1px dashed var(--colorborder);
    background: none; box-shadow: none; border-radius: unset; padding-bottom: 10px;
}
#information .loop:hover { box-shadow: none; transform: none; }
#information .loop ._content { padding: 0; }
#information .loop:not(._agenda):first-child ._excerpt { display: -webkit-box; }
#information .loop:not(._agenda):not(:first-child) ._excerpt { display: none; }
#information .loop:first-child ._read-more { display: inline-block; }
#information .loop:not(:first-child) ._read-more { display: none; }
#information .loop:last-child { border: none; }

.loop._agenda { display: flex; gap: 10px; padding: 10px 0; align-items: center; }
.loop._agenda ._content { justify-content: center; padding: 0; gap: 3px; }
.loop._agenda ._detail { flex-wrap: nowrap; gap: 8px; }
.loop._agenda ._start {
    display: flex; flex-direction: column; justify-content: center;
    width: 80px; height: 80px; background: var(--colorborder);
    border-radius: var(--bradius); text-align: center; line-height: 1; overflow: hidden; flex-shrink: 0;
}
.loop._agenda ._day, .loop._agenda ._year { display: none; }
.loop._agenda ._date {
    font-size: 1.8em; font-weight: 700; color: var(--color1);
    flex: 1; display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.loop._agenda._expired ._date { color: #777; }
.loop._agenda ._month {
    padding: 10px 7px; width: 100%; background: var(--color1);
    color: var(--colorwhite); font-size: .8em; transition: all .3s;
}
.loop._agenda._expired ._month { background: #777; }
.loop._agenda:hover ._date { color: var(--color2); }
.loop._agenda:hover ._month { background: var(--color2); }
#information .loop._agenda ._detail li._time { font-size: .85em; opacity: .7; }

#information .loop._berita ._pigura { border-radius: var(--bradius); height: 180px; }
#information .loop._berita:not(:first-child) ._pigura { display: none; }

/* Tanggal pengumuman */
.loop ._detail li._date { display: inline-flex; gap: 4px; }

/* ============================================================
   BENEFIT
   ============================================================ */
#benefit ._content { position: relative; }
#benefit ._item {
    padding: 30px 22px; border: 1px solid var(--colorborder); background: var(--colorbg);
    border-radius: var(--x2bradius); transition: all .3s; height: 100%;
}
#benefit ._item:hover { transform: translateY(-6px); box-shadow: 0 6px 0 var(--colorborder); }
#benefit ._icon {
    width: 66px; height: 66px; border-radius: 50%; font-size: 1.7em;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--color1) 10%, transparent);
    color: var(--color1); margin: 0 auto; transition: .3s;
}
#benefit ._item:hover ._icon { background: var(--color1); color: var(--colorwhite); transform: rotate(-8deg); }
#benefit ._item h3._title { margin: 0; font-size: 1.2em; text-align: center; color: var(--color1); }
#benefit ._item p._desc { margin: 0; text-align: center; opacity: .85; font-size: .95em; }

/* ============================================================
   PROGRAM
   ============================================================ */
#program ._title._left { position: relative; padding-right: 0; }
#program ._title ._img {
    display: none;
}
#program ._title._left ._more { position: static; margin-top: 15px; }
#program .loop ._content { gap: 6px; }
#program .loop ._content h3 a { color: var(--bodycolor); }
#program .loop ._content h3 a:hover { color: var(--color2); }
#program .loop ._pigura { height: 200px; }

/* ============================================================
   STAF
   ============================================================ */
#staff .loop { text-align: center; }
#staff .loop ._pigura { height: 260px; }
#staff .loop ._content { align-items: center; gap: 3px; }
#staff .loop ._content h3 { font-size: 1.05em; margin: 8px 0 2px; }
#staff .loop ._content ._role { color: var(--color2); font-size: .9em; font-style: italic; }
#staff .loop ._socials { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
#staff .loop ._socials a {
    width: 28px; height: 28px; border-radius: 50%; background: var(--colorborder);
    display: flex; align-items: center; justify-content: center; color: var(--color1); font-size: .8em;
}
#staff .loop ._socials a:hover { background: var(--color1); color: #fff; }

/* ============================================================
   FASILITAS
   ============================================================ */
#facilities .loop { display: flex; }
#facilities .loop ._pigura { width: 45%; height: auto; min-height: 190px; }
#facilities .loop ._content { flex: 1; }
#facilities .loop ._content h3 { color: var(--color1); }

/* ============================================================
   EKSKUL
   ============================================================ */
#ekskul ._item {
    display: flex; gap: 15px; align-items: center;
    padding: 18px; background: var(--colorbg); border: 1px solid var(--colorborder);
    border-radius: var(--x2bradius); transition: all .3s;
}
#ekskul ._item:hover { transform: translateY(-5px); box-shadow: 0 5px 0 var(--colorborder); }
#ekskul ._icon {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: var(--bradius);
    background: var(--color1); color: var(--colorwhite); font-size: 1.4em;
    display: flex; align-items: center; justify-content: center; transition: .3s;
}
#ekskul ._item:hover ._icon { background: var(--color2); transform: rotate(-8deg); }
#ekskul ._item h3 { margin: 0 0 3px; font-size: 1.05em; }
#ekskul ._meta { display: flex; gap: 12px; font-size: .85em; opacity: .75; flex-wrap: wrap; }

/* ============================================================
   GALERI
   ============================================================ */
#gallery ._item {
    position: relative; overflow: hidden; border-radius: var(--x2bradius);
    aspect-ratio: 4/3; display: block;
}
#gallery ._item img { width: 100%; height: 100%; object-fit: cover; transition: all .4s; }
#gallery ._item:hover img { transform: scale(1.12); }
#gallery ._item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1) 60%, transparent);
    opacity: 0; transition: .3s;
}
#gallery ._item:hover::after { opacity: 1; }
#gallery ._caption {
    position: absolute; left: 15px; right: 15px; bottom: 12px; z-index: 2;
    color: #fff; transform: translateY(15px); opacity: 0; transition: .3s; font-size: .95em;
}
#gallery ._item:hover ._caption { transform: translateY(0); opacity: 1; }
#gallery ._badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: var(--colordarktrans); color: #fff; padding: 5px 9px;
    border-radius: var(--bradius); font-size: .8em;
}
#gallery ._play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8);
    width: 54px; height: 54px; border-radius: 50%; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: .3s;
}
#gallery ._item:hover ._play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ============================================================
   TESTIMONI
   ============================================================ */
#testi ._item {
    background: var(--colorbg); border: 1px solid var(--colorborder);
    border-radius: var(--x2bradius); padding: 25px 22px; height: 100%;
    display: flex; flex-direction: column; gap: 14px; position: relative;
}
#testi ._quote {
    position: absolute; top: 12px; right: 20px; font-size: 3.5em;
    color: var(--color1); opacity: .1; line-height: 1; font-family: Georgia, serif;
}
#testi ._text { margin: 0; font-style: italic; opacity: .9; position: relative; z-index: 1; }
#testi ._who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
#testi ._who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
#testi ._who b { display: block; color: var(--color1); }
#testi ._who span { font-size: .85em; opacity: .7; }
#testi ._stars { color: var(--color2); font-size: .9em; }

/* ============================================================
   BERITA
   ============================================================ */
#news .loop ._category a { color: var(--color2); }
#news .loop ._content h3 a { color: var(--bodycolor); }
#news .loop ._content h3 a:hover { color: var(--color2); }
#news .loop ._pigura { height: 200px; }

/* ============================================================
   PARTNER MARQUEE
   ============================================================ */
#partner ._track {
    display: flex; gap: 30px; width: max-content;
    animation: marquee 32s linear infinite;
}
#partner ._viewport:hover ._track { animation-play-state: paused; }
#partner ._logo {
    width: 150px; height: 74px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--colorbg); border: 1px solid var(--colorborder);
    border-radius: var(--bradius); padding: 10px; filter: grayscale(1); opacity: .7; transition: .3s;
}
#partner ._logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); }
#partner ._logo img { max-height: 48px; width: auto; object-fit: contain; }
#partner ._logo span { font-weight: 600; color: var(--color1); font-size: .9em; text-align: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CTA PPDB
   ============================================================ */
#cta { position: relative; overflow: hidden; }
#cta ._inner {
    background: var(--blue-bg); color: var(--colorwhite);
    border-radius: var(--x3bradius); padding: 50px 45px;
    display: flex; gap: 35px; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
}
#cta ._inner::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: rgba(255,255,255,.07); top: -140px; right: -90px;
}
#cta ._inner::after {
    content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.06); bottom: -110px; left: -60px;
}
#cta ._text { max-width: 620px; position: relative; z-index: 2; }
#cta ._text h2 { color: var(--colorwhite); margin: 6px 0 12px; }
#cta ._text h2::after { background: linear-gradient(to right, var(--color2), transparent); margin: 10px 0; width: 180px; }
#cta ._text ._kicker {
    color: var(--color2); text-transform: uppercase; letter-spacing: .12em; font-size: .8em; margin: 0;
}
#cta ._text p { opacity: .9; }
#cta ._img { position: relative; z-index: 2; width: 320px; flex-shrink: 0; }
#cta ._img img { border-radius: var(--x2bradius); }
#cta .bttn._cta { background: var(--color2); }
#cta .bttn._cta:hover { background: var(--colorwhite); color: var(--color1); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--blue-bg); color: rgba(255,255,255,.85);
    padding: 55px var(--autopad) 30px;
    position: relative;
}
#footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(to right, var(--color1), var(--color2), var(--color1));
}
#footer h4 {
    color: var(--colorwhite); font-size: 1.15em; margin: 0 0 18px; position: relative; padding-bottom: 12px;
}
#footer h4::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 55px; height: 3px;
    background: var(--color2); border-radius: 3px;
}
#footer a { color: rgba(255,255,255,.8); }
#footer a:hover { color: var(--color2); }
#footer ._col { max-width: 340px; }
#footer ._brand { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
#footer ._brand img { height: 46px; }
#footer ._brand b { color: #fff; font-size: 1.5em; }
#footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
#footer ._contact li { display: flex; gap: 10px; align-items: flex-start; }
#footer ._contact i { color: var(--color2); width: 18px; margin-top: 3px; }
#footer ._socmed { display: flex; gap: 8px; margin-top: 18px; }
#footer ._socmed a {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center; color: #fff; transition: .3s;
}
#footer ._socmed a:hover { background: var(--color2); transform: translateY(-3px); }
 { border-bottom: 1px dashed rgba(255,255,255,.15); padding-bottom: 8px; }

#copyright {
    background: rgba(0,0,0,.25); color: rgba(255,255,255,.8);
    padding: 15px var(--autopad); text-align: center; font-size: .9em;
}
#copyright b { color: var(--color2); }

/* ============================================================
   FLOATING BUTTONS / SCROLL TOP / POPUP
   ============================================================ */
.scrollup {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--color2); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.1em;
    box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: .3s; z-index: 90;
}
.scrollup._show { opacity: 1; visibility: visible; transform: translateY(0); }
.scrollup:hover { background: var(--color1); color: #fff; }

.ppdb-bttn {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
    background: var(--color2); color: #fff; border: 0; cursor: pointer;
    padding: 12px 26px; border-radius: 20px 20px 0 0; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 -4px 16px rgba(0,0,0,.2);
    transition: .35s; z-index: 89; display: flex; gap: 8px; align-items: center;
}
.ppdb-bttn._left { left: 22px; transform: none; border-radius: 50px; bottom: 22px; }
.ppdb-bttn:hover { background: var(--color1); color: #fff; }

.rs-popup-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: .3s;
}
.rs-popup-backdrop._show { opacity: 1; visibility: visible; }
.rs-popup {
    background: var(--bodybg); border-radius: var(--x3bradius); overflow: hidden;
    max-width: 760px; width: 100%; display: flex; position: relative;
    transform: translateY(-30px) scale(.96); transition: .35s;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.rs-popup-backdrop._show .rs-popup { transform: none; }
.rs-popup ._img { width: 44%; background: var(--color1); position: relative; }
.rs-popup ._img img { width: 100%; height: 100%; object-fit: cover; }
.rs-popup ._body { flex: 1; padding: 34px 30px; }
.rs-popup ._body ._kicker { color: var(--color2); text-transform: uppercase; letter-spacing: .1em; font-size: .8em; }
.rs-popup ._body h3 { margin: 8px 0 10px; color: var(--color1); }
.rs-popup ._close {
    position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
    border-radius: 50%; background: var(--colordarktrans); color: var(--color1);
    border: 0; cursor: pointer; font-size: 1.2em; z-index: 3;
}
.rs-popup ._close:hover { background: var(--color2); color: #fff; }

/* ============================================================
   FORM / PPDB
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group._full { grid-column: 1 / -1; }
.form-group label { font-weight: 500; font-size: .93em; }
.form-group label ._req { color: #d33; }
.form-group input, .form-group select, .form-group textarea {
    font-family: inherit; font-size: inherit; padding: .6em .8em; outline: 0;
    background: var(--colorbg); color: var(--bodycolor);
    border: 1px solid var(--colorborder); border-radius: var(--bradius); line-height: normal;
    transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color1); background: var(--bodybg);
}
.form-group small { opacity: .65; }
textarea { resize: vertical; min-height: 110px; }

.alert { padding: 13px 16px; border-radius: var(--bradius); margin-bottom: 18px; font-size: .95em; }
.alert._ok { background: #e8f7ee; color: #177245; border: 1px solid #bfe7cf; }
.alert._err { background: #fdeaea; color: #b3261e; border: 1px solid #f6cfcf; }
.alert._warn { background: #fff7e6; color: #9a6700; border: 1px solid #ffe7ba; }

/* ============================================================
   INNER PAGE
   ============================================================ */
.page-hero {
    background: var(--blue-bg); color: #fff; padding: 60px var(--autopad);
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,.06); right: -80px; top: -110px;
}
.page-hero h1 { color: #fff; margin: 6px 0 0; position: relative; z-index: 2; }
.page-hero ._crumb { position: relative; z-index: 2; opacity: .8; font-size: .92em; }
.page-hero ._crumb a { color: var(--color2); }

.breadcrumb { display: flex; gap: 8px; list-style: none; font-size: .9em; opacity: .8; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .6; }

/* PPDB steps */
.ppdb-progress { height: 8px; background: var(--colorborder); border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.ppdb-progress-bar { height: 100%; background: linear-gradient(to right, var(--color1), var(--color2)); width: 33%; transition: .4s; }
.ppdb-step { display: none; }
.ppdb-step.active { display: block; animation: fadeStep .35s ease; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ppdb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 25px; }

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark {
    --bodybg: #14181f;
    --bodycolor: #dfe4ec;
    --colorbg: #1b212b;
    --colorborder: #262d39;
    --colordarktrans: #ffffff26;

    /* Semua permukaan biru besar memakai satu nada biru gelap yang sama,
       sehingga bilah menu, kartu statistik, CTA, hero inner-page dan footer
       saling match. --color1 TIDAK diubah agar judul/teks biru tetap terbaca. */
    --blue-bg: #0a2540;
    --blue-bg-soft: #0e2e4f;
}

/* Bilah menu & kartu atas: biru gelap sedikit lebih pekat agar menonjol */
/* Statistik: kartu biru menonjol di atas body gelap */
body.dark #stats ._content { box-shadow: 0 5px 18px rgba(0,0,0,.45); }

/* CTA & footer: garis pemisah tetap terlihat di atas body gelap */
body.dark #footer { border-top: 1px solid rgba(255,255,255,.06); }
body.dark #cta ._inner { border: 1px solid rgba(255,255,255,.07); }

/* Hero inner-page (halaman Program, Berita, Agenda, dll.) */
body.dark .page-hero { border-bottom: 1px solid rgba(255,255,255,.06); }
body.dark .page-hero ._crumb a:hover { color: var(--color2); }

/* Panel "Tertarik Bergabung?" di halaman program & detail berita */
body.dark #program aside .bttn,
body.dark #berita-detail aside .bttn { box-shadow: none; }

/* Tombol aksi tetap kontras */
body.dark .bttn, body.dark .button-primary,
body.dark button, body.dark input[type='submit'] { box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* --- Penyesuaian kartu & form (dipertahankan) --- */
body.dark .container::before { opacity: .05; }
body.dark .loop, body.dark #benefit ._item, body.dark #ekskul ._item,
body.dark #testi ._item, body.dark #information .box-content,
body.dark #program .loop, body.dark .agenda-card { background: var(--colorbg); }
body.dark .rs-popup { background: var(--colorbg); }
body.dark input, body.dark select, body.dark textarea { background: #1b212b; color: var(--bodycolor); }
body.dark .alert._ok { background: #10331f; color: #7ee0a8; border-color: #1d5c37; }
body.dark .alert._err { background: #3a1512; color: #ff9c94; border-color: #6b241f; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .grid._4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
    #header .top-inner { padding: 12px 16px; gap: 14px; }
    #header .brand .brand-text b { font-size: 1.45em; }
    #header .top-right { width: 100%; justify-content: space-between; }
    #header .top-contact { gap: 14px; }
    #header .top-contact ._txt small { display: none; }
    nav.top-menu {
        display: none; position: static;
        background: var(--blue-bg);
        box-shadow: 0 15px 30px rgba(0,0,0,.25); max-height: 75vh; overflow-y: auto;
        padding: 8px var(--autopad) 16px; margin: 0;
    }
    nav.top-menu._open { display: block; }
    nav.top-menu > ul { flex-direction: column; gap: 2px; }
    nav.top-menu li { flex-direction: column; }
    nav.top-menu li a { width: 100%; padding: 12px 10px; }
    nav.top-menu > ul > li > a::after { display: none; }
    nav.top-menu ul ul {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 2px solid rgba(255,255,255,.25);
        margin: 0 0 6px 18px; display: none; background: transparent; border-radius: 0;
    }
    nav.top-menu li._open > ul { display: block; }
    nav.top-menu ul ul li a { color: rgba(255,255,255,.9); }
    nav.top-menu ul ul li a:hover { background: rgba(0,0,0,.2); color: #fff; }
    .toggle-menu { display: flex; }
    #hero ._item ._content { max-width: 88%; }
    #hero ._item ._content h2 { font-size: 2.2em; }
    #stats ._content { flex-wrap: wrap; }
    #stats ._item { flex: 1 1 33%; }
    #stats ._item::after { display: none; }
    .grid._3, .grid._4 { grid-template-columns: repeat(2, 1fr); }
    #welcome { flex-direction: column; }
    #welcome ._image { width: 100%; max-width: 340px; }
    #cta ._inner { flex-direction: column; text-align: center; }
    #cta ._text h2::after { margin-left: auto; margin-right: auto; }
    #cta ._img { width: 100%; max-width: 420px; }
}
@media (max-width: 760px) {
    .container._wide { padding: 42px var(--autopad); }
    #hero ._image { height: 520px !important; }
    #hero ._item ._content h2 { font-size: 1.75em; }
    #hero ._item ._content p { font-size: 1em; }
    #stats._hero { margin-top: -30px; }
    #stats ._item { flex: 1 1 50%; padding: 18px 10px; }
    #stats ._item h3 { font-size: 1.9em; }
    .grid, .grid._2, .grid._3, .grid._4 { grid-template-columns: 1fr; }
    #information { flex-direction: column; }
    #facilities .loop { flex-direction: column; }
    #facilities .loop ._pigura { width: 100%; min-height: 200px; }
    .form-grid { grid-template-columns: 1fr; }
    #footer { text-align: left; }
    #cta ._inner { padding: 35px 22px; }
    .rs-popup { flex-direction: column; }
    .rs-popup ._img { width: 100%; height: 170px; }
}
