/* ========================================= */
/* --- IMAGE SLIDER STYLES --- */
/* ========================================= */
.image-slider {
  position: relative;
  width: 100%;
  padding-bottom: 40.65%;
  height: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Slide Tumpuk */
.slider-slide {
  position: absolute; /* tumpuk semua slide di atas satu sama lain */
  top: 0;
  left: 0;
  width: 100%;
  height: 550px;
  opacity: 0; /* default hidden */
  transition: opacity 1.2s ease-in-out; /* fade halus */
  z-index: 1; /* slide default di bawah tombol */
  overflow: hidden;
}

.slider-slide.active {
  opacity: 1; /* slide aktif tampil */
  z-index: 2; /* pastikan slide aktif di atas */
}

/* Gambar Slide */
.slider-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.slider-content {
  position: absolute;
  bottom: 0; /* biar full di bawah */
  left: 0; /* mulai dari kiri */
  width: 100%; /* full width */
  text-align: center;
  color: #fff;
  z-index: 4;
  padding: 0 80px 0;
  margin-bottom: 10px;
  background-color: rgba(0, 0, 0, 0);
}

.slider-content h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1rem;
  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;
}
.slider-content p {
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  margin-bottom: 10px;
}

/* Tombol Next/Prev */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10; /* tombol di atas slide */
  border-radius: 5px;
  transition: background-color 0.3s ease;
  opacity: 0.7;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.prev-slide {
  left: 10px;
}

.next-slide {
  right: 10px;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 1024px) {
  .image-slider {
    padding-bottom: 44%;
  }
  .slider-slide {
    height: 350px;
  }
  .slider-btn {
    padding: 8px 12px;
    font-size: 22px;
  }
}

@media screen and (max-width: 768px) {
  .image-slider {
    padding-bottom: 56.35%;
  }
  .slider-slide {
    height: 250px;
  }
  .slider-content {
    padding: 0 20px 0;
  }
  .slider-btn {
    padding: 5px 10px;
    font-size: 18px;
  }
  .slider-content h1 {
    font-size: 1rem;
    /* font-weight: 700; */
  }
  .slider-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
}

/* ==================================================== */
/* --- STYLING KHUSUS UNTUK SECTION RELAWAN DAMKAR --- */
/* ================================================== */
/* Section Utama */
#redkar {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kontainer Utama (Jika Anda menggunakan Bootstrap, ini sudah terdefinisi) */
.container-redkar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* --- Untuk SOP Title --- */
@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);
  }
}
/* Judul Utama */
.redkar h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
  color: #ffb347;
  animation: fireDance 2s infinite alternate;
}

/* Div Pembungkus Barchart */
.barchart {
  position: relative;
  margin: 10px auto;
  height: 400px; /* Tinggi ideal desktop */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CANVAS: Memastikan Chart.js responsif */
#redkarRedkarKecamatan {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Styling untuk pesan error (jika diperlukan) */
#error-redkar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#error-redkar .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);
}

/* Responsif */
@media (max-width: 992px) {
  .redkar h2 {
    font-size: 2rem;
  }
  .barchart {
    padding: 15px;
  }
}
@media (max-width: 768px) {
  #redkar {
    padding-top: 20px; /* Jarak atas */
  }
  .redkar h2 {
    font-size: 1.8rem;
  }
  .barchart {
    padding: 15px;
    height: 300px;
  }
}

/* ========================================================== */
/* 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: 40px;
  font-weight: 900;
  font-size: 2.6rem;
  text-transform: uppercase;
  color: #1eff00;
  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: center;
}
.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 */
/* ========================================================== */
/* 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-damkar {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#modal-nama-tupoksi-damkar {
  text-align: center;
}
#modal-deskripsi-tupoksi-damkar {
  text-align: justify;
}

/* 4. Tombol Tutup */
.close-btn-tupoksi-damkar {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #df7a33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ================================================================ */
/* --- Section Gambar Informasi --- */
/* ================================================================ */
.informasi-titel {
  margin-top: 30px;
  margin-bottom: 0;
  padding: 20px;
  text-align: center;
}
.informasi-titel h3 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 700;
  color: #f700ff;
  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;
}

.informasi-section {
  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: -50px;
  margin-bottom: 0;
  padding: 20px 0;
  box-sizing: border-box;
}

.informasi-image {
  margin-top: -15px;
  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;
}

@media (max-width: 1024px) {
  .informasi-titel h3 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .informasi-titel h3 {
    font-size: 1.8rem;
  }
  .informasi-section {
    padding: 15px 0;
  }
  .informasi-image {
    max-height: 85vh;
  }
}

@media (max-width: 468px) {
  .informasi-titel h3 {
    font-size: 1.4rem;
  }
  .informasi-section {
    padding: 10px 0;
  }
  .informasi-image {
    max-height: 80vh;
  }
}

/* =========================================*/
/* ===== STYLING UNTUK GALERY KEGIATAN =====*/
/* =========================================*/
/* --- STYLING UTAMA (FILTER & GRID) --- */
.damkar-documentasi-section {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.galeri-titel {
  margin-bottom: 20px;
  font-size: 2.8em;
  text-transform: uppercase;
  text-align: center;
  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;
}

.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: 1024px) {
  .damkar-documentasi-section {
    padding: 10px;
  }

  .galeri-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
}
@media (max-width: 768px) {
  .galeri-titel {
    margin-top: 10px;
  }
  .galeri-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .damkar-nav-filter-container {
    padding: 0 15px;
  }
}
@media (max-width: 480px) {
  .galeri-titel {
    margin-top: 10px;
    font-size: 2em;
  }

  .galeri-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .damkar-nav-filter-container {
    padding: 0 15px;
  }
}

/* ========================================= */
/* SECTION SOP STYLING            */
/* ========================================= */
.sop-section {
  margin-top: 20px;
  padding: 10px 0;
  text-align: center;
  background-color: #fff;
}

.sop-section h2 {
  margin-bottom: 0;
  margin-top: 0;
  font-size: 2.8em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 20px 0 0;
  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;
}

.news-slider-container {
  position: relative;
  max-width: 1200px; /* Batasan lebar maksimal */
  margin: 0 auto;
  overflow: hidden; /* Penting untuk menyembunyikan item saat bergeser */
  padding-bottom: 60px; /* Ruang untuk tombol di bawah */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #fff;
  margin-top: 20px;
}

.news-slider-track {
  margin-top: -25px;
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0; /* Padding vertikal di dalam container */
}

.news-slider-track .isi {
  text-align: justify;
}

.news-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 */
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.news-item p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: justify;
}

/* Styling untuk tombol navigasi berita */
.news-nav-btn {
  position: absolute;
  bottom: 10px;
  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;
  transition: background-color 0.3s ease;
}

.news-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.news-prev-btn {
  left: calc(50% - 75px); /* Tengah, geser ke kiri sedikit */
  transform: translateX(-50%);
}

.news-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) {
  .sop-section h2 {
    font-size: 1.8rem;
    margin-top: 0;
  }
  .news-slider-container {
    max-width: 90%; /* Menggunakan lebar persentase */
    padding-bottom: 50px;
  }
  .news-item {
    width: calc(
      (100% / 2) - 20px
    ); /* 2 item per tampilan, dikurangi margin total */
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 12px;
  }
  .news-item img {
    height: 160px;
  }
  .news-prev-btn {
    left: calc(50% - 60px);
  }
  .news-next-btn {
    right: calc(50% - 60px);
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .news-slider-container {
    max-width: 95%;
    padding-bottom: 40px;
  }

  .sop-section h2 {
    padding: 0 10px 0;
    margin-bottom: 0;
    font-size: 1.4rem;
    margin-top: 10px;
  }

  .news-item {
    width: calc(100% - 20px); /* 1 item per tampilan, dikurangi margin total */
    margin: 0 10px; /* Margin kiri dan kanan 10px */
    padding: 10px;
  }

  .news-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
  }

  .news-item span {
    font-size: 1.1em;
  }
  .news-item p {
    font-size: 1em;
  }
  .news-prev-btn {
    left: calc(50% - 45px);
  }
  .news-next-btn {
    right: calc(50% - 45px);
  }
}

/* ========================================= */
/* MODAL SOP DAMKAR             */
/* ========================================= */
/* 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-damkar {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
#modal-nama-sop-damkar {
  text-align: center;
}
#modal-deskripsi-sop-damkar {
  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;
}

.close-btn-sop-damkar {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =========================================*/
/* ===== 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);
}
