@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;

  background: linear-gradient(-45deg, #f7f9fc, #eef3fb, #f5f7fa, #e3ecfa);
  background-size: 400% 400%;
  animation: gradientBackground 15s ease infinite;
}

@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== TOPBAR ===== */
/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;

  /* 🔥 background statis (tidak bergerak) */
  background: linear-gradient(to right, #0d47a1, #1565c0);

  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  /* padding aman */
  padding-right: clamp(60px, 8vw, 100px);
}

/* ❌ HILANGKAN EFEK KILAP */
.topbar::after {
  display: none;
}

/* JUDUL */
.instansi {
  font-size: clamp(10px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: normal;
}

.daerah {
  font-size: clamp(8px, 1.6vw, 12px);
  opacity: 0.9;
}

/* DESKTOP */
@media (min-width: 992px) {
  .instansi {
    white-space: nowrap;
    font-size: 18px;
  }

  .daerah {
    font-size: 14px;
  }
}

/* ===== TOPBAR LEFT ===== */
.topbar-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  flex: 1;
  min-width: 0;
}

/* LOGO AUTO RESPONSIVE */
.topbar-left img {
  width: clamp(40px, 6vw, 74px);
  height: clamp(40px, 6vw, 74px);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

/* JUDUL */
.instansi {
  font-size: clamp(10px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;

  white-space: normal; /* HP boleh turun baris */
}

.daerah {
  font-size: clamp(8px, 1.6vw, 12px);
  opacity: 0.9;
}

/* ❌ HAPUS max-width 200px, ini penyebab kepotong */
.topbar-text {
  max-width: 100%;
}

/* biar gak nabrak tombol */
.topbar {
  padding-right: clamp(60px, 8vw, 100px);
}

/* 🔥 KHUSUS LAYAR BESAR */
@media (min-width: 992px) {
  .instansi {
    white-space: nowrap; /* jadi 1 baris */
    font-size: 18px;
  }

  .daerah {
    font-size: 14px;
  }
}

/* ===== MENU BUTTON KOTAK (VERSI BERSIH) ===== */
.menu-btn {
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);

  background: #f7b500; /* 🔥 kuning seperti awal */
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  cursor: pointer;
  z-index: 1001;

  transition: 0.3s;
}

/* hover ringan saja */
.menu-btn:hover {
  transform: scale(1.05);
}

/* ===== GARIS ===== */
.menu-btn span {
  width: 60%;
  height: 3px;
  background: #333;
  border-radius: 2px;

  transition: 0.3s;
}

/* animasi berubah jadi X */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= SIDEBAR FINAL CLEAN RESPONSIVE ================= */

.sidebar {
  position: fixed;
  top: 0;

  /* ukuran fleksibel */
  width: clamp(340px, 88vw, 460px);

  /* geser keluar pakai transform (LEBIH AMAN) */
  right: 0;
  transform: translateX(100%);

  height: 100vh;

  background: #ffffff;
  color: #333;

  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);

  padding: clamp(60px, 6vw, 70px) clamp(20px, 4vw, 35px);

  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1100;

  display: flex;
  flex-direction: column;
  gap: 14px;

  font-family: "Poppins", sans-serif;
}

/* aktif */
.sidebar.active {
  transform: translateX(0);
}

/* ===== JARAK DARI X ===== */
.menu-list {
  margin-top: 40px;
}

/* ===== GARIS PEMISAH ===== */
.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 12px 0;
}

/* ===== MENU UTAMA ===== */
.menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;

  text-decoration: none;
  color: #333;

  font-size: clamp(13px, 1.7vw, 15px);
  font-weight: 500;

  transition: 0.25s;
}

.menu-link:hover {
  background: #f5f5f5;
  transform: translateX(4px);
}

/* ACTIVE MENU */
.menu-link.active {
  background: #0d47a1;
  color: white;
  font-weight: 600;
}

/* ===== DROPDOWN ===== */
.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 14px;
  border-radius: 10px;

  font-size: clamp(13px, 1.7vw, 15px);
  font-weight: 600;

  cursor: pointer;
  transition: 0.25s;
}

.menu-title:hover {
  background: #f5f5f5;
}

/* panah */
.arrow {
  transition: 0.3s;
}

.menu-item.active .arrow {
  transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 20px;
}

.menu-item.active .submenu {
  max-height: 300px;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;

  font-size: clamp(12px, 1.6vw, 14px);
  text-decoration: none;
  color: #333;

  transition: 0.2s;
}

.submenu a:hover {
  background: #f0f0f0;
  transform: translateX(3px);
}

.submenu a.active {
  background: #0d47a1;
  color: white;
}

/* ===== TOMBOL CLOSE (X) ===== */
.sidebar-close {
  position: absolute;
  top: 18px;
  left: 20px; /* 🔥 pindah ke kiri */

  width: 38px;
  height: 38px;

  border-radius: 50%;
  background: #f1f1f1;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;

  transition: 0.3s;
}

.sidebar-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: #e0e0e0;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 92vw;
    padding: 50px 18px;
  }

  .menu-link {
    font-size: 12px;
  }

  .submenu a {
    font-size: 11.5px;
  }
}

/* ===== SEMUA MENU ADA GARIS ===== */
.menu-list > * {
  border-bottom: 1px solid #e0e0e0;
}

/* biar item terakhir gak ada garis */
.menu-list > *:last-child {
  border-bottom: none;
}

/* rapihin jarak */
.menu-link,
.menu-title {
  padding: 12px 10px;
}

.submenu a {
  border-bottom: 1px solid #f0f0f0;
}

.submenu a:last-child {
  border-bottom: none;
}

/* ===== ICON STYLE ===== */
.menu-link i,
.menu-title i,
.submenu a i {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  color: #0d47a1;
}

/* hover effect */
.menu-link:hover i,
.submenu a:hover i {
  color: #1976d2;
}

/* ===== SIDEBAR SCROLL ===== */
.sidebar {
  overflow-y: auto; /* 🔥 aktifkan scroll */
  overflow-x: hidden;

  scrollbar-width: thin; /* Firefox */
}

/* Chrome scroll styling (biar cantik) */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-close {
  position: sticky;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.sidebar {
  scroll-behavior: smooth;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 60vh;
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 700;

  background: linear-gradient(135deg, #0d47a1, #4da6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  margin: 0;
}

/* ===== JUDUL LINK TERKAIT ===== */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  margin: 50px 20px 20px;
}

.logo-title h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: #0d47a1;
  white-space: nowrap;
}

/* garis kiri kanan */
.logo-title span {
  flex: 1;
  height: 3px;

  background: linear-gradient(to right, transparent, #0d47a1, transparent);

  border-radius: 10px;
}
/* ===== LOGO HORIZONTAL FIX (NO SCROLL, NO TURUN) ===== */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: clamp(8px, 2vw, 25px); /* tetap agak rapat */
  padding: 20px 10px 35px;

  flex-wrap: nowrap; /* tetap horizontal */
}

/* item logo */
.logo-item a {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
}

.logo-item img {
  height: clamp(55px, 9vw, 110px); /* 🔥 ini kunci */
  width: auto;
  object-fit: contain;

  transition: 0.3s;
}

/* teks ikut menyesuaikan */
.logo-item p {
  font-size: clamp(11px, 1.8vw, 15px);
  margin-top: 4px;
}

/* hover simpel */
.logo-item a:hover img {
  transform: scale(1.1);
}

.logo-item a:hover p {
  color: #0d47a1;
}

/* ===== MAPS ===== */
.map-wrapper {
  padding: 55px 20px;
  background: linear-gradient(180deg, #0f0f0f, #2b2b2b);
  text-align: center;
}

.map-frame {
  max-width: 900px;
  margin: auto;

  background: transparent; /* ❌ hilangkan putih tebal */
  padding: 6px; /* 🔥 tipiskan jarak */

  border-radius: 18px;

  /* ✅ garis gold */
  border: 2px solid #f7b500;

  /* shadow modern */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 5px 10px rgba(0, 0, 0, 0.08);

  transition: 0.3s ease;
}

/* hover tetap elegan */
.map-frame:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.15);
}

.running-text {
  margin: 0;
  padding: 6px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .topbar-left img {
    width: 52px;
    height: 52px;
  }

  .instansi {
    font-size: 13px;
  }
  .daerah {
    font-size: 11px;
  }
}

/* ===== CONTACT SECTION MODERN ===== */

.contact-section {
  background: #3c3c3c;
  padding: 60px 30px;
  color: white;
  font-family: "Poppins", sans-serif;
}

.contact-container {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1fr; /* 🔥 kiri kanan */
  gap: 40px;
  align-items: flex-start;
}

/* divider elegan */
.contact-right {
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 40px;
}

/* informasi kontak */

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: #f7b500;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-text p {
  margin: 3px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* ===== SOSIAL MEDIA GRID ===== */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;

  transition: 0.25s;
  cursor: pointer;
}

.social-item img {
  width: 34px;
  height: 34px;
}

/* hover effect */

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;

  transition: 0.25s;
  cursor: pointer;

  color: white;
  text-decoration: none;
}

/* teks selalu putih */
.social-item span {
  color: white;
  font-weight: 500;
}

/* hover jadi putih */
.social-item:hover {
  background: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* teks berubah hitam */
.social-item:hover span {
  color: black;
}

/* responsive */

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== lampiran ===== */
.slider-box {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slide {
  display: none;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.left {
  left: -70px;
}
.right {
  right: -70px;
}

/* badge */

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
}

.gold {
  background: linear-gradient(45deg, #ffd700, #ffb300);
}
.silver {
  background: linear-gradient(45deg, #c0c0c0, #9aa4b2);
}
.bronze {
  background: linear-gradient(45deg, #cd7f32, #a65b1f);
}

.slide a {
  position: relative;
  display: block;
}

.slide a::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 6px 14px;
  border-radius: 8px;

  font-size: 14px;
  font-weight: bold;

  color: white;
  z-index: 5;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* emas */
.gold {
  background: linear-gradient(45deg, #ffd700, #ffb300);
}

/* perak */
.silver {
  background: linear-gradient(45deg, #d9d9d9, #9aa4b2);
}

/* perunggu */
.bronze {
  background: linear-gradient(45deg, #cd7f32, #a65b1f);
}

/* ===== NEWS MODERN LIST ===== */
.news-section {
  padding: 60px 20px;
  background: #f4f7fb;
  font-family: "Poppins", sans-serif;
}

.news-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-header h2 {
  font-size: 28px;
  color: #0d47a1;
}

.news-header p {
  font-size: 14px;
  color: #555;
}

.news-list {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ITEM */
.news-item {
  display: flex;
  align-items: center;
  gap: 20px;

  background: white;
  padding: 15px;

  border-radius: 12px;
  text-decoration: none;
  color: black;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

/* HOVER */
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ❌ HAPUS NOMOR */
.news-number {
  display: none;
}

/* GAMBAR */
.news-item img {
  width: 140px; /* sedikit diperbesar */
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
}

/* TEXT */
.news-content {
  flex: 1;
}

.news-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-content p {
  font-size: 13px;
  color: #555;
}

/* LINK */
.news-link {
  font-size: 13px;
  color: #0d47a1;
  font-weight: 600;
}

/* tombol lihat semua */
.btn-lihat-semua {
  display: inline-block;
  padding: 12px 25px;
  background: #0d47a1;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-lihat-semua:hover {
  background: #1565c0;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item img {
    width: 100%;
    height: 180px;
  }
}

/* ================= SCROLL BUTTON ================= */

#topBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: #0d47a1;
  color: white;
  font-size: 22px;

  cursor: pointer;
  display: none;
  z-index: 999;
}

#topBtn:hover {
  background: #1565c0;
}

/* ================= FOOTER ================= */

.footer {
  background: #0d47a1;
  color: white;
  text-align: center;

  padding: 6px 8px; /* 🔥 lebih tipis */
  font-family: "Poppins", sans-serif;
}

.footer p {
  margin: 2px 0; /* 🔥 rapetin */
  font-size: 10px; /* 🔥 kecilin lagi */
  opacity: 0.8;
}

/* ===== scrol atas ===== */
html {
  scroll-behavior: smooth;
}

.header-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

/* ===== BAGIAN TATA TERTIB & GALERI ===== */

.info-dua {
  display: flex;
  justify-content: center;
  gap: 120px;

  /* jarak dari section atas */
  margin-top: 120px;

  /* jarak dari MAP */
  margin-bottom: 140px;

  flex-wrap: wrap;
}
/* hover */

.tombol-keren:hover {
  transform: scale(1.1);

  box-shadow: 0 0 35px rgba(0, 200, 255, 1);
}
/* animasi tombol */
@keyframes lompat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* popup background */

.popup {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.85);

  justify-content: center;
  align-items: center;

  opacity: 0;

  transition: opacity 0.4s ease;
}

/* aktif */

.popup.show {
  display: flex;

  opacity: 1;
}

/* gambar besar */

.popup img {
  max-width: 85%;
  max-height: 85%;

  border-radius: 12px;

  transform: scale(0.7);

  transition: transform 0.4s ease;
}

/* animasi muncul */

.popup.show img {
  transform: scale(1);
}

/* ===== KARTU TATA TERTIB & GALERI ===== */

.kartu {
  text-align: center;
  padding: 20px 40px;
  width: 260px;

  /* tidak ada kotak */
  background: none;
  box-shadow: none;
  border: none;

  /* animasi muncul */
  animation: muncul 1s ease;
}

/* animasi saat hover */
.kartu:hover {
  transform: translateY(-12px) scale(1.03);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* animasi muncul dari bawah */
@keyframes muncul {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TOMBOL ANIMASI ===== */
.tombol-keren {
  display: inline-block;
  padding: 14px 34px;

  font-weight: bold;
  font-size: 16px;

  color: white;
  text-decoration: none;

  border-radius: 40px;

  /* gradient bergerak */
  background: linear-gradient(45deg, #00c6ff, #0072ff, #00c6ff);
  background-size: 200%;

  /* animasi */
  animation:
    gradientMove 3s linear infinite,
    floating 2s ease-in-out infinite;

  /* glow */
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.7);

  transition: 0.3s;
}

/* animasi gradient */
@keyframes gradientMove {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

/* animasi naik turun */
@keyframes floating {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* hover */
.tombol-keren:hover {
  transform: translateY(-6px) scale(1.15);

  box-shadow:
    0 0 20px #00c6ff,
    0 0 40px #0072ff,
    0 0 60px #00c6ff;
}

/* ===== pengmman ===== */
.running-text {
  background: #f7b500;
  color: black;

  padding: clamp(6px, 1vw, 10px);

  font-weight: 600;
  font-family: "Poppins", sans-serif;

  /* 🔥 ukuran fleksibel */
  font-size: clamp(10px, 1.8vw, 14px);

  white-space: nowrap;
  overflow: hidden;
}

.running-text marquee {
  padding-left: 10px;
}

/* ===============================
   RESPONSIVE HP
=================================*/
@media (max-width: 768px) {
  /* TOPBAR */
  .topbar {
    padding: 14px 16px;
  }

  .topbar-left {
    gap: 10px;
  }

  .topbar-left img {
    width: 45px;
    height: 45px;
  }

  .instansi {
    font-size: 12px;
  }

  .daerah {
    font-size: 10px;
  }

  /* MENU BUTTON */
  .menu-btn {
    width: 38px;
    height: 38px;
  }

  /* SIDEBAR */
  .sidebar {
    width: 260px;
    padding: 20px 15px;
  }

  .banner-overlay {
    padding-left: 20px;
  }

  .banner-overlay h1 {
    font-size: clamp(20px, 5vw, 52px);
  }

  .banner-overlay p {
    font-size: 14px;
  }

  /* LOGO */
  .logo-section {
    gap: 25px;
    padding: 40px 10px;
    flex-wrap: wrap;
  }

  .logo-item img {
    width: 90px;
  }

  /* RULES */
  .rules-section {
    margin: 20px 10px;
    padding: 25px 15px;
  }

  .rules-box {
    padding: 15px;
  }

  .rules-box li {
    font-size: 13px;
  }

  /* CONTACT */
  .contact-section {
    padding: 30px 15px;
  }

  .contact-item {
    align-items: flex-start;
  }

  .icon-box {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .social-item img {
    width: 35px;
    height: 35px;
  }
}

/* ================= FIX RESPONSIVE TAMBAHAN ================= */

/* biar ga ada elemen keluar layar */
img {
  max-width: 100%;
  height: auto;
}

section {
  width: 100%;
  overflow: hidden;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .sambutan-container {
    flex-direction: column;
    text-align: center;
  }

  .sambutan-text {
    max-width: 90%;
  }

  .info-dua {
    gap: 60px;
  }

  .slider-box {
    max-width: 90%;
  }

  /* tombol slider masuk ke dalam */
  .left {
    left: 10px;
  }
  .right {
    right: 10px;
  }
}

/* ================= HP ================= */
@media (max-width: 768px) {
  .banner-overlay {
    padding-left: 20px;
  }

  .banner-overlay h1 {
    font-size: 26px;
  }

  .banner-overlay p {
    font-size: 14px;
  }

  .news-container {
    grid-template-columns: 1fr;
  }

  .info-dua {
    flex-direction: column;
    gap: 40px;
  }

  .kartu {
    width: 100%;
  }

  .slide img {
    height: 200px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  /* tombol slider biar ga keluar */
  .left {
    left: 5px;
  }
  .right {
    right: 5px;
  }
}

/* ================= HP KECIL ================= */
@media (max-width: 480px) {
  .banner-overlay h1 {
    font-size: 20px;
  }

  .banner-overlay p {
    font-size: 12px;
  }

  .slide img {
    height: 180px;
  }
}

/* ===== POPUP BACKGROUND ===== */
.welcome-popup {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;

  z-index: 9999;
}

/* aktif */
.welcome-popup.show {
  opacity: 1;
  visibility: visible;
}

/* ===== BOX ===== */
.popup-box {
  position: relative;

  width: 90%;
  max-width: 420px;

  border-radius: 20px;

  /* glass effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  padding: 25px;

  transform: scale(0.7) translateY(40px);
  opacity: 0;

  transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* animasi masuk */
.welcome-popup.show .popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ===== CONTENT ===== */
.popup-content {
  text-align: center;
  color: white;
  font-family: "Poppins", sans-serif;
}

/* judul */
.popup-content h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

/* teks */
.popup-content p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 15px;
}

/* gambar */
.popup-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* tombol masuk */
.btn-masuk {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;

  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;

  cursor: pointer;

  transition: 0.3s;
}

/* hover tombol */
.btn-masuk:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.9);
}

/* tombol X */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 24px;
  color: white;
  cursor: pointer;

  transition: 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
}

/* tombol X */
.sidebar-close {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}

.sidebar-close:hover {
  color: #0d47a1;
  transform: scale(1.2);
}

/* ukuran teks */
.menu-title {
  font-size: 14px;
}

.submenu a {
  font-size: 13px;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .sidebar {
    width: 90%;
    padding: 50px 20px;
  }

  .menu-title {
    font-size: 13px;
  }

  .submenu a {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .menu-title {
    font-size: 12px;
  }

  .submenu a {
    font-size: 11.5px;
  }
} /* menu langsung (tanpa dropdown) */
.sidebar > a {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #333;

  padding: 12px 14px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  transition: 0.25s;
}

.sidebar > a:hover {
  background: #f5f5f5;
  transform: translateX(4px);
}

/* icon */
.sidebar a i {
  width: 18px;
}

/* responsive kecil */
@media (max-width: 480px) {
  .sidebar > a {
    font-size: 12px;
  }
}

/* ===== maps ===== */

.map-frame iframe {
  width: 100%;
  height: clamp(240px, 30vw, 330px); /* 🔥 sedikit lebih pendek lagi */
  border-radius: 0;
}

.map-frame {
  max-width: 900px; /* biar gak kepanjangan banget di laptop */
}

/* ===== SOSIAL MEDIA MODEL ICON ===== */

.social-box {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

/* judul */
.social-title {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 12px;
}

/* container icon */
.social-icons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.social-icons a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #333;
  font-size: 12px;
}

.social-icons i {
  width: 32px;
  height: 32px;

  min-width: 32px;
  min-height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 14px;
  color: white;

  aspect-ratio: 1 / 1;
  line-height: 1;

  /* glow dasar */
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);

  transition: 0.25s ease;
}

/* warna masing-masing */
.social-icons a:nth-child(1) i {
  background: #1877f2; /* Facebook */
}

.social-icons a:nth-child(2) i {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.social-icons a:nth-child(3) i {
  background: #ff0000;
}

.social-icons a:nth-child(4) i {
  background: #000000;
}

.social-icons a:hover i {
  transform: scale(1.2);

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(0, 150, 255, 0.8);
}

.social-icons span {
  margin-top: 4px;
  font-size: 10px;
}
.social-box {
  transform: translateY(-10px);
}
/* ===== SLIDER ===== */
.slider-section {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.slider-wrap {
  position: relative;
  width: 100%;
  background: #000;
}
.slides-track {
  display: flex;
}
.slide-item {
  width: 100%;
  text-align: center;
  background: #fff; /* biar tidak hitam */
}

.slide-item img {
  width: 100%;
  height: auto; /* 🔥 ini penting supaya tidak kepotong */
  display: block;
}

.slide-item img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .slide-item img {
    height: auto; /* HP balik normal biar tidak kepotong */
    object-fit: contain;
  }
}

.slide-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .slide-item img {
    width: 100%;
    height: 420px; /* 🔥 atur tinggi (bebas: 350–500px) */
    object-fit: cover; /* 🔥 ini yang bikin terpotong rapi */
    object-position: center;
  }
}

/* ===== LIGHTBOX ===== */
.lb-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 30, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 9999;
  user-select: none;
}
.lb-modal.show {
  opacity: 1;
  visibility: visible;
}

.lb-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(5, 12, 30, 0.8), transparent);
  z-index: 10;
}
.lb-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
}
.lb-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1;
}
.lb-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lb-img-area {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: grab;
}
.lb-img-area.dragging {
  cursor: grabbing;
}
.lb-img-area img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
  transition: transform 0.15s ease-out;
  will-change: transform;
  pointer-events: none;
}

.lb-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(5, 12, 30, 0.85), transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.lb-ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.15s;
  font-family: "Poppins", sans-serif;
}
.lb-ctrl-btn:hover {
  background: #1565c0;
  border-color: #1565c0;
  transform: scale(1.08);
}
.lb-ctrl-btn:active {
  transform: scale(0.95);
}
.lb-reset-btn {
  width: auto;
  border-radius: 24px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}
.lb-zoom-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  min-width: 62px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* ===== SECTION PEJABAT ===== */
.pejabat-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 60px);
  padding: 28px 20px 24px;
  background: linear-gradient(to bottom, #ffffff, #f0f5ff);
  border-bottom: 2px solid #dce6f5;
  flex-wrap: wrap;
}

.pejabat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* LINGKARAN FOTO */
.pejabat-foto-wrap {
  width: clamp(90px, 14vw, 130px);
  height: clamp(90px, 14vw, 130px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0d47a1;
  box-shadow:
    0 0 0 4px rgba(13, 71, 161, 0.12),
    0 6px 20px rgba(13, 71, 161, 0.2);
  flex-shrink: 0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.pejabat-foto-wrap:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 5px rgba(247, 181, 0, 0.35),
    0 10px 28px rgba(13, 71, 161, 0.25);
}

.pejabat-foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* NAMA & JABATAN */
.pejabat-nama {
  font-family: "Poppins", sans-serif;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 700;
  color: #0d2b5e;
  text-align: center;
  line-height: 1.3;
}

.pejabat-jabatan {
  font-family: "Poppins", sans-serif;
  font-size: clamp(10px, 1.6vw, 12px);
  color: #555;
  text-align: center;
  line-height: 1.4;
}

/* HP kecil */
@media (max-width: 360px) {
  .pejabat-foto-wrap {
    width: 80px;
    height: 80px;
  }
  .pejabat-nama {
    font-size: 11px;
  }
  .pejabat-jabatan {
    font-size: 10px;
  }
}

/* ===== GAMBAR ===== */
.berita-img {
  width: 100%;
  height: 160px; /* 🔥 lebih kecil */
  object-fit: cover;
}

/* tombol */
.btn-baca {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #0d47a1;
  font-weight: 600;
}

/* ===== STAT TANPA CARD ===== */

.statistik {
  padding: 10px 0;
}

/* horizontal */
.statistik-box {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* item */
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* icon */
.stat-item i {
  font-size: 22px;
  color: #0d47a1;
}

/* angka */
.stat-item h3 {
  margin: 0;
  font-size: 18px;
  color: #222;
}

/* teks */
.stat-item p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== SECTION ===== */
.berita-section {
  padding: 20px;
}

/* ===== GRID ===== */
.berita-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* ===== ITEM (TANPA KOTAK) ===== */
.berita-item {
  display: flex;
  flex-direction: column;
}

/* ===== GAMBAR ===== */
.berita-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== TEXT ===== */
.berita-text {
  margin-top: 6px;
}

/* ===== JUDUL ===== */
.judul {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

.judul:hover {
  color: #0d47a1;
}

.judul-section {
  text-align: center; /* 🔥 bikin tengah */
  font-size: 28px; /* lebih besar */
  font-weight: 700; /* lebih tegas */
  color: #111;
  margin-bottom: 25px;
  position: relative;
}
.judul-section::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0d47a1;
  margin: 10px auto 0; /* tengah */
  border-radius: 2px;
}
.judul-section {
  letter-spacing: 1px;
}

/* ===== TANGGAL ===== */
.tanggal {
  font-size: 12px;
  color: #777;
}

/* ===== PAGINATION ===== */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  padding: 6px 10px;
  margin: 3px;
  background: #eee;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
}

.pagination a.active {
  background: #0d47a1;
  color: white;
}

/* ===== RESPONSIVE ===== */

/* TABLET */
@media (max-width: 992px) {
  .berita-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 500px) {
  .berita-container {
    grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom */
  }

  .berita-img {
    height: 110px;
  }

  .judul {
    font-size: 13px;
  }
}
