/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #2d6a2d;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: #c8e6c9;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #a5d6a7;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #e8f5e9;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #c8e6c9;
  font-size: 22px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  background: #fff;
  color: #2d6a2d;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid #a5d6a7;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 10px;
}

.hero p {
  font-size: 15px;
  color: #388e3c;
  margin-bottom: 18px;
  max-width: 480px;
}

.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  background: #fff;
  border: 1px solid #a5d6a7;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: #2d6a2d;
}

.btn-primary {
  display: inline-block;
  background: #2d6a2d;
  color: #fff;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn-primary:hover {
  background: #1b5e20;
  transform: translateY(-1px);
}

.hero-image {
  flex-shrink: 0;
}

.animal-circle {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.bg-light {
  background: #f1f8e9;
  border-radius: 16px;
  margin: 16px auto;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 24px;
  text-align: center;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  border: 1.5px solid #e0e0e0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.card-teal {
  border-color: #80cbc4;
}
.tag-teal {
  background: #e0f2f1;
  color: #00695c;
}
.card-amber {
  border-color: #ffcc80;
}
.tag-amber {
  background: #fff8e1;
  color: #e65100;
}
.card-purple {
  border-color: #ce93d8;
}
.tag-purple {
  background: #f3e5f5;
  color: #6a1b9a;
}
.card-green {
  border-color: #a5d6a7;
}
.tag-green {
  background: #e8f5e9;
  color: #2e7d32;
}
.card-coral {
  border-color: #ef9a9a;
}
.tag-coral {
  background: #fce4ec;
  color: #b71c1c;
}
.card-blue {
  border-color: #90caf9;
}
.tag-blue {
  background: #e3f2fd;
  color: #0d47a1;
}

/* ===== TUJUAN ===== */
.tujuan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.tujuan-item {
  background: #fff;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2d6a2d;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 32px;
  text-align: center;
}

.page-header h1 {
  font-size: 26px;
  color: #1b5e20;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 14px;
  color: #388e3c;
}

/* ===== VIDEO PAGE ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* rasio 16:9 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px 10px 0 0;
}

.video-info {
  padding: 14px 16px;
}
.video-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1b5e20;
}
.video-info p {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

/* ===== KUIS ===== */
.kuis-container {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 24px;
}

.kuis-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid #ffcc80;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.kuis-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffa726;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.kuis-question {
  font-size: 18px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 20px;
  text-align: center;
}

.kuis-question .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  background: #fff8e1;
  border: 2px solid #ffcc80;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option-btn:hover {
  background: #fff3e0;
  border-color: #ffa726;
  transform: scale(1.02);
}
.option-btn.correct {
  background: #e8f5e9;
  border-color: #66bb6a;
  color: #2e7d32;
}
.option-btn.wrong {
  background: #fce4ec;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.option-btn:disabled {
  cursor: not-allowed;
}

.kuis-feedback {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
}

.feedback-correct {
  background: #e8f5e9;
  color: #2e7d32;
}
.feedback-wrong {
  background: #fce4ec;
  color: #b71c1c;
}

.btn-next {
  display: block;
  width: 100%;
  background: #ffa726;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: none;
}

.btn-next:hover {
  background: #fb8c00;
}

.hasil-box {
  text-align: center;
  padding: 20px;
  display: none;
}

.hasil-emoji {
  font-size: 64px;
  margin-bottom: 12px;
}
.hasil-nilai {
  font-size: 48px;
  font-weight: 900;
  color: #ffa726;
}
.hasil-label {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.btn-ulang {
  background: #2d6a2d;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ulang:hover {
  background: #1b5e20;
}

/* ===== PERMAINAN DRAG DROP ===== */
.game-container {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 24px;
}

.game-instructions {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: #2d6a2d;
  margin-bottom: 24px;
  text-align: center;
}

.game-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.drag-source,
.drop-target {
}

.drag-source h3,
.drop-target h3 {
  font-size: 14px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.draggable-item {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  user-select: none;
}

.draggable-item:hover {
  border-color: #a5d6a7;
  background: #f1f8e9;
}
.draggable-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.drop-zone {
  background: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: all 0.2s;
}

.drop-zone.dragover {
  background: #e8f5e9;
  border-color: #66bb6a;
}
.drop-zone.correct {
  background: #e8f5e9;
  border-color: #66bb6a;
  border-style: solid;
}
.drop-zone.wrong {
  background: #fce4ec;
  border-color: #ef9a9a;
  border-style: solid;
}
.drop-zone .zone-label {
  color: #888;
  font-size: 13px;
}

.btn-check-game {
  display: block;
  width: 100%;
  background: #7b1fa2;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-check-game:hover {
  background: #6a1b9a;
}

/* ===== FLASHCARD ===== */
.flashcard-container {
  max-width: 480px;
  margin: 32px auto;
  padding: 0 24px;
  text-align: center;
}

.flashcard-wrapper {
  perspective: 1000px;
  height: 300px;
  margin-bottom: 24px;
  cursor: pointer;
}

.flashcard {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card-front {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid #a5d6a7;
}

.card-back {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 2px solid #90caf9;
  transform: rotateY(180deg);
}

.card-front .animal-emoji {
  font-size: 100px;
  margin-bottom: 12px;
}
.card-front .animal-name {
  font-size: 22px;
  font-weight: 700;
  color: #1b5e20;
}
.card-back .animal-info {
  font-size: 15px;
  color: #0d47a1;
  line-height: 1.8;
}
.card-back .animal-info strong {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.flashcard-hint {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.flashcard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-nav {
  background: #fff;
  border: 2px solid #a5d6a7;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-nav:hover {
  background: #e8f5e9;
  border-color: #66bb6a;
}

.flashcard-counter {
  font-size: 14px;
  color: #888;
}

/* ===== SUARA ===== */
.suara-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
}

@media (max-width: 900px) {
  .suara-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .suara-grid {
    grid-template-columns: 1fr;
  }
}

.suara-card {
  background: #fff;
  border: 2px solid #ef9a9a;
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.suara-card:hover,
.suara-card.playing {
  background: #fce4ec;
  transform: scale(1.04);
}

.suara-card .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}
.suara-card .nama {
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
}
.suara-card .suara-text {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* ===== PENILAIAN ===== */
.penilaian-container {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 24px;
}

.nilai-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.nilai-table th {
  background: #2d6a2d;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  text-align: left;
}

.nilai-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.nilai-table tr:last-child td {
  border-bottom: none;
}
.nilai-table tr:nth-child(even) td {
  background: #f9fbf9;
}

.badge-bb {
  background: #fce4ec;
  color: #c62828;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-mb {
  background: #fff8e1;
  color: #e65100;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-bsh {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-bsb {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.keterangan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ket-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.ket-card .ket-kode {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}
.ket-card .ket-label {
  font-size: 11px;
  color: #888;
}

/* ===== ASESMEN ===== */

.asesmen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.asesmen-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.asesmen-formatif {
  border-top: 5px solid #43a047;
}

.asesmen-sumatif {
  border-top: 5px solid #fb8c00;
}

.asesmen-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.asesmen-header h3 {
  font-size: 16px;
  color: #1b5e20;
  margin-bottom: 8px;
}

.asesmen-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
}

.asesmen-content {
  padding: 16px;
  font-size: 13px;
}

.asesmen-content p {
  margin-bottom: 10px;
}

.asesmen-content ul {
  margin-left: 18px;
}

.asesmen-content li {
  margin-bottom: 6px;
}

/* ===== TUGAS ASESMEN ===== */

.tugas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tugas-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tugas-nomor {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2d6a2d;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tugas-detail {
  flex: 1;
}

.tugas-detail strong {
  display: block;
  margin-bottom: 6px;
  color: #1b5e20;
}

.tugas-detail p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.tugas-tipe {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: #1b5e20;
  color: #a5d6a7;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  margin-top: 48px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #2d6a2d;
    padding: 12px 24px;
    gap: 4px;
    z-index: 99;
  }

  .hero {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
  .hero-image {
    display: none;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-chips {
    justify-content: center;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
  .game-board {
    grid-template-columns: 1fr;
  }
  .keterangan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .asesmen-grid {
    grid-template-columns: 1fr;
  }

  .tugas-item {
    flex-direction: column;
  }

  .tugas-nomor {
    margin-bottom: 8px;
  }
}
