/* =====================================================================
   TOKEN SISTEM DESAIN
   Warna: Pine (hijau tua) + Field (hijau utama) + Ember (aksen oranye)
          + Sunbeam (aksen emas) + Chalk (latar) + Ink (teks)
   Tipografi: Archivo (display, tegas ala papan skor) + Inter (isi)
              + IBM Plex Mono (angka statistik & label)
   ===================================================================== */
:root {
  --pine: #123524;
  --field: #2E7D4F;
  --field-light: #E8F3EC;
  --ember: #E85D2C;
  --sunbeam: #F4B942;
  --chalk: #F7F4EC;
  --ink: #1B1B18;
  --ink-soft: #4A4A42;
  --line: #DCD6C4;
  --radius: 6px;
  --shadow: 0 10px 30px -14px rgba(18, 53, 36, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--pine);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

/* Motif garis lintasan lari - elemen pemisah antar bagian */
.lane-divider {
  height: 10px;
  background: repeating-linear-gradient(
    90deg, var(--line) 0 34px, transparent 34px 44px
  );
  opacity: .6;
  margin: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--pine);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { height: 44px; width: auto; border-radius: 4px; }
.brand-text .name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 17px; color: #fff; }
.brand-text .tagline { font-size: 11.5px; color: #C9DDCE; font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
nav.main-nav { display: flex; gap: 4px; align-items: center; }
nav.main-nav a {
  color: #E9F1EA;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background .15s ease, color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { background: rgba(255,255,255,.12); color: var(--sunbeam); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pine); flex-direction: column; padding: 8px 24px 18px; gap: 2px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--pine) 0%, #0d2818 100%);
  color: #fff;
  padding: 78px 0 110px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); }
.hero p.lead { color: #D6E5DB; font-size: 17px; max-width: 46ch; }
.hero .slogan { font-family: 'IBM Plex Mono', monospace; color: var(--sunbeam); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--radius);
  background: var(--ember);
  color: #fff;
  border: 2px solid var(--ember);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #c94b1e; transform: translateY(-2px); }
.btn.outline { background: transparent; border-color: rgba(255,255,255,.5); }
.btn.outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn.small { padding: 8px 16px; font-size: 13px; }
.hero-photo {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255,255,255,.15);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- STAT RIBBON ---------- */
.stat-ribbon {
  margin-top: -64px;
  position: relative;
  z-index: 5;
}
.stat-ribbon .box {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-ribbon .item { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat-ribbon .item:last-child { border-right: none; }
.stat-ribbon .num { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 700; color: var(--field); }
.stat-ribbon .label { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 700px) {
  .stat-ribbon .box { grid-template-columns: repeat(2, 1fr); }
  .stat-ribbon .item:nth-child(2) { border-right: none; }
}

/* ---------- SECTIONS ---------- */
section.block { padding: 72px 0; }
section.block.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

/* ---------- SAMBUTAN ---------- */
.sambutan { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.sambutan-photo { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; background: var(--field-light); }
.sambutan-photo img { width: 100%; height: 100%; object-fit: cover; }
.sambutan-photo .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--field); font-family: 'Archivo'; font-size: 48px; font-weight: 800; }
.sambutan blockquote { font-size: 19px; color: var(--ink); border-left: 4px solid var(--ember); padding-left: 20px; margin: 0 0 18px; font-style: italic; }
.sambutan .siapa { font-family: 'Archivo'; font-weight: 800; color: var(--pine); }
.sambutan .jabatan { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 780px) { .sambutan { grid-template-columns: 1fr; } .sambutan-photo { max-width: 260px; } }

/* ---------- BERITA CARDS ---------- */
.grid-berita { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-berita { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px -12px rgba(18,53,36,.25); display: flex; flex-direction: column; border-top: 4px solid var(--field); transition: transform .15s ease; }
.card-berita:hover { transform: translateY(-4px); }
.card-berita .thumb { aspect-ratio: 16/10; background: var(--field-light); overflow: hidden; }
.card-berita .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-berita .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-berita .date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ember); letter-spacing: .04em; margin-bottom: 8px; }
.card-berita h3 { font-size: 18px; margin-bottom: 8px; }
.card-berita p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.card-berita .more { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--field); }
@media (max-width: 900px) { .grid-berita { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-berita { grid-template-columns: 1fr; } }

/* ---------- EVENT ---------- */
.event-banner { background: var(--field); border-radius: 12px; padding: 40px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.event-banner h3 { color: #fff; margin-bottom: 6px; }
.event-banner p { color: #DCEFE2; margin: 0; }
@media (max-width: 700px) { .event-banner { grid-template-columns: 1fr; text-align: center; } }

/* ---------- KONTAK / FOOTER ---------- */
footer.site-footer { background: var(--pine); color: #CFE0D5; padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; }
.footer-grid p, .footer-grid a { color: #B9CFC0; font-size: 14px; }
.footer-grid a:hover { color: var(--sunbeam); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.social-row a:hover { background: var(--ember); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: #8CA893; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- HALAMAN DALAM (Tentang, Partnership, Berita detail) ---------- */
.page-hero { background: var(--pine); color: #fff; padding: 50px 0; }
.page-hero .eyebrow { color: var(--sunbeam); }
.page-hero h1 { color: #fff; font-size: 32px; margin-bottom: 0; }
.content-area { padding: 56px 0; }
.content-area .prose { max-width: 760px; font-size: 16px; color: var(--ink); }
.content-area .prose img { border-radius: 8px; margin: 20px 0; }
.content-area .prose p { margin-bottom: 1.1em; }
.meta-row { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 16px; }

.berita-list-item { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.berita-list-item .thumb { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--field-light); }
.berita-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .berita-list-item { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 14px; font-family: 'IBM Plex Mono', monospace; }
.pagination a:hover { border-color: var(--field); color: var(--field); }
.pagination .current { background: var(--field); color: #fff; border-color: var(--field); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- FORM (kontak dsb - dipakai juga gaya dasar admin login) ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--pine); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 14.5px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--field); outline-offset: 1px; }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert.success { background: #E4F5E9; color: #1D6B3E; border: 1px solid #B8E2C6; }
.alert.error { background: #FBE6E0; color: #A83A19; border: 1px solid #F2C1AF; }
