/* =========================
   GAYA UTAMA
   =========================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f8fdf8;
  color: #222;
  scroll-behavior: smooth;
}

/* =========================
   Navbar
   =========================== */
.navbar {
  background-color: #0b5345 !important;
  transition: all 0.4s ease;
  padding: 10px 0;
}
.navbar.scrolled {
  background-color: #084c3a !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  padding: 8px 0;
}

.navbar-brand img.logo-header-baru {
  height: 75px;
  width: auto;
}
.navbar-brand span {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.navbar-nav .nav-link {
  color: #fff !important;
  margin-right: 10px;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
  color: #aef7cf !important;
}
.dropdown-menu {
  background-color: #0b5345;
  border: none;
}
.dropdown-item {
  color: #fff;
}
.dropdown-item:hover {
  background-color: #0e6655;
}
.dropdown-item.disabled,
.dropdown-item:disabled {
  color: #aaa;
}

/* ==========================================================
   CSS DROPDOWN (MODE KLIK - PERBAIKAN TOTAL)
   ========================================================== */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .submenu {
  display: none; /* Sembunyikan by default */
  position: absolute;
  left: 100%;
  right: auto;
  top: 0;
  margin-left: 0.1rem;
  border-radius: 0.25rem;
  background-color: #0b5345;
  min-width: 220px;
}

/* [PERBAIKAN 1] Aturan .show dipindahkan ke LUAR @media
  agar berfungsi di Desktop.
*/
.dropdown-submenu > .submenu.show {
  display: block; /* 'show' ditambahkan oleh JS saat diklik */
}

/* Panah '›' di sebelah kanan */
.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-left: 5px;
  font-weight: bold;
  transform: scale(1.3);
  color: #aef7cf;
}

/* [PERBAIKAN 2] Aturan untuk menu rata kanan
  (seperti 'Informasi Publik') agar terbuka ke kiri.
*/
.dropdown-menu-end .dropdown-submenu > .submenu {
  left: auto; /* Hapus 'left: 100%' */
  right: 100%; /* Ganti jadi 'right: 100%' */
  margin-left: 0;
  margin-right: 0.1rem;
}

/* Penanganan di mobile (HP) */
@media (max-width: 991.98px) {
  .dropdown-submenu > .submenu,
  .dropdown-menu-end .dropdown-submenu > .submenu {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background-color: #0e6655;
    box-shadow: none;
  }
  /* Aturan .show sudah dipindah ke luar, 
     jadi tidak perlu ada di sini lagi. */
}
/* ========================================================== */

/* =========================
   1. GAYA HERO
   =========================== */
.hero-fwd-style {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: start;
  padding-top: 80px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}
.hero-fwd-style .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 550px;
}
.hero-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-app-card {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 10px;
  width: 120px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: none;
}
.hero-app-card:hover {
  background: #fff;
  transform: scale(1.1) translateY(-5px);
  border-color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.hero-app-card .hero-app-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}
.hero-app-card:hover .hero-app-icon {
  filter: none;
}
.hero-app-card .title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}
.hero-app-card:hover .title {
  color: #0b5345;
  text-shadow: none;
}

/* =========================
   Umum: Section (sisanya)
   =========================== */
.section {
  padding: 80px 20px;
}
.section h2 {
  color: #0b5345;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
}

/* =========================
   2. SECTION 3 Bagian
   =========================== */
.info-section {
  background: #fff;
  padding: 60px 20px;
  border-bottom: 1px solid #eee;
}
.info-card {
  text-align: center;
  padding: 20px;
}
.info-card .icon {
  font-size: 3rem;
  color: #0b5345;
  margin-bottom: 15px;
}
.info-card h4 {
  font-weight: 600;
  color: #0b5345;
}
.info-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* =========================
   3. SECTION GRAFIK PEGAWAI
   =========================== */
.pegawai-section {
  background-color: #fff;
  padding: 80px 20px;
}
.filter-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  height: 100%;
}
.filter-box h5 {
  color: #0b5345;
  font-weight: 600;
  margin-bottom: 20px;
}
.pegawai-total-box {
  background: #0b5345;
  color: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}
.pegawai-total-box .total-label {
  font-size: 1.1rem;
  color: #aef7cf;
}
.pegawai-total-box .total-angka {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.chart-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #eee;
  margin-bottom: 20px;
}
.chart-box-title {
  font-weight: 600;
  color: #0b5345;
  margin-bottom: 15px;
  text-align: center;
}

/* =========================
   Video Section
   =========================== */
.video-section {
  background-color: #0b5345;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.video-section h2 {
  color: #fff;
}
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: none;
}

/* =========================
   GAYA TABS (Berita & Kegiatan)
   =========================== */
.tabs-section {
  background: #fff;
}
.nav-tabs-custom {
  border-bottom: 2px solid #ddd;
  justify-content: center;
  margin-bottom: 30px;
}
.nav-tabs-custom .nav-link {
  border: 0;
  color: #555;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  margin: 0 10px;
  border-bottom: 3px solid transparent;
}
.nav-tabs-custom .nav-link.active {
  color: #0b5345;
  border-bottom-color: #0b5345;
  background: none;
}
.card-title {
  color: #0b5345;
}
.kegiatan-list-item {
  display: flex;
  align-items: center;
  padding: 15px;
  text-align: left;
}
.kegiatan-list-item .tgl {
  background: #0b5345;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  margin-right: 20px;
  min-width: 60px;
}
.kegiatan-list-item .tgl span {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
}
.kegiatan-list-item .info h5 {
  font-weight: 600;
  margin-bottom: 5px;
  color: #0b5345;
}
.kegiatan-list-item .info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   GAYA TRANSPARANSI (Chart)
   =========================== */
.chart-section {
  padding: 80px 20px;
  background-color: #e8f6ef;
}
.chart-container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}
.chart-title {
  font-weight: 600;
  color: #0b5345;
  margin-bottom: 5px;
}
.chart-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
}
.anggaran-total-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}
.anggaran-total-display {
  color: #0b5345;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}
.anggaran-total-label {
  font-size: 0.9rem;
  color: #555;
  margin-top: -5px;
}
.pnbp-total-container {
  text-align: center;
  margin-top: 15px;
}
.grand-total-display {
  color: #0b5345;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
}
.grand-total-label {
  font-size: 0.9rem;
  color: #555;
  margin-top: -5px;
}

/* =================================
   CSS: Section Lokasi
   ================================= */
.location-section {
  padding: 80px 20px;
  background: #fff;
}
.location-tabs .nav-link {
  display: flex;
  align-items: center;
  background-color: #f39c12;
  color: #212529;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 50px;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}
.location-tabs .nav-link.active,
.location-tabs .nav-link:hover {
  background-color: #f5b041;
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.location-content .map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.location-content .map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .icon {
  font-size: 1.5rem;
  color: #0b5345;
  margin-right: 15px;
  min-width: 25px;
}
.contact-info-item p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.contact-info-item p strong {
  display: block;
  color: #0b5345;
  font-size: 0.9rem;
}

/* =========================
   Sosial & Footer
   =========================== */
.social-section {
  background: #084c3a;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.social-section h2 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.9rem;
}
.social-icons a {
  display: inline-block;
  margin: 0 12px;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  color: #a9dfbf;
  transform: translateY(-5px);
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 9999;
}
.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: translateY(-4px);
}
.whatsapp-float i {
  font-size: 1.5rem;
}
footer {
  background: #0b5345;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}
footer a {
  color: #aef7cf;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* =========================================
   STYLE KALENDER & PENGADUAN
   ========================================= */

/* 1. Style untuk Kalender Kegiatan */
#kalender-kegiatan {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;
}
.fc-button-primary {
  background-color: #0B5345 !important;
  border-color: #0B5345 !important;
}
.fc-button-primary:hover {
  background-color: #084C3A !important;
  border-color: #084C3A !important;
}
.fc-daygrid-day.fc-day-today {
  background-color: #e8f6ef !important;
}
.popover-header {
    background-color: #0B5345;
    color: #fff;
}

/* 2. Tombol Floating Pengaduan */
.pengaduan-float {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 9998;
}
.pengaduan-float:hover {
  background-color: #c82333;
  transform: translateY(-4px);
  color: #fff;
}
.pengaduan-float i {
  font-size: 1.5rem;
}

/* Atur modal agar tidak error di HP */
.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog {
  transform: none;
}