*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a6b3a;
  --green-dark: #134f2b;
  --green-light: #2d8c52;
  --gold: #c9a227;
  --gold-light: #e0b93a;
  --white: #ffffff;
  --bg: #f8f9f5;
  --bg-dark: #0d1f14;
  --text: #1a1a1a;
  --text-muted: #5a6672;
  --border: rgba(26,107,58,0.15);
  --shadow: 0 4px 24px rgba(26,107,58,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  background: rgba(26,107,58,0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.navbar.scrolled .nav-title { color: var(--green-dark); }
.navbar.scrolled .nav-sub { color: var(--text-muted); }
.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover { color: var(--green); }
.navbar.scrolled .hamburger span { background: var(--green-dark); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo { width: 44px; height: 44px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: color var(--transition);
}
.nav-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(45,140,82,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(201,162,39,0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 15%, rgba(19,79,43,0.6) 0%, transparent 55%),
    linear-gradient(135deg, #0d3a20 0%, var(--green-dark) 35%, var(--green) 70%, #1f7a45 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
/* Motif geometris islami (8-pointed star) sebagai lapisan halus */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(201,162,39,0.10) 0 2px, transparent 2px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg,
      transparent 0deg 40deg, rgba(201,162,39,0.05) 40deg 50deg,
      transparent 50deg 130deg, rgba(201,162,39,0.05) 130deg 140deg,
      transparent 140deg 220deg, rgba(201,162,39,0.05) 220deg 230deg,
      transparent 230deg 310deg, rgba(201,162,39,0.05) 310deg 320deg,
      transparent 320deg 360deg);
  background-size: 280px 280px;
  animation: heroOrnamentSpin 80s linear infinite;
  pointer-events: none;
}
@keyframes heroOrnamentSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-accent { color: var(--gold-light); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── STATS ── */
.stats-section {
  background: var(--green-dark);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.1); }
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── BERITA ── */
.berita-section { padding: 96px 0; }
.berita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.berita-card--featured { grid-column: span 1; }

.berita-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.berita-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(26,107,58,0.3);
}
.berita-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e8f0ec;
}
.berita-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.berita-card:hover .berita-img-wrap img { transform: scale(1.06); }
.berita-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.berita-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.berita-date { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.berita-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--green-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.berita-title a:hover { color: var(--green); }
.berita-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.berita-readmore {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
  transition: gap var(--transition);
}
.berita-readmore:hover { color: var(--green-light); }

/* ── PTKIS ── */
.ptkis-section {
  background: linear-gradient(180deg, #f0f7f3 0%, var(--bg) 100%);
  padding: 96px 0;
}
.ptkis-search {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}
.ptkis-search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.ptkis-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,107,58,0.1);
}
.ptkis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.ptkis-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.ptkis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.ptkis-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.ptkis-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}
.ptkis-card:hover span { color: var(--green); }
.ptkis-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 0.95rem;
}

/* ── REGULASI ── */
.regulasi-section { padding: 96px 0; background: var(--bg); }
.regulasi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.regulasi-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.regulasi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.regulasi-icon {
  width: 56px;
  height: 56px;
  background: rgba(26,107,58,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.regulasi-body { flex: 1; }
.regulasi-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.regulasi-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.regulasi-body p { font-size: 0.83rem; color: var(--text-muted); }
.regulasi-arrow {
  color: var(--green);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.regulasi-card:hover .regulasi-arrow { transform: translateX(4px); }

/* ── JURNAL ── */
.jurnal-section {
  padding: 96px 0;
  background: var(--green-dark);
}
.jurnal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.jurnal-text .section-badge {
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
}
.jurnal-text .section-title { color: var(--white); text-align: left; }
.jurnal-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}
.jurnal-visual { display: flex; justify-content: center; }
.jurnal-badge-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.jurnal-badge-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.jurnal-badge-item:hover {
  background: rgba(201,162,39,0.15);
  border-color: rgba(201,162,39,0.4);
  color: var(--gold-light);
  transform: translateY(-4px);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand > div {
  display: flex;
  flex-direction: column;
}
.footer-brand strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand span { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-brand > p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.footer-sosmed { display: flex; gap: 12px; }
.footer-sosmed a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-sosmed a:hover { background: var(--green); color: var(--white); }
.footer-links h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* ── PAGE HEADER (shared untuk halaman dalam) ── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #1f7a45 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(201,162,39,0.15), transparent 50%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .section-badge {
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.4);
}
.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .berita-grid { grid-template-columns: repeat(2, 1fr); }
  .jurnal-inner { grid-template-columns: 1fr; gap: 40px; }
  .jurnal-text .section-title { text-align: center; }
  .jurnal-text p { text-align: center; }
  .jurnal-text { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(13,31,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    font-size: 1.2rem;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    color: var(--white) !important;
  }
  .berita-grid { grid-template-columns: 1fr; }
  .regulasi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ptkis-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .jurnal-badge-wrap { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 120px 20px 60px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
}
