:root {
  --primary: #0e3b2c; --primary-2: #12754a; --primary-soft: #e6f2ec; --primary-mid: #15664a;
  --accent: #f0b429; --accent-ink: #3d2a00; --accent-soft: #fdf3d7; --accent-line: #f0dc9c;
  --ink: #14201b; --muted: #56635c; --bg: #fff; --alt: #f4f7f5; --line: #dde6e0;
  --thumb-a: #cfe3d7; --thumb-b: #a9cdb9; --footer: #0a2a1f;
  --danger: #a12a1f; --danger-soft: #fdecea;
  --radius: 14px; --shadow: 0 10px 30px rgba(14, 59, 44, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--primary-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3, .h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-block; white-space: nowrap; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 11px 22px;
  border-radius: 999px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,59,44,.22); filter: brightness(1.04); }
.btn-sm { padding: 7px 16px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }

/* Header */
.topline { background: var(--footer); color: rgba(255,255,255,.85); font-size: .82rem; }
.topline .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topline a { color: #fff; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: .72rem; }
.logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--accent); font-weight: 800; font-size: .9rem; }
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.foot-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 10px; background: #fff; border-radius: 10px; padding: 4px; }
.menu { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.brand { min-width: 0; }
.brand strong { line-height: 1.25; display: block; }
.menu > a:not(.btn), .dd > button { color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .93rem; padding: 8px 9px; border-radius: 8px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.menu > a:not(.btn):hover, .dd > button:hover, .menu a[aria-current] { color: var(--primary-2); background: var(--alt); }
.dd { position: relative; }
.dd > button::after { content: " ▾"; font-size: .7em; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; font-size: .93rem; }
.dd-menu a:hover { background: var(--alt); }
.search input { font: inherit; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; width: 120px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 10%, rgba(240,180,41,.18) 0, transparent 40%), linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero-img { aspect-ratio: 4/3; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.3);
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.3)), url("https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=900&q=70") center/cover var(--primary-mid); }
.stats { margin-top: -44px; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.stats-grid div { text-align: center; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { display: block; font-size: 2rem; color: var(--primary-2); font-weight: 800; }
.stats-grid span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.pagehead { background: linear-gradient(180deg, var(--primary-soft), var(--alt)); border-bottom: 3px solid var(--accent); padding: 36px 0 24px; }
.pagehead h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 70ch; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.card { background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--primary-2); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0 0 .6em; }
.card-img { margin: -22px -22px 16px; width: calc(100% + 44px); max-width: none; aspect-ratio: 16/9; object-fit: cover; }
.quota { font-weight: 700; color: var(--primary); }
.panel { background: var(--alt); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border: 0; }
.plain small, .agenda small { display: block; color: var(--muted); }

/* Berita */
.news { display: grid; gap: 20px; margin-top: 16px; }
.news.grid3 { grid-template-columns: repeat(3, 1fr); }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.thumb { aspect-ratio: 16/9; background: var(--thumb-a) center/cover; display: block; }
.thumb.ph { background: linear-gradient(135deg, var(--thumb-a), var(--thumb-b)); }
.news-body { padding: 16px 18px; }
.news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover { color: var(--primary-2); }
.news-body p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: .4em; }
.tag { background: var(--primary-soft); color: var(--primary); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .75rem; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.tabs a[aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager a[aria-current] { background: var(--primary); color: #fff; }
.article { max-width: 780px; }
.cover { border-radius: var(--radius); margin: 0 0 24px; width: 100%; }
.search-big { display: flex; gap: 8px; margin-bottom: 16px; }
.search-big input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid #c9d3cd; border-radius: 10px; }

/* Agenda, orang, galeri, file */
.agenda { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.agenda li { display: flex; gap: 14px; align-items: flex-start; }
.agenda.big li { background: #fff; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.agenda.muted { opacity: .65; }
.date { flex: 0 0 56px; text-align: center; background: var(--primary); color: var(--accent); border-radius: 10px; padding: 6px 0; font-size: .72rem; text-transform: uppercase; }
.date b { display: block; font-size: 1.35rem; line-height: 1.1; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; }
.person p { color: var(--muted); font-size: .9rem; margin: 0; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; background: var(--primary-soft) center/cover; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--thumb-a); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 10px 14px; color: #fff; font-weight: 600; font-size: .88rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.files { list-style: none; padding: 0; display: grid; gap: 10px; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.files small { display: block; color: var(--muted); }

/* Form & SPMB */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 12px; margin: 0; }
.form legend { font-weight: 700; padding: 0 8px; color: var(--primary); }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #c9d3cd; border-radius: 10px; width: 100%; background: #fff; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin: 0; }
.alert.ok { background: var(--primary-soft); color: var(--primary); }
.alert.err { background: var(--danger-soft); color: var(--danger); }
.callout { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 36px; }
.callout.on { background: var(--primary-soft); border-color: #b8dcc7; }
.callout p { margin: 0; color: var(--muted); }
.steps { padding-left: 1.3em; } .steps li { margin-bottom: 8px; }
.muted-note { color: var(--muted); font-size: .9rem; }
.regno { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: .04em; background: var(--alt); padding: 14px 20px; border-radius: var(--radius); display: inline-block; }
.result { margin-top: 24px; padding: 22px; border-radius: var(--radius); background: var(--alt); border-left: 6px solid var(--muted); }
.result.st-diterima { border-color: var(--primary-2); background: var(--primary-soft); }
.result.st-ditolak { border-color: var(--danger); background: var(--danger-soft); }
.result.st-cadangan { border-color: var(--accent); background: var(--accent-soft); }
.contact { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 20px; }
.contact dt { font-weight: 700; } .contact dd { margin: 0; color: var(--muted); }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

/* Footer */
.footer { background: var(--footer); color: rgba(255,255,255,.8); padding: 44px 0 20px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer strong { color: #fff; display: block; margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.8); display: block; text-decoration: none; margin-bottom: 4px; }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0 0 6px; font-size: .92rem; }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

@media (min-width: 881px) and (max-width: 1140px) { .search { display: none; } }
@media (max-width: 960px) {
  .cards, .news.grid3 { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .two-col, .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; max-height: calc(100vh - 110px); overflow: auto; }
  .menu.open { display: flex; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .dd > button { width: 100%; text-align: left; }
  .search input { width: 100%; }
  .menu .btn { text-align: center; margin-top: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .topline .wrap span:first-child { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .news.grid3, .people { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
