/* ============================================================
   CMS Sekolah — Situs publik
   Tema: akademik modern (navy + biru, aksen emas, judul serif)
   ============================================================ */

:root {
    --forest: #0a3d2b;
    --forest-700: #0f5138;
    --forest-500: #14664a;
    --green: #047857;
    --green-600: #059669;
    --green-100: #d1fae5;
    --gold: #f0a92c;
    --gold-soft: #fdf1d8;
    --ink: #10261f;
    --muted: #586b62;
    --line: rgba(13, 45, 32, .10);
    --line-strong: rgba(13, 45, 32, .16);
    --bg: #f4faf6;
    --surface: #ffffff;
    --surface-2: #eef6f1;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 30px;
    --shadow-sm: 0 2px 10px rgba(10, 61, 43, .05);
    --shadow: 0 18px 40px -22px rgba(10, 61, 43, .35), 0 2px 8px rgba(10, 61, 43, .05);
    --shadow-lg: 0 40px 80px -40px rgba(10, 61, 43, .45), 0 6px 18px rgba(10, 61, 43, .06);
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--forest); font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }
svg { flex-shrink: 0; }
::selection { background: var(--green-100); color: var(--forest); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font); font-size: .94rem; font-weight: 700; line-height: 1.2;
    cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, #065f46, #047857);
    color: #fff; box-shadow: 0 12px 24px -12px rgba(4, 120, 87, .8);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 30px -14px rgba(4, 120, 87, .9); }
.btn-navy { background: var(--forest); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--forest-700); }
.btn-gold { background: var(--gold); color: #3b2503; box-shadow: 0 12px 24px -14px rgba(240, 169, 44, .9); }
.btn-gold:hover { color: #3b2503; background: #f7b843; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--forest); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--green); }
.link-arrow .ico { width: 17px; height: 17px; transition: transform .18s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Topbar & header ---------- */
.site-topbar {
    background: var(--forest); color: rgba(255, 255, 255, .78);
    font-size: .8rem; letter-spacing: .01em;
}
.site-topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 42px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .ico { width: 15px; height: 15px; color: var(--gold); }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }
.topbar-spacer { flex: 1; }
.topbar-ppdb {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(240, 169, 44, .16);
    color: #ffd98a; border: 1px solid rgba(240, 169, 44, .35);
    padding: 5px 13px; border-radius: 999px; font-weight: 700; font-size: .76rem;
}
.topbar-ppdb .dot { width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 3px rgba(126, 226, 168, .2); }
.topbar-social { display: inline-flex; gap: 4px; }
.topbar-social a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; color: rgba(255,255,255,.7); }
.topbar-social a:hover { background: rgba(255,255,255,.1); color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--forest); }
.brand:hover { color: var(--forest); }
.brand-mark {
    width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(140deg, var(--forest), var(--green-600));
    color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 61, 43, .7);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.brand-mark .ico { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text span { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
    display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 9px;
    font-family: var(--font); font-size: .9rem; font-weight: 600; color: #2f4a3d;
    background: none; border: 0; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--forest); }
.nav-link.active { color: var(--green); background: #ecfdf5; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-cta { margin-left: 12px; }

/* Mega menu Profil */
.nav-drop { position: relative; }
.nav-drop.is-active > .nav-drop-toggle { color: var(--green); background: #ecfdf5; }
.nav-panel {
    position: absolute; top: calc(100% + 14px); right: 0; transform: translateY(8px);
    width: min(760px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line);
    border-radius: 20px; box-shadow: 0 40px 70px -40px rgba(6, 32, 22, .55), 0 10px 24px -18px rgba(6, 32, 22, .3);
    padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.nav-drop.open .nav-panel, .nav-drop:hover .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop.open .nav-caret, .nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-panel::before {
    content: ""; position: absolute; top: -7px; right: 34px; width: 14px; height: 14px;
    background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.nav-panel-inner { position: relative; }
.nav-panel-lead {
    display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 13px;
    background: linear-gradient(120deg, #f1faf5, #ecfdf5); color: var(--forest);
}
.nav-panel-lead:hover { color: var(--green); }
.nav-panel-lead-icon { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--green); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.nav-panel-lead-icon .ico { width: 20px; height: 20px; }
.nav-panel-lead strong { display: block; font-size: .92rem; line-height: 1.3; }
.nav-panel-lead small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.nav-panel-lead > .ico { width: 18px; height: 18px; margin-left: auto; color: var(--green); }
.nav-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 6px 6px; }
.nav-col h4 {
    display: flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 0 10px;
    font-family: var(--font); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); font-weight: 800;
}
.nav-col h4 .ico { width: 14px; height: 14px; color: var(--green); }
.nav-col a {
    display: block; padding: 7px 10px; border-radius: 8px; font-size: .85rem; font-weight: 500;
    color: #365243; line-height: 1.45;
}
.nav-col a:hover { background: var(--surface-2); color: var(--green); }
.nav-col a.active { background: #ecfdf5; color: var(--green); font-weight: 600; }
.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: #fff; color: var(--forest);
    align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ico { width: 22px; height: 22px; }
.mobile-drawer { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 85% -10%, #047857 0%, transparent 55%),
                radial-gradient(900px 500px at 0% 110%, #15803d 0%, transparent 55%),
                linear-gradient(150deg, #062018 0%, #0a3d2b 45%, #0d422f 100%);
    padding: 74px 0 0;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .28;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 54px; align-items: center; padding-bottom: 76px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
    padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: #d1fae5;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 169, 44, .18); }
.hero h1 { color: #fff; margin-bottom: 18px; font-weight: 600; }
.hero h1 em { font-style: normal; color: #ffd98a; position: relative; white-space: nowrap; }
.hero h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
    background: rgba(240, 169, 44, .35); border-radius: 999px;
}
.hero-lead { max-width: 33em; color: rgba(255, 255, 255, .82); font-size: 1.02rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-fact { display: flex; align-items: center; gap: 10px; }
.hero-fact .ico { width: 20px; height: 20px; color: var(--gold); }
.hero-fact strong { display: block; font-size: .95rem; color: #fff; line-height: 1.25; }
.hero-fact span { font-size: .76rem; color: rgba(255, 255, 255, .6); letter-spacing: .04em; }

.hero-art { position: relative; }
.hero-frame {
    position: relative; border-radius: 26px; padding: 10px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7);
    transform: rotate(-1.2deg);
}
.hero-frame-main { border-radius: 19px; overflow: hidden; aspect-ratio: 4 / 3.15; background: #082016; }
.hero-frame-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-sub {
    position: absolute; right: -14px; bottom: -32px; width: 45%;
    border-radius: 16px; overflow: hidden; border: 5px solid #0a2d1f;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8); aspect-ratio: 4 / 3.4;
}
.hero-frame-sub img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
    position: absolute; left: -26px; bottom: 30px; z-index: 2;
    display: flex; align-items: center; gap: 12px; padding: 13px 17px;
    border-radius: 15px; background: #fff; color: var(--forest);
    box-shadow: 0 24px 40px -22px rgba(3, 21, 15, .8);
}
.hero-float .icon-tile { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-soft); color: #b06f06; display: grid; place-items: center; }
.hero-float .icon-tile .ico { width: 20px; height: 20px; }
.hero-float strong { display: block; font-size: 1rem; line-height: 1.2; }
.hero-float span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.hero-wave { display: block; width: 100%; height: 64px; color: var(--bg); }

/* ---------- Statistik ---------- */
.stats-strip { position: relative; margin-top: -46px; z-index: 3; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 24px 26px; display: flex; align-items: center; gap: 15px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #ecfdf5; color: var(--green); }
.stat-icon .ico { width: 22px; height: 22px; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; color: var(--forest); letter-spacing: -.02em; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Section umum ---------- */
.section { padding: 82px 0; }
.section-tight { padding: 56px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-head-copy { max-width: 620px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--muted); max-width: 56ch; }
.section-head .link-arrow { flex-shrink: 0; }

/* ---------- Sambutan ---------- */
.sambutan { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: center; }
.sambutan-media { position: relative; }
.sambutan-photo {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6;
    background: linear-gradient(150deg, var(--forest), var(--green-600)); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.sambutan-photo img { width: 100%; height: 100%; object-fit: cover; }
.sambutan-photo .monogram {
    font-family: var(--serif); font-size: 5.6rem; letter-spacing: .02em; opacity: .95;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.sambutan-photo .monogram-label { position: absolute; bottom: 22px; left: 22px; right: 22px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; text-align: center; }
.sambutan-badge {
    position: absolute; right: -22px; bottom: 34px; background: #fff; color: var(--forest);
    border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
    text-align: center;
}
.sambutan-badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--green); }
.sambutan-badge span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.sambutan-copy blockquote {
    margin: 0 0 24px; padding: 0; position: relative;
}
.sambutan-copy blockquote p { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.65; color: var(--forest-700); }
.sambutan-copy blockquote p:last-child { margin-bottom: 0; }
.sambutan-sign { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.sambutan-sign .sig-avatar { width: 48px; height: 48px; border-radius: 50%; background: #ecfdf5; color: var(--green); display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; }
.sambutan-sign strong { display: block; line-height: 1.25; }
.sambutan-sign span { font-size: .82rem; color: var(--muted); }
.quote-mark { color: rgba(4, 120, 87, .12); width: 54px; height: 54px; margin-bottom: 12px; }

/* ---------- Berita ---------- */
.news-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.news-feature {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 430px; border-radius: var(--radius); overflow: hidden; background: var(--forest);
    box-shadow: var(--shadow); color: #fff;
}
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-feature:hover img { transform: scale(1.04); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 32, 22, .05) 20%, rgba(6, 32, 22, .88) 100%); }
.news-feature-body { position: relative; z-index: 1; padding: 32px; }
.news-feature h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 12px 0 10px; }
.news-feature p { color: rgba(255, 255, 255, .78); font-size: .92rem; margin-bottom: 16px; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.news-item:hover { border-color: rgba(4, 120, 87, .3); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.news-thumb { border-radius: 9px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-item-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.news-item h4 { font-family: var(--font); font-size: .98rem; font-weight: 700; color: var(--forest); margin: 6px 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.news-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: #ecfdf5; color: var(--green);
}
.badge-gold { background: var(--gold-soft); color: #96620a; }
.badge-navy { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.badge-green { background: #e8f8ef; color: #157347; }
.badge-violet { background: #e3f6ef; color: #115e59; }

/* ---------- Kartu berita halaman daftar ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(4, 120, 87, .22); color: var(--ink); }
.post-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.045); }
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-family: var(--font); font-size: 1.06rem; font-weight: 800; line-height: 1.42; margin: 10px 0 9px; }
.post-body p { font-size: .89rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- Prestasi ---------- */
.prestasi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prestasi-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px 24px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.prestasi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prestasi-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -55px; top: -55px; border-radius: 50%; background: var(--gold-soft); opacity: .7; }
.prestasi-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: #b06f06; margin-bottom: 16px; position: relative; z-index: 1; }
.prestasi-card h3 { font-family: var(--font); font-size: 1rem; font-weight: 800; line-height: 1.42; margin-bottom: 8px; position: relative; z-index: 1; }
.prestasi-meta { font-size: .8rem; color: var(--muted); margin-bottom: 0; }
.prestasi-top { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; position: relative; z-index: 1; }
.prestasi-peraih { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--forest-700); }
.prestasi-peraih .ico { width: 15px; height: 15px; color: var(--green); }

/* ---------- Ekstrakurikuler ---------- */
.ekskul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ekskul-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ekskul-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(4, 120, 87, .22); }
.ekskul-icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(140deg, #ecfdf5, #ccf3e0); color: var(--green); margin-bottom: 4px;
}
.ekskul-icon .ico { width: 24px; height: 24px; }
.ekskul-card h3 { font-family: var(--font); font-size: 1rem; font-weight: 800; margin: 0; }
.ekskul-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.ekskul-meta { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.ekskul-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ekskul-meta .ico { width: 14px; height: 14px; color: var(--green); }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface-2); display: block; }
.gallery-tile:nth-child(1), .gallery-tile:nth-child(6) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 32, 22, .72)); opacity: 0; transition: opacity .2s ease; }
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile span { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: .8rem; font-weight: 600; z-index: 1; opacity: 0; transition: opacity .2s ease; }
.gallery-tile:hover span { opacity: 1; }

/* ---------- CTA PPDB ---------- */
.cta-band { padding: 0 0 84px; }
.cta-inner {
    position: relative; overflow: hidden; border-radius: 28px; padding: 48px 52px;
    background: radial-gradient(700px 320px at 90% 0%, #047857 0%, transparent 60%),
                linear-gradient(135deg, #07231a, #0c3b2a 60%, #104a34);
    color: #fff; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center;
    box-shadow: var(--shadow-lg);
}
.cta-inner::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 24px 24px; opacity: .25;
}
.cta-copy { position: relative; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-copy p { color: rgba(255, 255, 255, .78); max-width: 50ch; margin-bottom: 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-steps { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cta-step { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.cta-step b { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #3b2503; display: grid; place-items: center; font-size: .78rem; flex-shrink: 0; }
.cta-step span { font-size: .86rem; color: rgba(255, 255, 255, .9); }

/* ---------- Footer ---------- */
.site-footer { background: #05190f; color: rgba(255, 255, 255, .66); padding: 64px 0 0; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand .brand-mark { box-shadow: none; background: linear-gradient(140deg, #047857, #34d399); }
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; line-height: 1.2; }
.footer-brand span { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 800; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255, 255, 255, .66); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact div { display: flex; gap: 10px; }
.footer-contact .ico { width: 16px; height: 16px; color: var(--gold); margin-top: 4px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .1); }
.footer-social a:hover { background: var(--green); border-color: var(--green); }
.footer-social .ico { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .65); }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero {
    position: relative; overflow: hidden; padding: 58px 0 54px; color: #fff;
    background: radial-gradient(800px 400px at 92% -20%, #047857 0%, transparent 60%),
                linear-gradient(140deg, #062018, #0a3d2b 55%, #0d422f);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 28px 28px; opacity: .22;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 3.6vw, 2.9rem); margin: 14px 0 10px; }
.page-hero p { color: rgba(255, 255, 255, .74); max-width: 62ch; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .ico { width: 13px; height: 13px; }
.breadcrumb .current { color: var(--gold); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 30px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line-strong); color: var(--forest-700);
    font-size: .84rem; font-weight: 700; transition: all .15s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.search-form { margin-left: auto; display: flex; gap: 8px; }
.search-form input {
    width: 240px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
    font-family: var(--font); font-size: .86rem; background: #fff; color: var(--ink);
}
.search-form input:focus { outline: 2px solid rgba(5, 150, 105, .28); border-color: var(--green); }
.empty-state {
    background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
    padding: 56px 24px; text-align: center; color: var(--muted);
}
.empty-state .ico { width: 42px; height: 42px; color: #b6c8bd; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font); font-size: 1rem; margin-bottom: 4px; }

/* ---------- Artikel ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 14px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .85rem; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .ico { width: 15px; height: 15px; color: var(--green); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); background: var(--surface-2); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { font-size: 1.02rem; line-height: 1.85; color: #1f3d2f; }
.prose p { margin: 0 0 1.3em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.15rem; color: var(--forest-700); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-foot { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.sidebar-card h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; font-weight: 800; }
.sidebar-post { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sidebar-post:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-post:hover { color: var(--green); }
.sidebar-post img { width: 64px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.sidebar-post strong { font-size: .85rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-post span { font-size: .72rem; color: var(--muted); }
.sidebar-cta { background: linear-gradient(150deg, var(--forest), #124f38); color: #fff; border: 0; }
.sidebar-cta h3 { color: rgba(255, 255, 255, .7); }
.sidebar-cta p { color: rgba(255, 255, 255, .78); font-size: .87rem; }
.sidebar-cta .btn { margin-top: 4px; }

/* ---------- Profil ---------- */
.profile-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; align-items: start; }
.profile-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 4px; }
.profile-nav a {
    padding: 11px 14px; border-radius: 10px; font-size: .89rem; font-weight: 600; color: #3a5748;
    border-left: 2px solid transparent;
}
.profile-nav a:hover { background: #fff; color: var(--green); }
.profile-nav a.active { background: #fff; border-left-color: var(--green); color: var(--green); box-shadow: var(--shadow-sm); }
.profile-section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.profile-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.profile-section h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-bottom: 16px; }
.visi-card { background: linear-gradient(140deg, #ecfdf5, #fff); border: 1px solid #cdeedd; border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; }
.visi-card h3 { font-family: var(--font); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 800; margin-bottom: 10px; }
.visi-card p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: var(--forest); margin: 0; }
.bullet-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bullet-list li { position: relative; padding-left: 30px; font-size: .96rem; color: #2f4a3d; line-height: 1.6; }
.bullet-list li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
    background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.struktur-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.struktur-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.struktur-avatar { width: 42px; height: 42px; border-radius: 50%; background: #ecfdf5; color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: .86rem; flex-shrink: 0; }
.struktur-item strong { display: block; font-size: .92rem; line-height: 1.3; }
.struktur-item span { font-size: .78rem; color: var(--muted); }
.sambutan-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.sambutan-grid .sambutan-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Guru ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 1 / 1.06; background: linear-gradient(150deg, #e4f4ea, #f4fbf7); display: grid; place-items: center; overflow: hidden; position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-monogram { font-family: var(--serif); font-size: 2.6rem; color: #2f6b52; letter-spacing: .02em; }
.team-body { padding: 18px 20px 20px; }
.team-body h3 { font-family: var(--font); font-size: .98rem; font-weight: 800; margin-bottom: 3px; line-height: 1.35; }
.team-role { font-size: .8rem; color: var(--green); font-weight: 700; margin-bottom: 8px; }
.team-meta { font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.team-meta span { display: inline-flex; align-items: center; gap: 6px; }
.team-meta .ico { width: 13px; height: 13px; }
.team-section-title { display: flex; align-items: center; gap: 12px; margin: 44px 0 22px; font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.team-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Galeri halaman ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.album-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(6, 32, 22, .72); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 5px; }
.album-count .ico { width: 13px; height: 13px; }
.album-body { padding: 18px 20px 20px; }
.album-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.album-body p { font-size: .83rem; color: var(--muted); margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 4 / 3; border: 0; padding: 0; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-item:hover img { transform: scale(1.05); }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; background: linear-gradient(transparent, rgba(6, 32, 22, .78)); color: #fff; font-size: .76rem; text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 22, 15, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 12px; margin: 0 auto; }
.lightbox figcaption { color: rgba(255, 255, 255, .82); font-size: .88rem; margin-top: 14px; }
.lightbox-close { position: absolute; top: 20px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Form publik & PPDB ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--forest-700); }
.field label .req { color: #dc2626; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-strong);
    background: #fbfefc; font-family: var(--font); font-size: .92rem; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); background: #fff;
}
.field .hint { font-size: .76rem; color: var(--muted); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alert { display: flex; gap: 11px; padding: 14px 16px; border-radius: 12px; font-size: .87rem; margin-bottom: 20px; border: 1px solid transparent; align-items: flex-start; }
.alert .ico { width: 18px; height: 18px; margin-top: 1px; }
.alert-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info { background: #effbf5; border-color: #a7f3d0; color: #0a5c3a; }
.ppdb-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
.ppdb-side { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.info-card h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.info-card h3 .ico { width: 17px; height: 17px; color: var(--green); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline-item:last-child::before { display: none; }
.timeline-num { width: 26px; height: 26px; border-radius: 50%; background: #ecfdf5; color: var(--green); font-size: .76rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.timeline-item strong { display: block; font-size: .9rem; line-height: 1.45; color: var(--forest-700); }
.timeline-item span { font-size: .8rem; color: var(--muted); }
.jadwal-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.jadwal-row:last-child { border-bottom: 0; padding-bottom: 0; }
.jadwal-row span { color: var(--muted); }
.jadwal-row strong { text-align: right; font-size: .84rem; color: var(--forest-700); }
.status-box { background: #f6faf7; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px; }
.status-box form { display: flex; gap: 8px; }
.status-box input { flex: 1; padding: 10px 13px; border-radius: 9px; border: 1px solid var(--line-strong); font-family: var(--font); font-size: .86rem; }
.status-result { margin-top: 12px; font-size: .86rem; }
.status-result .badge { margin-left: 6px; }

/* ---------- Kontak ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.contact-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; background: #ecfdf5; color: var(--green); display: grid; place-items: center; margin-bottom: 13px; }
.contact-card h3 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 5px; font-weight: 800; }
.contact-card p { margin: 0; font-size: .9rem; font-weight: 600; color: var(--forest-700); line-height: 1.5; }
.contact-card a { color: var(--forest-700); }
.contact-card a:hover { color: var(--green); }
.map-card { background: linear-gradient(140deg, #e3f2e9, #f6fbf8); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 18px; }
.map-card .pin-big { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--green); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.map-card h3 { font-family: var(--font); font-size: .95rem; margin-bottom: 3px; }
.map-card p { margin: 0 0 8px; font-size: .83rem; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 13px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; font-size: .87rem; font-weight: 700;
    border: 1px solid var(--line-strong); background: #fff; color: var(--forest-700);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--forest); border-color: var(--forest); color: #fff; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- Animasi masuk ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
    .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
    .hero .wrap { gap: 38px; }
    .nav a { padding: 9px 10px; font-size: .85rem; }
    .card-grid, .prestasi-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid, .ekskul-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
}

@media (max-width: 900px) {
    .site-topbar { display: none; }
    .nav, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-drawer {
        display: block; position: fixed; inset: 0; z-index: 90; background: rgba(6, 28, 20, .5);
        opacity: 0; pointer-events: none; transition: opacity .2s ease;
    }
    .mobile-drawer.open { opacity: 1; pointer-events: auto; }
    .mobile-panel {
        position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw);
        background: #fff; padding: 26px 22px; display: flex; flex-direction: column; gap: 5px;
        transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    }
    .mobile-drawer.open .mobile-panel { transform: none; }
    .mobile-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .mobile-panel-head strong { font-family: var(--serif); font-size: 1.1rem; }
    .mobile-panel a.m-link { padding: 11px 12px; border-radius: 10px; font-weight: 600; color: var(--forest-700); font-size: .93rem; display: block; }
    .mobile-panel a.m-link.active { background: #ecfdf5; color: var(--green); }
    .mobile-panel .btn { margin-top: 14px; }
    .m-group { border-radius: 10px; }
    .m-group summary {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 11px 12px; font-weight: 600; font-size: .93rem; color: var(--forest-700);
        cursor: pointer; list-style: none; border-radius: 10px;
    }
    .m-group summary::-webkit-details-marker { display: none; }
    .m-group summary:hover { background: var(--surface-2); }
    .m-group[open] summary { color: var(--green); }
    .m-caret { width: 16px; height: 16px; transition: transform .2s ease; }
    .m-group[open] .m-caret { transform: rotate(180deg); }
    .mobile-panel a.m-sub { padding-left: 20px; font-size: .87rem; font-weight: 500; color: #40594a; }
    .m-subtitle { padding: 10px 12px 4px 20px; font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #93a89c; }
    .m-contact { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
    .m-contact span { display: inline-flex; align-items: center; gap: 8px; }
    .m-contact .ico { width: 15px; height: 15px; color: var(--green); }
    .hero { padding-top: 48px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-bottom: 60px; }
    .hero-art { max-width: 520px; }
    .hero-frame-sub { display: none; }
    .hero-float { left: 8px; bottom: -18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
    .section { padding: 60px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .sambutan { grid-template-columns: 1fr; gap: 36px; }
    .sambutan-media { max-width: 360px; }
    .sambutan-badge { right: 10px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-feature { min-height: 360px; }
    .cta-inner { grid-template-columns: 1fr; padding: 36px 30px; gap: 28px; }
    .profile-layout { grid-template-columns: 1fr; gap: 28px; }
    .profile-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
    .profile-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px; }
    .profile-nav a.active { border-left: 0; border-bottom-color: var(--green); }
    .article-layout { grid-template-columns: 1fr; }
    .ppdb-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ppdb-layout > *, .contact-layout > *, .form-card, .info-card, .ppdb-side { min-width: 0; }
    .sambutan-grid { grid-template-columns: 1fr; }
    .sambutan-grid .sambutan-photo { max-width: 320px; }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 680px) {
    .wrap { padding: 0 18px; }
    .site-header .wrap { min-height: 70px; }
    .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
    .brand-text strong { font-size: 1.04rem; }
    .brand-text span { font-size: .62rem; letter-spacing: .1em; }
    .hero h1 { font-size: 2.05rem; }
    .hero-lead { font-size: .95rem; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-facts { gap: 12px 20px; }
    .hero-frame-sub { display: none; }
    .hero-float { position: static; margin-top: 12px; transform: none; display: inline-flex; }
    .stats-strip { margin-top: -30px; }
    .stats-grid { border-radius: 16px; }
    .stat { padding: 16px 14px; gap: 10px; }
    .stat-icon { width: 38px; height: 38px; border-radius: 10px; }
    .stat-icon .ico { width: 19px; height: 19px; }
    .stat strong { font-size: 1.32rem; }
    .stat span { font-size: .64rem; letter-spacing: .02em; }
    .section { padding: 48px 0; }
    .section-tight { padding: 36px 0; }
    .card-grid, .prestasi-grid, .team-grid, .ekskul-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-tile:nth-child(1), .gallery-tile:nth-child(6) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
    .news-item { grid-template-columns: 104px 1fr; gap: 13px; padding: 12px; }
    .news-item h4 { font-size: .9rem; }
    .news-feature-body { padding: 22px; }
    .form-card { padding: 24px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .struktur-list { grid-template-columns: 1fr; }
    .album-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .cta-band { padding-bottom: 56px; }
    .cta-inner { border-radius: 20px; padding: 30px 22px; }
    .page-hero { padding: 40px 0 38px; }
    .search-form { margin-left: 0; width: 100%; }
    .search-form input { width: 100%; }
    .sambutan-photo { aspect-ratio: 4 / 4.2; }
    .sambutan-badge { right: 6px; bottom: 18px; padding: 10px 14px; }
}

@media (max-width: 420px) {
    .card-grid, .prestasi-grid, .team-grid, .ekskul-grid { grid-template-columns: 1fr; }
    .hero-facts { flex-direction: column; gap: 10px; }
}

/* ---------- Cetak ---------- */
@media print {
    .site-topbar, .site-header, .site-footer, .cta-band, .filter-bar, .hero-art, .pagination { display: none !important; }
    .hero, .page-hero { background: #fff !important; color: #000 !important; padding: 0 0 20px; }
    .hero h1, .page-hero h1 { color: #000 !important; }
    body { background: #fff; }
    .section { padding: 16px 0; }
}

/* ---------- Fallback gambar ---------- */
.cover-fallback {
    width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center;
    background: linear-gradient(140deg, #e3f2e9, #cde9dc); color: #8fb3a2;
}
.cover-fallback .ico { width: 38px; height: 38px; }


/* ---------- Agenda sekolah ---------- */
.agenda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.agenda-card {
    display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.agenda-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(4, 120, 87, .2); }
.agenda-date {
    flex-shrink: 0; width: 68px; height: 76px; border-radius: 14px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: linear-gradient(150deg, #ecfdf5, #cdeedd);
    color: var(--green); border: 1px solid #cfeadd;
}
.agenda-date strong { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.agenda-date span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.agenda-body { min-width: 0; }
.agenda-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 800; margin: 6px 0 5px; line-height: 1.4; }
.agenda-body p { font-size: .86rem; color: var(--muted); margin-bottom: 9px; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.agenda-meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-meta .ico { width: 14px; height: 14px; color: var(--green); }
.agenda-month { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; font-family: var(--font); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agenda-month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.agenda-month:first-of-type { margin-top: 0; }
.agenda-past .agenda-card { opacity: .82; }
.agenda-past .agenda-date { background: #eef5f0; color: #62786a; border-color: #dfe9e2; }

/* ---------- Layanan online ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.layanan-card {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden;
}
.layanan-card::after {
    content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px;
    border-radius: 50%; background: #ecfdf5; opacity: .8;
}
.layanan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(4, 120, 87, .22); }
.layanan-icon {
    position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--forest), var(--green-600)); color: #fff;
    box-shadow: 0 14px 26px -14px rgba(10, 61, 43, .8);
}
.layanan-icon .ico { width: 26px; height: 26px; }
.layanan-card h3 { position: relative; z-index: 1; font-family: var(--font); font-size: 1.08rem; font-weight: 800; margin: 0; }
.layanan-card p { position: relative; z-index: 1; font-size: .89rem; color: var(--muted); margin: 0 0 4px; flex: 1; }
.layanan-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.layanan-status { font-size: .74rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.layanan-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #c9d8cf; }
.layanan-status.aktif .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); }
.layanan-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.layanan-mini .layanan-card { padding: 22px; }
.layanan-mini .layanan-icon { width: 46px; height: 46px; border-radius: 13px; }
.layanan-mini .layanan-icon .ico { width: 22px; height: 22px; }
.layanan-note {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px;
    background: #f6faf7; border: 1px dashed var(--line-strong); border-radius: 14px; font-size: .85rem; color: var(--muted);
}
.layanan-note .ico { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

/* ---------- Data siswa ---------- */
.siswa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.siswa-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.siswa-stat span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.siswa-stat strong { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--forest); }
.siswa-stat small { font-size: .78rem; color: var(--muted); display: block; margin-top: 6px; }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.public-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.public-table th {
    text-align: left; padding: 14px 18px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); font-weight: 800; background: #f6faf7; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.public-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: #2f4a3d; }
table.public-table tbody tr:last-child td { border-bottom: 0; }
table.public-table tbody tr:hover { background: #f8fdfa; }
table.public-table .num { text-align: right; font-variant-numeric: tabular-nums; }
table.public-table tfoot td { background: #f6faf7; font-weight: 800; color: var(--forest); border-top: 1px solid var(--line-strong); }
.kelas-badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--forest); }
.kelas-badge span {
    width: 30px; height: 30px; border-radius: 9px; background: #ecfdf5; color: var(--green);
    display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}

/* ---------- Responsif tambahan ---------- */
@media (max-width: 1080px) {
    .agenda-grid { grid-template-columns: 1fr; }
    .siswa-stats { grid-template-columns: repeat(2, 1fr); }
    .layanan-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-panel { display: none; }
    .layanan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .siswa-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .siswa-stat { padding: 16px; }
    .siswa-stat strong { font-size: 1.5rem; }
    .layanan-card { padding: 22px; }
    .agenda-card { padding: 18px; gap: 14px; }
    .agenda-date { width: 58px; height: 66px; }
    .agenda-date strong { font-size: 1.35rem; }
    .layanan-mini { grid-template-columns: 1fr; }
}

/* ---------- Sidebar profil (grup) ---------- */
.profile-nav-group {
    padding: 16px 14px 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: #93a89c;
}
.profile-nav-group:first-child { padding-top: 4px; }
@media (max-width: 900px) {
    .profile-nav-group { display: none; }
}

/* ---------- Grid dengan jumlah kolom tetap (responsif) ---------- */
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.contact-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.contact-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) {
    .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .contact-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .card-grid.cols-4, .contact-cards.cols-3, .contact-cards.cols-2 { grid-template-columns: 1fr; }
}

/* Panel mega menu: jaga tetap di dalam layar pada desktop sempit */
@media (max-width: 1180px) {
    .nav-panel { width: min(620px, calc(100vw - 40px)); }
    .nav-cols { grid-template-columns: repeat(2, 1fr); }
}
/* Cegah input lebar membuat halaman meluber di layar kecil */
.status-box form { min-width: 0; }
.status-box input { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }

/* ============================================================
   Slider beranda (di bawah menu)
   ============================================================ */
.hero-slider {
    position: relative; background: #062018;
}
.hero-slider .slider-viewport {
    position: relative; overflow: hidden;
    height: clamp(440px, 58vh, 640px);
}
.hero-slider .slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .85s ease, visibility .85s ease;
}
.hero-slider .slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide-media { position: absolute; inset: 0; overflow: hidden; background: #082016; }
.slide-media img, .slide-media .cover-fallback {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.03); transition: transform 8s linear;
}
.hero-slider .slide.is-active .slide-media img { transform: scale(1.1); }
.slide-media .cover-fallback .ico { width: 64px; height: 64px; }
.slide-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(5, 28, 20, .94) 0%, rgba(5, 28, 20, .80) 38%, rgba(5, 28, 20, .34) 68%, rgba(5, 28, 20, .55) 100%),
        radial-gradient(700px 380px at 90% 10%, rgba(4, 120, 87, .38) 0%, transparent 65%);
}
.slide-inner {
    position: relative; z-index: 2; height: 100%; max-width: var(--wrap);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    color: #fff; padding-top: 8px; padding-bottom: 92px;
}
.slide-inner > * { max-width: 640px; }
.slide-title {
    color: #fff; font-size: clamp(1.95rem, 4vw, 3.3rem); line-height: 1.12;
    margin: 0 0 16px; text-shadow: 0 12px 30px rgba(2, 18, 13, .45);
}
.slide-text {
    color: rgba(255, 255, 255, .84); font-size: 1.02rem; line-height: 1.7;
    margin: 0 0 26px; max-width: 34em;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide-actions .btn-ghost { backdrop-filter: blur(8px); }

/* Panah navigasi */
.slider-arrow {
    position: absolute; top: calc(50% - 46px); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(6, 32, 22, .34);
    color: #fff; display: grid; place-items: center; cursor: pointer;
    backdrop-filter: blur(8px); transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.slider-arrow .ico { width: 20px; height: 20px; }
.slider-arrow:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-arrow.prev .ico { transform: rotate(180deg); }

/* Titik navigasi */
.slider-dots {
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 54px; z-index: 4; display: flex; align-items: center; gap: 8px;
}
.slider-dot {
    width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
    background: rgba(255, 255, 255, .38); cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.slider-dot:hover { background: rgba(255, 255, 255, .65); }
.slider-dot.is-active { width: 26px; background: var(--gold); }

/* Garis progres autoplay */
.slider-progress {
    position: absolute; top: 0; left: 0; z-index: 5; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--gold), #ffd98a);
    box-shadow: 0 0 12px rgba(240, 169, 44, .55);
}

/* Bar fakta sekolah */
.slider-facts { position: relative; z-index: 3; margin-top: -40px; padding: 0 0 6px; }
.slider-facts .wrap { position: relative; }
.slider-facts-inner {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 18px 26px; box-shadow: 0 26px 50px -32px rgba(6, 32, 22, .55);
}
.slider-facts .hero-fact { gap: 12px; }
.slider-facts .hero-fact .ico { color: var(--green); }
.slider-facts .hero-fact strong { color: var(--forest); font-size: .9rem; }
.slider-facts .hero-fact span { color: var(--muted); font-size: .74rem; }

/* Statistik angka: versi datar saat memakai slider */
.stats-strip.flat { margin-top: 22px; }
.stats-strip.flat .stats-grid {
    background: transparent; border: 0; box-shadow: none; border-radius: 0;
    gap: 0;
}
.stats-strip.flat .stat { border-right: 1px solid var(--line); padding: 6px 22px; }
.stats-strip.flat .stat:first-child { padding-left: 4px; }
.stats-strip.flat .stat:last-child { border-right: 0; }
.stats-strip.flat .stat-icon { background: #ecfdf5; }

@media (max-width: 1080px) {
    .hero-slider .slider-viewport { height: clamp(430px, 56vh, 560px); }
    .slider-facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 22px; }
    .slider-dots { bottom: 48px; }
}
@media (max-width: 900px) {
    .slider-arrow { display: none; }
    .slide-inner { padding-bottom: 84px; }
    .slide-inner > * { max-width: 100%; }
    .slider-facts { margin-top: -34px; }
}
@media (max-width: 680px) {
    .hero-slider .slider-viewport { height: 500px; }
    .slide-shade { background: linear-gradient(180deg, rgba(5, 28, 20, .55) 0%, rgba(5, 28, 20, .88) 62%, rgba(5, 28, 20, .96) 100%); }
    .slide-inner { justify-content: flex-end; padding-bottom: 96px; }
    .slide-title { font-size: 1.72rem; margin-bottom: 12px; }
    .slide-text { font-size: .93rem; line-height: 1.65; margin-bottom: 20px; }
    .slide-actions { width: 100%; }
    .slide-actions .btn { flex: 1 1 auto; }
    .slider-dots { bottom: 46px; }
    .slider-facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 16px 18px; }
    .stats-strip.flat .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-strip.flat .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 6px; }
    .stats-strip.flat .stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .stats-strip.flat .stat:nth-child(3), .stats-strip.flat .stat:nth-child(4) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider .slide { transition: none; }
    .slide-media img { transition: none; transform: none; }
}
