/* ==============================================================
   STYLE UNTUK WEBGIS PENDIDIKAN BOGOR
   ============================================================== */

/* --- Teks & Tipografi --- */
.text-accent {
  color: #f97316; /* Warna oranye untuk penekanan */
  font-weight: bold;
}

/* --- Hero Section (Beranda) --- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-icon {
  font-size: 12rem;
  color: #3b82f6;
  opacity: 0.8;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* --- Fitur Cards (Beranda) --- */
.section-tentang {
  margin-bottom: 3rem;
}

.fitur-card {
  text-align: center;
  background-color: #1e293b;
  border: 1px solid #334155;
  transition: transform 0.2s ease-in-out;
}

.fitur-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.fitur-icon {
  font-size: 3rem;
  color: #34d399; /* Hijau emerald */
  margin-bottom: 1rem;
}

/* --- Header Peta & Data --- */
.peta-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
}

.peta-header-row h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.peta-header-row p {
  color: #9ca3af;
  margin-bottom: 0;
}

/* --- Sidebar Filter Peta --- */
.filter-sidebar {
  background-color: #1e293b !important;
  border-right: 1px solid #334155 !important;
}

.total-box {
  background-color: #0f172a;
  color: #3b82f6;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #334155;
}

/* --- Mini Stat Peta (SD, SMP, SMA) --- */
.mini-stat {
  text-align: center;
  padding: 10px 5px;
  border-radius: 8px;
  margin-top: 5px;
  font-weight: bold;
  font-size: 1.2rem;
}

.mini-stat h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #d1d5db;
  margin-bottom: 5px;
}

.mini-stat.sd {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.mini-stat.smp {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.mini-stat.sma {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid #f97316;
  color: #f97316;
}

/* --- Lain-lain --- */
.navbar-note {
  font-size: 0.85rem;
  color: #cbd5e1;
  opacity: 0.8;
}

/* ==============================================================
   PERBAIKAN NAVBAR UNTUK LAYAR HP (< 768px)
   ============================================================== */
/* ==============================================================
   1. RESPONSIVE DESIGN: TAMPILAN HP (Layar < 768px)
   ============================================================== */
@media (max-width: 768px) {
  
  /* --- FIX 1: Hero Section & Icon Watermark --- */
  .hero-section {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem !important;
    display: block !important;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
  }
  
  .hero-illustration {
    display: block !important;
    position: absolute;
    right: -20px;
    bottom: -20px;
    z-index: 1;
  }

  .hero-icon {
    font-size: 12rem !important;
    opacity: 0.15;
  }

  .hero-content h1 {
    font-size: 2.2rem !important;
  }

  /* --- FIX 2: Perbaiki Tombol Reset Filter yang Gelap --- */
  .btn-reset {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none !important;
  }

  /* --- FIX 3: Navbar & Spasi Mobile --- */
  .navbar-brand {
    font-size: 1.1rem !important;
    display: flex;
    align-items: center;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-collapse {
    background-color: #3b82f6; 
    padding: 10px 15px; 
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-item {
    padding: 0 !important; 
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 12px 10px !important; 
    line-height: 1;
  }

  .navbar-note {
    display: block;
    padding-top: 10px !important;
    margin-top: 5px !important;
    margin-left: 10px !important;
  }
}

/* ==============================================================
   2. RESPONSIVE DESIGN: TAMPILAN DESKTOP (Layar >= 768px)
   ============================================================== */
@media (min-width: 768px) {
  
  /* Memberikan jarak (gap) antar menu navigasi */
  .navbar-nav {
    gap: 20px;
  }

  /* Memperbesar sedikit ukuran teks menu desktop */
  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding-left: 15px !important;
    padding-right: 15px !important;
    transition: all 0.2s ease-in-out;
  }
  
  /* Efek warna saat kursor diarahkan ke menu */
  .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }

  /* Jarak ekstra antara judul aplikasi dengan menu pertama */
  .navbar-brand {
    margin-right: 40px !important;
  }
}