/* =====================================================================
   TEMPLATE WEB SEKOLAH — STYLE PUBLIK
   Warna aksen (--accent, --accent-50 … --accent-900, --on-accent, --accent-text)
   diisi otomatis dari Admin → Pengaturan → Tampilan & Warna (lihat Theme.php).
   Pendekatan: mobile-first. Breakpoint: 640px, 900px, 1100px.
   ===================================================================== */

:root {
  --accent: #0f766e; --accent-rgb: 15 118 110;
  --accent-50: #f0f8f7; --accent-100: #e0f0ee; --accent-200: #b7dcd8; --accent-300: #87c3bd;
  --accent-700: #0c615a; --accent-800: #0a4d48; --accent-900: #073532;
  --accent-text: #0f766e; --on-accent: #fff;

  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #f1f5f9;
  --bg: #fff; --bg-soft: #f8fafc;
  --success: #15803d; --danger: #b91c1c; --warning: #b45309;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .06);
  --shadow: 0 10px 30px -12px rgb(15 23 42 / .18);
  --shadow-lg: 0 24px 60px -20px rgb(15 23 42 / .28);
  --container: 1200px; --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; } /* cegah geser ke samping di HP tanpa merusak header sticky */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .45); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
@media (max-width: 899px) { .hide-md { display: none !important; } }
@media (max-width: 639px) { .hide-sm { display: none !important; } }

/* ---------- Tombol & chip ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.35em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .9em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgb(var(--accent-rgb) / .8); }
.btn--accent:hover { background: var(--accent-700); color: var(--on-accent); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--light { background: #fff; color: var(--accent-800); }
.btn--light:hover { background: var(--accent-50); color: var(--accent-900); }
.btn--ghost-light { border-color: rgb(255 255 255 / .5); color: #fff; }
.btn--ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--accent-50); color: var(--accent-text); }
.icon-btn .icon { width: 22px; height: 22px; }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: .8rem; font-weight: 600; text-decoration: none; line-height: 1.4; transition: background .2s, color .2s; }
a.chip:hover { background: var(--accent-100); color: var(--accent-800); }
.chip.is-active, .chip--accent { background: var(--accent); color: var(--on-accent); }
.chip small { opacity: .7; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--accent-100); }

/* ---------- Topbar ---------- */
.topbar { background: var(--accent-900); color: rgb(255 255 255 / .82); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar__info li { display: flex; align-items: center; gap: 6px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 639px) { .topbar { display: none; } }

/* ---------- Pita situs demo (hanya tampil di mode demo) ---------- */
.demo-bar { background: var(--ink); color: #fff; font-size: .82rem; }
.demo-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding-block: 8px; text-align: center; }
.demo-bar .icon { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; } /* svg bawaan display:block → paksa sebaris dengan teks */
.demo-bar a { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar a:hover { color: var(--accent-200); }

.social { list-style: none; display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.social a:hover { background: rgb(255 255 255 / .14); color: #fff; }
.social .icon { width: 16px; height: 16px; }
.social--footer { margin-top: 18px; gap: 8px; }
.social--footer a { width: 40px; height: 40px; background: rgb(255 255 255 / .08); }
.social--footer a:hover { background: var(--accent); }

/* ---------- Header & navigasi ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
/* Efek kaca buram di lapisan terpisah: jika dipasang langsung di header, panel menu HP (position: fixed) ikut terkurung di dalam header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(15 23 42 / .35); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-800)); color: var(--on-accent); flex-shrink: 0; box-shadow: 0 8px 18px -10px rgb(var(--accent-rgb) / .9); }
.brand__mark .icon { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tagline { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: 4px; }

.main-nav__list { list-style: none; }
.nav-link { display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.nav-sub { list-style: none; }
.nav-sub a { display: block; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.nav-sub a:hover, .nav-sub a.is-active { color: var(--accent-text); background: var(--accent-50); }

/* Navigasi HP: panel geser dari kanan */
@media (max-width: 1099px) {
  body.nav-open .site-header { z-index: 70; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: #fff; z-index: 70; transform: translateX(100%); transition: transform .3s var(--ease), visibility .3s; visibility: hidden; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-lg); padding-bottom: 24px; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .main-nav__title { font-weight: 700; color: var(--ink); }
  .main-nav__list { padding: 8px 12px; }
  .nav-item { position: relative; border-bottom: 1px solid var(--line-2); }
  .nav-link { padding: 14px 12px; }
  .nav-item.has-sub > .nav-link { padding-right: 48px; }
  .nav-item.is-active > .nav-link { color: var(--accent-text); }
  .nav-sub-toggle { position: absolute; right: 4px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
  .nav-sub-toggle .icon { transition: transform .25s; }
  .nav-sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav-sub { display: none; padding: 0 0 10px 12px; }
  .nav-sub.is-open { display: block; }
  .nav-sub a { padding: 10px 14px; border-radius: 10px; }
  .main-nav__cta { margin: 16px 24px 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / .45); z-index: 60; opacity: 0; transition: opacity .3s; }
  .nav-backdrop.is-visible { opacity: 1; }
  body.nav-open { overflow: hidden; }
}
/* Navigasi desktop: dropdown saat hover/fokus */
@media (min-width: 1100px) {
  .nav-toggle, .main-nav__head, .nav-backdrop { display: none !important; }
  .main-nav { display: flex; align-items: center; gap: 12px; }
  .main-nav__list { display: flex; align-items: center; gap: 2px; }
  .nav-item { position: relative; display: flex; align-items: center; }
  .nav-link { padding: 10px 12px; border-radius: 10px; transition: color .2s, background .2s; }
  .nav-item.has-sub > .nav-link { padding-right: 2px; }
  .nav-link:hover, .nav-item:hover > .nav-link { color: var(--accent-text); }
  .nav-item.is-active > .nav-link { color: var(--accent-text); }
  .nav-item.is-active > .nav-link::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--accent); }
  .nav-sub-toggle { border: 0; background: transparent; padding: 10px 8px 10px 2px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
  .nav-sub-toggle .icon { width: 15px; height: 15px; transition: transform .2s; }
  .nav-item:hover .nav-sub-toggle .icon { transform: rotate(180deg); }
  .nav-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav-sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
  .nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub, .nav-sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-sub a { padding: 9px 14px; border-radius: 9px; }
  .main-nav__cta { padding: .62em 1.15em; font-size: .9rem; }
}

/* ---------- Hero beranda ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgb(255 255 255 / .16), transparent 60%), linear-gradient(135deg, var(--accent-900), var(--accent-700) 55%, var(--accent)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero--image::after { background: linear-gradient(100deg, rgb(var(--accent-rgb) / .1), transparent), linear-gradient(90deg, rgb(2 6 23 / .82) 0%, rgb(2 6 23 / .55) 50%, rgb(2 6 23 / .15) 100%); mask-image: none; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(110px, 14vw, 170px); max-width: var(--container); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero__title { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 15ch; margin: 18px 0 16px; text-wrap: balance; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 56ch; color: rgb(255 255 255 / .88); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Statistik ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); margin: 0; overflow: hidden; }
.stats__item { padding: 22px 16px; text-align: center; display: flex; flex-direction: column-reverse; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats__item dd { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--accent-text); letter-spacing: -.03em; line-height: 1.1; }
.stats__item dt { font-size: .85rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stats__item { border-bottom: 0; padding: 30px 16px; } .stats__item:last-child { border-right: 0; } }

/* ---------- Section ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--accent-200); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
.section-title--sm { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin-bottom: 18px; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .grid--people { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Kartu ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-50); }
.card__media--square { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.card__title { font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.35; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* seluruh kartu dapat diklik */
.card__title a:hover { color: var(--accent-text); }
.card__text { color: var(--muted); font-size: .94rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .83rem; color: var(--muted); margin: 0; }
.meta > * { display: inline-flex; align-items: center; gap: 6px; }
.meta .chip { position: relative; z-index: 1; }
.meta--lg { font-size: .9rem; margin-bottom: 18px; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent-300); background: linear-gradient(135deg, var(--accent-50), var(--accent-100)); }
.placeholder .icon { width: 40px; height: 40px; }
.placeholder--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }

.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-100); color: var(--accent-800); font-weight: 700; font-size: .9rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.8rem; background: #fff; box-shadow: var(--shadow); }

/* ---------- Sambutan ---------- */
.welcome { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.welcome__media { position: relative; max-width: 420px; }
.welcome__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.welcome__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg); background: var(--accent-100); z-index: -1; }
.welcome__text { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 24px; }
@media (min-width: 900px) { .welcome { grid-template-columns: 5fr 7fr; } }
@media (max-width: 899px) { .welcome__media { margin-inline: auto 24px; width: 80%; } }

/* ---------- Visi ---------- */
.vision { background: linear-gradient(135deg, var(--accent-800), var(--accent-900)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.vision__inner { padding-block: clamp(56px, 8vw, 88px); max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.vision__icon { width: 48px; height: 48px; color: var(--accent-300); margin-bottom: 16px; }
.vision__text { margin: 0 0 26px; font-size: clamp(1.25rem, 2.8vw, 1.85rem); font-weight: 600; line-height: 1.45; letter-spacing: -.01em; color: #fff; text-wrap: balance; }

/* ---------- Pengumuman & agenda (beranda) ---------- */
.info-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 7fr 5fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel .section-head { margin-bottom: 18px; }
.panel .section-title { font-size: 1.4rem; }
.notice-list { list-style: none; }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-2); }
.notice:first-child { border-top: 0; padding-top: 0; }
.notice__title { font-size: 1rem; margin: 4px 0 0; line-height: 1.45; }
.notice__title a { color: var(--ink); text-decoration: none; }
.notice__title a:hover { color: var(--accent-text); }
.date-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 62px; border-radius: 14px; background: var(--accent-50); color: var(--accent-800); line-height: 1; }
.date-badge__day { font-size: 1.4rem; font-weight: 800; }
.date-badge__month { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.date-badge--lg { width: 76px; height: 82px; }
.date-badge--lg .date-badge__day { font-size: 1.8rem; }
.date-badge--lg .date-badge__month { font-size: .68rem; text-align: center; }

.event-list { list-style: none; display: grid; gap: 4px; }
.event-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.event-item:first-child { border-top: 0; }
.event-item__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ev, var(--accent)); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ev, var(--accent)) 18%, transparent); }
.event-item__date { margin: 0; font-size: .82rem; font-weight: 600; color: var(--ev, var(--accent-text)); }
.event-item__title { margin: 2px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.event-item__desc { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.event-item__meta { margin: 4px 0 0; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.event-list--detail .event-item { padding: 16px 0; }

/* Warna kategori agenda */
.ev--akademik { --ev: #2563eb; }
.ev--ujian { --ev: #dc2626; }
.ev--libur { --ev: #16a34a; }
.ev--kegiatan { --ev: #d97706; }
.ev--rapat { --ev: #7c3aed; }

/* ---------- Mosaic galeri beranda ---------- */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.mosaic__item { position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: var(--accent-50); }
.mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__caption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgb(2 6 23 / .78)); color: #fff; display: flex; flex-direction: column; font-size: .8rem; }
.mosaic__caption strong { font-size: .98rem; line-height: 1.3; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }

/* ---------- CTA PPDB ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-800)); color: rgb(255 255 255 / .9); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 64px); }
.cta-band__title { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 60ch; }

/* ---------- Header halaman dalam ---------- */
.page-header { background: linear-gradient(180deg, var(--accent-50), #fff); border-bottom: 1px solid var(--line-2); padding-block: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--accent-rgb) / .12), transparent 70%); pointer-events: none; }
.page-header__title { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; margin: 10px 0 8px; max-width: 30ch; text-wrap: balance; }
.page-header__lead { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 60ch; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 500; display: inline-block; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* ---------- Konten & tata letak dengan sidebar ---------- */
.with-aside { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .with-aside { grid-template-columns: minmax(0, 1fr) 300px; } .with-aside--wide { grid-template-columns: minmax(0, 1fr) 320px; } .aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); min-width: 0; }
.content-figure { margin: 0 0 28px; }
.content-figure img { border-radius: var(--radius); width: 100%; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card__title { font-size: 1rem; margin-bottom: 12px; }
.aside-nav { list-style: none; display: grid; gap: 2px; }
.aside-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; }
.aside-nav a:hover { background: var(--line-2); color: var(--ink); }
.aside-nav a.is-active { background: var(--accent-50); color: var(--accent-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.aside-list { list-style: none; display: grid; gap: 14px; }
.aside-list a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.4; }
.aside-list a:hover { color: var(--accent-text); }
.aside-list time { font-size: .8rem; color: var(--muted); }
.aside-card .btn { margin-top: 16px; }

/* Tipografi isi artikel/halaman (konten dari editor admin) */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.8; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 1.1em 1.4em; background: var(--accent-50); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose a { font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--accent-50); color: var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: var(--bg-soft); }
.prose pre { background: var(--ink); color: #e2e8f0; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; }
.prose--article { font-size: 1.08rem; }
.signature { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.signature strong { color: var(--ink); font-size: 1.05rem; }
.signature span { color: var(--muted); font-size: .9rem; }

/* ---------- Artikel ---------- */
.article__header { background: linear-gradient(180deg, var(--accent-50), #fff); padding-block: clamp(32px, 5vw, 56px) 28px; }
.article__title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; margin: 14px 0 18px; text-wrap: balance; }
.article__cover { margin: 0 0 32px; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article .prose { margin-bottom: 36px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); margin-right: 6px; }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.share__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }

/* ---------- Toolbar, pencarian, paginasi ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.search-inline { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: min(100%, 300px); transition: border-color .2s, box-shadow .2s; }
.search-inline:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.search-inline input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; padding: 6px 0; }
.search-inline button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.search-big { display: flex; gap: 10px; margin-bottom: 28px; }
.search-big input { flex: 1; min-width: 0; padding: 14px 20px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1.05rem; outline: 0; }
.search-big input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.result-info { color: var(--muted); margin-bottom: 20px; }
.result-list { list-style: none; display: grid; gap: 14px; }
.result { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.result__title { font-size: 1.12rem; margin: 8px 0 6px; }
.result__title a { color: var(--ink); text-decoration: none; }
.result__title a:hover { color: var(--accent-text); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pagination__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pagination__link:hover { border-color: var(--accent); color: var(--accent-text); }
.pagination__link.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pagination__gap { color: var(--muted); padding: 0 4px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-50); color: var(--accent); margin-bottom: 12px; }
.empty__icon .icon { width: 28px; height: 28px; }

/* ---------- Pengumuman ---------- */
.stack { display: grid; gap: 16px; }
.notice-card { position: relative; display: flex; gap: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.notice-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.notice-card.is-pinned { border-color: var(--accent-200); background: linear-gradient(90deg, var(--accent-50), #fff 40%); }
.notice-card__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.notice-card__title { font-size: 1.15rem; margin: 0; }
.notice-card__title a { color: var(--ink); text-decoration: none; }
.notice-card__title a::after { content: ""; position: absolute; inset: 0; }
.notice-card__title a:hover { color: var(--accent-text); }
@media (max-width: 479px) { .notice-card { flex-direction: column; gap: 12px; } }
.attachment { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 8px 0 4px; border: 1.5px dashed var(--accent-200); border-radius: var(--radius); background: var(--accent-50); text-decoration: none; color: var(--ink); }
.attachment:hover { border-style: solid; color: var(--ink); }
.attachment__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
.attachment__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.attachment__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment__body small { color: var(--muted); }

/* ---------- Kalender ---------- */
.calendar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 32px); min-width: 0; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar__title { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.calendar__head .icon-btn { border: 1px solid var(--line); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calendar__dow { padding: 10px 4px; text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.calendar__dow.is-sunday, .calendar__cell.is-sunday .calendar__num { color: var(--danger); }
.calendar__cell { min-height: 92px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.calendar__cell:nth-child(7n) { border-right: 0; }
.calendar__cell.is-empty { background: var(--bg-soft); }
.calendar__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.calendar__cell.is-today .calendar__num { background: var(--accent); color: var(--on-accent); }
.calendar__events { list-style: none; display: grid; gap: 3px; margin-top: 4px; }
.ev { font-size: .7rem; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ev) 14%, #fff); color: color-mix(in srgb, var(--ev) 80%, #000); border-left: 3px solid var(--ev); font-weight: 600; }
.ev span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev--more { --ev: var(--muted); }
@media (max-width: 639px) {
  .calendar__cell { min-height: 54px; padding: 4px 2px; text-align: center; }
  .calendar__num { width: 26px; height: 26px; font-size: .8rem; }
  .calendar__events { display: flex; justify-content: center; gap: 3px; flex-wrap: wrap; }
  .ev { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--ev); }
  .ev span, .ev--more { display: none; }
}
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 8px; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ev); }
.calendar__subtitle { font-size: 1.15rem; margin: 28px 0 6px; }

/* ---------- Galeri ---------- */
.album-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(2 6 23 / .65); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--accent-50); cursor: zoom-in; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.photo-grid__item:hover img { transform: scale(1.06); opacity: .92; }
.back-link { margin-top: 32px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(2 6 23 / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(2 6 23 / .6); }
.lightbox__figure { margin: 0; width: min(1200px, 84vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox__figure figcaption { font-size: .92rem; color: rgb(255 255 255 / .8); text-align: center; }
.lightbox__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgb(255 255 255 / .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Profil, guru, prestasi ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 36px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts__item { padding: 18px 20px; border-radius: var(--radius); background: var(--accent-50); border: 1px solid var(--accent-100); }
.facts__item dt { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.facts__item dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.link-card { padding: 26px; gap: 10px; }
.link-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-50); color: var(--accent-text); margin-bottom: 6px; transition: background .3s, color .3s; }
.link-card__icon .icon { width: 26px; height: 26px; }
.link-card:hover .link-card__icon { background: var(--accent); color: var(--on-accent); }
.link-card .link-arrow { margin-top: auto; padding-top: 8px; }
.staff-group + .staff-group { margin-top: 56px; }
.person { text-align: center; }
.person__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--accent-50), var(--accent-100)); display: grid; place-items: center; margin-bottom: 14px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 1rem; margin: 0 0 2px; }
.person__role { margin: 0; color: var(--accent-text); font-weight: 600; font-size: .88rem; }
.person__meta { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.achievement__rank { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--accent-800); font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-sm); }
.achievement__rank .icon { color: #d97706; }
.detail-list { list-style: none; display: grid; gap: 6px; margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--ink-2); }
.detail-list li { display: flex; align-items: center; gap: 8px; }
.detail-list .icon { color: var(--accent-text); }

/* ---------- Unduhan ---------- */
.file-list { list-style: none; display: grid; gap: 12px; margin-bottom: 40px; }
.file-item { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.file-item__icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); color: var(--accent-text); flex-shrink: 0; }
.file-item__icon::after { content: attr(data-ext); position: absolute; bottom: -6px; right: -6px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: .6rem; font-weight: 800; }
.file-item__body { flex: 1; min-width: 0; }
.file-item__title { font-size: 1rem; margin: 0 0 4px; }
.file-item .btn { padding-inline: 1em; }

/* ---------- Kontak & formulir ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-50); color: var(--accent-text); flex-shrink: 0; }
.info-card h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 2px; }
.info-card p { margin: 0; color: var(--ink); font-weight: 500; }
.info-card a { color: inherit; text-decoration: none; }
.info-card a:hover { color: var(--accent-text); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.field textarea { resize: vertical; min-height: 120px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .84rem; font-weight: 500; }
.req { color: var(--danger); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: .94rem; margin-bottom: 18px; }
.alert .icon { margin-top: 2px; }
.alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert--danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.map-embed { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 300px; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Halaman error ---------- */
.error-page { padding-block: clamp(72px, 12vw, 140px); text-align: center; }
.error-page__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--accent), var(--accent-800)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }
.error-page__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0; }
.error-page__text { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.error-page__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: rgb(226 232 240 / .72); font-size: .94rem; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; gap: 36px; padding-block: clamp(48px, 7vw, 72px); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; } }
.footer-about p { margin: 18px 0 0; max-width: 40ch; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent-300); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; gap: 16px; }

/* ---------- Tombol melayang ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgb(37 211 102 / .7); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }
.to-top { position: fixed; right: 24px; bottom: 86px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top[hidden] { display: none; }

@media print {
  .topbar, .site-header, .site-footer, .wa-float, .to-top, .share, .aside, .pagination { display: none !important; }
  .content-card { border: 0; padding: 0; }
}
