/********** Template CSS **********/
:root {
  --primary: #fea116;
  --light: #f1f8ff;
  --dark: #ffae00;
}

.ff-secondary {
  font-family: "Pacifico", cursive;
}

.fw-medium {
  font-weight: 600 !important;
}

.fw-semi-bold {
  font-weight: 700 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 2px;
}

/*** Navbar ***/
/* Memberi warna oranye pada judul dropdown "Dokumentasi" saat aktif */
.navbar-dark .navbar-nav .nav-item.dropdown.active .nav-link {
  color: var(--primary) !important;
}

/* Mengubah warnanya menjadi hitam saat navbar dalam mode sticky */
.sticky-top.navbar-dark .navbar-nav .nav-item.dropdown.active .nav-link {
  color: #0f172b !important;
}
.navbar-dark .navbar-nav .nav-link {
  position: relative;
  margin-left: 25px;
  padding: 35px 0;
  font-size: 15px;
  color: var(--light) !important;
  text-transform: uppercase;
  font-weight: 500;
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
  padding: 20px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-dark .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

.sticky-top.navbar-dark .navbar-brand img {
  max-height: 45px;
}

@media (max-width: 991.98px) {
  .sticky-top.navbar-dark {
    position: relative;
  }

  .navbar-dark .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-dark .navbar-nav .nav-link,
  .sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
  }

  .navbar-dark .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 992px) {
  .navbar-dark {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: transparent !important;
  }

  .sticky-top.navbar-dark {
    position: fixed;
    background: var(--dark) !important;
  }
}

/* =========================================== */
/* ===== KODE UNTUK HALAMAN PODCAST ===== */
/* =========================================== */

/* 1. Kustomisasi Header Podcast */
.hero-header-podcast .microphone-img {
  max-height: 300px;
  animation: float-animation 4s ease-in-out infinite;
}

/* Animasi mengambang untuk gambar mikrofon */
@keyframes float-animation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 2. Tombol Sosial Media Podcast */
.podcast-socials {
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.social-podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 2rem;
  margin: 0 15px;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-podcast-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* ======================================================= */
/* === KODE UNTUK ANIMASI SPEKTRUM AUDIO (PODCAST PAGE) === */
/* ======================================================= */

/* Hapus atau komentari kode ini jika masih ada */
/*
.hero-header-podcast .microphone-img {
  max-height: 300px;
  animation: float-animation 4s ease-in-out infinite;
}
@keyframes float-animation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
*/

/* Container untuk semua bar spektrum */
.audio-spectrum {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Membuat bar 'tumbuh' dari bawah */
  height: 200px;
  gap: 10px; /* Jarak antar bar */
}

/* Style untuk setiap bar */
.spectrum-bar {
  width: 25px;
  background-color: var(--primary); /* Menggunakan warna oranye dari tema */
  border-radius: 5px;

  /* Menerapkan animasi */
  animation-name: pulse-animation;
  animation-iteration-count: infinite; /* Berulang tanpa henti */
  animation-direction: alternate; /* Bergerak naik lalu turun */
}

/* Animasi utama yang mengubah ketinggian bar */
@keyframes pulse-animation {
  0% {
    height: 10%;
    opacity: 0.7;
  }
  100% {
    height: 100%;
    opacity: 1;
  }
}

/* ======================================================= */
/* === KODE UNTUK ANIMASI SPEKTRUM AUDIO (PODCAST PAGE) === */
/* ======================================================= */

/* Container untuk semua bar spektrum */
.audio-spectrum {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Membuat bar 'tumbuh' dari bawah */
  height: 200px;
  gap: 10px; /* Jarak antar bar */
}

/* Style untuk setiap bar */
.spectrum-bar {
  width: 25px;
  background-color: var(--primary); /* Menggunakan warna oranye dari tema */
  border-radius: 5px;

  /* Menerapkan animasi */
  animation-name: pulse-animation;
  animation-iteration-count: infinite; /* Berulang tanpa henti */
  animation-direction: alternate; /* Bergerak naik lalu turun */
}

/* Animasi utama yang mengubah ketinggian bar */
@keyframes pulse-animation {
  0% {
    height: 10%;
    opacity: 0.7;
  }
  100% {
    height: 100%;
    opacity: 1;
  }
}

/* KUNCI UTAMA: 
   Memberi setiap bar durasi dan delay animasi yang berbeda
   agar gerakannya terlihat acak dan alami. */
.spectrum-bar:nth-child(1) {
  animation-duration: 0.8s;
  animation-delay: 0.1s;
}
.spectrum-bar:nth-child(2) {
  animation-duration: 1.2s;
  animation-delay: 0.3s;
}
.spectrum-bar:nth-child(3) {
  animation-duration: 0.9s;
  animation-delay: 0s;
}
.spectrum-bar:nth-child(4) {
  animation-duration: 1.1s;
  animation-delay: 0.2s;
}
.spectrum-bar:nth-child(5) {
  animation-duration: 0.7s;
  animation-delay: 0.4s;
}

/* 2. Tombol Sosial Media Podcast */
.podcast-socials-container {
  text-align: center;
  padding: 40px 0; /* Padding atas bawah */
  border-top: 1px solid #eee; /* Garis di atas tombol */
  margin-top: 40px; /* Jarak dari konten di atasnya */
}

.social-podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 2rem;
  margin: 0 15px;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-podcast-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* 3. Kartu Episode Podcast */
.podcast-episode-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .podcast-episode-card {
    flex-direction: row;
  }
}

.podcast-episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.episode-thumb {
  flex-shrink: 0;
  width: 100%;
  height: 200px;
}

@media (min-width: 768px) {
  .episode-thumb {
    width: 200px;
    height: auto;
  }
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-details {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.episode-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.episode-details h3 {
  margin-bottom: 0.5rem;
}

.episode-details p {
  flex-grow: 1; /* Mendorong player ke bawah */
  color: #555;
  font-size: 0.95rem;
}

/* Player Audio */
.episode-player audio {
  width: 100%;
  margin-top: 1rem;
  height: 40px;
}

/* --- GALERI FOTO GRID DI BAWAH --- */
.photo-grid-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative; /* Diperlukan untuk overlay */
}

.photo-grid-item::after {
  content: "Lihat Detail";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photo-grid-item:hover::after {
  opacity: 1;
}

.photo-grid-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ========================================= */
/* === KODE UNTUK KARTU BERITA TERKINI === */
/* ========================================= */

.news-card {
  display: flex;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem; /* Jarak antar kartu */
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  flex-shrink: 0;
  width: 200px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem 2rem;
  color: #555;
}

.news-card-content h4 {
  color: #0f172b;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-card-content .news-card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  display: block;
}

.news-card-arrow {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50px;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: width 0.3s ease;
}

.news-card:hover .news-card-arrow {
  width: 60px; /* Efek tombol sedikit melebar saat hover */
}

/* Penyesuaian untuk layar kecil */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
  }
  .news-card-image {
    width: 100%;
    height: 200px;
  }
}

/* =========================================== */
/* ===== KODE UNTUK HALAMAN ABOUT & PETA ===== */
/* =========================================== */

/* 1. Kontainer untuk Peta Leaflet */
#tour-map {
  height: 500px; /* Tinggi peta */
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1; /* Pastikan peta tampil di atas ornamen */
}

/* 2. Kustomisasi Popup Peta */
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}
.leaflet-popup-content {
  font-family: "Nunito", sans-serif !important;
  text-align: center;
}
.leaflet-popup-content h5 {
  font-family: "Heebo", sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}
.leaflet-popup-tip {
  box-shadow: none !important;
}

/* 3. Gradient untuk section peta */
.map-section.bg-gradient-soft {
  background-image: linear-gradient(to top, #ffffff, #fff7e6);
}

/* ======================================================= */
/* === KODE UNTUK HALAMAN INFORMASI & DETAIL INFORMASI === */
/* ======================================================= */

/* --- Halaman informasi.php --- */
.info-card {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card-img-container {
  overflow: hidden;
}

.info-card .img-fluid {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card:hover .img-fluid {
  transform: scale(1.1);
}

.info-card-text {
  /* Batasi teks deskripsi agar tidak terlalu panjang */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px; /* Jaga agar tinggi kartu konsisten */
}

/* --- Halaman detail-informasi.php --- */
.detail-article .article-header .img-fluid {
  height: 400px;
  object-fit: cover;
}

.detail-article .article-meta {
  color: #6c757d;
}

.detail-article .article-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ======================================================= */
/* === KODE UNTUK PETA GAMBAR & POPUP LOKASI BARU === */
/* ======================================================= */

/* Container untuk peta gambar */
.image-map-container {
  position: relative;
  max-width: 800px; /* Lebar maksimal peta Anda */
  margin: auto;
}
.image-map-container img {
  width: 100%;
  height: auto;
}
map area {
  cursor: pointer;
}

/* --- UI MODAL LOKASI BARU (Dengan Gambar) --- */
#locationModal .modal-content {
  border-radius: 10px;
  border: none;
  overflow: hidden;
}
#locationModal .modal-body {
  padding: 0;
}
#locationModal .location-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#locationModal .location-description-container {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#locationModal .modal-header {
  border-bottom: none;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}
#locationModal .btn-close {
  background: white
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border-radius: 50%;
  padding: 0.5em;
}

/* ======================================================= */
/* === KODE FINAL V9 - STABILISASI DGN COVERFLOW EFEK === */
/* ======================================================= */

.photo-gallery-section {
  padding: 2rem 0;
  background-image: linear-gradient(to bottom, #ffffff, #f8f9fa);
  position: relative;
  overflow: hidden;
}

/* Container utama Swiper */
.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Setiap slide/foto */
.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px; /* Lebar setiap foto */
  height: 375px; /* Menjaga rasio 4:5 */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Menghapus bayangan slide bawaan Swiper */
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

/* --- UI MODAL FOTO (Tidak Berubah) --- */
#photoModal .modal-content {
  border-radius: 10px;
  border: none;
  overflow: hidden;
}
#photoModal .modal-body {
  padding: 0;
}
#photoModal .modal-photo-container {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
#photoModal .modal-photo-container img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
#photoModal .modal-description-container {
  padding: 2rem 2.5rem;
}
#photoModal .photo-date {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1rem;
}
#photoModal .modal-header {
  border-bottom: none;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}
#photoModal .btn-close {
  background: white
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  border-radius: 50%;
  padding: 0.5em;
}

/* ================================================= */
/* ===== PERBAIKAN TOTAL - HALAMAN VIDEO ===== */
/* ================================================= */

/* 1. Container Utama Hero Header */
.hero-header-video {
  position: relative; /* Kunci agar elemen di dalamnya bisa di-position absolute */
  height: 70vh; /* Tinggi header adalah 70% dari tinggi layar */
  min-height: 450px; /* Tinggi minimal untuk layar pendek */
  width: 100%;
  overflow: hidden; /* WAJIB: Sembunyikan semua yang keluar dari area ini */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 2. Video Latar Belakang */
#bg-video {
  position: absolute; /* Paksa video keluar dari alur normal */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* WAJIB: Membuat video menutupi area tanpa merusak aspek rasio */
  z-index: 0; /* Letakkan video di lapisan paling belakang */
}

/* 3. Lapisan Overlay Gelap */
.hero-header-video::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 43, 0.7); /* Warna gelap transparan */
  z-index: 1; /* Letakkan di atas video */
}

/* 4. Konten Teks di Atas Video */
.hero-header-video .container {
  position: relative;
  z-index: 2; /* Letakkan teks di lapisan paling depan */
}

/* ===== (CSS Galeri Video tidak berubah, pastikan sudah ada) ===== */

.video-gallery-item {
  position: relative;
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  display: block;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.video-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-thumb {
  position: relative;
}

.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.video-gallery-item:hover .video-thumb img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.video-gallery-item:hover .play-icon {
  color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

#videoModal .modal-dialog {
  max-width: 800px;
  margin: 30px auto;
}
#videoModal .modal-body {
  position: relative;
  padding: 0px;
}
#videoModal .btn-close {
  position: absolute;
  top: -25px;
  right: 0;
  background-color: #fff;
  border-radius: 50%;
  opacity: 1;
}

/* =================================== */
/* ===== KODE TAMBAHAN GRADIENT & ORNAMEN ===== */
/* =================================== */

/* 1. Latar Belakang Gradien */
.bg-gradient-soft {
  background-image: linear-gradient(to bottom, #ffffff, #fff7e6);
}

/* 2. Ornamen Sisi Kiri dan Kanan */
body {
  position: relative; /* Diperlukan agar pseudo-element bisa menempel */
}

/* Ornamen Kiri */
body::before {
  content: "";
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px; /* Lebar ornamen */
  height: 400px; /* Tinggi ornamen */
  background-image: url(../img/ornamen-lampung.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.15; /* Buat ornamen sedikit transparan */
}

/* Ornamen Kanan (dengan gambar dibalik horizontal) */
body::after {
  content: "";
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1); /* scaleX(-1) untuk membalik gambar */
  width: 150px; /* Lebar ornamen */
  height: 400px; /* Tinggi ornamen */
  background-image: url(../img/ornamen-lampung.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.15;
}

/* 3. Media Query untuk Layar Kecil */
/* Sembunyikan ornamen di layar tablet dan ponsel */
@media (max-width: 1200px) {
  body::before,
  body::after {
    display: none;
  }
}

/*** Map Section ***/
.map-container iframe {
  /* Efek awal: peta menjadi hitam-putih */
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out; /* Animasi transisi yang mulus */
}

.map-container:hover iframe {
  /* Efek saat kursor di atas peta: warna kembali normal */
  filter: grayscale(0%);
}

.contact-info .info-item {
  display: flex;
  align-items: center;
}

.contact-info .info-item i {
  color: var(--primary); /* Menggunakan warna primary dari tema Anda */
  font-size: 1.2rem;
}

/*** Hero Header ***/
.hero-header {
  background: linear-gradient(rgba(15, 23, 43, 0.9), rgba(15, 23, 43, 0.9)), url(../img/bg-hero.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-header img {
  animation: imgRotate 50s linear infinite;
}

@keyframes imgRotate {
  100% {
    transform: rotate(360deg);
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/*** Section Title ***/
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::before {
  position: absolute;
  content: "";
  width: 45px;
  height: 2px;
  top: 50%;
  left: -55px;
  margin-top: -1px;
  background: var(--primary);
}

.section-title::after {
  position: absolute;
  content: "";
  width: 45px;
  height: 2px;
  top: 50%;
  right: -55px;
  margin-top: -1px;
  background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
  display: none;
}

/*** Service ***/
/* Modifikasi style dasar service-item untuk animasi */
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out; /* Transisi untuk semua properti */
  overflow: hidden; /* Sembunyikan gambar yang membesar keluar dari card */
  background: #fff; /* Pastikan ada background dasar */
}

/* Style untuk gambar di dalam card */
.service-item .service-img {
  width: 100%;
  object-fit: cover; /* Agar gambar tidak gepeng dan mengisi penuh */
  transition: transform 0.3s ease-in-out; /* Transisi untuk efek zoom */
}

/* Efek interaktif saat kursor diarahkan ke card */
.service-item:hover {
  transform: translateY(-10px); /* Angkat card ke atas */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Perjelas bayangan */
}

/* Efek zoom pada gambar saat card di-hover */
.service-item:hover .service-img {
  transform: scale(1.05); /* Perbesar gambar sedikit */
}

/* Hapus style hover lama yang hanya mengubah warna */
.service-item:hover * {
  color: inherit !important; /* Kembalikan ke warna asli, tidak jadi putih */
}

.service-item:hover {
  background: #fff; /* Jaga background agar tetap putih saat di-hover */
}
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

.service-item:hover {
  background: var(--primary);
}

.service-item * {
  transition: 0.5s;
}

.service-item:hover * {
  color: var(--light) !important;
}

/*** Food Menu ***/
.nav-pills .nav-item .active {
  border-bottom: 2px solid var(--primary);
}

/*** Youtube Video ***/
.video {
  position: relative;
  height: 100%;
  min-height: 500px;
  background: linear-gradient(rgba(15, 23, 43, 0.1), rgba(15, 23, 43, 0.1)), url(../img/video.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.video .btn-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-sizing: content-box;
  display: block;
  width: 32px;
  height: 44px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 200ms;
}

.video .btn-play img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: auto;
  height: auto;
}

.video .btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 32px solid var(--dark);
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

#videoModal {
  z-index: 99999;
}

#videoModal .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

#videoModal .modal-body {
  position: relative;
  padding: 0px;
}

#videoModal .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  opacity: 1;
}

/*** Team ***/
.team-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  height: calc(100% - 38px);
  transition: 0.5s;
}

.team-item img {
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.1);
}

.team-item:hover {
  height: 100%;
}

.team-item .btn {
  border-radius: 38px 38px 0 0;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 1px solid #cccccc;
  border-radius: 15px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

/*** Footer ***/
.footer .btn.btn-social {
  margin-right: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid #ffffff;
  border-radius: 35px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 15px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* ============================================== */
/* === KODE UNTUK HALAMAN DETAIL INFORMASI === */
/* ============================================== */

.detail-article .article-header .img-fluid {
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.detail-article .article-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.detail-article .article-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #333;
}

.share-buttons .btn-social-share {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 5px;
}

/* ======================================================= */
/* === KODE CSS FINAL UNTUK BERITA (DIKONTROL JS) === */
/* ======================================================= */

/* --- Layout Desktop (diaktifkan oleh JS) --- */
.news-container-desktop {
  position: relative;
  overflow-x: auto; /* Memungkinkan scroll manual */
  padding-bottom: 1.5rem;
}
.news-container-desktop::-webkit-scrollbar {
  display: none;
}
.news-container-desktop {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Efek gradasi pinggir untuk desktop */
.news-container-desktop::before,
.news-container-desktop::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.news-container-desktop::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.news-container-desktop::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.news-track-desktop {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

/* --- Layout Mobile (diaktifkan oleh JS) --- */
.news-track-mobile {
  display: grid;
  grid-template-columns: 1fr; /* 1 kolom vertikal */
  gap: 1.5rem;
}

/* --- Desain Kartu Berita (berlaku untuk keduanya) --- */
.news-card-v2 {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.news-card-v2-desktop {
  width: 300px; /* Lebar tetap untuk desktop */
}
.news-card-v2-mobile {
  width: 100%; /* Lebar penuh untuk mobile */
}
.news-card-v2 .card-image {
  height: 180px;
  position: relative;
}
.news-card-v2 .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-v2 .card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 5px;
}
.news-card-v2 .card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.news-card-v2 .card-content h5 {
  color: #0f172b;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.news-card-v2 .card-content .card-date {
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
}

/* ============================================== */
/* === PERBAIKAN FINAL UNTUK TAMPILAN MOBILE === */
/* ============================================== */
@media (max-width: 768px) {
  /* Aturan untuk berita di mobile */
  .news-track {
    animation: none !important; /* Hentikan animasi secara paksa */
    display: grid; /* Gunakan grid untuk layout yang lebih stabil */
    grid-template-columns: 1fr; /* 1 kolom vertikal */
    width: 100%;
    gap: 1.5rem;
  }
  .scrolling-wrapper-outer {
    padding: 0 1rem;
  }
  .news-scrolling-wrapper {
    overflow: visible; /* Nonaktifkan scroll horizontal */
    padding-bottom: 0;
  }
  .scrolling-wrapper-outer::before,
  .scrolling-wrapper-outer::after {
    display: none; /* Sembunyikan gradasi */
  }
  .news-card-v2 {
    width: 100%; /* Setiap kartu memenuhi lebar layar */
  }

  /* Trik untuk menyembunyikan duplikasi berita di mobile */
  .tab-content .news-track > a:nth-child(n + 9) {
    display: none;
  }
  #tab-pelatihan .news-track > a:nth-child(n + 5),
  #tab-wisata .news-track > a:nth-child(n + 5),
  #tab-festival .news-track > a:nth-child(n + 5),
  #tab-umum .news-track > a:nth-child(n + 5) {
    display: none;
  }
}

/* KUNCI PERBAIKAN: Mengecilkan ikon tab kategori berita */
.tab-class .nav-pills {
  flex-wrap: wrap; /* Izinkan item pindah ke baris baru */
  justify-content: center !important;
  border-bottom: none !important;
}
.tab-class .nav-pills .nav-item a {
  margin: 0 0.25rem 1rem 0.25rem !important;
  padding-bottom: 0.5rem !important;
}
.tab-class .nav-pills .nav-item i {
  font-size: 1.5em !important; /* Perkecil ukuran ikon */
}
.tab-class .nav-pills .nav-item .ps-3 {
  padding-left: 0.5rem !important; /* Kurangi jarak ikon dan teks */
}
