/* ========================================================== */
/* CONTAINER UTAMA (WADAH LUAR) */
/* ========================================================== */
.container-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 1; /* Bisa mengecil secara fleksibel */
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
/* 1. TABLET LANDSCAPE (Maksimal 1024px) */
@media (max-width: 1024px) {
  .container-content {
    height: 90dvh;
  }
}
/* Layar Tablet / Laptop Kecil (991px ke bawah) */
@media (max-width: 991px) {
  .container-content {
    height: 85dvh;
  }
}

/* Layar Tablet Portrait (768px ke bawah) */
@media (max-width: 768px) {
  .container-content {
    height: 70dvh;
  }
}

/* Layar HP (468px ke bawah) */
@media (max-width: 480px) {
  .container-content {
    height: 60dvh;
  }
}
@media (max-width: 360px) {
  .container-content {
    height: 50dvh;
  }
}

/* ========================================================== */
/* HORE SECTION STYLES */
/* ========================================================== */
.container-hero {
  display: flex;
  flex-direction: column;
  flex-shrink: 1; /* Bisa mengecil secara fleksibel */
  width: 100%;
  height: 100dvh;
  overflow: hidden; /* Kunci agar tidak ada konten yang keluar dari layar */
}
@media (max-width: 1024px) {
  .container-hero {
    height: 80dvh;
  }
}
/* Layar Tablet / Laptop Kecil (991px ke bawah) */
@media (max-width: 991px) {
  .container-hero {
    height: 85dvh;
  }
}

/* Layar Tablet Portrait (768px ke bawah) */
@media (max-width: 768px) {
  .container-hero {
    height: 70dvh;
  }
}

/* Layar HP (468px ke bawah) */
@media (max-width: 480px) {
  .container-hero {
    height: 50dvh;
  }
}
@media (max-width: 360px) {
  .container-hero {
    height: 40dvh;
  }
}

.hero-container {
  position: relative;
  width: 100%;
  flex-grow: 1; /* AMBIL SEMUA RUANG */
  flex-shrink: 1; /* Boleh mengecil jika layar sangat sempit (seperti di Lenovo Anda) */
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: fill;
}
/* Layer 2: OVERLAY (Lapisan Gelap agar Teks Terbaca) */
.hero-home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Hitam transparan 50% */
  z-index: 2;
}

/* Layer 3: CONTENT (Teks di Tengah) */
.hero-home-content {
  position: absolute;
  bottom: 0; /* biar full di bawah */
  left: 0; /* mulai dari kiri */
  width: 100%; /* full width */
  padding: 0 60px 0;
  text-align: center;
  color: #ffffff;
  z-index: 3;
}
.headline-hero-home {
  font-size: 3rem; /* Ukuran besar untuk Headline */
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Efek bayangan teks */
  color: goldenrod;
}

.subheadline-hero-home {
  font-size: 1.6rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Layer 4: TOMBOL UNMUTE (Di pojok atau posisi strategis) */
.unmute-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4; /* Paling atas agar bisa diklik */
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  backdrop-filter: blur(5px); /* Efek kaca kekinian */
}
/* ========================================================== */
/* LAYAR LAPTOP KECIL / TABLET LANDSCAPE     */
/* ========================================================== */
@media (max-width: 1024px) {
  .headline-hero-home {
    font-size: 2rem;
    margin-bottom: 5px;
  }
  .subheadline-hero-home {
    font-size: 1.3rem;
  }
  .unmute-btn {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}
@media (max-width: 991px) {
  .headline-hero-home {
    font-size: 2rem;
    margin-bottom: 5px;
  }
  .subheadline-hero-home {
    font-size: 1.2rem;
  }
  .unmute-btn {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* ========================================================== */
/* LAYAR TABLET PORTRAIT (max-width: 768px)                   */
/* ========================================================== */
@media (max-width: 768px) {
  .hero-home-content {
    padding: 10px 20px;
  }
  .headline-hero-home {
    padding: 0 30px;
    font-size: 1.4rem; /* Lebih ramping untuk tablet */
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  .subheadline-hero-home {
    font-size: 1rem;
    width: 85%; /* Batasi lebar teks agar tidak menyentuh tepi */
    margin: 0 auto;
  }
  .unmute-btn {
    top: 15px; /* Lebih naik sedikit */
    right: 15px;
    font-size: 0.6rem;
    padding: 4px 6px;
  }
}

/* ========================================================== */
/* LAYAR HP (max-width: 468px)                                */
/* ========================================================== */
@media (max-width: 480px) {
  .hero-home-content {
    padding: 10px 20px;
  }
  .headline-hero-home {
    font-size: 0.9rem; /* Ukuran pas untuk layar HP yang sempit */
    line-height: 1.2;
    margin-bottom: 5px;
  }
  .subheadline-hero-home {
    font-size: 0.8rem;
    width: 100%;
  }
  /* Di HP, tombol unmute dibuat lebih minimalis agar tidak menutupi video */
  .unmute-btn {
    top: 10px;
    right: 10px;
    padding: 2px 4px;
    font-size: 0.6rem;
  }
}
@media (max-width: 360px) {
  .hero-home-content {
    padding: 8px 15px;
  }
  .headline-hero-home {
    font-size: 0.7rem; /* Ukuran pas untuk layar HP yang sempit */
    line-height: 1.2;
    margin-bottom: 3px;
  }
  .subheadline-hero-home {
    font-size: 0.55rem;
  }
  /* Di HP, tombol unmute dibuat lebih minimalis agar tidak menutupi video */
  .unmute-btn {
    top: 10px;
    right: 10px;
    padding: 2px 4px;
    font-size: 0.5rem;
  }
}

/* ========================================================== */
/* KATA SAMBUTAN GRID SYSTEM */
/* ========================================================== */
.kata-sambutan-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* Mengisi container-content (100dvh) */
  padding: 30px;
  background-color: #f4f7f9;
  overflow: hidden; /* Mencegah bocor keluar dari 100dvh */
}

.sambutan-header {
  flex: 0 0 auto; /* Tinggi pas sesuai teks */
  margin-bottom: 25px;
  border-bottom: 3px solid #f1f1f1;
  padding-bottom: 10px;
}

.sambutan-title {
  text-align: center;
  font-weight: 800;
  color: #1a1a1a;
  border-bottom: 3px solid #d4af37;
  text-transform: uppercase;
  margin: 0;
}

/* ========================================================== */
/* GRID SISTEM UTAMA */
/* ========================================================== */
.sambutan-grid {
  display: grid;
  grid-template-columns: 380px 1fr; /* Kunci lebar sidebar pimpinan */
  gap: 30px;
  flex: 1 1 auto; /* Ambil sisa ruang vertikal */
  min-height: 0; /* WAJIB: Agar konten di dalamnya bisa scroll */
}

/* ========================================================== */
/* ASIDE: IDENTITAS PIMPINAN (SISI KIRI) */
/* ========================================================== */
.sambutan-sidebar {
  display: flex;
  flex-direction: column; /* Susun Logo -> Info -> Foto secara vertikal */
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  overflow: hidden;
}

.sambutan-sidebar,
.sambutan-main-content {
  background-color: #ffffff; /* Kotak isi tetap putih murni */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Shadow halus agar terlihat premium */
}

.logo-group {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.logo-img {
  height: 60px; /* Batasi tinggi logo agar tidak makan ruang */
  width: auto;
  object-fit: contain;
}

.pimpinan-info {
  flex: 0 0 auto;
  text-align: center;
  margin-bottom: 15px;
}

.nama-pimpinan {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.jabatan-pimpinan {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

/* FOTO: Menggunakan Logika Hard-Fill */
.pimpinan-foto-wrapper {
  flex: 1 1 auto; /* Ambil SEMUA sisa ruang yang ada di sidebar */
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.foto-kakan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Foto tetap gagah tanpa gepeng */
  object-position: top; /* Fokus pada wajah pimpinan */
}

/* ========================================================== */
/* ARTICLE: ISI SAMBUTAN (SISI KANAN) */
/* ========================================================== */
.sambutan-main-content {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  min-height: 0; /* WAJIB */
}

.deskripsi-text {
  flex: 1 1 auto;
  overflow-y: auto; /* Aktifkan scroll internal jika teks panjang */
  padding-right: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

/* Kostumisasi Scrollbar agar Elegan */
.deskripsi-text::-webkit-scrollbar {
  width: 6px;
}
.deskripsi-text::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* ========================================================== */
/* RESPONSIVE MEDIA QUERIES */
/* ========================================================== */
@media (max-width: 1024px) {
  .sambutan-grid {
    grid-template-columns: 350px 1fr; /* Perkecil sidebar */
    gap: 10px;
  }
}
@media (max-width: 991px) {
  .sambutan-grid {
    grid-template-columns: 300px 1fr; /* Perkecil sidebar */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container-content {
    height: auto; /* Lepas 100dvh agar tidak memotong konten di mobile */
  }
  .kata-sambutan-wrapper {
    height: auto;
  }
  .sambutan-grid {
    grid-template-columns: 1fr; /* Stack Menjadi Satu Kolom */
  }

  .sambutan-sidebar {
    margin-top: -30px;
  }

  .pimpinan-foto-wrapper {
    width: 75%;
    height: 400px; /* Beri tinggi tetap di mobile agar foto tidak hilang */
    position: relative;
    left: 13%;
  }
  .nama-pimpinan {
    font-size: 1.8rem;
    font-weight: 700;
  }

  .jabatan-pimpinan {
    font-size: 1.4rem;
  }
  .deskripsi-text {
    overflow-y: visible; /* Scroll natural browser */
  }
}

@media (max-width: 480px) {
  .kata-sambutan-wrapper {
    padding: 15px;
  }

  .sambutan-sidebar {
    margin-top: -30px;
  }

  .pimpinan-foto-wrapper {
    height: 270px;
    position: relative;
    width: 80%;
    left: 12%;
  }
  .nama-pimpinan {
    font-size: 1.4rem;
  }

  .jabatan-pimpinan {
    font-size: 1.1rem;
  }
  .sambutan-title {
    font-size: 1rem;
  }

  .deskripsi-text {
    padding-right: 0;
    font-size: 1.1rem;
    line-height: 1.4;
  }
}
@media (max-width: 360px) {
  .container-content {
    height: auto;
  }
  .kata-sambutan-wrapper {
    padding: 10px 0;
  }

  .sambutan-sidebar {
    padding: 0;
    margin-top: -30px;
  }
  .logo-img {
    height: 45px;
  }
  .pimpinan-foto-wrapper {
    height: 270px;
    position: relative;
    width: 80%;
    left: 11%;
  }

  .nama-pimpinan {
    font-size: 1.2rem;
  }

  .jabatan-pimpinan {
    font-size: 1rem;
  }
  .sambutan-title {
    font-size: 0.7rem;
  }

  .deskripsi-text {
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

/* ========================================================== */
/* PANCAWIRA SECTION STYLES */
/* ========================================================== */
.container-pancawira {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  flex-shrink: 1; /* Bisa mengecil secara fleksibel */
  width: 100%;
  height: 100dvh;
  overflow: hidden; /* Kunci agar tidak ada konten yang keluar dari layar */
}
/* Layar Tablet / Laptop Kecil (991px ke bawah) */
@media (max-width: 1024px) {
  .container-pancawira {
    padding: 0 15px;
    height: 80dvh; /* Kurangi sedikit agar user sadar ada konten di bawahnya */
  }
}
@media (max-width: 991px) {
  .container-pancawira {
    padding: 0 15px;
    height: 85dvh; /* Kurangi sedikit agar user sadar ada konten di bawahnya */
  }
}

/* Layar Tablet Portrait (768px ke bawah) */
@media (max-width: 768px) {
  .container-pancawira {
    padding: 0 10px;
    height: 70dvh; /* Semakin kecil layar, semakin kita kurangi tingginya */
  }
}

/* Layar HP (468px ke bawah) */
@media (max-width: 480px) {
  .container-pancawira {
    padding: 0 5px;
    height: 55dvh; /* Di HP, biasanya 60% layar sudah cukup untuk satu section */
  }
}
@media (max-width: 360px) {
  .container-pancawira {
    padding: 0 5px;
    height: 45dvh; /* Di HP, biasanya 60% layar sudah cukup untuk satu section */
  }
}

.pancawira-konten {
  display: block;
  position: relative;
  width: 100%;
  min-height: 100%;
  flex-grow: 1; /* AMBIL SEMUA RUANG */
  flex-shrink: 1; /* Boleh mengecil jika layar sangat sempit (seperti di Lenovo Anda) */
  overflow: hidden;
}
.pancawira-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@media (max-width: 768px) {
  /* Khusus untuk section Pancawira, jangan gunakan height: auto */
  .pancawira-konten {
    height: 50dvh; /* Atau beri nilai px, misal 400px */
    position: relative;
    width: 100%;
  }

  .pancawira-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* Menjaga konsistensi sesuai temuan Anda */
  }
}

/* ================================================================ */
/* --- Section Team Work --- */
/* ================================================================ */
.container-teamwork {
  padding: 0 20px;
}

/* --- Judul (Tetap Menggunakan Animasi Anda) --- */
.team-title {
  margin-top: 30px;
  flex: 0 0 auto;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: #ffb347;
  animation: fireDance 2s infinite alternate;
}

/* --- Slider Container (Jendela) --- */
.team-slider-container {
  height: 70dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* --- Slider Track (Rel) --- */
.team-slider-track {
  display: flex;
  align-items: stretch; /* Supaya semua kartu tingginya sama otomatis */
  width: 100%;
  will-change: transform;
}

/* --- Kartu Anggota (The Core) --- */
.team-member-card {
  flex: 0 0 calc(100% / 3);
  height: 100%; /* Isi penuh 50dvh */
  position: relative; /* Penting untuk posisi teks nanti */
  overflow: hidden; /* Sembunyikan teks saat mouse di luar */
  box-sizing: border-box;
  padding: 10px;
  cursor: pointer;
}

/* --- Foto (Stabil & Mengikuti Wadah) --- */
.team-member-photo {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 15px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-overlay {
  position: absolute;
  width: 95%;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 30%;
  background: rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    to top,
    rgba(0, 0, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );

  /* KUNCI EFEK KACA: Blur di belakangnya */
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%); /* Support Safari */

  /* Garis tepi tipis agar terlihat seperti pinggiran kaca */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);

  padding: 20px 15px;
  border-radius: 0 0 15px 15px;
  box-sizing: border-box;

  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

/* --- Trigger Hover --- */
.team-member-card:hover .info-overlay {
  transform: translateY(0); /* Naik menutupi setengah foto */
}

.team-member-card:hover .team-member-photo {
  transform: scale(1.1); /* Sedikit zoom agar lebih hidup */
}

/* --- Area Teks (Nama & Jabatan) --- */
.team-member-name {
  color: rgb(255, 183, 0);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Bayangan teks agar terbaca */
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 5px 0;
}

.team-member-position {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

/* ================================================================ */
/* --- Responsive Media Queries --- */
/* ================================================================ */

/* Tablet (2 Kartu Sejajar) */
@media (max-width: 1024px) {
  .team-slider-container {
    width: 100%;
    height: 70dvh;
  }
  .team-member-card {
    flex: 0 0 50%;
  }
}
/* Tablet (2 Kartu Sejajar) */
@media (max-width: 991px) {
  .team-slider-container {
    width: 100%;
    height: 75dvh;
  }
  .team-member-card {
    flex: 0 0 50%;
  }
}

/* Mobile Standar (1 Kartu) */
@media (max-width: 768px) {
  .team-slider-container {
    width: 80%;
    height: 85dvh;
  }
  .team-member-card {
    left: 20%;
    padding: 10px;
    flex: 0 0 100%;
  }
  .team-member-photo {
    width: 80%;
    height: 100%;
  }
  .info-overlay {
    width: 80%;
  }
}

/* HP 468px (Atur Ulang DVH) */
@media (max-width: 480px) {
  .team-slider-container {
    width: 100%;
    height: 77dvh;
  }
  .team-title {
    font-size: 1.6rem;
  }
  .team-member-photo {
    width: 100%;
    height: 100%;
  }
  .team-member-card {
    left: 0;
    padding: 10px;
    flex: 0 0 100%;
  }
  .info-overlay {
    width: 95%;
  }
}
@media (max-width: 360px) {
  .team-slider-container {
    width: 100%;
    height: 55dvh;
  }
  .team-title {
    font-size: 1.6rem;
  }
  .team-member-photo {
    width: 100%;
    height: 100%;
  }
  .team-member-card {
    left: 0;
    padding: 10px;
    flex: 0 0 100%;
  }
  .info-overlay {
    width: 95%;
  }
}

/* --- Masukkan Animasi fireDance Anda di sini --- */
@keyframes fireDance {
  0% {
    color: #ff9c57;
    text-shadow: 0 1px #ff6f47, 0 5px 10px rgba(255, 147, 77, 0.6);
    transform: translateY(0);
  }
  100% {
    color: #ffb36e;
    text-shadow: 0 2px #ff7248, 0 6px 12px rgba(255, 167, 95, 0.7);
    transform: translateY(-2px);
  }
}

/* ======================= */
/* ===== IKM SECTION ===== */
/* ====================== */
.ikm-title {
  margin-top: 30px;
  text-align: center;
}

/* --- IKM Animated Title (Scoped) --- */
@keyframes mediaTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Title Style (KHUSUS Media Layanan Masyarakat) ===== */
.ikm-title h2.ikm-title-animate {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1e88e5; /* biru profesional */

  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.18), 0 6px 10px rgba(0, 0, 0, 0.15);

  opacity: 0;
  animation: mediaTitleReveal 0.9s ease-out forwards;
}

/* --- Container Grid --- */
.ikm-grid-container {
  padding: 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Kolom di Desktop */
  gap: 10px;
}

/* --- Item Grid (Kotak Pembungkus) --- */
.ikm-grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Mengunci rasio agar simetris sempurna */
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #f5f5f5; /* Background netral */
}

/* --- Media (Gambar & Video) --- */
.ikm-grid-item .ikm-media {
  width: 100%;
  height: 100%;
  display: block;

  /* Gunakan cover agar penuh, TAPI kita kontrol posisinya */
  object-fit: cover;
  object-position: center;
}

/* --- Responsive: Tampilan HP --- */
@media (max-width: 991px) {
  .ikm-title h2.ikm-title-animate {
    font-size: 1.6rem;
  }
}
/* --- Responsive: Tampilan HP --- */
@media (max-width: 768px) {
  .ikm-grid-container {
    grid-template-columns: 1fr; /* 1 Kolom di HP */
    gap: 20px;
  }

  .ikm-title h2.ikm-title-animate {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.4rem;
  }
}
@media (max-width: 468px) {
  .ikm-title h2.ikm-title-animate {
    font-size: 1.2rem;
  }
}

/* ========================================= */
/* SECTION LINK TERTAUT                      */
/* ========================================= */
/* BACKGROUND IMAGE LINK TERTAUT  */
.link-tertaut-background {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: -1;
  overflow: hidden;
}

.link-tertaut-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  z-index: 1;
  pointer-events: none; /* overlay tidak mengganggu klik */
}

/* gambar */
.link-tertaut-background .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* KONTENT LINK TERTAUT  */
.related-links-section {
  position: relative;
  padding: 20px 0;
  /* margin-top: 20px; */
  /* overflow: hidden; */
  z-index: 1;
}

.related-links-section h2 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: 2.5em;
  font-weight: 700;
  color: goldenrod;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

/* Track/jalur tempat item-item slider bergerak */
.related-links-slider {
  display: flex; /* Mengatur item secara horizontal */
  width: fit-content; /* Biarkan lebar mengikuti konten item yang diduplikasi */
  animation: scroll-infinity 20s linear infinite; /* Ini adalah default, durasi akan di-override oleh JS */
  white-space: nowrap;
}

/* Styling untuk setiap item link dalam slider */
.related-link-item {
  flex-shrink: 0; /* agar item tidak mengecil */
  width: 200px; /* Lebar setiap item, sesuaikan */
  margin: 0 15px; /* Jarak antar item */
  padding: 15px;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.related-link-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-link-item img {
  width: 150px;
  max-width: 150px; /* Lebar maksimal gambar */
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.related-link-item h3 {
  font-size: 1em;
  margin: 0;
  color: cyan;
}

/* Animasi untuk scroll tak terbatas */
/* Nilai 'to' transformX akan diatur secara dinamis oleh JavaScript */
@keyframes scroll-infinity {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Nilai placeholder, akan di-override JS */
  }
}

/* Styling untuk tombol navigasi */
/* Container utama untuk slider */
.slider-container {
  position: relative;
  padding-bottom: 70px;
  padding-top: 10px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 10;
}

.slider-nav-btn {
  position: absolute;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5em;
  line-height: 1;
  z-index: 10; /* Pastikan tombol di atas slider */
  transition: background-color 0.3s ease;
  display: none;
}

.slider-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: 30%; /* Sesuaikan posisi dari kiri */
  transform: translateX(-50%); /* Agar berada di tengah posisi left */
}

.next-btn {
  right: 30%;
  transform: translateX(50%);
}

/* Media queries untuk responsivitas */
/* Untuk layar sedang (tablet) */
@media (max-width: 1024px) {
  .related-link-item {
    width: 220px;
    margin: 0 10px;
  }
  .slider-container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .related-link-item {
    width: 200px; /* Ukuran lebih kecil untuk tablet */
    margin: 0 10px;
  }

  .slider-nav-btn {
    top: auto; /* Pastikan top tidak aktif */
    bottom: 10px; /* Dekatkan lagi ke slider di mobile. SESUAIKAN */
    transform: none; /* Reset transform */
    padding: 8px 12px;
    font-size: 1.2em;
    border-radius: 4px;
  }

  .prev-btn {
    left: 25%;
    right: auto;
  }
  .next-btn {
    right: 25%;
    left: auto;
  }
}

@media (max-width: 480px) {
  .related-link-item {
    width: 150px; /* Ukuran lebih kecil untuk mobile */
    margin: 0 8px;
  }

  .related-links-section {
    margin-bottom: 0;
  }

  .related-links-section h2 {
    margin-top: -10px;
    font-size: 1.8em;
  }

  .related-link-item h3 {
    font-size: 0.8em;
  }

  .slider-nav-btn {
    top: auto; /* Pastikan top tidak aktif */
    bottom: 10px; /* Dekatkan lagi ke slider di mobile. SESUAIKAN */
    transform: none; /* Reset transform */
    padding: 8px 12px;
    font-size: 1.2em;
    border-radius: 4px;
  }

  .prev-btn {
    left: 25%;
    right: auto;
  }
  .next-btn {
    right: 25%;
    left: auto;
  }
}

/* ========================================= */
/* SECTION JENIS LAYANAN STYLING            */
/* ========================================= */
.layanan-publik-section {
  padding: 10px 0;
  text-align: center;
  background-color: #fff;
  border-bottom: 2px solid var(--accent-gold);
}

.layanan-publik-section h2 {
  margin-bottom: 5px;
  margin-top: 20px;
  font-size: 2.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
  color: #0004ff;
  text-shadow: 0px 1px #577079, 0px 2px #577079, 0px 3px #577079,
    0px 4px #577079, 0px 5px #577079, 0px 6px #577079, 0px 7px #577079,
    0px 7px 10px #333;
}

.layanan-slider-container {
  position: relative;
  width: 95%;
  height: 65dvh;
  margin: 0 auto;
  overflow: hidden; /* Penting untuk menyembunyikan item saat bergeser */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #fff;
}

.layanan-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0; /* Padding vertikal di dalam container */
}

.layanan-slider-track .isi {
  text-align: justify;
}

.layanan-item {
  flex-shrink: 0;
  width: calc(
    (100% / 3) - 30px
  ); /* Default: 3 item per tampilan, dikurangi margin total */
  margin: 0 15px; /* Margin kiri dan kanan 15px */
  padding: 15px;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-sizing: border-box; /* SANGAT PENTING: padding dan border tidak menambah lebar */
}

.layanan-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.layanan-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.layanan-item span {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.1em;
  color: #0056b3;
  line-height: 1.2;
  text-align: justify;
  /* overflow: hidden; */
}
.layanan-item p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: justify;
}

/* Styling untuk tombol navigasi berita */
.layanan-nav-btn {
  background: #a02020;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.3s;
  opacity: 1;
  margin: 0 5px;
  min-width: 50px;
  min-height: 40px;
}

.layanan-nav-btn:hover {
  background: goldenrod;
  color: black;
}

.layanan-prev-btn {
  left: calc(50% - 75px); /* Tengah, geser ke kiri sedikit */
  transform: translateX(-50%);
}

.layanan-next-btn {
  right: calc(50% - 75px); /* Tengah, geser ke kanan sedikit */
  transform: translateX(50%);
}

/* --- Media Queries untuk Responsivitas Berita Terkini --- */
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .layanan-slider-container {
    width: 95%;
    height: 65dvh;
  }
  .layanan-item {
    width: calc(
      (100% / 2) - 20px
    ); /* 2 item per tampilan, dikurangi margin total */
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 12px;
  }
  .layanan-item img {
    height: 250px;
  }
  .layanan-item span {
    font-size: 1.3rem;
  }
}
@media (max-width: 991px) {
  .layanan-slider-container {
    width: 95%;
    height: 75dvh;
  }
  .layanan-item img {
    height: 255px;
  }
  .layanan-item span {
    font-size: 1.2rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .layanan-slider-container {
    width: 90%;
    height: 90dvh;
  }

  .layanan-publik-section h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .layanan-item {
    width: calc(100% - 20px); /* 1 item per tampilan, dikurangi margin total */
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 10px;
  }

  .layanan-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
  }

  .layanan-item span {
    font-size: 1.1rem;
  }
  .layanan-item p {
    font-size: 1rem;
  }
  .layanan-nav-btn {
    margin: 0 3px;
    min-width: 40px;
    min-height: 35px;
  }
}

@media (max-width: 480px) {
  .layanan-slider-container {
    width: 95%;
    height: 85dvh;
  }
  .layanan-item img {
    height: 250px;
  }
  .layanan-item span {
    font-size: 1rem;
  }
  .layanan-nav-btn {
    min-width: 40px;
    min-height: 35px;
  }
}
@media (max-width: 360px) {
  .layanan-slider-container {
    width: 100%;
    height: 75dvh;
  }
  .layanan-item img {
    height: 200px;
  }
  .layanan-item span {
    font-size: 0.8rem;
  }

  .layanan-nav-btn {
    min-width: 40px;
    min-height: 35px;
  }
}
/* ========================================= */
/* MODAL LAYANAN PUBLIK             */
/* ========================================= */
/* 1. Backdrop/Overlay */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  /* Kunci: Sembunyikan secara default */
  display: none;
  overflow-y: auto;
}

/* 2. Kotak Modal */
.custom-modal-content {
  background: #fff;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 800px;
  position: relative;
}

/* 3. Styling Konten */
.modal-image-container {
  text-align: center;
  margin-bottom: 20px;
}

#modal-gambar-layanan {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#modal-nama-layanan {
  text-align: center;
}
#modal-deskripsi-layanan {
  text-align: justify;
}

/* 4. Tombol Tutup */
.close-button-detail {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
}

.custom-close-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ========================================= */
/* SECTION ALAMAT STYLES                     */
/* ========================================= */
/* FOOTER STYLE  */
.alamat-container {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 1; /* Bisa mengecil secara fleksibel */
  justify-content: space-between;
  width: 100%;
  min-height: 35dvh;
  /* max-height: 100dvh; */
  overflow: hidden;
  z-index: 5;
}

/* BACKGROUND SLIDESHOW FOOTER */
.alamat-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* berada DI BELAKANG konten */
}

.alamat-background-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    rgba(20, 20, 20, 0.55),
    /* atas: abu gelap lembut */ rgba(20, 20, 20, 0.75)
      /* bawah: sedikit lebih gelap */
  );
}

#alamatBgSlideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.alamat-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* fade effect tetap */
  overflow: hidden;
}

.alamat-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  overflow: hidden;
}

.alamat-slide.active {
  opacity: 1;
}

/* ========================================= */
/* RESPONSIVE BACKGROUND SLIDESHOW alamat FOR MOBILE  */
/* ========================================= */
@media (max-width: 480px) {
  .alamat-background-wrapper,
  #alamatBgSlideshow,
  .alamat-slide {
    min-height: 420px;
  }
}

/* Bagian Atas Footer (Kontainer Kolom) */
/* pastikan konten alamat di depan background */
.alamat-top {
  position: relative;
  z-index: 5;
}

/* Kontainer Flexbox untuk Kolom Footer (Konten yang sebenarnya) */
.alamat-grid-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 10px 10px;
}

/* Setiap Kolom Footer (DEFAULT: Untuk Desktop) */
.alamat-column {
  flex: 1 1 calc(33.333% - 13.333px);
  min-width: 280px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
/* .telephone {
  background-color: rgba(192, 182, 182, 0.411);
}
.contact-info {
  background-color: rgba(192, 182, 182, 0.411);
} */

.alamat-column h3 {
  color: greenyellow;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.3em;
  letter-spacing: 0.1em;
  text-shadow: 0px 1px #797657, 0px 2px #797657, 0px 3px #797657,
    0px 4px #797657, 0px 5px #797657, 0px 6px #797657, 0px 7px #797657,
    0px 7px 10px #333;
}

.alamat-column .tengah {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  letter-spacing: 0.1em;
  /* text-align: center; */
  color: gold;
  text-shadow: 0px 1px #577079, 0px 2px #577079, 0px 3px #577079,
    0px 4px #577079, 0px 5px #577079, 0px 6px #577079, 0px 7px #577079,
    0px 7px 10px #333;
}

.alamat-column .alamat {
  line-height: 0.8em;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: justify;
  font-size: 1.1em;
  color: #45bef7;
  letter-spacing: 0.1em;
}

.alamat-column .telp {
  margin-top: 10px;
  font-size: 1.2em;
  color: greenyellow;
  letter-spacing: 0.1em;
}

.alamat-column p {
  font-size: 0.95em;
  line-height: 1em;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: justify;
}

/* Styling untuk link sosial media */
.social-links-alamat {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.social-links-alamat a {
  color: #fff;
  font-size: 1em;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background-color: transparent;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links-alamat a:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

/* --- Survey Feedback Styles --- */
.alamat-column.survey-feedback {
  background-color: transparent;
  /* padding: 20px; */
  border-radius: 12px;
  /* background-color: rgba(192, 182, 182, 0.411); */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  /* margin-bottom: 20px; */
}

.survey-feedback h3 {
  color: #007bff; /* Warna biru untuk judul */
  margin-bottom: 10px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center; /* Pusatkan judul */
}

.survey-feedback p {
  color: #ffee00; /* Warna biru untuk judul */
  line-height: 20px;
}

.survey-feedback h3 i {
  margin-right: 12px;
  font-size: 1.5em;
}

.survey-question {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
  margin-top: 10px;
}

.survey-buttons {
  display: flex;
  flex-wrap: wrap; /* Tombol akan wrap jika ruang tidak cukup */
  justify-content: center; /* Pusatkan tombol secara horizontal */
  gap: 10px;
  margin-bottom: 20px;
}

.form-sangat-puas .form-control {
  width: 100%;
  border: 1px solid #ccccccb4;
  background-color: rgba(255, 255, 255, 0.1);
  color: gold;
}
.form-sangat-puas .form-control::placeholder {
  color: gold;
  opacity: 0.6;
  font-style: italic;
  font-size: 0.9rem;
}

.form-puas .form-control {
  width: 100%;
  border: 1px solid #ccccccb4;
  background-color: rgba(255, 255, 255, 0.1);
  color: gold;
}
.form-puas .form-control::placeholder {
  color: gold;
  opacity: 0.6;
  font-style: italic;
  font-size: 0.9rem;
}

.form-tidak-puas .form-control {
  width: 100%;
  border: 1px solid #ccccccb4;
  background-color: rgba(255, 255, 255, 0.1);
  color: gold;
}
.form-tidak-puas .form-control::placeholder {
  color: gold;
  opacity: 0.6;
  font-style: italic;
  font-size: 0.9rem;
}

.form-sangat-puas,
.form-puas,
.form-tidak-puas {
  display: none !important;
}

/* Ini adalah style untuk pesan flashdata yang tampil setelah submit form */
.survey-message {
  margin-top: 25px;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05em;
  animation: fadeIn 0.5s forwards; /* Animasi muncul */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Tambahkan sedikit bayangan */
}

.survey-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.survey-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animasi untuk pesan */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================= */
/* MEDIA QUERIES UNTUK RESPONSIVITAS  */
/* ========================================= */

@media (max-width: 1024px) {
  .alamat-grid-content {
    gap: 15px;
    padding: 0 15px 15px;
  }
  .alamat-column {
    flex: 1 1 calc(50% - 7.5px);
    min-height: 220px;
    padding: 15px;
  }
  .contact-info {
    min-height: 20dvh;
  }
  .telephone {
    min-height: 20dvh;
  }
  .survey-feedback {
    min-height: 15dvh;
    padding: 0 100px;
  }
  .survey-feedback h3 {
    margin-bottom: 0;
    font-size: 1.6rem;
  }
  .alamat-column .survey-question {
    font-size: 1.2rem;
    justify-content: center;
    text-align: center;
  }
  .survey-buttons {
    gap: 20px;
  }
}
@media (max-width: 992px) {
  .alamat-grid-content {
    gap: 15px;
    padding: 0 15px 15px;
  }
  .alamat-column {
    flex: 1 1 calc(50% - 7.5px);
    min-height: 220px;
    padding: 15px;
  }
  .contact-info {
    min-height: 20dvh;
  }
  .contact-info .alamat {
    padding: 0 25px;
  }
  .telephone {
    min-height: 20dvh;
  }
  .telephone-card .telp {
    padding: 0 25px;
  }
  .social-links-alamat {
    padding: 0 25px;
  }
  .survey-feedback {
    min-height: 15dvh;
    padding: 0 100px;
  }
  .survey-feedback h3 {
    margin-bottom: 0;
    font-size: 1.6rem;
  }
  .alamat-column .survey-question {
    font-size: 1.2rem;
    justify-content: center;
    text-align: center;
  }
  .survey-buttons {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .alamat-grid-content {
    gap: 15px;
    padding: 0 15px 15px;
  }
  .alamat-column {
    flex: 1 1 calc(50% - 7.5px);
    min-height: 220px;
    padding: 15px;
  }
  .alamat-column .alamat {
    margin-bottom: 0;
  }
  .alamat-column h3 {
    font-size: 1.2rem;
  }
  .alamat-column .tengah {
    font-size: 1.2rem;
  }
  .contact-info .alamat {
    padding: 0 25px;
    font-size: 0.9rem;
  }
  .contact-info {
    min-height: 20dvh;
  }
  .telephone {
    min-height: 20dvh;
  }
  .telephone-card .telp {
    padding: 0 25px;
    font-size: 1rem;
  }
  .social-links-alamat {
    padding: 0 25px;
  }
  .social-links-alamat a {
    font-size: 1.2em;
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }
  .survey-feedback {
    min-height: 15dvh;
    padding: 0 100px;
  }
  .survey-feedback h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
  }
  .alamat-column .survey-question {
    font-size: 1rem;
    justify-content: center;
    text-align: center;
  }
  .survey-buttons {
    gap: 20px;
  }
}

/* Media Query untuk ponsel yang sangat kecil */
@media (max-width: 480px) {
  .alamat-grid-content {
    gap: 5px;
  }
  .alamat-column {
    padding: 10px;
  }
  .alamat-column h3 {
    font-size: 1.1rem;
  }
  .survey-feedback h3 {
    justify-content: left;
    align-items: start;
    text-align: left;
    font-size: 1.1rem;
  }
  .survey-feedback .survey-question {
    padding: 0 10px;
    font-size: 0.9rem;
    text-align: left;
  }
  .alamat-column .tengah {
    font-size: 1.1rem;
  }
    .social-links-alamat {
    margin-left: -20px;
  }
  .survey-buttons {
    gap: 15px;
  }
}
@media (max-width: 360px) {
  .alamat-grid-content {
    gap: 2px;
  }
  .alamat-column {
    padding: 10px;
  }
  .alamat-column h3 {
    font-size: 0.9rem;
  }
  .alamat-column .tengah {
    font-size: 0.9rem;
  }
  .contact-info .alamat {
    margin-top: 0;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .telephone-card .telp {
    margin-top: 0;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .social-links-alamat a {
    margin-top: 0;
    font-size: 1em;
    width: 25px;
    height: 25px;
    border-radius: 3px;
  }
  .survey-feedback h3 {
    justify-content: left;
    align-items: start;
    text-align: left;
    font-size: 0.9rem;
  }
  .survey-feedback .survey-question {
    padding: 0 10px;
    font-size: 0.75rem;
    text-align: left;
  }
  .survey-buttons {
    gap: 10px;
  }
}
