:root {
  --text: #0f172a;
  --muted: #46556c;

  /* fun palette */
  --purple: #6d28d9;
  --indigo: #4f46e5;
  --blue: #60a5fa;
  --pink: #fb7185;
  --yellow: #fbbf24;
  --green: #22c55e;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  color: var(--text);

  background-image: url("bg-minggu-kedua.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
  overflow-x: hidden;
}

/* LAYOUT */
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 70px);
}

.layout {
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3vw, 56px);
  align-items: center;
}

/* LEFT */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-weight: 950;
  letter-spacing: 0.2px;
  width: fit-content;
}

.emojiDot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(79, 70, 229, 0.22),
    rgba(79, 70, 229, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.16);
  flex: 0 0 auto;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -1.4px;
  text-transform: uppercase;
}

.grad {
  background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 55px rgba(79, 70, 229, 0.2);
}

.lead {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 72ch;
}

.tips {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  max-width: 740px;
}

.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.ico {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.ico.i1 {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(34, 197, 94, 0.22),
    rgba(255, 255, 255, 0.4)
  );
}
.ico.i2 {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(251, 191, 36, 0.26),
    rgba(255, 255, 255, 0.38)
  );
}
.ico.i3 {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(251, 113, 133, 0.2),
    rgba(255, 255, 255, 0.4)
  );
}

.tip strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: rgba(31, 41, 55, 0.92);
}

.tip p {
  margin: 0;
  font-size: 14.6px;
  line-height: 1.55;
  color: var(--muted);
}

.pickerTitle {
  margin: 12px 0 12px;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chipBtn {
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.chipBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}
.chipBtn:active {
  transform: translateY(0);
}

.chipBtn.teks {
  color: var(--indigo);
}
.chipBtn.video {
  color: var(--pink);
}
.chipBtn.audio {
  color: var(--green);
}

/* RIGHT */
.right {
  position: relative;
  width: min(600px, 96%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  filter: drop-shadow(0 26px 70px rgba(15, 23, 42, 0.1));
}

.halo {
  position: absolute;
  inset: -7%;
  border-radius: 48px;
  background:
    radial-gradient(
      420px 320px at 25% 25%,
      rgba(79, 70, 229, 0.22),
      transparent 60%
    ),
    radial-gradient(
      520px 360px at 75% 45%,
      rgba(251, 191, 36, 0.22),
      transparent 62%
    ),
    radial-gradient(
      520px 420px at 55% 80%,
      rgba(251, 113, 133, 0.18),
      transparent 60%
    );
  opacity: 0.95;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.62);
  opacity: 0.65;
  pointer-events: none;
}
.bubbles span:nth-child(1) {
  width: 52px;
  height: 52px;
  left: 10%;
  top: 10%;
}
.bubbles span:nth-child(2) {
  width: 30px;
  height: 30px;
  right: 14%;
  top: 12%;
  opacity: 0.5;
}
.bubbles span:nth-child(3) {
  width: 40px;
  height: 40px;
  right: 10%;
  bottom: 12%;
  opacity: 0.55;
}
.bubbles span:nth-child(4) {
  width: 22px;
  height: 22px;
  left: 22%;
  bottom: 18%;
  opacity: 0.45;
}

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

/* Sticker (teks) */
.sticker {
  position: absolute;
  left: 10%;
  top: 18%;
  width: min(520px, 88%);
  padding: 14px 16px;

  border-radius: 26px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);

  display: flex;
  align-items: flex-start;
  gap: 12px;

  overflow: hidden;
  z-index: 6;
  animation: floaty 6.3s ease-in-out infinite;
  animation-delay: 0.18s;
  transform: rotate(-2deg);
}

.sticker .badge {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(251, 113, 133, 0.2),
    rgba(255, 255, 255, 0.35)
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
  flex: 0 0 auto;
}

.sticker .t {
  margin: 0;
  font-weight: 1000;
  color: rgba(31, 41, 55, 0.92);
  line-height: 1.15;
  font-size: 16px;
  word-break: break-word;
}

.sticker .s {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.25;
  word-break: break-word;
}

/* Check bubble */
.checkBubble {
  position: absolute;
  left: 10%;
  bottom: 18%;
  width: 34%;
  height: 32%;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;

  z-index: 4;
  animation: floaty 6.8s ease-in-out infinite;
  animation-delay: 0.35s;
  transform: rotate(2deg);
}

/* Shield */
.shield {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: min(320px, 52%);
  height: auto;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
  animation: floaty 7.2s ease-in-out infinite;
}

.shield svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .right {
    margin: 0 auto;
    width: min(520px, 100%);
    aspect-ratio: auto;
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(30px, 9vw, 44px);
  }
  .lead {
    font-size: 15px;
  }

  .chips {
    gap: 10px;
  }
  .chipBtn {
    padding: 11px 14px;
    font-size: 14px;
  }

  .right {
    min-height: 330px;
  }

  .sticker {
    top: 7%;
    left: 4%;
    width: 92%;
    transform: rotate(-1deg);
  }

  .shield {
    width: min(220px, 44%);
    right: 6%;
    bottom: 10%;
  }

  .checkBubble {
    width: 44%;
    height: 28%;
    left: 8%;
    bottom: 20%;
  }

  .halo {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield,
  .sticker,
  .checkBubble {
    animation: none !important;
  }
}

.quizBlock {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 740px;
}

.quizTitle {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.quizBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;

  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);

  color: var(--indigo);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.quizBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}

.quizBtn:active {
  transform: translateY(0);
}

.quizIcon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(79, 70, 229, 0.18),
    rgba(255, 255, 255, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.quizHint {
  font-size: 13px;
  color: var(--muted);
}

.learnFlow {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.quizBtn {
  color: var(--purple);
}
.quizBtn::after {
  content: "→";
  margin-left: 6px;
  font-weight: 900;
}

/* ===== VIDEO MODAL ===== */
.videoModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.videoModal.active {
  display: block;
}

.videoOverlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.videoBox {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: min(92%, 920px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.videoBox video {
  width: 100%;
  height: auto;
  display: block;
}

/* close button */
.videoClose {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

/* mobile friendly */
@media (max-width: 480px) {
  .videoBox {
    width: 94%;
    border-radius: 14px;
  }
}

/* ===== AUDIO MODAL ===== */
.audioModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.audioModal.active {
  display: block;
}

.audioOverlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.audioBox {
  position: relative;
  z-index: 1;
  width: min(92%, 520px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
}

.audioClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.85);
  font-size: 18px;
  cursor: pointer;
}

.audioHeader {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-right: 40px; /* ruang untuk tombol close */
  margin-bottom: 12px;
}

.audioIcon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(34, 197, 94, 0.18),
    rgba(255, 255, 255, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.audioTitle {
  font-weight: 950;
  letter-spacing: 0.2px;
}
.audioSub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.audioBox audio {
  width: 100%;
  display: block;
}

@media (max-width: 480px) {
  .audioBox {
    width: 94%;
    border-radius: 14px;
  }
}

/* ===== SLIDES MODAL ===== */
.slidesModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.slidesModal.active {
  display: block;
}

.slidesOverlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.slidesBox {
  position: relative;
  z-index: 1;
  width: min(94%, 980px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
  padding: 14px;
}

.slidesClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.85);
  font-size: 18px;
  cursor: pointer;
}

.slidesTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 44px 10px 6px; /* ruang tombol close */
}
.slidesTitle {
  font-weight: 950;
  letter-spacing: 0.2px;
}
.slidesCounter {
  font-weight: 900;
  color: var(--muted);
}

.slidesStage {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.slidesStage img {
  display: block;
  width: 100%;
  height: auto;
}

.slidesNav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px 2px;
}

.navBtn {
  cursor: pointer;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}
.navBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .slidesBox {
    width: 96%;
    border-radius: 14px;
    padding: 12px;
  }
  .navBtn {
    padding: 10px 12px;
    font-size: 14px;
  }
}
