/* =========================================================
   PKK Kabupaten Kepahiang - Stylesheet Utama
   Palet: Marun PKK (#7a1f2b), Emas (#c9962c), Krem (#faf6ee)
   ========================================================= */

:root {
  --pkk-maroon: #145DA0;
  --pkk-maroon-dark: #0B3D66;
  --pkk-gold: #2E9E44;
  --pkk-cream: #F3F8FC;
  --pkk-ink: #1c2b36;
  --pkk-line: #d9e6f2;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 61, 102, 0.25);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--pkk-ink);
  background: var(--pkk-cream);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-serif {
  font-family: 'Fraunces', 'Georgia', serif;
  color: var(--pkk-maroon-dark);
  letter-spacing: -0.01em;
}

a { color: var(--pkk-maroon); text-decoration: none; }
a:hover { color: var(--pkk-gold); }

.btn-pkk {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pkk-maroon);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--pkk-maroon);
  transition: all .2s ease;
}
.btn-pkk:hover { background: var(--pkk-maroon-dark); color: #fff; }

.btn-pkk-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--pkk-maroon);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--pkk-maroon);
  transition: all .2s ease;
}
.btn-pkk-outline:hover { background: var(--pkk-maroon); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-pkk {
  background: #fff;
  border-bottom: 1px solid var(--pkk-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-pkk .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--pkk-maroon-dark);
  font-size: 1.05rem;
}
.navbar-pkk .navbar-brand img { height: 44px; width: auto; }
.navbar-pkk .nav-link {
  color: var(--pkk-ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem !important;
}
.navbar-pkk .nav-link:hover,
.navbar-pkk .nav-link.active { color: var(--pkk-maroon); }
.navbar-pkk .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
}
.navbar-pkk .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}
.navbar-pkk .dropdown-item:hover { background: var(--pkk-cream); color: var(--pkk-maroon); }

/* ---------- Hero ---------- */
.hero-pkk {
  position: relative;
  background: linear-gradient(135deg, #1a6fb5 0%, var(--pkk-maroon) 45%, var(--pkk-maroon-dark) 100%);
  color: #fff;
  padding: 4.5rem 0;
  overflow: hidden;
}
.hero-pkk::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(46,158,68,0.30), transparent 45%);
}
.hero-pkk .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}
.hero-pkk h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}
.hero-pkk p.lead {
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  font-size: 1.05rem;
}
.hero-glass-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.stat-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  height: 100%;
}
.stat-card .num {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.stat-card .label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--pkk-maroon-dark);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid #fff;
  transition: all .2s ease;
}
.btn-hero-primary:hover { background: transparent; color: #fff; }
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all .2s ease;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---------- Section ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-kicker {
  color: var(--pkk-gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.6rem; }
.section-desc { color: #6b6259; max-width: 62ch; }

/* ---------- Program Pokok Grid ---------- */
.program-card {
  background: #fff;
  border: 1px solid var(--pkk-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card .icon { font-size: 1.8rem; }
.program-card .no {
  font-family: 'Fraunces', serif;
  color: var(--pkk-gold);
  font-weight: 700;
  font-size: 0.95rem;
}
.program-card h4 { font-size: 1.02rem; margin: 0.4rem 0 0; color: var(--pkk-ink); }

/* ---------- Pokja cards ---------- */
.pokja-card {
  background: var(--pkk-cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border-left: 4px solid var(--pkk-gold);
}
.pokja-card .tag {
  display: inline-block;
  background: var(--pkk-maroon);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pokja-card h3 { font-size: 1.15rem; }
.pokja-card ul { padding-left: 1.1rem; margin: 0.75rem 0 0; color: #5a5148; font-size: 0.92rem; }
.pokja-card ul li { margin-bottom: 0.3rem; }

/* ---------- Berita cards ---------- */
.berita-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pkk-line);
  height: 100%;
  transition: transform .2s ease;
}
.berita-card:hover { transform: translateY(-4px); }
.berita-card .thumb {
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pkk-maroon), var(--pkk-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}
.berita-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 0; }
.berita-card .body { padding: 1.1rem 1.25rem 1.4rem; }
.berita-card .date {
  font-size: 0.8rem;
  color: var(--pkk-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.berita-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.5rem; line-height: 1.35; }
.berita-card p { color: #6b6259; font-size: 0.9rem; margin: 0; }

/* ---------- Pengurus ---------- */
.pengurus-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--pkk-line);
  padding: 1.5rem 1rem;
  text-align: center;
}
.pengurus-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--pkk-cream);
  border: 3px solid var(--pkk-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.8rem;
  color: var(--pkk-maroon);
  overflow: hidden;
}
.pengurus-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pengurus-card .jabatan { color: var(--pkk-gold); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; }
.pengurus-card .nama { font-family: 'Fraunces', serif; font-size: 1.05rem; margin-top: 0.2rem; }

/* ---------- Kontak ---------- */
.kontak-item { display: flex; gap: 0.9rem; margin-bottom: 1.4rem; }
.kontak-item .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--pkk-maroon); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.kontak-item h5 { margin: 0 0 0.15rem; font-size: 0.95rem; color: var(--pkk-ink); }
.kontak-item p { margin: 0; color: #6b6259; font-size: 0.9rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--pkk-line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer-pkk { background: var(--pkk-maroon-dark); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; }
.footer-pkk h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-pkk a { color: rgba(255,255,255,0.75); }
.footer-pkk a:hover { color: var(--pkk-gold); }
.footer-pkk ul { list-style: none; padding: 0; margin: 0; }
.footer-pkk ul li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
}
.footer-logo-box img { height: 44px; width: auto; display: block; }

.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); margin-right: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.83rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--pkk-maroon);
  color: #fff;
  padding: 2.8rem 0;
}
.page-header h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.page-header .crumb { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.page-header .crumb a { color: #fff; }

/* ---------- Content page ---------- */
.content-page { max-width: 780px; }
.content-page img { max-width: 100%; border-radius: var(--radius); }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--pkk-maroon); border-radius: 8px; margin: 0 2px; border: 1px solid var(--pkk-line); }
.pagination .page-item.active .page-link { background: var(--pkk-maroon); border-color: var(--pkk-maroon); }

/* ---------- Download list ---------- */
.download-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; background: #fff; border: 1px solid var(--pkk-line);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 0.9rem;
}
.download-item .info { display: flex; gap: 1rem; align-items: center; }
.download-item .file-ic {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--pkk-cream); color: var(--pkk-maroon);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.download-item h5 { margin: 0; font-size: 0.98rem; }
.download-item small { color: #8a8078; }

@media (max-width: 767.98px) {
  .hero-pkk { padding: 3rem 0; text-align: center; }
  .hero-pkk .lead { margin-left: auto; margin-right: auto; }
  .download-item { flex-direction: column; align-items: flex-start; }
}

/* ---------- Admin panel ---------- */
.admin-sidebar {
  background: var(--pkk-maroon-dark);
  min-height: 100vh;
  color: #fff;
}
.admin-sidebar .brand { padding: 1.4rem 1.2rem; font-family: 'Fraunces', serif; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.12); }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.8); padding: 0.75rem 1.2rem; font-size: 0.92rem; font-weight: 600;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--pkk-line); padding: 1rem 1.5rem; }
.admin-content { padding: 1.75rem; }
.card-admin { background: #fff; border: 1px solid var(--pkk-line); border-radius: var(--radius); }
