/* ============================================
   KEMENKOPMK - Kementerian Koordinator Bidang
   Pembangunan Manusia dan Kebudayaan RI
   ============================================ */

:root {
  --merah: #C0001D;
  --merah-gelap: #8B0015;
  --merah-muda: #E8001A;
  --hitam: #1A1A1A;
  --abu-gelap: #2D2D2D;
  --abu: #555555;
  --abu-muda: #888888;
  --abu-terang: #F2F2F2;
  --putih: #FFFFFF;
  --emas: #C9972A;
  --emas-muda: #F5C842;
  --biru-aksen: #003580;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);

  --font-head: 'Merriweather', 'Georgia', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;

  --radius: 4px;
  --radius-md: 8px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--hitam);
  background: var(--putih);
  line-height: 1.7;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.3;
  font-weight: 700;
  color: var(--hitam);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { max-width: 72ch; margin-bottom: 1rem; color: var(--abu-gelap); }
a { color: var(--merah); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--merah-gelap); }
img { max-width: 100%; height: auto; display: block; }

/* ====== LAYOUT ====== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-alt { background: var(--abu-terang); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ====== TOP BAR ====== */
.top-bar {
  background: var(--merah-gelap);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  letter-spacing: 0.01em;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--putih); }
.top-bar .flex-between { gap: 1rem; flex-wrap: wrap; }
.top-links { display: flex; gap: 1.25rem; }
.top-links a::before { content: '› '; }

/* ====== HEADER ====== */
header {
  background: var(--putih);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1.5rem;
}
.logo-wrap { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-wrap img { height: 56px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--merah);
  line-height: 1.2;
}
.logo-text span { font-size: 0.72rem; color: var(--abu); line-height: 1.4; max-width: 260px; }

/* ====== NAVIGATION ====== */
nav ul { list-style: none; display: flex; gap: 0.25rem; }
nav ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hitam);
  border-radius: var(--radius);
  position: relative;
  transition: color 0.2s, background 0.2s;
}
nav ul li a:hover,
nav ul li a.aktif {
  color: var(--merah);
  background: rgba(192,0,29,0.07);
}
nav ul li a.aktif::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--merah);
  border-radius: 2px;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--hitam); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ====== HERO ====== */
.hero {
  background: var(--merah);
  position: relative;
  overflow: hidden;
  color: var(--putih);
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--merah-gelap) 0%, var(--merah) 50%, rgba(192,0,29,0.8) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: url('../images/banner-pelayanan.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--emas-muda);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--emas-muda);
}
.hero h1 { color: var(--putih); max-width: 640px; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--putih); color: var(--merah); border-color: var(--putih); }
.btn-primary:hover { background: var(--emas-muda); color: var(--merah-gelap); border-color: var(--emas-muda); }
.btn-outline { background: transparent; color: var(--putih); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--putih); }
.btn-red { background: var(--merah); color: var(--putih); border-color: var(--merah); }
.btn-red:hover { background: var(--merah-gelap); border-color: var(--merah-gelap); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ====== SECTION HEADING ====== */
.sec-head { margin-bottom: 2.5rem; }
.sec-head .label {
  display: inline-block;
  color: var(--merah);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}
.sec-head .label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--emas);
  border-radius: 2px;
}
.sec-head h2 { margin-bottom: 0.75rem; }
.sec-head p { color: var(--abu); font-size: 1.05rem; }

/* ====== STAT STRIP ====== */
.stat-strip {
  background: var(--hitam);
  color: var(--putih);
  padding: 2rem 0;
}
.stat-strip .grid-4 { gap: 0; }
.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--emas-muda);
  display: block;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }

/* ====== CARDS ====== */
.card {
  background: var(--putih);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-tag {
  display: inline-block;
  background: var(--merah);
  color: var(--putih);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.card-tag.tag-biru { background: var(--biru-aksen); }
.card-tag.tag-emas { background: var(--emas); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card h3 a { color: var(--hitam); }
.card h3 a:hover { color: var(--merah); }
.card p { font-size: 0.9rem; color: var(--abu); margin-bottom: 0; }
.card-meta { font-size: 0.78rem; color: var(--abu-muda); margin-top: 0.75rem; display: flex; gap: 1rem; align-items: center; }

/* ====== LAYANAN BOX ====== */
.layanan-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--putih);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.layanan-box:hover { box-shadow: var(--shadow-md); }
.layanan-icon {
  width: 54px;
  height: 54px;
  background: rgba(192,0,29,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.layanan-box h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.layanan-box p { font-size: 0.88rem; margin-bottom: 0; }

/* ====== BERITA CARDS ====== */
.berita-list { display: flex; flex-direction: column; gap: 1.5rem; }
.berita-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.berita-item:last-child { border-bottom: none; padding-bottom: 0; }
.berita-item img { width: 200px; height: 140px; object-fit: cover; border-radius: var(--radius); }
.berita-body { display: flex; flex-direction: column; }
.berita-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.berita-body p { font-size: 0.9rem; flex: 1; }

/* ====== SIDEBAR ====== */
.sidebar-widget { margin-bottom: 2rem; }
.sidebar-widget h4 {
  font-size: 0.95rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--merah);
  position: relative;
}
.sidebar-link-list { list-style: none; }
.sidebar-link-list li { border-bottom: 1px solid var(--border); }
.sidebar-link-list li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--abu-gelap);
}
.sidebar-link-list li a:hover { color: var(--merah); padding-left: 0.5rem; }

/* ====== PPID BANNER ====== */
.ppid-banner {
  background: var(--merah);
  color: var(--putih);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.ppid-banner img { width: 100%; display: block; }

/* ====== SURVEI STRIP ====== */
.survei-strip {
  background: linear-gradient(135deg, #0a2e6e, #003580);
  color: var(--putih);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.survei-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--emas-muda);
  flex-shrink: 0;
}
.survei-info h3 { color: var(--putih); margin-bottom: 0.5rem; }
.survei-info p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 0; }

/* ====== BREADCRUMB ====== */
.breadcrumb {
  background: var(--abu-terang);
  padding: 0.75rem 0;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '›'; color: var(--abu-muda); }
.breadcrumb a { color: var(--abu); }
.breadcrumb a:hover { color: var(--merah); }
.breadcrumb .current { color: var(--merah); font-weight: 600; }

/* ====== PAGE HERO ====== */
.page-hero {
  background: linear-gradient(135deg, var(--merah-gelap) 0%, var(--merah) 100%);
  color: var(--putih);
  padding: 3rem 0;
}
.page-hero h1 { color: var(--putih); font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ====== PROFIL ====== */
.profil-pimpinan {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.profil-foto {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.profil-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.profil-jabatan { color: var(--merah); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.visi-box {
  background: var(--abu-terang);
  border-left: 4px solid var(--merah);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}
.visi-box h4 { color: var(--merah); margin-bottom: 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ====== KONTAK ====== */
.kontak-info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kontak-icon {
  width: 42px;
  height: 42px;
  background: var(--merah);
  color: var(--putih);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.kontak-info-box h4 { font-size: 0.88rem; color: var(--abu); margin-bottom: 0.25rem; }
.kontak-info-box p { font-size: 0.95rem; color: var(--hitam); margin-bottom: 0; font-weight: 600; }

/* ====== FORM ====== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--abu-gelap); }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--hitam);
  transition: border-color 0.2s;
  background: var(--putih);
}
.form-control:focus { outline: none; border-color: var(--merah); box-shadow: 0 0 0 3px rgba(192,0,29,0.1); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ====== ARTICLE CONTENT ====== */
.article-content h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--hitam); }
.article-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-content p { line-height: 1.8; margin-bottom: 1.25rem; max-width: none; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content blockquote {
  border-left: 4px solid var(--merah);
  padding: 1rem 1.5rem;
  background: var(--abu-terang);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--abu-gelap);
  margin: 1.5rem 0;
}

/* ====== FOOTER ====== */
footer {
  background: var(--hitam);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 52px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--putih); font-size: 0.95rem; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--emas-muda); }
.footer-kontak p { font-size: 0.88rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.6); }
.footer-kontak strong { color: var(--putih); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ====== TAGS ====== */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background: var(--abu-terang); color: var(--abu-gelap); font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 2px; border: 1px solid var(--border); }

/* ====== DIVIDER ====== */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.divider-bold { border-top-width: 2px; border-color: var(--merah); width: 60px; margin-left: 0; }

/* ====== ALERTS ====== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--putih); border-top: 2px solid var(--merah); box-shadow: var(--shadow-md); padding: 1rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  nav ul li a { padding: 0.75rem 1rem; border-radius: var(--radius); }
  .header-inner { flex-wrap: wrap; position: relative; }
  .logo-text span { display: none; }

  .hero { min-height: 360px; }
  .hero::after { opacity: 0.1; width: 100%; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .berita-item { grid-template-columns: 1fr; }
  .berita-item img { width: 100%; height: 200px; }

  .profil-pimpinan { grid-template-columns: 1fr; }
  .profil-foto { width: 160px; height: 200px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .survei-strip { flex-direction: column; text-align: center; }

  .top-bar .flex-between { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stat-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ====== PRINT ====== */
@media print {
  header, footer, .top-bar, .breadcrumb { display: none; }
  .hero { background: var(--merah) !important; -webkit-print-color-adjust: exact; }
}
