:root {
  --font-main: 'Segoe UI', sans-serif;
  --color-primary: #1e3a8a;
  --color-bg: #f9fafb;
  --color-white: #ffffff;
  --color-gray: #6b7280;
  --radius: 0.75rem;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
}

.page-wrapper {
  flex: 1; /* agar konten utama mendorong footer ke bawah */
}

.container {
  max-width: 1200px;
  padding: 1rem;
  margin: auto;
}

/* NAVBAR */
.navbar {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
}

.logo {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-links a:hover {
  background-color: #e5e7eb;
}

.hamburger {
  display: none;
  background: none;
  font-size: 1.5rem;
  border: none;
}

/* HERO */
.hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 1rem;
  text-align: center;
  background-image: url("bg.jpg");
  background-blend-mode: overlay;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

/* SECTION */
.section {
  padding: 3rem 1rem;
  background-color: var(--color-white);
}

.tujuan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tujuan-item {
  background: #f3f4f6;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.fitur-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fitur-card ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  color: #374151;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  text-align: center;
  display: inline-block;
  margin-top: 0.5rem;
}

/*DASHBOARD*/
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.filter-grid select {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.chart-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.chart-wrapper .chart-container {
  flex: 1 1 60%;
}

.chart-wrapper .chart-small {
  flex: 1 1 35%;
  max-width: 400px;
}

.chart-placeholder {
  background-color: #f3f4f6;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  font-style: italic;
  color: #6b7280;
  margin-top: 1rem;
}

.chart-small {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.chart-container {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.chart-container + .chart-container {
  margin-top: 2rem;
}

.chart-container:last-of-type {
  margin-top: 2rem;
}

/*MAP*/
#map {
  width: 100%;
  height: 500px;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}

/*LAPORAN*/
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form input,
.form select,
.form textarea,
.form button {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

.form button {
  background-color: #4f46e5;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.form button:hover {
  background-color: #4338ca;
}

.form-utama {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /*max-width: 600px;*/
  margin-top: 2rem;
}

.form-utama input,
.form-utama select,
.form-utama textarea,
.form-utama button {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
}

.form-utama button {
  background-color: #4f46e5;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.form-utama button:hover {
  background-color: #4338ca;
}

/*PUBLIKASI*/
.doc-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.doc-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-card h3 {
  margin-bottom: 0.5rem;
}

.btn-download {
  margin-top: 16px;
  background-color: #4f46e5;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-download:hover {
  background-color: #4338ca;
}

/*CTA BOX*/
.cta-box {
  background: #eef2ff;
  border-left: 4px solid #6366f1;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-box h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/*ABOUT*/
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2col ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.tab-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-top: 36px;
}

.tab-header {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #ddd;
  scrollbar-width: none;
}

.tab-header::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: #555;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
  white-space: nowrap;
}

.tab-button:hover {
  color: #9933cc;
}

.tab-button.active {
  color: #9933cc;
  border-bottom: 3px solid #9933cc;
}

.tab-content {
  display: none;
  padding-top: 20px;
  padding-left: 20px;
  color: #333;
}

.tab-content.active {
  display: block;
}

/*FITUR UTAMA*/
.bg-light {
  background-color: #f9fafb;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.5rem;
  text-align: left;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}


/* FOOTER */
.footer {
  background: #f3f4f6;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-gray);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-gray);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--color-white);
    position: absolute;
    top: 60px;
    right: 1rem;
    width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .tujuan {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    display: flex;
  }

  .feature-card {
    min-width: 220px;
    flex: 0 0 auto;
  }
}