/* ========================================================== */
/* 1. HERO SECTION STYLES TRANTIBUM */
/* ========================================================== */

.hero-trantibum {
  position: relative;
  width: 100%;
  height: 550px;
  /* padding-bottom: 56.25%; */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-tibum-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Lapisan Overlay (TETAP SAMA) */
.hero-tibum-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

/* Lapisan Konten */
.hero-tibum-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;
  z-index: 2;
  margin-bottom: 10px;
}

.headline-trantibum {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #00f7ff;
  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;
}

.subheadline-trantibum {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
}

.defaul-gambar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ========================================================== */
/* MEDIA QUERIES (RESPONSIVE) - HERO SECTION */
/* ========================================================== */
/* Tablet dan Layar Kecil (Max-width 992px) */
@media (max-width: 992px) {
  .hero-trantibum {
    height: 350px;
  }
  .headline-trantibum {
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
  }
  .subheadline-trantibum {
    font-size: 1rem;
    letter-spacing: 0.1rem;
  }
}

/* Mobile Devices (Max-width 768px) */
@media (max-width: 768px) {
  .hero-trantibum {
    height: 250px;
  }
  .hero-tibum-content {
    padding: 0 20px 0;
  }
  .headline-trantibum {
    font-size: 0.8rem;
  }
  .subheadline-trantibum {
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ========================================================== */
/* 2. SECTION Tugas Pokok dan Fungsi STYLES */
/* ========================================================== */
/* CONTAINER SLIDER UTAMA (Posisi relatif untuk tombol) */
.section-fungsi-inti {
  padding: 0 40px 0;
  text-align: center;
  background-color: #fff;
}

.section-title {
  margin-top: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ff0000;
  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;
}
.section-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  text-align: justify;
}
.slider-container-tupoksi {
  position: relative;
  max-width: 1200px; /* Batasan lebar maksimal */
  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;
}

/* CONTAINER CARD YANG AKAN BERGESER (Slider Track) */
.slider-track-tupoksi {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

/* Styling setiap Kartu Fungsi */
.fungsi-card {
  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: 0 15px 0;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  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 */
}

.fungsi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styling Gambar/Ikon */
.fungsi-card-icon {
  margin-top: 10px;
  width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.fungsi-card h3 {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.1em;
  color: #0056b3;
  line-height: 1.2;
  text-align: center;
  /* overflow: hidden; */
}

/* 💥 ELEMEN KRUSIAL: Menjaga Tinggi Deskripsi Konsisten */
.fungsi-card p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: justify;
}

.slider-controls-tupoksi {
  margin-bottom: 10px;
  text-align: center;
}

/* Tombol Navigasi */
.slider-nav-btn-tupoksi {
  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; /* Selalu tampilkan opacity penuh */
  margin: 0 5px; /* Jarak antar tombol */
  min-width: 50px; /* Lebar tombol agar konsisten */
  min-height: 40px; /* Tinggi tombol agar konsisten */
}

.slider-nav-btn-tupoksi:hover:not(:disabled) {
  background: #c23e3e;
}

.slider-nav-btn-tupoksi:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================================== */
/* MEDIA QUERIES (RESPONSIVE) UNTUK SLIDER TUPOKSI */
/* ========================================================== */
@media (max-width: 1024px) {
  .slider-container-tupoksi {
    max-width: 90%; /* Menggunakan lebar persentase */
    padding-bottom: 5px;
  }
  .section-title {
    margin-top: 30px;
    font-size: 1.6rem;
  }
  .section-subtitle {
    margin-top: 15px;
    font-size: 1rem;
  }
  .fungsi-card {
    width: calc((100% / 2) - 20px);
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 12px;
  }
  .fungsi-card img {
    width: 180px;
    height: 150px;
  }
}

/* Tablet (Max-width 992px) - Tampilkan 2 kartu */
@media (max-width: 992px) {
  .section-title {
    margin-top: 30px;
    font-size: 1.6rem;
  }
  .section-subtitle {
    margin-top: 15px;
    font-size: 1rem;
  }
  .fungsi-card {
    width: calc((100% / 2) - 20px);
    margin: 0 10px;
    padding: 12px;
  }

  .fungsi-card img {
    width: 180px;
    height: 150px;
  }
}

/* Mobile Devices (Max-width 768px) - Tampilkan 1 kartu */
@media (max-width: 768px) {
  .slider-container-tupoksi {
    max-width: 95%;
    padding-bottom: 5px;
  }
  .section-title {
    margin-top: 30px;
    font-size: 1.4rem;
  }
  .section-subtitle {
    margin-top: 15px;
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .fungsi-card {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 10px 0;
  }

  .fungsi-card img {
    width: 150px;
    height: 120px;
  }

  .fungsi-card h3 {
    font-size: 1em;
    padding: 0 10px 0;
  }
  .fungsi-card p {
    font-size: 0.8em;
    padding: 0 10px 0;
  }
  .slider-nav-btn-tupoksi {
    font-size: 1rem;
    min-width: 30px;
    min-height: 20px;
  }
}

/* ========================================================== */
/* CSS MODAL UNTUK DETAIL TUPOKSI TIBUM  */
/* ========================================================== */
/* 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-tupoksi-tibum {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#modal-nama-tupoksi-tibum {
  text-align: center;
}
#modal-deskripsi-tupoksi-tibum {
  text-align: justify;
}

/* 4. Tombol Tutup */
.close-btn-tupoksi-tibum {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #df7a33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ================================================================ */
/* --- SECTION ALUR PELAPORAN --- */
/* ================================================================ */
.title-section {
  padding: 0 60px 0;
}
/* --- Untuk Title Alur Pelaporan --- */
@keyframes fireDance {
  0% {
    color: #ff9c57;
    text-shadow: 0 1px #ff6f47, 0 2px #ff7f50, 0 3px #ff944d, 0 4px #ffb347,
      0 5px 10px rgba(255, 147, 77, 0.6);
    transform: translateY(0);
  }
  25% {
    color: #ffb36e;
    text-shadow: 0 2px #ff7045, 0 3px #ff8150, 0 4px #ffa55a, 0 5px #ffc367,
      0 6px 12px rgba(255, 163, 90, 0.7);
    transform: translateY(-2px);
  }
  50% {
    color: #ff9c57;
    text-shadow: 0 1px #ff6f47, 0 2px #ff7f50, 0 3px #ff944d, 0 4px #ffb347,
      0 5px 10px rgba(255, 147, 77, 0.6);
    transform: translateY(1px);
  }
  75% {
    color: #ffb36e;
    text-shadow: 0 2px #ff7248, 0 3px #ff8453, 0 4px #ffaa5f, 0 5px #ffc76a,
      0 6px 12px rgba(255, 167, 95, 0.7);
    transform: translateY(-1px);
  }
  100% {
    color: #ff9c57;
    text-shadow: 0 1px #ff6f47, 0 2px #ff7f50, 0 3px #ff944d, 0 4px #ffb347,
      0 5px 10px rgba(255, 147, 77, 0.6);
    transform: translateY(0);
  }
}
.section-alur-title {
  margin-top: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 900;
  color: #ffb347;
  animation: fireDance 2s infinite alternate;
}
.section-alur-subtitle {
  margin-top: 15px;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
}

.alur-content {
  width: 100%;
  display: flex;
  justify-content: center; /* Pusatkan gambar horizontal */
  align-items: center; /* Pusatkan gambar vertikal */
  overflow: hidden; /* Menyembunyikan bagian gambar yang terpotong */
  position: relative; /* Diperlukan jika Anda ingin menambahkan teks di atas gambar */
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.alur-image {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain; /* Mengisi area tanpa terdistorsi/meregang, memotong jika perlu */
  object-position: center; /* Pusatkan fokus gambar */
  display: block;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .title-section {
    padding: 0 40px 0;
  }
  .alur-content {
    padding: 0 15px 0;
    margin-bottom: 10px;
  }
  .section-alur-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .title-section {
    padding: 0 20px 0;
  }
  .section-alur-title {
    /* padding: 0 5px 0; */
    font-size: 1rem;
  }
  .section-alur-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0;
    text-align: justify;
  }
  .alur-content {
    padding: 0 15px 0;
    margin-top: 10px;
    margin-bottom: 0;
  }
  .alur-image {
    max-height: 85vh;
  }
}

/* ========================================================== */
/* 2. SECTION SOP Tibum STYLES */
/* ========================================================== */
/* CONTAINER SLIDER UTAMA (Posisi relatif untuk tombol) */
.section-sop-inti {
  padding: 0 40px 0;
  text-align: center;
  background-color: #fff;
}

.title-sop-tibum {
  margin-top: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ff00ff;
  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;
}
.subtitle-sop-tibum {
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  text-align: justify;
}
.slider-container-sop-tibum {
  position: relative;
  max-width: 1200px; /* Batasan lebar maksimal */
  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;
}

/* CONTAINER CARD YANG AKAN BERGESER (Slider Track) */
.slider-track-sop-tibum {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

/* Styling setiap Kartu Fungsi */
.sop-tibum-card {
  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: 0 15px 0;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  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 */
}

.sop-tibum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styling Gambar/Ikon */
.sop-tibum-card-icon {
  margin-top: 10px;
  width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.sop-tibum-card h3 {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.1em;
  color: #0056b3;
  line-height: 1.2;
  text-align: center;
  /* overflow: hidden; */
}

/* ELEMEN KRUSIAL: Menjaga Tinggi Deskripsi Konsisten */
.sop-tibum-card p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: justify;
}

.slider-controls-sop-tibum {
  margin-bottom: 10px;
  text-align: center;
}

/* Tombol Navigasi */
.slider-nav-btn-sop-tibum {
  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; /* Selalu tampilkan opacity penuh */
  margin: 0 5px; /* Jarak antar tombol */
  min-width: 50px; /* Lebar tombol agar konsisten */
  min-height: 40px; /* Tinggi tombol agar konsisten */
}

.slider-nav-btn-sop-tibum:hover:not(:disabled) {
  background: #c23e3e;
}

.slider-nav-btn-sop-tibum:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================================== */
/* MEDIA QUERIES (RESPONSIVE) UNTUK SLIDER SOP TIBUM */
/* ========================================================== */
@media (max-width: 1024px) {
  .slider-container-sop-tibum {
    max-width: 90%; /* Menggunakan lebar persentase */
    padding-bottom: 5px;
  }
  .title-sop-tibum {
    margin-top: 30px;
    font-size: 1.6rem;
  }
  .subtitle-sop-tibum {
    margin-top: 15px;
    font-size: 1rem;
  }
  .sop-tibum-card {
    width: calc((100% / 2) - 20px);
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 12px;
  }
  .sop-tibum-card img {
    width: 180px;
    height: 150px;
  }
}

/* Tablet (Max-width 992px) - Tampilkan 2 kartu */
@media (max-width: 992px) {
  .title-sop-tibum {
    margin-top: 30px;
    font-size: 1.6rem;
  }
  .subtitle-sop-tibum {
    margin-top: 15px;
    font-size: 1rem;
  }
  .sop-tibum-card {
    width: calc((100% / 2) - 20px);
    margin: 0 10px;
    padding: 12px;
  }

  .sop-tibum-card img {
    width: 180px;
    height: 150px;
  }
}

/* Mobile Devices (Max-width 768px) - Tampilkan 1 kartu */
@media (max-width: 768px) {
  .slider-container-sop-tibum {
    max-width: 95%;
    padding-bottom: 5px;
  }
  .title-sop-tibum {
    margin-top: 30px;
    font-size: 1.4rem;
  }
  .subtitle-sop-tibum {
    margin-top: 15px;
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  .sop-tibum-card {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 10px 0;
  }

  .sop-tibum-card img {
    width: 150px;
    height: 120px;
  }

  .sop-tibum-card h3 {
    font-size: 1em;
    padding: 0 10px 0;
  }
  .sop-tibum-card p {
    font-size: 0.8em;
    padding: 0 10px 0;
  }
  .slider-nav-btn-sop-tibum {
    font-size: 1rem;
    min-width: 30px;
    min-height: 20px;
  }
}
/* ========================================================== */
/* CSS MODAL UNTUK DETAIL SOP TIBUM  */
/* ========================================================== */
/* 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-sop-tibum {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#modal-nama-sop-tibum {
  text-align: center;
}
#modal-deskripsi-sop-tibum {
  text-align: justify;
}

/* 4. Tombol Tutup */
.close-btn-sop-tibum {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #df7a33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =========================================*/
/* ===== STYLING UNTUK GALERY KEGIATAN =====*/
/* =========================================*/
/* --- STYLING UTAMA (FILTER & GRID) --- */
.tibum-documentasi-section {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.galeri-tibum-titel {
  margin-bottom: 20px;
  font-size: 2.8em;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  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;
}

.search-bar-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-bar-wrapper input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-btn {
  padding: 10px 20px;
  background-color: #e3001b; /* Merah Damkar */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Advanced Filters */
.advanced-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  text-align: center;
}

.advanced-filters select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Grid 4 Kolom */
.galeri-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.galeri-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.galeri-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* OVERLAY PARSIAL (galeri-info-partial) */
.galeri-info-partial {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparan di bawah */
  color: white;
  padding: 10px;
  text-align: left;

  /* Efek Geser/Sembunyi */
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.galeri-info-partial h3 {
  font-size: 0.8rem;
  margin: 0;
  text-align: justify;
  line-height: 1.2;
  font-weight: bold;
}

.galeri-info-partial .tanggal {
  font-size: 12px;
  margin: 5px 0 0 0;
}

/* Interaksi Hover: Tampilkan overlay & Zoom */
.galeri-item:hover .galeri-info-partial {
  transform: translateY(0);
}

.galeri-item:hover img {
  transform: scale(1.03);
}

/* Pagination */
.pagination-wrapper {
  text-align: center;
  margin-top: 30px;
}
/* Pagination */
.pagination-wrapper .pagination {
  justify-content: center;
  text-align: center;
}

/* Responsif */
@media (max-width: 992px) {
  .tibum-documentasi-section {
    padding: 10px;
  }
  .galeri-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
}
@media (max-width: 768px) {
  .galeri-tibum-titel {
    margin-top: 10px;
    font-size: 1.8rem;
  }
  .galeri-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================*/
/* ===== STYLING UNTUK BARCHART SATLINMAS =====*/
/* =========================================*/
/* Container Utama Section */
.barchart-satlinmas {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linmas-titel {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #01ff01;
  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;
}

/* Wrapper Kontainer untuk Layouting */
.container-linmas {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Container Chart & Error Wrapper */
.chart-container-linmas {
  position: relative;
  margin: 10px auto;
  height: 400px; /* Tinggi ideal desktop */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Membuat isi (termasuk error) di tengah vertikal */
}

/* Memastikan Canvas mengikuti wrapper */
#chartSatlinmasKecamatan {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Styling Pesan Error UI agar Berada di Tengah Area Chart */
#error-satlinmas {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#error-satlinmas .alert {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem; /* Sedikit disesuaikan agar proporsional */
  /* padding: 20px; */
  width: 80%; /* Agar tidak terlalu lebar ke pinggir */
  border-radius: 8px;
  border: 2px dashed #ffc107; /* Pakai dashed agar terlihat seperti placeholder */
  background-color: #fff3cd;
  color: #ff0000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- TABLET (Layar di bawah 992px) --- */
@media (max-width: 991px) {
  .chart-container-linmas {
    height: 350px;
  }

  .linmas-titel {
    font-size: 1.6rem;
  }
}

/* --- MOBILE (Layar di bawah 576px) --- */
@media (max-width: 768px) {
  .chart-container-linmas {
    height: 300px;
  }

  .linmas-titel {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
  }

  #error-satlinmas .alert {
    font-size: 1rem;
    width: 95%;
  }
}

/* =========================================*/
/* ===== STYLING UNTUK TIDAK ADA DATA =====*/
/* =========================================*/
.pesan-nodata {
  width: 100%;
}
.pesan-nodata p {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem;
  padding: 20px;
  border-radius: 8px;
  border: 2px dashed #ffc107;
  background-color: #fff3cd;
  color: #ff0000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
