/*
Theme Name: Portal Pemerintah Kabupaten Nabire
Theme URI: https://nabirekab.go.id
Author: Ignatius Endar N., S.Si., MT
Description: Tema resmi Portal Berita dan Layanan Publik Pemerintah Kabupaten Nabire, Papua Tengah.
Version: 1.0.0
Text Domain: gov-nabire
*/

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

/* ==========================================================================
   1. VARIABEL WARNA & SISTEM DESAIN GOVTECH
   ========================================================================== */
:root {
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --brand-primary: #1E3A8A; /* Navy Khas Pemda */
  --brand-accent: #0284C7;  /* Sky Blue Accent */
  --brand-gold: #F59E0B;    /* Akses Emas Visi */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   2. RESET DASAR & TYPOGRAPHY
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

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

a { 
  color: inherit; 
  text-decoration: none; 
}

.gov-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   3. HEADER & BRANDING LOGO
   ========================================================================== */
.top-nav {
  background: var(--brand-primary);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.85rem;
}

.main-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title .brand-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header-logo {
  width: 55px;
  height: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   4. MENU NAVIGASI & DROPDOWN MULTI-LEVEL (MEKAR KE SAMPING)
   ========================================================================== */
.nav-menu ul, ul.gov-nav-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav-menu li, ul.gov-nav-list li {
  position: relative;
  display: inline-block;
}

.nav-menu a, ul.gov-nav-list li a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.nav-menu a:hover, ul.gov-nav-list li a:hover {
  background: #F1F5F9;
  color: var(--brand-accent);
}

/* --- Level 2: Sub-Menu (Dropdown Turun) --- */
.nav-menu ul.sub-menu, 
ul.gov-nav-list ul.sub-menu,
.nav-menu ul.children,
ul.gov-nav-list ul.children {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  flex-direction: column;
  padding: 8px 0;
  z-index: 9999;
  list-style: none;
}

/* Tampilkan Level 2 saat Hover */
.nav-menu li:hover > ul.sub-menu,
ul.gov-nav-list li:hover > ul.sub-menu,
.nav-menu li:hover > ul.children,
ul.gov-nav-list li:hover > ul.children {
  display: flex;
}

.nav-menu ul.sub-menu li,
ul.gov-nav-list ul.sub-menu li {
  width: 100%;
}

.nav-menu ul.sub-menu li a,
ul.gov-nav-list ul.sub-menu li a {
  padding: 8px 16px;
  border-radius: 0;
  font-size: 0.825rem;
  font-weight: 500;
}

.nav-menu ul.sub-menu li a:hover {
  background: #F1F5F9;
  color: var(--brand-primary);
}

/* --- Level 3+: Sub-Sub Menu (Mekar ke Samping Kanan) --- */
.nav-menu ul.sub-menu ul.sub-menu,
ul.gov-nav-list ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%; /* Geser penuh ke kanan */
  margin-left: 2px;
}

/* Indikator Panah untuk Sub-Menu yang Punya Anak */
.nav-menu ul.sub-menu li.menu-item-has-children > a::after,
ul.gov-nav-list ul.sub-menu li.menu-item-has-children > a::after {
  content: '›';
  font-size: 1.1rem;
  font-weight: bold;
  margin-left: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   5. HERO BANNER PIMPINAN DAERAH & SLOGAN VISI
   ========================================================================== */
.gov-hero-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  border-radius: 16px;
  margin: 25px 0 35px 0;
  padding: 30px 40px;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gov-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.gov-hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-leader-image {
  flex: 1;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.hero-leader-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.hero-leader-image img:hover {
  transform: scale(1.02);
}

.hero-slogan-content {
  flex: 1.2;
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 15px;
}

.slogan-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
  color: #FFFFFF !important;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slogan-sub {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 25px;
}

.hero-search-box {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  max-width: 480px;
}

.hero-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 18px;
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
}

.hero-search-box input::placeholder {
  color: #94A3B8;
}

.hero-search-box button {
  background: var(--brand-accent);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-search-box button:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. QUICK SERVICES (LAYANAN PUBLIK TERPADU)
   ========================================================================== */
.quick-services { 
  margin: 35px 0; 
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 20px 15px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.service-icon { 
  font-size: 2rem; 
  margin-bottom: 8px; 
}

.service-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================================================
   7. SEKSI STATISTIK UMUM (PARALLAX & OVERLAY)
   ========================================================================== */
.gov-stats-section {
  position: relative;
  background: url('Nabiredariudara.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  padding: 60px 20px;
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.88) 0%, rgba(15, 45, 80, 0.82) 100%);
  z-index: 1;
}

.stats-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 1px;
}

.stats-subtitle {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 5px 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-divider {
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto 35px auto;
  position: relative;
}

.stats-divider span {
  display: block;
  width: 30px;
  height: 3px;
  background: #ffffff;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 15px;
}

.stat-item {
  position: relative;
  padding: 10px 15px;
}

.stat-item:not(:nth-child(4n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   8. LAYOUT UTAMA & GRID BERITA
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 2.7fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--brand-primary);
  display: inline-block;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Sembunyikan postingan ke-7 dst agar beranda selalu 2 baris (6 kartu) */
.posts-grid article.post-card:nth-child(n+7) {
  display: none;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-body { 
  padding: 16px; 
}

.post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.more-news-btn-wrap {
  text-align: center;
  margin-top: 30px;
}

.btn-more-news {
  display: inline-block;
  background: var(--brand-primary);
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-more-news:hover {
  background: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. SIDEBAR WIDGETS & AGENDA
   ========================================================================== */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a:hover {
  color: var(--brand-accent);
}

.agenda-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 10px 0;
}

.agenda-date {
  background: #EFF6FF;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
}

.agenda-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10. DETAIL BERITA (SINGLE POST WRAPPER)
   ========================================================================== */
.single-post-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.single-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* ==========================================================================
   11. FOOTER DENGAN EMBED MAPS
   ========================================================================== */
.main-footer {
  background-color: #0d3b66;
  color: #ffffff;
  padding: 50px 0 20px 0;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 45px;
  height: auto;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer-map h4 {
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #f4a261;
  padding-left: 10px;
}

.map-responsive {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   12. RESPONSIVE MOBILE & TABLET
   ========================================================================== */
@media (max-width: 960px) {
  .gov-hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-slogan-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slogan-title {
    font-size: 1.35rem;
  }

  .hero-search-box {
    width: 100%;
  }

  .main-layout { 
    grid-template-columns: 1fr; 
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-flex { 
    flex-direction: column; 
    text-align: center; 
    gap: 15px; 
  }
  
  .nav-menu ul, ul.gov-nav-list { 
    flex-wrap: wrap; 
    justify-content: center; 
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:not(:nth-child(4n))::after {
    display: none;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   NEWS TICKER / FLASH NEWS BAR (VERSI PELAN & HALUS)
========================================================= */
.flash-news-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin: 20px 0;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

/* Label Merah "FLASH" Terkunci di Kiri */
.flash-badge-wrap {
    display: flex;
    align-items: center;
    height: 100%;
    background-color: #d9381e;
    color: #ffffff;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.flash-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 0 12px;
    background-color: #b82b14;
    height: 100%;
    align-content: center;
}

.flash-icon span {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 1px;
}

.flash-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0 18px;
    letter-spacing: 1px;
}

/* Container Area Teks Berjalan */
.flash-ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.flash-ticker-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 60px; /* Jarak antar berita lebih renggang */
    white-space: nowrap;
    position: absolute;
    padding-left: 100%; /* Mulai dari luar layar sebelah kanan */
    
    /* ANGKA DIBUAT DARI 30s MENJADI 90s AGAR SANGAT PELAN DAN NYAMAN DIBACA */
    animation: tickerSlow 150s linear infinite; 
}

/* BERHENTI DENGAN SEMPURNA SAAT KURSOR MOUSE DITANAM DI ATAS TEKS */
.flash-news-bar:hover .flash-ticker-wrapper {
    animation-play-state: paused !important;
}

.flash-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.flash-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.flash-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.flash-title:hover {
    color: #d9381e;
}

/* Keyframe Animasi Berjalan Pelan */
@keyframes tickerSlow {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* =========================================================
   SEKSI WEBSITE OPD & WILAYAH (BINGKAI UTUH & LOGO BESAR)
========================================================= */
.opd-section {
    margin: 50px 0;
    text-align: center;
}

.opd-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.opd-hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 18px; /* Jarak vertikal diperbesar agar segitiga heksagon tidak saling bertumpuk */
    max-width: 1250px;
    margin: 0 auto;
}

/* KARTU HEKSAGON UTAMA */
.hex-item {
    position: relative;
    width: 135px;
    height: 145px;
    background-color: #ffffff;
    border-left: 2px solid #475569;
    border-right: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 0;
}

/* SEGITIGA ATAS (LENGKAP DENGAN GARIS ATAS MIKRING) */
.hex-item::before {
    content: "";
    position: absolute;
    top: -24px;
    left: -2px;
    width: 0;
    height: 0;
    border-left: 69.5px solid transparent;
    border-right: 69.5px solid transparent;
    border-bottom: 24px solid #ffffff;
    filter: drop-shadow(0px -2px 0px #475569); /* KUNCI: Menambahkan garis border miring di ataspun */
    z-index: 1;
}

/* SEGITIGA BAWAH (LENGKAP DENGAN GARIS BAWAH MIRING) */
.hex-item::after {
    content: "";
    position: absolute;
    bottom: -24px;
    left: -2px;
    width: 0;
    height: 0;
    border-left: 69.5px solid transparent;
    border-right: 69.5px solid transparent;
    border-top: 24px solid #ffffff;
    filter: drop-shadow(0px 2px 0px #475569); /* KUNCI: Menambahkan garis border miring di bawah */
    z-index: 1;
}

/* EFEK HOVER */
.hex-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand-accent);
}

.hex-item:hover::before {
    filter: drop-shadow(0px -2px 0px var(--brand-accent));
}

.hex-item:hover::after {
    filter: drop-shadow(0px 2px 0px var(--brand-accent));
}

/* KONTEN DILAM HEKSAGON */
.hex-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 10px 4px 0 4px;
    box-sizing: border-box;
}

/* MEMPERBESAR UKURAN LOGO NABIRE */
.hex-logo {
    width: 100px; /* Ukuran diperbesar dari 42px menjadi 58px agar jauh lebih jelas */
    height: auto;
    object-fit: contain;
    margin-top: -5px; /* Menaikkan posisi logo ke area ataspun segitiga */
    transition: transform 0.3s ease;
}

.hex-item:hover .hex-logo {
    transform: scale(1.08); /* Efek membesar halus saat di-hover */
}

/* PITA LABEL TEKS OPD BAWAH */
.hex-label {
    width: 112%;
    background-color: #334155;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 6px 3px;
    line-height: 1.15;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    margin-bottom: -12px;
    transition: background-color 0.3s ease;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

.hex-item:hover .hex-label {
    background-color: var(--brand-accent);
}

/* RESPONSIF UNTUK LAYAR HP */
@media (max-width: 768px) {
    .hex-item {
        width: 105px;
        height: 115px;
    }
    .hex-item::before {
        top: -18px;
        border-left-width: 54.5px;
        border-right-width: 54.5px;
        border-bottom-width: 18px;
    }
    .hex-item::after {
        bottom: -18px;
        border-left-width: 54.5px;
        border-right-width: 54.5px;
        border-top-width: 18px;
    }
    .hex-logo {
        width: 42px;
        margin-top: -2px;
    }
    .hex-label {
        font-size: 0.55rem;
        padding: 4px 2px;
    }
}
/* SEKSI VIDEO BANNER PROMO */
.video-banner-section {
    margin: 25px 0;
    width: 100%;
}

.video-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: #000;
}

.gov-promo-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px; /* Batas tinggi maksimal agar tidak terlalu memakan layar */
    object-fit: cover; /* Video akan terpotong rapi menyesuaikan bingkai */
}