/* --- NAVBAR STYLE --- */
.navbar-government {
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.95) 0%, rgba(42, 82, 152, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #2a5298;
  transition: all 0.3s ease;
}

.navbar-government .navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-government .navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-government .nav-link {
  color: white !important;
  font-weight: 500;
  position: relative;
  padding: 0.8rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-government .nav-link:hover {
  color: #ffd700 !important;
  transform: translateY(-2px);
}

.navbar-government .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-government .nav-link:hover::after {
  width: 80%;
}

.btn-login {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1e3c72 !important;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  color: #1e3c72 !important;
}

.navbar-toggler {
  border: 2px solid white;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.logo-container:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Tambahan agar dropdown menu terlihat rapi */
.dropdown-menu {
  border-radius: 10px;
  margin-top: 10px;
}

/* =========================
   LANDING PAGE
========================= */

.hero-government {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-government::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,100"/></svg>');
  opacity: 0.1;
}

.card-government {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.card-government:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
}

.feature-card {
  background: white;
  border-left: 4px solid #2a5298;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left-color: #1e3c72;
}

.btn-government {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
}

.btn-government:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
  color: white;
}

.section-title {
  color: #1e3c72;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 2px;
}

.government-bg {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* --- NEWS CARD STYLE --- */
.news-card {
  transition: all 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
}

.news-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
  transform: scale(1.1);
}

/* Badge Tanggal di pojok kanan atas gambar */
.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #0d6efd;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Bagian Konten Kartu Berita */
.news-content {
  background: linear-gradient(180deg, #6c86ad 0%, #4a638a 100%);
  color: white;
  padding: 1.5rem !important;
}

.news-meta {
  color: rgba(255, 255, 255, 0.8);
}

/* Tombol Baca Selengkapnya */
.btn-read-more {
  background-color: white;
  color: #1e3c72;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

/* Tombol Utama Lihat Semua */
.btn-primary-gov {
  background-color: #2a5298;
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn-primary-gov:hover {
  background-color: #1e3c72;
  color: white;
}

/* Judul Section Underline */
.underline-title {
  width: 50px;
  height: 3px;
  background-color: #1e3c72;
  border-radius: 2px;
}
.toast-government {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  min-width: 320px;
  max-width: 400px;
}

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden; /* Memastikan peta mengikuti lengkungan border-radius */
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
  display: block;
}

.notification-mobile {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1055;
  width: 95%;
  max-width: 500px;
}

.notification-banner {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
  margin-bottom: 10px;
  animation: slideInDown 0.5s ease-out;
  position: relative;
  border-left: 5px solid #ffd700;
}

.notification-banner .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.notification-banner .close-btn:hover {
  opacity: 1;
}

.notification-content {
  padding-right: 30px;
}

.notification-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.notification-date {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.notification-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@media (max-width: 768px) {
  .toast-container {
    display: none !important;
  }
  .notification-mobile {
    top: 70px;
    width: 90%;
  }
}

@media (min-width: 769px) {
  .notification-mobile {
    display: none !important;
  }
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3c72;
}

.icon-government {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* --- FADE IN ANIMATIONS --- */
.fade-in-section,
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in-scale {
  opacity: 0;
  transition: all 0.8s ease-out;
}
.fade-in-section {
  transform: translateY(50px);
}
.fade-in-up {
  transform: translateY(30px);
}
.fade-in-left {
  transform: translateX(-30px);
}
.fade-in-right {
  transform: translateX(30px);
}
.fade-in-scale {
  transform: scale(0.8);
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* Stagger delays */
.fade-in-up:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in-up:nth-child(4) {
  transition-delay: 0.4s;
}
