/*
Theme Name:  Desa Gunungan Manyaran
Theme URI:   https://desagunungan.com
Author:      Pemerintah Desa Gunungan
Author URI:  https://desagunungan.com
Description: Tema resmi Website Pemerintah Desa Gunung Putri. Desain elegan, responsif, berbasis Bootstrap 5 dengan dukungan penuh untuk berita desa, layanan publik, profil aparatur, dan transparansi APBDes.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desa-gunungputri
Tags:        government, village, news, responsive, bootstrap, indonesian
*/

/* ===================================================================
   DESA GUNUNG PUTRI – MAIN STYLESHEET
   Urutan: Variables → Reset → Base → Layout → Components → Utilities
=================================================================== */

/* ─── CSS VARIABLES ─────────────────────────────────────────────── */
:root {
  --hijau-tua:   #1a4731;
  --hijau:       #2d7a4f;
  --hijau-muda:  #4caf7d;
  --emas:        #c8962e;
  --emas-muda:   #f0c060;
  --krem:        #faf7f0;
  --putih:       #ffffff;
  --abu-gelap:   #2b2b2b;
  --abu-medium:  #555555;
  --abu-terang:  #e8e4dc;
  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    12px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(45,122,79,0.12);
  --transition:   0.25s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--krem);
  color: var(--abu-gelap);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

a { color: var(--hijau); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--hijau-tua); }

img { max-width: 100%; height: auto; display: block; }

/* WordPress alignment classes */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; text-align: center; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

/* WordPress image captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--abu-medium); text-align: center; margin-top: 6px; font-style: italic; }

/* ─── TOP BAR ────────────────────────────────────────────────────── */
.topbar {
  background: var(--hijau-tua);
  color: #cde8d8;
  font-size: 0.78rem;
  padding: 6px 0;
  letter-spacing: 0.03em;
}
.topbar a { color: #cde8d8; }
.topbar a:hover { color: var(--emas-muda); }
.topbar .divider { opacity: 0.4; margin: 0 8px; }

/* ─── NAVBAR ─────────────────────────────────────────────────────── */
.navbar-main {
  background: var(--putih);
  border-bottom: 3px solid var(--hijau);
  box-shadow: var(--shadow-sm);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand-wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.logo-circle {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-tua));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  flex-shrink: 0; overflow: hidden;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.brand-text .nama-desa {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: var(--hijau-tua); line-height: 1.2;
}
.brand-text .sub-desa {
  font-size: 0.72rem; color: var(--abu-medium); letter-spacing: 0.04em;
}
.navbar-nav .nav-link {
  color: var(--abu-gelap) !important;
  font-size: 0.88rem; font-weight: 500;
  padding: 22px 14px !important;
  position: relative; transition: color var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 3px; background: var(--hijau);
  transform: scaleX(0); transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link { color: var(--hijau) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .current-menu-item > .nav-link::after { transform: scaleX(1); }

/* WordPress nav menu sub-menus */
.navbar-nav .dropdown-menu {
  border: 1px solid var(--abu-terang);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 220px;
}
.navbar-nav .dropdown-menu .dropdown-item {
  font-size: 0.85rem;
  padding: 8px 18px;
  color: var(--abu-gelap);
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
  background: #f0faf5; color: var(--hijau);
}

/* ─── HERO (Beranda) ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--hijau-tua) 0%, var(--hijau) 60%, var(--hijau-muda) 100%);
  min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-ornament, .hero-ornament-2 {
  position: absolute; border-radius: 50%;
}
.hero-ornament  { right:-60px; top:-60px; width:400px; height:400px; border:60px solid rgba(255,255,255,0.06); }
.hero-ornament-2{ left:-40px; bottom:-80px; width:300px; height:300px; border:40px solid rgba(255,255,255,0.05); }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 0.75rem;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.hero-content h1 {
  color: #fff; font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 500px; margin-bottom: 28px; line-height: 1.7; }
.btn-hero {
  background: var(--emas); color: #fff; border: none;
  padding: 12px 28px; border-radius: 4px; font-weight: 600;
  font-size: 0.9rem; transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-hero:hover { background: #b0831e; color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff;
  padding: 11px 24px; border-radius: 4px; font-weight: 500; font-size: 0.9rem;
  transition: background var(--transition); display: inline-block;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2); flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--emas-muda); }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ─── QUICK LINKS ────────────────────────────────────────────────── */
.quick-links { background: var(--putih); padding: 20px 0; border-bottom: 1px solid var(--abu-terang); }
.quick-link-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: 8px; color: var(--abu-gelap);
  font-size: 0.78rem; font-weight: 500; text-align: center;
  transition: all var(--transition); border: 1px solid transparent;
}
.quick-link-item:hover { background: #f0faf5; border-color: #b6dfc8; color: var(--hijau); transform: translateY(-2px); }
.quick-link-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #e8f5ee, #cce8d8);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--hijau);
}

/* ─── SECTION TITLES ─────────────────────────────────────────────── */
.section-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--hijau-tua); margin-bottom: 8px; }
.section-subtitle { color: var(--abu-medium); font-size: 0.9rem; margin-bottom: 0; }
.title-line { width: 50px; height: 3px; background: linear-gradient(90deg, var(--hijau), var(--emas)); border-radius: 2px; margin-bottom: 12px; }

/* ─── NEWS CARDS ──────────────────────────────────────────────────── */
.news-card {
  background: var(--putih); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--abu-terang);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card-img {
  width: 100%; height: 185px; object-fit: cover;
  background: linear-gradient(135deg, #c8e6d4, #a5d3ba);
  display: flex; align-items: center; justify-content: center;
  color: var(--hijau); font-size: 2.5rem;
  position: relative;
}
.news-card-img img { width: 100%; height: 185px; object-fit: cover; }
.news-card-cat {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--hijau); margin-bottom: 6px;
}
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-title {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  line-height: 1.45; color: var(--abu-gelap); margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--hijau); }
.news-card-meta { font-size: 0.75rem; color: var(--abu-medium); display: flex; align-items: center; gap: 6px; }

/* Featured article */
.featured-card { background: var(--putih); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--abu-terang); box-shadow: var(--shadow); }
.featured-img { width: 100%; height: 320px; object-fit: cover; background: linear-gradient(135deg, #b0d8c0, #8ac4a8); }
.featured-body { padding: 28px; }
.featured-cat {
  background: var(--hijau); color: #fff; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 10px;
  border-radius: 3px; display: inline-block; margin-bottom: 14px;
}
.featured-title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.4; color: var(--hijau-tua); margin-bottom: 12px; }
.featured-excerpt { color: var(--abu-medium); font-size: 0.9rem; line-height: 1.75; margin-bottom: 20px; }
.btn-selengkapnya {
  background: var(--hijau); color: #fff; border: none;
  padding: 9px 22px; border-radius: 4px; font-size: 0.85rem;
  font-weight: 600; display: inline-block; transition: background var(--transition);
}
.btn-selengkapnya:hover { background: var(--hijau-tua); color: #fff; }

/* ─── SIDEBAR ────────────────────────────────────────────────────── */
.sidebar-card { background: var(--putih); border-radius: var(--radius); border: 1px solid var(--abu-terang); overflow: hidden; margin-bottom: 24px; }
.sidebar-card-header {
  background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
  color: #fff; padding: 14px 18px;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
}
.sidebar-card-body { padding: 16px; }
.sidebar-news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--abu-terang); color: inherit; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-img { width: 64px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #d0e8da; }
.sidebar-news-title { font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: var(--abu-gelap); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-news-date { font-size: 0.72rem; color: var(--abu-medium); }
.sidebar-news-item:hover .sidebar-news-title { color: var(--hijau); }

/* Aparatur */
.aparatur-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--abu-terang); }
.aparatur-item:last-child { border-bottom: none; }
.aparatur-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #c8dfd2; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--hijau); overflow: hidden; }
.aparatur-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aparatur-nama { font-size: 0.83rem; font-weight: 600; color: var(--abu-gelap); }
.aparatur-jabatan { font-size: 0.73rem; color: var(--hijau); }

/* Statistik */
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--abu-terang); font-size: 0.83rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--abu-medium); }
.stat-row .value { font-weight: 600; color: var(--hijau-tua); }

/* Kontak */
.kontak-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.83rem; }
.kontak-item i { color: var(--hijau); margin-top: 2px; flex-shrink: 0; }

/* Sosial media */
.sosmed-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sosmed-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; transition: transform var(--transition), opacity var(--transition); }
.sosmed-btn:hover { transform: scale(1.1); opacity: 0.9; color: #fff; }
.bg-fb { background: #1877f2; }
.bg-yt { background: #ff0000; }
.bg-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.bg-wa { background: #25d366; }
.bg-tg { background: #0088cc; }

/* Gallery sidebar */
.galeri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.galeri-item { aspect-ratio: 1; background: linear-gradient(135deg, #b8d8c4, #8cbfa8); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: rgba(255,255,255,0.6); overflow: hidden; position: relative; }
.galeri-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,71,49,0.5), rgba(76,175,125,0.3)); }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── LAYANAN ────────────────────────────────────────────────────── */
.layanan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.layanan-item {
  background: var(--putih); border: 1px solid var(--abu-terang); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; color: var(--abu-gelap);
  transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.layanan-item:hover { border-color: var(--hijau); background: #f0faf5; color: var(--hijau); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(45,122,79,0.1); }
.layanan-icon { width: 54px; height: 54px; background: linear-gradient(135deg, #dff0e8, #c2e2d0); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--hijau); }
.layanan-label { font-size: 0.8rem; font-weight: 500; line-height: 1.3; }

/* ─── APBDes ──────────────────────────────────────────────────────── */
.apbdes-section { background: linear-gradient(135deg, var(--hijau-tua) 0%, #0f3320 100%); padding: 60px 0; }
.apbdes-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.apbdes-card .icon { font-size: 2.2rem; color: var(--emas-muda); margin-bottom: 12px; }
.apbdes-card .judul { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.apbdes-card .nilai { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--emas-muda); }
.apbdes-card .ket { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ─── PAGE HERO (inner pages) ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--hijau-tua) 0%, var(--hijau) 100%);
  padding: 40px 0 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10S0 14.5 0 20s4.5 10 10 10 10-4.5 10-10zm10 0c0 5.5 4.5 10 10 10s10-4.5 10-10-4.5-10-10-10-10 4.5-10 10z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb-custom { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.65); flex-wrap: wrap; margin-bottom: 18px; }
.breadcrumb-custom a { color: rgba(255,255,255,0.65); }
.breadcrumb-custom a:hover { color: var(--emas-muda); }
.breadcrumb-custom .sep { opacity: 0.4; }
.breadcrumb-custom .current { color: var(--emas-muda); }
.cat-badge { display: inline-block; background: var(--emas); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.article-meta-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.meta-item i { color: var(--emas-muda); }
.hero-tab-bar { display: flex; gap: 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-tab-btn { padding: 12px 20px; font-size: 0.8rem; color: rgba(255,255,255,0.6); cursor: pointer; border-bottom: 3px solid transparent; transition: all var(--transition); }
.hero-tab-btn.active { color: var(--emas-muda); border-bottom-color: var(--emas-muda); }

/* ─── SINGLE ARTICLE ──────────────────────────────────────────────── */
.reading-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--hijau), var(--emas)); z-index: 9999; transition: width 0.1s; }

.article-card { background: var(--putih); border-radius: var(--radius-lg); border: 1px solid var(--abu-terang); overflow: hidden; box-shadow: var(--shadow); }
.article-featured-img { width: 100%; height: 420px; object-fit: cover; background: linear-gradient(135deg, #a8d5b8, #6ab58e); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: rgba(255,255,255,0.5); position: relative; }
.article-featured-img img { width: 100%; height: 420px; object-fit: cover; }
.img-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: rgba(255,255,255,0.8); font-size: 0.75rem; padding: 24px 20px 12px; font-style: italic; }

.article-body { padding: 36px; }
.article-lead { font-size: 1.08rem; font-weight: 500; color: var(--abu-gelap); line-height: 1.8; border-left: 4px solid var(--hijau); padding-left: 20px; margin-bottom: 28px; font-style: italic; }

/* WordPress post content */
.entry-content { font-size: 0.95rem; line-height: 1.9; color: #3a3a3a; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2, .entry-content h3 { color: var(--hijau-tua); margin: 32px 0 14px; }
.entry-content h2 { font-size: 1.3rem; }
.entry-content h3 { font-size: 1.1rem; }
.entry-content blockquote { background: #f0faf5; border-left: 4px solid var(--hijau); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 24px 0; font-style: italic; color: var(--abu-medium); }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 0.82rem; font-style: normal; color: var(--hijau); font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.9rem; }
.entry-content table th { background: var(--hijau-tua); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content table td { padding: 9px 14px; border-bottom: 1px solid var(--abu-terang); }
.entry-content table tr:nth-child(even) { background: #f8f6f2; }

.info-box { background: #f0faf5; border: 1px solid #b6dfc8; border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.info-box .info-title { font-weight: 600; color: var(--hijau-tua); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--abu-terang); }
.tag-item { background: #f0f0ec; border: 1px solid #d8d4cc; color: var(--abu-medium); font-size: 0.78rem; padding: 5px 12px; border-radius: 20px; transition: all var(--transition); }
.tag-item:hover { background: var(--hijau); border-color: var(--hijau); color: #fff; }

/* Share */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--abu-terang); }
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--abu-gelap); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: #fff; transition: opacity var(--transition); }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-fb { background: #1877f2; } .share-wa { background: #25d366; } .share-tg { background: #0088cc; } .share-copy { background: var(--abu-gelap); }

/* Author box */
.author-box { background: #f5f3ee; border: 1px solid var(--abu-terang); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--hijau), var(--hijau-tua)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--hijau-tua); }
.author-role { font-size: 0.78rem; color: var(--abu-medium); margin-bottom: 6px; }
.author-bio { font-size: 0.85rem; color: var(--abu-medium); line-height: 1.65; }

/* Prev/next nav */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.article-nav-item { background: var(--putih); border: 1px solid var(--abu-terang); border-radius: var(--radius); padding: 18px; color: inherit; transition: all var(--transition); display: flex; align-items: center; gap: 14px; }
.article-nav-item:hover { border-color: var(--hijau); box-shadow: 0 4px 16px rgba(45,122,79,0.1); color: inherit; }
.article-nav-item.prev { flex-direction: row; }
.article-nav-item.next { flex-direction: row-reverse; text-align: right; }
.nav-arrow { width: 38px; height: 38px; border-radius: 50%; background: #f0faf5; border: 1px solid #b6dfc8; display: flex; align-items: center; justify-content: center; color: var(--hijau); font-size: 0.9rem; flex-shrink: 0; }
.nav-dir { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--abu-medium); margin-bottom: 4px; }
.nav-title { font-size: 0.85rem; font-weight: 600; color: var(--abu-gelap); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* WordPress comments */
.comments-area { background: var(--putih); border-radius: var(--radius-lg); border: 1px solid var(--abu-terang); padding: 28px; margin-top: 24px; }
.comments-area .comments-title { font-size: 1.1rem; color: var(--hijau-tua); margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { display: flex; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--abu-terang); }
.comment-body:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.comment-author-avatar img { width: 42px; height: 42px; border-radius: 50%; }
.comment-meta .comment-author .fn { font-weight: 600; color: var(--abu-gelap); font-style: normal; }
.comment-meta .comment-metadata { font-size: 0.78rem; color: var(--abu-medium); }
.comment-content { font-size: 0.88rem; line-height: 1.65; color: var(--abu-gelap); margin-top: 6px; }
.reply a { font-size: 0.78rem; color: var(--hijau); font-weight: 600; }
.comment-respond { background: #f8f6f2; border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.comment-respond .comment-reply-title { font-size: 1rem; color: var(--hijau-tua); margin-bottom: 16px; }
.comment-respond input, .comment-respond textarea {
  border: 1.5px solid var(--abu-terang); border-radius: 6px;
  padding: 10px 14px; font-size: 0.88rem; width: 100%;
  background: var(--putih); font-family: var(--font-body);
  transition: border-color var(--transition);
}
.comment-respond input:focus, .comment-respond textarea:focus { outline: none; border-color: var(--hijau); }
.comment-respond .submit {
  background: var(--hijau); color: #fff; border: none;
  padding: 10px 24px; border-radius: 6px; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; transition: background var(--transition);
}
.comment-respond .submit:hover { background: var(--hijau-tua); }

/* TOC */
.toc { background: #f5f3ee; border: 1px solid var(--abu-terang); border-radius: var(--radius); padding: 18px; }
.toc-title { font-size: 0.85rem; font-weight: 700; color: var(--hijau-tua); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc ol li { margin-bottom: 6px; }
.toc ol li a { font-size: 0.83rem; color: var(--abu-medium); }
.toc ol li a:hover { color: var(--hijau); }
.sticky-sidebar { position: sticky; top: 90px; }

/* ─── CATEGORY / ARCHIVE PAGE ────────────────────────────────────── */
.filter-bar { background: var(--putih); border-bottom: 1px solid var(--abu-terang); padding: 0; position: sticky; top: 81px; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.filter-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { padding: 14px 20px; font-size: 0.83rem; font-weight: 500; color: var(--abu-medium); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: all var(--transition); display: block; }
.filter-tab:hover { color: var(--hijau); }
.filter-tab.active, .filter-tab.current-cat { color: var(--hijau); border-bottom-color: var(--hijau); font-weight: 600; }

.search-input-wrap { position: relative; }
.search-input-wrap input { border: 1.5px solid var(--abu-terang); border-radius: 8px; padding: 10px 16px 10px 42px; font-size: 0.88rem; width: 100%; background: var(--putih); transition: border-color var(--transition); }
.search-input-wrap input:focus { outline: none; border-color: var(--hijau); }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--abu-medium); font-size: 0.85rem; }

/* Category featured */
.cat-featured { background: var(--putih); border-radius: var(--radius-lg); border: 1px solid var(--abu-terang); overflow: hidden; margin-bottom: 28px; display: flex; box-shadow: var(--shadow); transition: box-shadow var(--transition), transform var(--transition); }
.cat-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-featured-img { width: 380px; min-width: 380px; min-height: 240px; background: linear-gradient(135deg, #a8d5b8, #6ab58e); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.cat-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-featured-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.cat-featured-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--hijau-tua); line-height: 1.4; margin-bottom: 12px; }
.cat-featured-title a { color: inherit; }
.cat-featured-title a:hover { color: var(--hijau); }
.cat-featured-excerpt { font-size: 0.88rem; color: var(--abu-medium); line-height: 1.75; margin-bottom: 18px; }
.cat-featured-meta { font-size: 0.78rem; color: var(--abu-medium); display: flex; gap: 14px; flex-wrap: wrap; }
.cat-featured-meta i { color: var(--hijau); margin-right: 3px; }
.btn-read { display: inline-flex; align-items: center; gap: 6px; background: var(--hijau); color: #fff; padding: 9px 20px; border-radius: 6px; font-size: 0.83rem; font-weight: 600; transition: background var(--transition); margin-top: 16px; align-self: flex-start; }
.btn-read:hover { background: var(--hijau-tua); color: #fff; }

/* List view */
.news-list-item { background: var(--putih); border: 1px solid var(--abu-terang); border-radius: var(--radius); display: flex; gap: 18px; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); margin-bottom: 16px; }
.news-list-item:hover { box-shadow: 0 6px 24px rgba(45,122,79,0.1); transform: translateY(-2px); }
.news-list-thumb { width: 160px; min-width: 160px; height: 120px; background: linear-gradient(135deg, #b8d8c4, #88c0a4); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { padding: 18px 18px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.news-list-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.news-list-title a { color: var(--abu-gelap); }
.news-list-title a:hover { color: var(--hijau); }
.news-list-excerpt { font-size: 0.83rem; color: var(--abu-medium); line-height: 1.65; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-meta { font-size: 0.75rem; color: var(--abu-medium); display: flex; gap: 12px; }
.news-list-meta i { color: var(--hijau); margin-right: 3px; }

/* Pagination */
.pagination-custom { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1.5px solid var(--abu-terang); background: var(--putih); color: var(--abu-gelap); font-size: 0.85rem; font-weight: 500; transition: all var(--transition); }
.page-btn:hover { border-color: var(--hijau); color: var(--hijau); }
.page-btn.active, .page-numbers.current { background: var(--hijau); border-color: var(--hijau); color: #fff; }
.page-numbers { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1.5px solid var(--abu-terang); background: var(--putih); color: var(--abu-gelap); font-size: 0.85rem; font-weight: 500; transition: all var(--transition); }

/* Category sidebar */
.cat-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--abu-terang); color: var(--abu-gelap); font-size: 0.85rem; transition: all var(--transition); }
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { background: #f5f9f6; color: var(--hijau); }
.cat-list-item.active, .cat-list-item.current-cat { background: #f0faf5; color: var(--hijau); font-weight: 600; }
.cat-count { background: var(--hijau); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: 0.72rem; font-weight: 600; }
.cat-count.inactive { background: #e8f5ee; color: var(--hijau); }

/* Popular articles */
.popular-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--abu-terang); color: inherit; }
.popular-item:last-child { border-bottom: none; }
.popular-num { width: 28px; height: 28px; border-radius: 6px; background: #e8f5ee; color: var(--hijau); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.popular-num.top { background: var(--emas); color: #fff; }
.popular-title { font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: var(--abu-gelap); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-item:hover .popular-title { color: var(--hijau); }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { background: #f0f0ec; border: 1px solid #d8d4cc; color: var(--abu-medium); font-size: 0.76rem; padding: 4px 10px; border-radius: 20px; transition: all var(--transition); }
.tag-pill:hover, .tag-pill.active { background: var(--hijau); border-color: var(--hijau); color: #fff; }

/* View toggle */
.view-toggle { display: flex; border: 1.5px solid var(--abu-terang); border-radius: 6px; overflow: hidden; }
.view-btn { padding: 8px 12px; cursor: pointer; background: var(--putih); color: var(--abu-medium); font-size: 0.85rem; border: none; transition: all var(--transition); }
.view-btn.active { background: var(--hijau); color: #fff; }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
#colophon { background: #111f15; color: rgba(255,255,255,0.75); padding: 56px 0 0; }
#colophon h6, .widget-title { font-family: var(--font-heading); color: #fff; font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); }
#colophon a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
#colophon a:hover { color: var(--emas-muda); }
#colophon ul { list-style: none; padding: 0; margin: 0; }
#colophon ul li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
#colophon ul li i { color: var(--hijau-muda); font-size: 0.7rem; }
#colophon ul li::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--hijau-muda); font-size: 0.6rem; }
#colophon ul li.no-icon::before { display: none; }
.site-info { margin-top: 40px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ─── SCROLL TOP ──────────────────────────────────────────────────── */
#scrollTop { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; background: var(--hijau); color: #fff; border: none; border-radius: 50%; font-size: 1rem; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(45,122,79,0.35); z-index: 999; transition: background var(--transition); }
#scrollTop:hover { background: var(--hijau-tua); }

/* ─── UTILITIES ───────────────────────────────────────────────────── */
section, .section-wrap { padding: 60px 0; }
.bg-krem { background: var(--krem); }
.bg-putih { background: var(--putih); }
.text-hijau { color: var(--hijau); }
.text-emas  { color: var(--emas); }
.sort-select { border: 1.5px solid var(--abu-terang); border-radius: 8px; padding: 10px 16px; font-size: 0.85rem; background: var(--putih); cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--hijau); }
.result-count { font-size: 0.83rem; color: var(--abu-medium); }
.result-count strong { color: var(--hijau-tua); }

/* No posts found */
.no-results { text-align: center; padding: 60px 20px; background: var(--putih); border-radius: var(--radius-lg); border: 1px solid var(--abu-terang); }
.no-results .icon { font-size: 3rem; color: #ccc; margin-bottom: 16px; }
.no-results h3 { color: var(--hijau-tua); margin-bottom: 8px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cat-featured { flex-direction: column; }
  .cat-featured-img { width: 100%; min-width: unset; height: 220px; }
}
@media (max-width: 768px) {
  section, .section-wrap { padding: 40px 0; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.4rem; }
  .article-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .news-list-item { flex-direction: column; }
  .news-list-thumb { width: 100%; height: 160px; }
  .news-list-body { padding: 16px; }
  .galeri-grid { gap: 6px; }
  .layanan-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}
@media (max-width: 576px) {
  .topbar .topbar-right { display: none; }
  .hero-section { min-height: 400px; }
  .article-featured-img { height: 220px; }
  .article-featured-img img { height: 220px; }
  .apbdes-card .nilai { font-size: 1.2rem; }
  .share-btn span { display: none; }
}

/* ─── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeUp 0.4s ease forwards; }