@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --border: #e8e4dc;
  --text: #1a1a1a;
  --muted: #888880;
  --accent: #2d6a4f;
  --accent-light: #f0f7f4;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --radius: 4px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo span { color: var(--accent); }
.site-logo img { height: 38px; width: auto; object-fit: contain; }

.main-nav { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.main-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* Dropdown Kategori */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 6px 0;
  max-height: 400px;
  overflow-y: auto;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }
.dropdown-toggle::after { content: ' ▾'; font-size: 10px; }

/* ── HERO ── */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 16px;
}
.hero p { color: var(--muted); max-width: 480px; }

/* ── GRID ARTIKEL ── */
.section { padding: 48px 0; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-title h2 { font-family: var(--heading-font); font-size: 22px; }
.section-title a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.artikel-grid.dua-kolom { grid-template-columns: repeat(2, 1fr); }

/* ── CARD ARTIKEL ── */
.artikel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.artikel-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--border);
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.card-body { padding: 18px; }
.card-kategori {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-judul {
  font-family: var(--heading-font);
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-judul:hover { color: var(--accent); }
.card-ringkasan {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── FEATURED CARD ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.featured-card .card-img,
.featured-card .card-img-placeholder {
  aspect-ratio: unset;
  height: 100%;
  min-height: 260px;
}
.featured-card .card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card .card-judul { font-size: 24px; }

/* ── HALAMAN ARTIKEL ── */
.artikel-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}
.artikel-header { margin-bottom: 28px; }
.artikel-header .kategori-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.artikel-header h1 {
  font-family: var(--heading-font);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.artikel-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.artikel-gambar {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ── KONTEN ARTIKEL ── */
.artikel-konten {
  font-size: 16px;
  line-height: 1.9;
  color: #2a2a2a;
  overflow-x: hidden;
  word-break: break-word;
}
.artikel-konten h2 {
  font-family: var(--heading-font);
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--text);
}
.artikel-konten h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.artikel-konten p { margin-bottom: 18px; }
.artikel-konten ul, .artikel-konten ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.artikel-konten li { margin-bottom: 6px; }
.artikel-konten img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}
.artikel-konten figure {
  margin: 24px 0;
  max-width: 100%;
}
.artikel-konten figure img {
  width: 100%;
  height: auto;
}
.artikel-konten figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
.artikel-konten table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.artikel-konten table th,
.artikel-konten table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.artikel-konten table thead tr { background: var(--accent); color: white; }
.artikel-konten table tbody tr:nth-child(even) { background: var(--bg); }
.artikel-konten iframe {
  max-width: 100%;
  width: 100%;
  border: none;
}
.artikel-konten blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--accent-light);
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-family: var(--heading-font);
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── IKLAN SLOT ── */
.iklan-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  overflow: hidden;
}
.iklan-slot img {
  max-width: 100%;
  height: auto;
}

/* ── FORM DAFTAR ── */
.form-daftar {
  background: var(--accent);
  color: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 40px 0;
}
.form-daftar h3 {
  font-family: var(--heading-font);
  font-size: 22px;
  margin-bottom: 8px;
}
.form-daftar p { opacity: 0.85; margin-bottom: 20px; font-size: 14px; }
.form-row { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.form-row input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 14px;
}
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--text); color: white; }
.btn-white { background: white; color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--heading-font);
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}

/* ── UTILITY ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-published { background: #d4edda; color: #155724; }
.badge-draft { background: #fff3cd; color: #856404; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .artikel-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-img,
  .featured-card .card-img-placeholder { min-height: 200px; }
  .artikel-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dropdown-menu { max-height: 300px; }
}

@media (max-width: 600px) {
  .artikel-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { flex-direction: column; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 0;
    max-height: none;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
}