:root {
  --bg: #F3F5F6;
  --dark: #0E1B24;
  --panel: #16293A;
  --accent: #E8A317;
  --ink: #10202A;
  --muted: #4A5C68;
  --faint: #B9C6CE;
  --gold-dark: #8A5A00;
  --border: #D5DCE0;
  --news-bg: #E4EAEE;
  --line-dark: #2B3F4D;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, .condensed { font-family: 'Barlow Condensed', sans-serif; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }
.px { padding-left: 48px; padding-right: 48px; }

/* ---------- nav ---------- */
.nav {
  background: var(--dark);
  color: #E9EEF1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: 1px;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--accent); }
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  padding: 12px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.btn-accent:hover { filter: brightness(1.06); }

/* ---------- hero ---------- */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 96px 48px 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.hero-copy { flex: 1 1 480px; max-width: 720px; }
.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: .5px;
}
.hero p {
  margin: 0 0 36px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--faint);
  max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-primary {
  background: var(--accent); color: var(--dark); font-weight: 600;
  padding: 14px 28px; min-height: 48px; display: inline-flex; align-items: center; cursor: pointer; border: 0; font-size: 16px; font-family: inherit;
}
.btn-ghost {
  border: 2px solid #5B7080; color: #fff; font-weight: 600;
  padding: 12px 28px; min-height: 48px; display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* search card */
.search-card {
  flex: 1 1 320px; max-width: 420px;
  background: var(--panel);
  border-top: 6px solid var(--accent);
  padding: 32px;
}
.search-card h3 {
  font-weight: 600; font-size: 24px; margin: 0 0 20px;
}
.search-card label { display: block; font-size: 14px; color: var(--faint); margin-bottom: 8px; }
.search-card input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 16px;
  border: 0; margin-bottom: 14px; font-family: inherit;
}
.search-card button {
  width: 100%; height: 48px; background: var(--accent); color: var(--dark);
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer; font-family: inherit;
}
.search-result {
  margin-top: 16px; font-size: 14px; color: var(--faint); line-height: 1.5;
}
.search-result .hit {
  background: #0E1B24; border: 1px solid var(--line-dark);
  padding: 10px 12px; margin-top: 8px; color: #E9EEF1;
}
.search-result .hit strong { display: block; color: #fff; font-size: 15px; }
.search-result .hit .ok { color: #7BD88F; }
.search-result .hit .no { color: #E88A8A; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stat { padding: 32px 48px; }
.stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 48px; color: var(--dark); }
.stat-label { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 88px 48px; }
.section-head { margin-bottom: 40px; }
.kicker { color: var(--gold-dark); font-weight: 600; letter-spacing: 3px; font-size: 14px; margin-bottom: 12px; }
.section h2 { margin: 0; font-weight: 700; font-size: 48px; line-height: 1.05; max-width: 640px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card { background: #fff; padding: 28px; border-top: 4px solid var(--accent); }
.service-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; color: var(--gold-dark); }
.service-card h3 { margin: 8px 0; font-size: 22px; font-weight: 600; }
.service-card p { margin: 0; line-height: 1.5; color: var(--muted); }

/* ---------- news ---------- */
.news { background: var(--news-bg); padding: 72px 48px; }
.news-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 16px; margin-bottom: 32px;
}
.news-head h2 { margin: 0; font-weight: 700; font-size: 40px; line-height: 1.05; }
.news-head .kicker { margin-bottom: 8px; }
.news-toggle {
  background: none; border: 2px solid var(--gold-dark); color: var(--gold-dark);
  font-family: inherit; font-weight: 600; font-size: 15px; padding: 12px 20px; min-height: 44px; cursor: pointer;
}
.news-toggle:hover { background: var(--gold-dark); color: #fff; }
.news-empty { margin: 0; color: var(--muted); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card { background: #fff; display: flex; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14, 27, 36, .12); }
.news-link {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; width: 100%;
}
.news-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--panel), var(--dark));
  border-bottom: 4px solid var(--accent);
}
.news-thumb-empty span {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 40px;
  letter-spacing: 4px; color: var(--line-dark);
}
.news-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
}
.news-cat {
  background: var(--accent); color: var(--dark); font-weight: 600;
  font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px;
}
.news-card h3 {
  margin: 0 0 8px; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card p {
  margin: 0 0 16px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--gold-dark); }
.news-card:hover .news-more { text-decoration: underline; }

/* berita utama: kolom kiri, setinggi dua kartu */
.news-featured { grid-column: span 2; grid-row: span 2; }
.news-featured .news-thumb { aspect-ratio: auto; flex: 1; min-height: 260px; }
.news-featured h3 { font-size: 32px; }
.news-featured p { -webkit-line-clamp: 4; font-size: 17px; }

/* detail berita */
.news-detail { position: relative; max-width: 760px; padding: 0; }
.news-detail-img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.news-detail-body { padding: 32px; }
.news-detail h2 { margin: 0 0 16px; font-size: 36px; line-height: 1.1; }
.news-lead { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.5; margin: 0 0 20px; }
.news-content p { margin: 0 0 14px; line-height: 1.7; color: var(--muted); font-size: 16px; }
.news-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  background: var(--dark); color: #fff; border: 0; font-size: 24px; line-height: 1; cursor: pointer;
}
.news-close:hover { background: var(--accent); color: var(--dark); }

/* bagikan berita */
.news-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.news-share-label {
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; cursor: pointer;
  border-radius: 50%; background: #E7ECEF; color: var(--dark);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.share-btn:hover { transform: translateY(-1px); color: #fff; }
.share-btn svg { display: block; }
.share-wa:hover { background: #25D366; }
.share-fb:hover { background: #1877F2; }
.share-x:hover { background: #000; }
.share-tg:hover { background: #2AABEE; }
.share-copy:hover { background: var(--accent); color: var(--dark); }
.news-share-msg { font-size: 13px; font-weight: 600; color: var(--gold-dark); }

/* kartu direktori anggota */
.member-card { background: #fff; padding: 24px; border-left: 4px solid var(--accent); }
.member-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.member-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.member-card p { margin: 0; color: var(--muted); line-height: 1.5; }

/* kartu regulasi */
.reg-card { background: #fff; padding: 24px; border-top: 4px solid var(--accent); display: flex; flex-direction: column; }
.reg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.reg-year { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; color: var(--gold-dark); line-height: 1; }
.reg-cat { background: var(--news-bg); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; }
.reg-card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.reg-no { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.reg-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; font-size: 15px; }
.reg-link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--gold-dark); align-self: flex-start; }
.reg-link:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent);
  padding: 64px 48px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.cta h2 { margin: 0 0 8px; font-weight: 700; font-size: 44px; color: var(--dark); }
.cta p { margin: 0; font-size: 18px; color: #2A2200; }
.cta .btn-dark {
  background: var(--dark); color: #fff; font-weight: 600;
  padding: 16px 32px; min-height: 48px; display: inline-flex; align-items: center; border: 0; cursor: pointer; font-size: 16px; font-family: inherit;
}

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--faint); padding: 56px 48px 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { max-width: 360px; }
.footer-brand .name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; color: #fff; margin-bottom: 12px; }
.footer-col { line-height: 1.9; }
.footer-col .head { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14, 27, 36, .72);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 48px 16px; z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 560px; padding: 32px;
  border-top: 6px solid var(--accent);
}
.modal h2 { margin: 0 0 20px; font-size: 30px; font-weight: 700; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.btn-muted {
  background: #E4EAEE; color: var(--ink); font-weight: 600; padding: 12px 20px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
}

@media (max-width: 1000px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-row: auto; }
  .news-featured .news-thumb { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}

@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: auto; }
  .news-featured h3 { font-size: 24px; }
  .news-head h2 { font-size: 32px; }
  .news-detail-body { padding: 24px 20px; }
  .news-detail h2 { font-size: 28px; }
  .px, .nav, .hero, .section, .news, .cta, .footer { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 46px; }
  .section h2 { font-size: 34px; }
  .stat { padding: 24px 20px; }
}
