/* ============================================================
   Tema "Cakrawala" — SekolahCMS
   Editorial-akademik: Poppins + Inter, indigo & emas hangat.
   Warna --brand & --accent diatur per tenant (theme.json options).
   ============================================================ */
:root {
  --brand: #253A8E;
  --accent: #E0A63C;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
  --brand-tint: color-mix(in srgb, var(--brand) 14%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fff);

  --paper: #FBFAF6;
  --surface: #ffffff;
  --ink: #191C22;
  --ink-soft: #3C424E;
  --muted: #6C7280;
  --line: #EAE7DE;
  --line-strong: #DED9CD;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(25, 28, 34, .04), 0 2px 8px rgba(25, 28, 34, .05);
  --shadow: 0 6px 24px rgba(25, 28, 34, .08);
  --shadow-lg: 0 20px 50px rgba(25, 28, 34, .14);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
.svg-icon, [data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -.16em; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--brand-soft); }
.section-paper { background: var(--surface); }

/* ---------- Eyebrow (signature struktural) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.on-dark { color: #fff; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Tombol ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 100px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-accent { --bg: var(--accent); --fg: #2A1E06; }
.btn-accent:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --fg: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--brand); }
.btn-white-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn-white-ghost:hover { --bg: #fff; --fg: var(--brand); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.link-arrow [data-lucide] { transition: transform .2s var(--ease); }
.link-arrow:hover [data-lucide] { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--brand-ink); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-meta { display: flex; gap: 20px; align-items: center; }
.topbar-meta span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; transition: background .18s; }
.topbar-social a:hover { background: rgba(255,255,255,.14); }
@media (max-width: 860px) { .topbar { display: none; } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark [data-lucide] { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: .94rem; color: var(--ink-soft); padding: 10px 14px; border-radius: 10px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand); background: var(--brand-soft); }
.nav-menu a [data-lucide] { width: 17px; height: 17px; opacity: .85; }
.nav-sub a { display: flex; align-items: center; gap: 8px; }
.nav-sub a [data-lucide] { width: 16px; height: 16px; color: var(--brand); opacity: .9; }
.drawer-menu a { display: flex; align-items: center; gap: 11px; }
.drawer-menu a [data-lucide] { width: 18px; height: 18px; color: var(--brand); }
.drawer-menu .sub a { padding-left: 26px; }
.drawer-menu .sub a [data-lucide] { width: 15px; height: 15px; }
.nav-menu .has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 216px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease);
}
.nav-menu > li:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search-btn, .nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .18s; }
.nav-search-btn:hover, .nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; }

/* pencarian dropdown */
.nav-search { position: absolute; inset: 100% 0 auto auto; margin-top: 10px; width: min(420px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: none; }
.nav-search.open { display: block; }
.nav-search form { display: flex; gap: 8px; }
.nav-search input { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: .95rem; }
.nav-search input:focus { outline: none; border-color: var(--brand); }

/* mobile drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.nav-drawer .backdrop { position: absolute; inset: 0; background: rgba(20,22,28,.45); opacity: 0; transition: opacity .25s; }
.nav-drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 20px; }
.nav-drawer.open { visibility: visible; }
.nav-drawer.open .backdrop { opacity: 1; }
.nav-drawer.open .panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu a { display: block; padding: 13px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.drawer-menu .sub a { padding-left: 26px; font-size: .92rem; color: var(--muted); border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 90px; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.03em; margin-bottom: 22px; }
.hero-title .accent { color: var(--brand); position: relative; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure > img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-figure .placeholder { width: 100%; aspect-ratio: 4/3.4; border-radius: 22px; background: linear-gradient(140deg, var(--brand), var(--brand-ink)); display: flex; align-items: center; justify-content: center; }
.hero-figure .placeholder [data-lucide] { width: 90px; height: 90px; color: rgba(255,255,255,.5); }
.hero-badge { position: absolute; left: -22px; bottom: 28px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 260px; }
.hero-badge .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, #000); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-blob { position: absolute; top: -80px; right: -120px; width: 420px; height: 420px; background: radial-gradient(circle, var(--brand-tint), transparent 70%); z-index: 0; pointer-events: none; }

/* quick info strip */
.quickinfo { border-top: 1px solid var(--line); background: var(--paper); }
.quickinfo .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.qi { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.qi + .qi { border-left: 1px solid var(--line); }
.qi .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qi strong { display: block; font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qi span { font-size: .96rem; color: var(--ink); font-weight: 500; }

/* ---------- Sambutan kepala sekolah ---------- */
.principal { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: center; }
.principal-photo { position: relative; }
.principal-photo img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; border-radius: 20px; }
.principal-photo .frame { position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--accent); border-radius: 20px; z-index: -1; }
.principal .content-html { font-size: 1.06rem; color: var(--ink-soft); }
.principal-sign { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.principal-sign .line { width: 40px; height: 2px; background: var(--accent); }
.principal-sign strong { font-family: var(--font-display); display: block; }
.principal-sign small { color: var(--muted); }

/* ---------- Kartu berita editorial ---------- */
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--brand-soft); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brand-tint); }
.post-card .thumb .ph [data-lucide] { width: 44px; height: 44px; }
.post-card .cat { position: absolute; top: 14px; left: 14px; background: var(--surface); color: var(--brand); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--muted); }
.post-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card h3 { font-size: 1.18rem; letter-spacing: -.02em; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
/* featured (besar) */
.post-featured { grid-row: span 2; }
.post-featured .thumb { aspect-ratio: 16/11; }
.post-featured h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.post-featured p { font-size: 1rem; }
.news-side { display: flex; flex-direction: column; gap: 20px; }
.post-mini { display: grid; grid-template-columns: 108px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.post-mini:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.post-mini .thumb { aspect-ratio: 1/1; }
.post-mini .body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.post-mini h4 { font-size: .98rem; margin: 0; line-height: 1.32; }
.post-mini h4 a { color: var(--ink); }
.post-mini h4 a:hover { color: var(--brand); }
.post-mini .meta { font-size: .76rem; color: var(--muted); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }

/* ---------- Agenda + Pengumuman ---------- */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.event-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
.event-item:hover { padding-inline: 6px; }
.date-block { width: 66px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.date-block .m { background: var(--brand); color: #fff; font-family: var(--font-display); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.date-block .d { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; padding: 8px 0 3px; }
.date-block .y { font-size: .68rem; color: var(--muted); padding-bottom: 6px; }
.date-block.past .m { background: var(--muted); }
.event-item .info h4 { font-size: 1.04rem; margin: 0 0 5px; line-height: 1.3; }
.event-item .info h4 a { color: var(--ink); }
.event-item .info h4 a:hover { color: var(--brand); }
.event-item .info .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.event-item .info .meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-item > [data-lucide] { color: var(--line-strong); }
.event-item:hover > [data-lucide] { color: var(--brand); }

.notice-item { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; position: relative; transition: box-shadow .2s, transform .2s; }
.notice-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.notice-item.pinned { border-left: 3px solid var(--accent); }
.notice-item .date { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.notice-item h4 { font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); line-height: 1.35; }
.notice-item:hover h4 { color: var(--brand); }
.notice-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.notice-item .pin { position: absolute; top: 14px; right: 16px; color: var(--accent); }

/* ---------- Galeri strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-strip a { border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--brand-soft); }
.gallery-strip a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-strip a:hover img { transform: scale(1.07); }
.gallery-strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(37,58,142,.35)); opacity: 0; transition: opacity .3s; }
.gallery-strip a:hover::after { opacity: 1; }
.gallery-strip .big { grid-column: span 2; grid-row: span 2; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: 28px; padding: 60px; text-align: center; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.cta::after { width: 220px; height: 220px; bottom: -110px; right: -50px; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); position: relative; }
.cta p { color: rgba(255,255,255,.82); max-width: 40em; margin: 0 auto 28px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* ---------- Page header ---------- */
.page-hero { position: relative; background: var(--brand-ink); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand) 60%, #fff 0%), transparent 55%); opacity: .5; }
.page-hero.has-img { background-size: cover; background-position: center; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,18,40,.9), rgba(15,18,40,.6)); }
.page-hero .wrap { position: relative; z-index: 2; padding: 58px 0 52px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [data-lucide] { width: 14px; height: 14px; opacity: .6; }

/* ---------- Konten artikel (prose) ---------- */
.content-html { line-height: 1.85; color: var(--ink-soft); font-size: 1.05rem; }
.content-html > *:first-child { margin-top: 0; }
.content-html h2, .content-html h3, .content-html h4 { color: var(--ink); margin: 1.7em 0 .6em; }
.content-html h2 { font-size: 1.6rem; } .content-html h3 { font-size: 1.3rem; }
.content-html p { margin: 0 0 1.2em; }
.content-html a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.content-html img { border-radius: 14px; margin: 1.4em 0; }
.content-html ul, .content-html ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content-html li { margin-bottom: .4em; }
.content-html blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.content-html table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.content-html th, .content-html td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; }
.content-html th { background: var(--brand-soft); font-family: var(--font-display); }
.content-html iframe { max-width: 100%; border-radius: 14px; margin: 1.2em 0; }
.content-html pre { background: var(--ink); color: #e7e9f0; padding: 16px; border-radius: 12px; overflow-x: auto; }

/* layout artikel + sidebar */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: start; }
.article-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 18px; margin-bottom: 30px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; font-size: .9rem; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .18s; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.widget-title { font-size: 1.05rem; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.widget-title [data-lucide] { color: var(--accent); width: 20px; height: 20px; }
.cat-list, .recent-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--ink-soft); font-size: .94rem; border-bottom: 1px dashed var(--line); }
.cat-list a:hover { color: var(--brand); padding-left: 6px; }
.recent-item { display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 10px 0; }
.recent-item + .recent-item { border-top: 1px dashed var(--line); }
.recent-item img, .recent-item .ph { width: 68px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand-tint); }
.recent-item strong { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.34; display: block; }
.recent-item:hover strong { color: var(--brand); }
.recent-item small { font-size: .74rem; color: var(--muted); }

/* ---------- Guru & staf ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.teacher-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform .25s var(--ease), box-shadow .25s; }
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.teacher-card .photo { aspect-ratio: 1/1.08; overflow: hidden; background: var(--brand-soft); }
.teacher-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher-card .photo .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: #fff; background: linear-gradient(150deg, var(--brand), var(--brand-ink)); }
.teacher-card .body { padding: 18px 14px 22px; }
.teacher-card strong { font-family: var(--font-display); font-size: 1rem; display: block; letter-spacing: -.01em; }
.teacher-card .role { color: var(--brand); font-size: .8rem; font-weight: 600; margin-top: 3px; }
.teacher-card small { color: var(--muted); font-size: .78rem; display: block; margin-top: 2px; }

/* ---------- Galeri (album & item) ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.album-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.album-card .cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--brand-soft); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album-card:hover .cover img { transform: scale(1.06); }
.album-card .cover .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brand-tint); }
.album-card .count { position: absolute; right: 12px; bottom: 12px; background: rgba(20,22,28,.72); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }
.album-card .body { padding: 16px 18px 20px; }
.album-card strong { font-family: var(--font-display); font-size: 1.04rem; display: block; }
.album-card small { color: var(--muted); font-size: .8rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: var(--brand-soft); border: 0; cursor: zoom-in; padding: 0; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.media-tile:hover img { transform: scale(1.06); }
.media-tile .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.media-tile .play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.media-tile .cap { position: absolute; inset: auto 0 0 0; padding: 20px 12px 10px; background: linear-gradient(transparent, rgba(20,22,28,.78)); color: #fff; font-size: .78rem; text-align: left; }

/* ---------- Unduhan ---------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: box-shadow .2s, border-color .2s; }
.dl-row:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.dl-row .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-row .info { flex: 1; min-width: 0; }
.dl-row strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.dl-row .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.dl-row .meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-row .tag { font-size: .72rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 100px; }

/* ---------- Kontak ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-info li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info strong { font-family: var(--font-display); font-size: .95rem; display: block; }
.contact-info span, .contact-info a { color: var(--muted); font-size: .92rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 12px 15px; font: inherit; font-size: .95rem; background: var(--paper); transition: border-color .18s, background .18s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 30px; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; font-size: .94rem; }
.alert-success { background: #ECFBF3; color: #10633C; border: 1px solid #C4EED8; }
.alert-danger { background: #FDECEC; color: #9F2A2A; border: 1px solid #F6C9C9; }
.alert-warning { background: #FEF6E7; color: #8A5A12; border: 1px solid #F6E1B4; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-tint); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .92rem; color: var(--ink-soft); padding: 0 12px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* ---------- Empty / search ---------- */
.empty { text-align: center; padding: 70px 20px; }
.empty [data-lucide] { width: 54px; height: 54px; color: var(--line-strong); margin: 0 auto 16px; }
.empty p { color: var(--muted); }
.search-big { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 34px; }
.search-big input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: 100px; padding: 15px 24px; font: inherit; font-size: 1.02rem; background: var(--surface); }
.search-big input:focus { outline: none; border-color: var(--brand); }
.search-result { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; }
.search-result:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.search-result .kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.search-result h3 { font-size: 1.14rem; margin: 4px 0; }
.search-result p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); margin-top: 40px; }
.footer .wrap { padding: 64px 24px 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 46px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand .brand-mark { background: var(--brand); }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.08rem; }
.footer p { font-size: .92rem; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.66); padding: 6px 0; font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-links [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 11px; padding: 7px 0; font-size: .92rem; }
.footer-contact [data-lucide] { color: var(--accent); flex-shrink: 0; margin-top: 3px; width: 17px; height: 17px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
.footer-bottom a { color: rgba(255,255,255,.66); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,17,24,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 12px; }
.lightbox iframe { width: min(960px, 92vw); aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.lightbox .close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .close:hover { background: rgba(255,255,255,.28); }

/* ---------- Error pages ---------- */
.errorpage { text-align: center; padding: 100px 20px; }
.errorpage .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errorpage h1 { margin: 10px 0; }
.errorpage p { color: var(--muted); max-width: 34em; margin: 0 auto 26px; }
.errorpage .icon-badge { width: 84px; height: 84px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.errorpage .icon-badge [data-lucide] { width: 40px; height: 40px; }

/* ---------- Motion reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 70px; }
  .hero-figure { max-width: 520px; }
  .news-layout { grid-template-columns: 1fr; }
  .post-featured { grid-row: auto; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-menu, .nav-search-btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .principal { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .principal-photo { max-width: 300px; margin: 0 auto; }
  .principal-sign { justify-content: center; }
  .info-cols { grid-template-columns: 1fr; gap: 40px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-strip .big { grid-column: span 2; grid-row: span 1; }
  .section { padding: 60px 0; }
  .cta { padding: 44px 26px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .quickinfo .wrap { grid-template-columns: 1fr; }
  .qi + .qi { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
  .post-mini { grid-template-columns: 92px 1fr; }
  .date-block { width: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .post-card:hover, .album-card:hover, .teacher-card:hover { transform: none; }
}
