/* Hanya kustomisasi di atas Bootstrap */
:root {
  --teal-dark: #4b8f9c;
  --teal: #5fa0a8;
  --teal-card: #72adbb;
  --mint: #cdf5f3;
  --title: #2f5d86;
  --bs-body-font-family: "Poppins", sans-serif;
}

body {
  color: var(--title);
}
.judul {
  color: var(--title);
}

/* Navbar */
#mainNav {
  min-height: 96px;
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}
#mainNav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: 600;
  color: #8fa0aa;
  padding-left: 1rem;
  padding-right: 1rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--teal-dark);
}
#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: var(--teal-dark);
}
@media (min-width: 768px) {
  #mainNav .navbar-collapse {
    height: 96px;
  }
  #mainNav .navbar-nav {
    height: 100%;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding: 60px 24px 65px;

  /* Background ilustrasi ginjal */
  background-image: url("image/bg beranda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay transparan agar teks mudah dibaca */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(47, 93, 134, 0.65) 0%,
    rgba(75, 143, 156, 0.18) 55%,
    rgba(75, 143, 156, 0.02) 100%
  );
  z-index: 0;
}

/* Konten Hero */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

/* Label kecil */
.hero-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Judul utama */
.hero-title {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

/* Deskripsi */
.hero-description {
  max-width: 680px;
  margin: 0 auto 32px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Tombol Mulai Belajar */
.btn-mulai {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  font-size: 18px;
  transition: all 0.25s ease;
}

.btn-mulai:hover,
.btn-mulai:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-3px);
}

/* Tampilan tablet dan HP */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 40px 20px;
    background-position: center;
  }

  .hero-label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .btn-mulai {
    font-size: 16px;
    padding: 12px 30px !important;
  }
}

/* Kartu */
.kartu {
  background: var(--mint);
  border-radius: 28px;
  transition: transform 0.2s;
}
.kartu:hover {
  transform: translateY(-4px);
}
.kartu .teks {
  color: #8a97a3;
  font-size: 0.72rem;
  line-height: 1.4;
}
.kartu-gelap {
  background: var(--teal-card);
}
.kartu-gelap .teks {
  color: #fff;
}
.illus {
  width: 80px;
  height: 80px;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  margin: 20px 0;
  background: #000;
}

.video-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer */
.footer {
  background: var(--mint);
  color: #7f8f98;
}

.modul-head {
  background: var(--mint);
}
.teks-lembut {
  color: #5d7f8c;
}
.daftar-bab .list-group-item {
  border: 0;
  border-radius: 14px !important;
  margin-bottom: 6px;
  background: var(--mint);
  color: var(--title);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}
.daftar-bab .list-group-item.active {
  background: var(--teal-dark);
  color: #fff;
}
.daftar-bab .list-group-item.selesai::after {
  content: " ✓";
}
.progress-bar {
  background: var(--teal-dark);
  transition: width 0.3s;
}
.kartu-isi {
  background: #fff;
  border: 2px solid var(--mint);
  border-radius: 28px;
  min-height: 420px;
}
.kartu-isi h2 {
  color: var(--title);
  font-weight: 700;
  font-size: 1.5rem;
}
.kartu-isi h3 {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.4rem;
}
.kartu-isi p,
.kartu-isi li {
  color: #4a5b66;
  line-height: 1.7;
}
.kotak {
  background: var(--mint);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 14px 0;
}
.kotak p:last-child,
.kotak ul:last-child {
  margin-bottom: 0;
}
.kotak.bahaya {
  background: #fde8e6;
}
.kotak.bahaya strong {
  color: #b3392f;
}
.btn-nav {
  border: 2px solid var(--teal-dark);
  color: var(--teal-dark);
  border-radius: 40px;
  padding: 8px 22px;
  font-weight: 600;
}
.btn-nav:hover {
  background: var(--teal-dark);
  color: #fff;
}
.btn:disabled {
  opacity: 0.4;
}
.alur {
  text-align: center;
  font-weight: 500;
}
.alur span {
  display: block;
  color: var(--teal-dark);
  line-height: 1.2;
}
.opsi {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  background: #fff;
  border: 2px solid var(--mint);
  border-radius: 14px;
  padding: 10px 14px;
  color: #4a5b66;
}
.opsi:hover:not(:disabled) {
  border-color: var(--teal-dark);
}
.opsi.benar {
  background: #d6f3e3;
  border-color: #3aa76d;
}
.opsi.salah {
  background: #fde8e6;
  border-color: #d9534f;
}
.jelas {
  display: none;
  font-size: 0.9rem;
}
.skala-hasil {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
}
