/* ============================================================
   DINARPUS Modern 2026 - main.css
   Dinas Kearsipan dan Perpustakaan Kabupaten Purbalingga
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');


/* ===== e-BANGGA COLUMN BANNER (di dalam pre-footer, sejajar peta) ===== */
.ebangga-col-banner {
  background: linear-gradient(135deg, #1B8415 0%, #0f5c0c 50%, #064d0a 100%);
  border-radius: 5px;
  padding: 30px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ebangga-col-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.ebangga-col-left { position: relative; z-index: 5; }
.ebangga-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.ebangga-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.ebangga-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.ebangga-banner-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 22px;
}

.ebangga-banner-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ebangga-badge {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.ebangga-banner-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ebangga-btn-white {
  background: #fff;
  color: #1B8415;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.2s;
}

.ebangga-btn-white:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.ebangga-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.ebangga-col-right .ebangga-bstat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.ebangga-col-right .ebangga-bstat strong { font-size: 1.2rem; font-family: 'Outfit'; }
.ebangga-col-right .ebangga-bstat span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }

.ebangga-banner-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  margin-top: 10px;
}




/* ===== e-BANGGA PORTAL CARD WIDGET ===== */
.ebangga-portal-widget {
  background: linear-gradient(145deg, #fff 0%, #f0fdf4 100%);
  border-top: 4px solid var(--green);
  border: 2px solid #bbf7d0;
  border-top: 4px solid var(--green);
  padding: 18px;
}
.ebangga-portal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d1fae5;
}
.ebangga-portal-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(27,132,21,0.2);
}
.ebangga-portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
}
.ebangga-portal-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.ebangga-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ebangga-feat-item {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
}
.ebangga-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(27,132,21,0.06);
  border-radius: 8px;
}
.ebangga-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ebangga-stat span { font-size: 1.3rem; }
.ebangga-stat strong { font-size: 1rem; font-weight: 800; color: var(--green); font-family: 'Outfit', sans-serif; }
.ebangga-stat small { font-size: 0.65rem; color: var(--muted); font-weight: 600; }
.ebangga-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.btn-ebangga-primary {
  display: block;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-ebangga-primary:hover { background: var(--green-dark); transform: translateY(-2px); color: #fff; }
.btn-ebangga-secondary {
  display: block;
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
  text-align: center;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-ebangga-secondary:hover { background: var(--green-light); transform: translateY(-2px); }
.ebangga-playstore {
  text-align: center;
  border-top: 1px dashed #bbf7d0;
  padding-top: 12px;
  font-size: 0.72rem;
  color: var(--muted);
}


/* CSS VARIABLES - IDENTIK DENGAN REACT */
:root {
  --green:       #1B8415;
  --green-dark:  #146010;
  --green-light: #e8f5e9;
  --red:         #F00B0B;
  --cyan:        #06B6D4;
  --cyan-light:  #e0f7fa;
  --white:       #ffffff;
  --offwhite:    #f5f7fa;
  --border:      #e0e4ea;
  --text:        #1e293b;
  --muted:       #64748b;
  --bg-app:      #0ea5e9; /* Biru Perwira Purbalingga */
  --r:           5px;
  --shadow:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
}

/* DARK MODE - IDENTIK DENGAN REACT */
body.dark-mode {
  --white:       #1e293b;
  --offwhite:    #0f172a;
  --border:      #334155;
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --bg-app:      #020617;
  --shadow:      0 2px 8px rgba(0,0,0,0.3);
}

/* Penyesuaian Logo Band (Left Aligned) */
.logo-band-inner-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.agency-text-left {
  display: flex;
  flex-direction: column;
}

.agency-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 2px;
}

.agency-subtext {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 1px;
}

.agency-contact {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.header-right-meta {
  display: flex;
  align-items: center;
}

.header-inline-logo {
  height: 45px;
  opacity: 0.8;
}

/* Penyesuaian Navigasi 2 Baris */
.nav-primary {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-secondary {
  background: #f8fafc;
  border-bottom: 3px solid var(--green);
}

body.dark-mode .nav-secondary {
  background: #1e293b;
}

.main-nav > li > a {
  padding: 12px 20px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.secondary-nav > li > a {
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.secondary-nav > li > a:hover {
  color: var(--green);
  background: var(--green-light);
}

/* Compact News Grid 3 Kolom */
.news-list-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .news-list-premium { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .news-list-premium { grid-template-columns: 1fr; }
  .logo-group { flex-direction: column; text-align: center; }
  .header-right-meta { display: none; }
  .logo-band-inner-left { flex-direction: column; }
}

/* BASE RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-app) !important;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* HEADER PRE-STYLING (PORTED FROM REACT) */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.top-green-bar {
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 15px; }
.topbar-time { white-space: nowrap; font-weight: 500; }
.topbar-ticker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.9; flex: 1; text-align: right; font-size: 0.78rem; }

.dark-mode-toggle {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.25); }

.logo-band { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--white); }
.logo-band-inner { display: flex; align-items: center; justify-content: center; gap: 20px; }
.crest { height: 85px; width: 85px; object-fit: contain; }
.agency-text { text-align: center; }
.agency-primary { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: 1px; line-height: 1.2; }
.agency-secondary { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.5px; }

/* WP MENU STYLING (THE REAL DEAL) */
.nav-primary { border-bottom: 1px solid var(--border); background: var(--white); }
.nav-secondary { background: var(--offwhite); border-bottom: 1px solid var(--border); }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* Styling Link Menu Primary & Secondary */
.nav-list > li > a {
  display: block;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a { color: var(--green); background: var(--green-light); }

/* WP Dropdown System */
.nav-list li { position: relative; }
.nav-list li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  border-top: 4px solid var(--green);
  z-index: 2000;
  padding: 10px 0;
  animation: navFadeIn 0.25s ease-out;
}
.nav-list li:hover > ul { display: block; }
.nav-list li ul li { width: 100%; }
.nav-list li ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--offwhite);
  transition: all 0.2s;
}
.nav-list li ul li a:hover { background: var(--offwhite); color: var(--green); padding-left: 25px; }

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BREAKING NEWS BAR - PORTED FROM REACT */
.breaking-news-bar {
  display: flex;
  align-items: center;
  background: #fff8f0;
  border-top: 1px solid #ffe0b2;
  border-bottom: 2px solid var(--red);
  height: 40px;
  overflow: hidden;
}
.breaking-label {
  background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center;
  white-space: nowrap; letter-spacing: 0.5px; flex-shrink: 0;
}
.breaking-ticker { flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; gap: 25px; white-space: nowrap; animation: tickerScroll 40s linear infinite; padding-left: 25px; }
.ticker-track a { font-size: 0.82rem; color: #444; font-weight: 600; }
.ticker-track a:hover { color: var(--red); }
.ticker-sep { color: var(--red); font-weight: 800; font-size: 0.82rem; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* HERO SLIDER (THE GIANT ONE) */
.hero-slider-mock {
  position: relative; height: 460px;
  border-radius: 5px; overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 25px;
}
.slider-img { width: 100%; height: 100%; object-fit: cover; }
.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, transparent);
  display: flex; align-items: center; padding: 0 60px; z-index: 2;
}
.slider-content { max-width: 650px; color: #fff; }
.slider-tag { background: var(--green); padding: 6px 14px; font-size: 0.75rem; font-weight: 800; border-radius: var(--r); margin-bottom: 18px; display: inline-block; letter-spacing: 1px; }
.slider-content h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 18px; line-height: 1.15; }
.slider-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }

/* BUTTON PREMIUM */
.btn-green {
  background: var(--green); color: #fff; border: none;
  padding: 14px 32px; border-radius: var(--r);
  font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.btn-green:hover { background: var(--green-dark); box-shadow: 0 6px 18px rgba(27,132,21,0.4); transform: translateY(-2px); }

/* HERO SEARCH CARD - PORTED FROM REACT */
.hero-search-card {
  background: var(--white); border-radius: 5px;
  padding: 28px 32px; box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  transform: translateY(-50px);
  position: relative; z-index: 10;
}
.hero-search-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.htab {
  background: none; border: none; padding: 10px 20px;
  font-size: 0.95rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.2s; border-radius: var(--r) var(--r) 0 0;
}
.htab.active { color: var(--green); border-bottom: 4px solid var(--green); margin-bottom: -16px; }
.htab:hover:not(.active) { background: var(--green-light); color: var(--green); }

.hero-input-row { display: flex; gap: 12px; align-items: center; }
.hero-input-row input {
  flex: 1; padding: 14px 20px;
  border: 2px solid var(--border); border-radius: var(--r);
  font-size: 1.05rem; outline: none; transition: border-color 0.2s;
  background: var(--white); color: var(--text);
}
.hero-input-row input:focus { border-color: var(--green); }

.ios-badge-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.badge-ios, .badge-jikn, .badge-srikandi { padding: 4px 12px; border-radius: var(--r); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.5px; }
.badge-ios { background: #e3f2fd; color: #1565C0; }
.badge-jikn { background: #fce4ec; color: #880e4f; }
.badge-srikandi { background: var(--green-light); color: var(--green); }

/* STATS ROW */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 40px; margin-top: -20px;
}
.stat-pill {
  background: var(--white); border-radius: 5px;
  padding: 24px 18px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--green);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-pill:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-pill strong { display: block; font-size: 2.2rem; color: var(--green); font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-pill span { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: 1.5px; }

/* ===== QUICK ACCESS LAYANAN (PREMIUM GRADIENT) ===== */
.quick-access-section { padding: 30px 0 20px; }
.quick-access-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.qa-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-radius: 5px; padding: 24px 12px 18px; text-decoration: none; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden; }
.qa-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1); pointer-events: none; }
.qa-card:hover { transform: translateY(-8px); box-shadow: 0 18px 45px rgba(0,0,0,0.2); }
.qa-green  { background: linear-gradient(135deg, #059669, #10b981); }
.qa-blue   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.qa-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.qa-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.qa-red    { background: linear-gradient(135deg, #dc2626, #f87171); }
.qa-teal   { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.qa-icon-wrap { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.qa-label { font-size: 0.82rem; font-weight: 700; line-height: 1.4; color: #fff; }
.qa-label small { font-size: 0.69rem; color: rgba(255,255,255,0.8); font-weight: 400; display: block; margin-top: 2px; }
.qa-badge { font-size: 0.62rem; font-weight: 800; background: rgba(255,255,255,0.25); color: #fff; padding: 2px 10px; border-radius: 20px; letter-spacing: 0.8px; backdrop-filter: blur(4px); }

/* ===== GALERI ARSIP SEJARAH ===== */
.arsip-sejarah-section { padding: 10px 0 30px; }
.arsip-sejarah-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.btn-arsip-all { background: var(--green); color: #fff; padding: 8px 20px; border-radius: 5px; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.btn-arsip-all:hover { background: #059669; transform: scale(1.03); }
.arsip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arsip-card { background: var(--white); border-radius: 5px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; }
.arsip-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.arsip-thumb { height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; }
.arsip-era { font-size: 2rem; font-weight: 900; color: rgba(255,255,255,0.25); letter-spacing: -1px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; }
.arsip-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 6px 12px; text-align: center; backdrop-filter: blur(4px); }
.arsip-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.arsip-info strong { font-size: 0.95rem; color: var(--text); font-weight: 800; }
.arsip-info span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.arsip-link { font-size: 0.8rem; font-weight: 700; color: var(--green); text-decoration: none; margin-top: 4px; }
.arsip-link:hover { text-decoration: underline; }

/* BODY GRIDS */
.content-sidebar-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.site-body { background: transparent; padding-bottom: 0; }
.body-layout { padding-top: 30px; padding-bottom: 50px; }

/* NEWS LIST PREMIUM */
.sec-heading-dark { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 25px; border-bottom: 4px solid var(--green); padding-bottom: 12px; }
.news-list-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.news-card-v2 { background: var(--white); border-radius: 5px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; display: flex; flex-direction: column; }
.news-card-v2:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card-img-box { position: relative; height: 210px; overflow: hidden; }
.news-card-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-card-v2:hover .news-card-img-box img { transform: scale(1.1); }
.news-card-cat { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; padding: 4px 12px; font-size: 0.72rem; font-weight: 800; border-radius: 6px; letter-spacing: 0.5px; }
.news-card-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.news-card-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; line-height: 1.4; color: var(--text); flex: 1; }
.news-card-btn { align-self: flex-start; background: transparent; border: 2px solid var(--green); color: var(--green); padding: 8px 20px; font-size: 0.85rem; font-weight: 700; border-radius: var(--r); transition: all 0.2s; }
.news-card-btn:hover { background: var(--green); color: #fff; }

/* SIDEBAR WIDGETS - PREMIUM PORTED */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--white); border-radius: 5px; padding: 20px; box-shadow: var(--shadow); width: 100%; box-sizing: border-box; }
.widget-title { font-size: 1rem; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.8px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 3px solid var(--green); }

/* Jejaring */
.jejaring-list { display: flex; flex-direction: column; gap: 8px; }
.jejaring-head { display: flex; justify-content: center; align-items: center; padding: 14px; background: #fff; border-radius: var(--r); border: 2px solid #f1f5f9; margin-bottom: 6px; height: 75px; transition: all 0.3s; }
.jejaring-link-wrap:hover .jejaring-head { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); border-color: var(--green); }
.jejaring-head.border-ios { border-bottom: 4px solid #06B6D4; }
.jejaring-head.border-eres { border-bottom: 4px solid #1B8415; }
.jejaring-head.border-jikn { border-bottom: 4px solid #F59E0B; }
.jejaring-logo { height: auto; max-width: 100%; object-fit: contain; }
.jejaring-logo.lg { height: 42px; }
.jejaring-logo.xlg { height: 50px; }
.side-divider-small { height: 1px; background: #f1f5f9; margin: 12px 0; }

/* Repo Cards */
.repo-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; transition: all 0.2s; margin-bottom: 10px; }
.repo-card:hover { background: #fff; border-color: var(--cyan); transform: translateX(6px); box-shadow: var(--shadow); }
.repo-icon { width: 48px; height: 48px; background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.06); padding: 6px; overflow: hidden; }
.repo-logo-img { width: 100%; height: 100%; object-fit: contain; }
.repo-info { display: flex; flex-direction: column; }
.repo-name { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.repo-status { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

/* e-Bangga Sidebar */
.ebangga-promo { text-align: center; padding: 20px 15px; background: var(--offwhite); border-radius: 12px; border: 1px solid #e2e8f0; }
.logo-ebangga-sidebar { width: 85px; height: 85px; margin: 0 auto 18px; }
.ebangga-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.btn-ebangga-play { display: inline-block; background: var(--green); color: #fff; padding: 9px 24px; border-radius: 25px; font-size: 0.85rem; font-weight: 700; transition: all 0.2s; }
.btn-ebangga-play:hover { background: var(--green-dark); transform: scale(1.05); }

/* FAQ Accordion Compact - Khusus Pre-Footer */
.faq-mini-list details { border-bottom: 1px solid #f1f5f9; padding: 6px 0; }
.faq-mini-list summary { font-size: 0.8rem; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-mini-list summary::after { content: '+'; color: var(--green); font-weight: 800; font-size: 1rem; }
.faq-mini-list details[open] summary::after { content: '-'; }
.faq-mini-list p { font-size: 0.75rem; color: var(--muted); padding: 5px 0; line-height: 1.4; border-top: 1px dashed #eee; margin-top: 5px; }

/* PRE-FOOTER (THE ANALYTICS & MAPS) */
.pre-footer-section { background: transparent; padding: 70px 0; border-top: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .pre-footer-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.pre-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.section-title-premium { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 30px; padding-bottom: 12px; border-bottom: 4px solid var(--green); }

/* Analytics Card Premium */
.analytics-card-premium { background: #fff; border-radius: 5px; padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
body.dark-mode .analytics-card-premium { background: #1e293b; }
.live-badge-row { display: flex; align-items: center; gap: 10px; background: #fff1f2; padding: 8px 16px; border-radius: 25px; width: fit-content; margin-bottom: 25px; }
.pulse-dot-red { width: 10px; height: 10px; background: #e11d48; border-radius: 50%; box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
.live-text-red { font-size: 0.75rem; font-weight: 800; color: #e11d48; text-transform: uppercase; }
.total-visitor-display { text-align: center; margin-bottom: 25px; }
.visitor-numbers { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: 2px; }
.visitor-label-alt { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 1px; }

/* Geo Breakdown */
.geo-row-alt { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; font-size: 0.85rem; margin-bottom: 12px; }
.geo-row-alt .flag { font-size: 1.2rem; }
.geo-row-alt .name { font-weight: 700; color: var(--text); }
.geo-row-alt .val { font-weight: 800; color: var(--text); text-align: right; }
.bar-bg { height: 8px; background: #f1f5f9; border-radius: 10px; overflow: hidden; grid-column: 1 / -1; margin-top: 4px; }
.bar-fill-green { height: 100%; background: var(--green); border-radius: 10px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.bar-fill-cyan { height: 100%; background: var(--cyan); border-radius: 10px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* MAPS HORIZONTAL GRID */
.maps-grid-horizontal { display: flex; gap: 20px; }
.map-card-v3 { flex: 1; background: #fff; border-radius: 5px; padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
body.dark-mode .map-card-v3 { background: #1e293b; }
.map-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.map-icon { font-size: 2rem; }
.map-text { display: flex; flex-direction: column; }
.map-name { font-weight: 800; font-size: 1rem; color: var(--text); line-height: 1.2; }
.map-sub { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.map-addr { font-size: 0.8rem; color: #475569; margin-top: 3px; line-height: 1.4; }
.map-npp { font-size: 0.78rem; font-weight: 800; color: var(--green); margin-top: 5px; font-family: 'Courier New', monospace; background: var(--green-light); padding: 2px 8px; border-radius: 4px; width: fit-content; }
.map-embed-v3 { margin-top: auto; width: 100%; height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.map-embed-v3 iframe { width: 100%; height: 100%; border: none; }

/* FOOTER FINALE */
.site-footer { background: #0f172a !important; color: #94a3b8; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.footer-logo { width: 65px; height: 65px; object-fit: contain; }
.footer-brand h4 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h5 { font-size: 0.9rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; border-bottom: 3px solid var(--green); padding-bottom: 10px; display: inline-block; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: #94a3b8; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; transform: translateX(5px); display: inline-block; }
.footer-social-colored { display: flex; gap: 15px; margin-top: 10px; }
.f-soc-icon { width: 35px; height: 35px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.f-soc-icon:hover { transform: scale(1.3) rotate(5deg); }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }

/* CHATBOT AI WINDOW (IDENTIK DENGAN REACT) */
.chat-ai-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chat-trigger {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--green), #22c55e); color: #fff;
  border: none; border-radius: 50px; padding: 16px 26px;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 25px rgba(27,132,21,0.4);
  animation: chatPulse 3s ease-in-out infinite;
}
@keyframes chatPulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(27,132,21,0.4); } 50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(27,132,21,0.6); } }
.chat-icon { font-size: 1.5rem; }

.chat-window { width: 360px; background: var(--white); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: linear-gradient(135deg, var(--green), #22c55e); color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-status { display: flex; align-items: center; gap: 12px; }
.chat-avatar { font-size: 1.8rem; }
.chat-header strong { font-size: 1rem; display: block; }
.online-tag { font-size: 0.72rem; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 12px; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.chat-body { height: 320px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; }
body.dark-mode .chat-body { background: #0f172a; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 15px; font-size: 0.88rem; line-height: 1.5; word-break: break-word; }
.chat-msg.ai { background: var(--white); color: var(--text); align-self: flex-start; box-shadow: var(--shadow); border-bottom-left-radius: 2px; }
.chat-msg.user { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-footer { display: flex; gap: 10px; padding: 15px; border-top: 1px solid var(--border); background: var(--white); }
.chat-footer input { flex: 1; padding: 10px 18px; border: 2px solid var(--border); border-radius: 25px; font-size: 0.9rem; color: var(--text); background: var(--white); outline: none; }
.chat-footer input:focus { border-color: var(--green); }
.chat-footer button { background: var(--green); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.chat-footer button:hover { background: var(--green-dark); transform: rotate(15deg) scale(1.1); }

/* RESPONSIVE FIXES */
@media (max-width: 1024px) {
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .pre-footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-slider-mock { height: 320px; }
  .slider-content h2 { font-size: 1.8rem; }
  .logo-band-inner { flex-direction: column; text-align: center; }
  .maps-grid-horizontal { flex-direction: column; }
  .chat-window { width: 90vw; right: 5vw; }
}
