/* =====================================================
   1. RESET & BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* =====================================================
   2. TYPOGRAPHY
===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f3c88;
  text-align: center;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
}

/* =====================================================
   3. LAYOUT / CONTAINER / SECTION
===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 40px 0;
}
.section-sm {
  padding: 25px 0;
}

/* =====================================================
   4. HEADER AREA
   - Topbar
   - Navbar
===================================================== */

/* ---------- Topbar ---------- */
.topbar {
  background: #1f3c88;
  color: #fff;
  padding: 0.5rem 0;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .medium {
  font-weight: 500;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #0d2b6b;
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #d4a537;
}

/* =====================================================
   5. HERO / CAROUSEL
===================================================== */
.hero-slide {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 60, 136, 0.7);
}

.carousel-caption {
  z-index: 2;
  bottom: 18%;
}

.carousel-caption h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.125rem;
}

/* =====================================================
   6. CARD COMPONENT
===================================================== */
.card-ppid {
  background: #fff;
  border-radius: 10px;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card-ppid:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-ppid .card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-ppid .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-ppid .card-text {
  font-size: 0.875rem;
  flex: 1;
}

.card-ppid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

/* ---------- Card Variants ---------- */
.card-primary {
  background: linear-gradient(135deg, #eef3ff, #d1e7ff);
}
.card-warning {
  background: linear-gradient(135deg, #fff7e6, #faf1d1);
}
.card-success {
  background: linear-gradient(135deg, #ecfdf3, #d1fae5);
}
.card-info {
  background: linear-gradient(135deg, #f6efff, #e9d5ff);
}

/* =====================================================
   7. BUTTONS
===================================================== */
.btn-ppid {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ppid-primary {
  background: #d4a537;
  color: #fff;
}

.btn-ppid-primary:hover {
  background: #b8942f;
}

.btn-ppid-outline {
  border: 1px solid #d4a537;
  color: #d4a537;
  background: transparent;
}

.btn-ppid-outline:hover {
  background: #d4a537;
  color: #fff;
}

/* =====================================================
   8. GRID SECTION (Kategori & Statistik)
===================================================== */
.kategori-grid,
.statistik-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

/* =====================================================
   9. FOOTER AREA
===================================================== */
footer {
  background: #0d2b6b;
  color: #fff;
  padding-top: 40px;
}

/* Grid Footer */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid > div {
  flex: 1 1 200px;
}

footer h6 {
  color: #d4a537;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

footer a {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
}

footer a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* =====================================================
   10. SCROLL TO TOP
===================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #1f3c88;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.scroll-to-top.show {
  display: flex;
}

/* =====================================================
   11. RESPONSIVE
===================================================== */
@media (max-width: 992px) {
  .kategori-grid,
  .statistik-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 1.875rem;
  }
}

@media (max-width: 576px) {
  .kategori-grid,
  .statistik-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    height: 55vh;
  }
}

/* =====================================================
   12. UTILITIES
===================================================== */
.text-center {
  text-align: center;
}
.text-white {
  color: #fff;
}
.bg-primary {
  background: #1f3c88;
}
.bg-secondary {
  background: #0d2b6b;
}

.mb-3 {
  margin-bottom: 0.75rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.small {
  font-size: 0.875rem;
}
