/* Shared base */
:root {
  color-scheme: light;
  background-color: #fff8dc;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  color-scheme: light;
  background-color: #fff8dc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Comic Neue", cursive;

  background: linear-gradient(
    -45deg,
    oklch(74.6% 0.16 232.661),
    oklch(86.5% 0.127 207.078),
    oklch(90.1% 0.058 230.902),
    oklch(95.1% 0.026 236.824)
  );

  background-size: 400% 400%;

  animation: gradientMove 12s ease infinite;

  color: #1f2937;
}

.bg-cyan {
  background-color: #2563eb;
}

.bg-sky {
  background-color: oklch(86.5% 0.127 207.078);
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
.awan {
  position: fixed;

  background: white;

  border-radius: 100px;

  /* z-index: 1; */

  opacity: 0.8;

  pointer-events: none;

  animation-name: jalanAwan;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* supaya isi website di atas awan */
nav,
section,
footer {
  position: relative;
  z-index: 2;
}

/* awan di belakang isi */
.awan {
  z-index: 0;
}

/* bulatan awan */
.awan::before,
.awan::after {
  content: "";

  position: absolute;

  background: white;

  border-radius: 50%;
}

/* awan 1 */
.awan1 {
  width: 180px;
  height: 60px;

  top: 80px;

  left: -250px;

  animation-duration: 40s;
}

.awan1::before {
  width: 70px;
  height: 70px;

  top: -30px;
  left: 25px;
}

.awan1::after {
  width: 90px;
  height: 90px;

  top: -40px;
  right: 20px;
}

/* awan 2 */
.awan2 {
  width: 140px;
  height: 50px;

  top: 220px;

  left: -200px;

  animation-duration: 55s;

  opacity: 0.6;
}

.awan2::before {
  width: 60px;
  height: 60px;

  top: -25px;
  left: 20px;
}

.awan2::after {
  width: 75px;
  height: 75px;

  top: -30px;
  right: 15px;
}

/* awan 3 */
.awan3 {
  width: 200px;
  height: 70px;

  top: 360px;

  left: 100px;

  animation-duration: 70s;

  opacity: 0.5;
}

.awan3::before {
  width: 80px;
  height: 80px;

  top: -35px;
  left: 30px;
}

.awan3::after {
  width: 100px;
  height: 100px;

  top: -45px;
  right: 20px;
}
/* awan 4 */
.awan4 {
  width: 160px;
  height: 55px;

  top: 500px;

  left: 250px;

  animation-duration: 48s;

  opacity: 0.7;
}

.awan4::before {
  width: 65px;
  height: 65px;

  top: -28px;
  left: 22px;
}

.awan4::after {
  width: 85px;
  height: 85px;

  top: -38px;
  right: 18px;
}

/* awan 5 */
.awan5 {
  width: 220px;
  height: 75px;

  top: 650px;

  left: -320px;

  animation-duration: 80s;

  opacity: 0.4;
}

.awan5::before {
  width: 90px;
  height: 90px;

  top: -40px;
  left: 35px;
}

.awan5::after {
  width: 110px;
  height: 110px;

  top: -50px;
  right: 25px;
}

/* gerakan awan */
@keyframes jalanAwan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(160vw);
  }
}
/* =========================
   AWAN SUPER RAME & LIAR
========================= */

.awan-rame {
  position: fixed;

  background: rgba(255, 255, 255, 0.88);

  border-radius: 999px;

  pointer-events: none;

  z-index: 0;

  filter: blur(1px);

  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* bulatan awan */
.awan-rame::before,
.awan-rame::after {
  content: "";

  position: absolute;

  background: rgba(255, 255, 255, 0.9);

  border-radius: 50%;
}

/* =========================
   AWAN 1 - zigzag
========================= */

.awan-rame1 {
  width: 180px;
  height: 60px;

  top: 80px;
  left: -250px;

  animation:
    zigzagAwan 35s linear infinite,
    goyangAwan 4s ease-in-out infinite;
}

.awan-rame1::before {
  width: 70px;
  height: 70px;

  top: -30px;
  left: 20px;
}

.awan-rame1::after {
  width: 90px;
  height: 90px;

  top: -40px;
  right: 20px;
}

/* =========================
   AWAN 2 - diagonal
========================= */

.awan-rame2 {
  width: 260px;
  height: 80px;

  top: 200px;
  left: -350px;

  opacity: 0.7;

  animation:
    diagonalAwan 50s linear infinite,
    zoomAwan 8s ease-in-out infinite;
}

.awan-rame2::before {
  width: 100px;
  height: 100px;

  top: -45px;
  left: 40px;
}

.awan-rame2::after {
  width: 120px;
  height: 120px;

  top: -55px;
  right: 25px;
}

/* =========================
   AWAN 3 - muter pelan
========================= */

.awan-rame3 {
  width: 150px;
  height: 50px;

  top: 400px;
  left: -200px;

  opacity: 0.5;

  animation:
    muterAwan 45s linear infinite,
    naikTurun 6s ease-in-out infinite;
}

.awan-rame3::before {
  width: 60px;
  height: 60px;

  top: -25px;
  left: 18px;
}

.awan-rame3::after {
  width: 80px;
  height: 80px;

  top: -35px;
  right: 15px;
}

/* =========================
   AWAN 4 - dari bawah
========================= */

.awan-rame4 {
  width: 320px;
  height: 100px;

  bottom: -150px;
  left: 20%;

  opacity: 0.35;

  animation:
    naikAwan 40s linear infinite,
    miringAwan 7s ease-in-out infinite;
}

.awan-rame4::before {
  width: 130px;
  height: 130px;

  top: -60px;
  left: 45px;
}

.awan-rame4::after {
  width: 150px;
  height: 150px;

  top: -70px;
  right: 25px;
}

/* =========================
   AWAN 5 - bolak balik
========================= */

.awan-rame5 {
  width: 220px;
  height: 70px;

  top: 600px;
  left: 30vw;

  opacity: 0.55;

  animation:
    bolakBalikAwan 25s ease-in-out infinite,
    goyangAwan 5s ease-in-out infinite;
}

.awan-rame5::before {
  width: 90px;
  height: 90px;

  top: -40px;
  left: 30px;
}

.awan-rame5::after {
  width: 110px;
  height: 110px;

  top: -50px;
  right: 20px;
}

/* =========================
   AWAN 6 - muter diagonal
========================= */

.awan-rame6 {
  width: 140px;
  height: 45px;

  top: -100px;
  right: -200px;

  opacity: 0.4;

  animation:
    turunDiagonal 38s linear infinite,
    putarSedikit 9s linear infinite;
}

.awan-rame6::before {
  width: 50px;
  height: 50px;

  top: -20px;
  left: 15px;
}

.awan-rame6::after {
  width: 65px;
  height: 65px;

  top: -28px;
  right: 12px;
}

/* =========================
   ANIMASI UNIK
========================= */

/* zigzag */
@keyframes zigzagAwan {
  0% {
    transform: translate(-200px, 0);
  }

  25% {
    transform: translate(30vw, -30px);
  }

  50% {
    transform: translate(70vw, 20px);
  }

  75% {
    transform: translate(120vw, -25px);
  }

  100% {
    transform: translate(170vw, 10px);
  }
}

/* diagonal */
@keyframes diagonalAwan {
  0% {
    transform: translate(-300px, 0);
  }

  100% {
    transform: translate(150vw, -200px);
  }
}

/* muter */
@keyframes muterAwan {
  0% {
    transform: translateX(-200px) rotate(0deg);
  }

  100% {
    transform: translateX(170vw) rotate(360deg);
  }
}

/* naik dari bawah */
@keyframes naikAwan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 0.35;
  }

  100% {
    transform: translateY(-140vh);
    opacity: 0;
  }
}

/* bolak balik */
@keyframes bolakBalikAwan {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(120px);
  }

  50% {
    transform: translateX(-80px);
  }

  75% {
    transform: translateX(160px);
  }

  100% {
    transform: translateX(0);
  }
}

/* turun diagonal */
@keyframes turunDiagonal {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-140vw, 120vh);
  }
}

/* efek tambahan */
@keyframes goyangAwan {
  0% {
    margin-top: 0;
  }

  50% {
    margin-top: -10px;
  }

  100% {
    margin-top: 0;
  }
}

@keyframes naikTurun {
  0% {
    margin-top: 0;
  }

  50% {
    margin-top: 15px;
  }

  100% {
    margin-top: 0;
  }
}

@keyframes zoomAwan {
  0% {
    scale: 1;
  }

  50% {
    scale: 1.08;
  }

  100% {
    scale: 1;
  }
}

@keyframes miringAwan {
  0% {
    rotate: 0deg;
  }

  50% {
    rotate: -4deg;
  }

  100% {
    rotate: 0deg;
  }
}

@keyframes putarSedikit {
  0% {
    rotate: 0deg;
  }

  50% {
    rotate: 8deg;
  }

  100% {
    rotate: 0deg;
  }
}

body.page-tk-evaluasi {
  font-family: "Comic Neue", cursive;
}

p,
h1,
h2,
h3,
h4,
a,
span,
label {
  overflow-wrap: anywhere;
}

video,
img {
  max-width: 100%;
}

/* Navigation */
.hindu-nav {
  background: linear-gradient(90deg, #cc0000, #ff9933, #ffd700);
}

.btn-cartoon {
  transition: all 0.3s;
}

.btn-cartoon:hover {
  transform: scale(1.1) rotate(5deg);
  animation: bounce 0.6s;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

img.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Fallback untuk warna custom Tailwind jika CDN belum selesai/gagal memuat. */
.bg-hinduRed {
  background-color: #cc0000;
}

.bg-saffron {
  background-color: #ff9933;
}

.text-white {
  color: #fff;
}

.text-hinduRed {
  color: #cc0000;
}

.text-saffron {
  color: #ff9933;
}

.text-lotusPink {
  color: #ff69b4;
}

.hover\:bg-gold:hover {
  background-color: #ffd700;
}

.p-8 {
  padding: 2rem;
}

.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 10rem;
}

/* Video */
.video-container {
  position: fixed;
  top: 80px;
  right: 260px;
  z-index: 10;
  width: 350px;
  height: 350px;
  margin: 0;
  background: red;
  border-radius: 100%;
  /* justify-content: center; */
}
/* .video-container video {
  width: 350px;
  height: 450px;
} */
.page-navbar-materi section {
  padding-right: 360px;
}
.bingkai {
  border: 30px solid transparent;

  border-image-source: url("../img/border_video.jpg");
  border-image-slice: 60;
  border-image-repeat: stretch;

  background: rgba(255, 255, 255, 0.9);

  padding: 30px;
  border-radius: 20px;
}

.video-container video {
  height: 100%;
}

/* .video-quiz {
  position: fixed;
  top: 110px;
  right: 50px;
  left: auto;
  bottom: auto;

  z-index: 100;
  width: 100px;
  height: 200px;
  margin: 0;
} */

.page-quiz section {
  padding-right: 360px;
}

.video-quiz video {
  height: 100%;
}
/* =========================
  DESKTOP / LAYAR BESAR
========================= */
/* Ubah video di sini */
.video-quiz {
  position: fixed;

  bottom: 10px;
  right: 20px;

  left: auto;
  top: auto;

  z-index: 10;

  width: 250px;
  height: 350px;

  margin: 0;
}

/* kasih ruang kanan buat video */
.page-quiz section {
  padding-right: 320px;
}

/* =========================
   TABLET & HP
========================= */

@media (max-width: 768px) {
  .video-quiz {
    position: fixed !important;

    top: auto !important;
    right: auto !important;

    left: 10px !important;
    bottom: 10px !important;

    width: 140px !important;
    height: 210px !important;

    z-index: 100 !important;
  }

  /* materi kembali full tengah */
  .page-quiz section {
    padding-right: 1rem !important;
  }
}

.video-frame {
  background-image: url("../img/border_video.jpg");
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 10px;

  /* overflow: hidden; */
}
.video-frame video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;

  /* transform: scale(1.15); */
}

.quiz-image-frame {
  background-image: url("../img/border_video.jpg");
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 10px;
  /* aspect-ratio: 9 / 9; */
}

.card-video {
  /* height: 400px; */
  width: 220px;
  max-width: 100%;
  margin-top: 24px;
}

body.page-smp-quiz .video-frame {
  background-image: url("../img/border_video.jpg");
}

body.page-materi-doa .video-frame {
  background-image: url("../img/border_video.jpg");
}

body.page-materi-doa .card-video,
body.page-materi-pilihan .card-video {
  width: 240px;
}

body.page-materi-pilihan .card-video {
  margin: 24px auto 0;
}

.circle {
  display: flex;
  border-radius: 50%;
  width: 350px;
  height: 350px;
  background-color: white;
  z-index: 50;
  position: fixed;
  right: 260px;
  top: 80px;
  justify-content: center;
  align-items: center;
}

.circle video {
  width: 85%;

  border-radius: 22%;
}

body.page-sd-quiz .video-container,
body.page-smp-quiz .video-container,
body.page-tk-quiz .video-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 100 !important;
  width: 300px !important;
  height: 225px !important;
  margin: 0 !important;
}
/* body.page-sd-quiz .video-frame video,
body.page-smp-quiz .video-frame video,
body.page-tk-quiz .video-frame video,
body.page-sma-quiz .video-frame video {
  width: calc(100% + 40px);
  height: calc(100% + 40px);

  margin-left: -20px;
  margin-top: -20px;

  object-fit: cover;
  border-radius: 12px;
  display: block;
} */
@media (max-width: 1024px) {
  body.page-sd-quiz .video-container,
  body.page-smp-quiz .video-container,
  body.page-tk-quiz .video-container {
    width: 240px !important;
    height: 180px !important;
  }
}

/* Result dialog */
.result {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 200;
  max-width: 420px;
  padding: 40px;
  border: 4px solid white;
  border-radius: 20px;
  background: linear-gradient(to bottom, #ffd700, #ff9933);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translate(-50%, -50%);
}

body.page-sd-evaluasi .result {
  max-width: 420px;
  border-color: #3b82f6;
  background: white;
}

body.page-smp-evaluasi .result {
  max-width: 440px;
  border-color: #a855f7;
  background: white;
}

body.page-sma-evaluasi .result {
  max-width: 440px;
  border-color: #f97316;
  background: white;
}

body.page-tk-evaluasi .result {
  max-width: 400px;
  border: 0;
  background: white;
}

body.page-tk-quiz .result {
  max-width: 400px;
}

/* Mobile menu */
.site-offcanvas,
.site-offcanvas-backdrop {
  display: none;
}

body.offcanvas-open {
  overflow: hidden;
}

/* .doa {
  height: 100px;
} */

/* animasi mengambang di foto home */
/* Animasi mengambang */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation-name: floating;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Beda durasi & delay supaya tidak serentak */
.floating-1 {
  animation-duration: 3s;
  animation-delay: 0s;
}

.floating-2 {
  animation-duration: 4s;
  animation-delay: 1s;
}

.floating-3 {
  animation-duration: 3.5s;
  animation-delay: 0.5s;
}

.floating-4 {
  animation-duration: 4.5s;
  animation-delay: 1.5s;
}
/* akhir animasi */

@media (max-width: 768px) {
  .hindu-nav {
    position: sticky !important;
    top: 0;
  }

  .hindu-nav .container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hindu-nav h1 {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
  }

  .hindu-nav img {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .hindu-nav ul.hidden {
    display: none !important;
  }

  .hindu-nav button.md\:hidden {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    background: #fff;
    color: #cc0000;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .site-offcanvas {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 300;
    display: flex;
    width: min(82vw, 320px);
    height: 100dvh;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff8dc, #ffffff);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(105%);
    transition: transform 0.25s ease;
  }

  .site-offcanvas.is-open {
    transform: translateX(0);
  }

  .site-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 290;
    display: block;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-offcanvas-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #cc0000;
    font-family: "Baloo Bhai 2", cursive;
    font-size: 1.4rem;
    font-weight: 800;
  }

  .site-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #cc0000;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
  }

  .site-offcanvas a {
    display: block;
    border-radius: 18px;
    background: #ff9933;
    color: #fff;
    padding: 0.9rem 1rem;
    font-family: "Baloo Bhai 2", cursive;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(204, 0, 0, 0.15);
  }

  section.pt-24 {
    padding-top: 1.5rem !important;
  }

  .p-12 {
    padding: 1.5rem !important;
  }

  .p-8 {
    padding: 1.25rem !important;
  }

  .px-12 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .mx-8,
  .md\:mx-16 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  .mb-20,
  .mt-40 {
    margin-bottom: 3rem !important;
    margin-top: 3rem !important;
  }

  .text-8xl {
    font-size: 4rem !important;
  }

  .text-6xl,
  .md\:text-6xl {
    font-size: 2.75rem !important;
    line-height: 1.05 !important;
  }

  .text-5xl,
  .md\:text-5xl {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
  }

  .text-4xl,
  .md\:text-4xl {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  .text-3xl {
    font-size: 1.65rem !important;
    line-height: 1.15 !important;
  }

  .text-2xl,
  .md\:text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  .text-xl,
  .md\:text-xl {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }

  .grid-foto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    width: 100%;
  }

  @media (min-width: 769px) {
    .grid-foto {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .space-x-4:not(.hidden),
  .space-x-6:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .space-x-4:not(.hidden) > :not([hidden]) ~ :not([hidden]),
  .space-x-6:not(.hidden) > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .inline-block[class*="px-"],
  button[class*="px-"] {
    max-width: 100%;
    white-space: normal;
  }

  /* Video fixed kanan atas */
  .video-quiz {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 350px;
    height: 200px;
    z-index: 40;
  }

  /* Area quiz digeser supaya tidak ketabrak video */
  .page-sma-quiz .bingkai {
    margin-right: 360px;
  }

  /* Mobile */
  @media (max-width: 768px) {
    .video-quiz {
      position: relative;
      top: auto;
      right: auto;
      width: 100%;
      height: auto;
      margin-bottom: 20px;
    }

    .page-sma-quiz .bingkai {
      margin-right: 0;
    }
  }

  .video-container,
  body.page-sd-quiz .video-container,
  body.page-smp-quiz .video-container,
  body.page-tk-quiz .video-container {
    top: auto !important;
    bottom: 1px !important;
    left: 10px !important;
    width: 200px !important;
    height: 150px !important;
    margin: 0 !important;
  }
  .page-navbar-materi section {
    padding-right: 1rem !important;
  }

  .video-container video {
    height: 100% !important;
  }

  .video-frame {
    background-image: url("../img/border_video.jpg");
  }

  .card-video {
    width: min(100%, 240px) !important;
  }

  .result {
    width: calc(100% - 2rem) !important;
    max-width: 420px !important;
    padding: 1.5rem !important;
  }

  body.page-tk-evaluasi .result,
  body.page-tk-quiz .result {
    max-width: 400px !important;
  }

  footer {
    padding: 1.5rem 1rem !important;
  }

  /* =========================
     HP quiz: video di kiri bawah, gambar di kanan bawah (potrait)
  ========================= */

  /* body.page-sd-quiz #quizVideo,
  body.page-smp-quiz #quizVideo,
  body.page-tk-quiz #quizVideo,
  body.page-sma-quiz #quizVideo {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 130px !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
  } */

  /* body.page-sd-quiz #quizVideoSource,
  body.page-smp-quiz #quizVideoSource,
  body.page-tk-quiz #quizVideoSource,
  body.page-sma-quiz #quizVideoSource {
    width: 100% !important;
  } */

  /* body.page-sd-quiz #quizImage,
  body.page-smp-quiz #quizImage,
  body.page-tk-quiz #quizImage,
  body.page-sma-quiz #quizImage {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: auto !important;
    right: 12px !important;
    width: 130px !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
  } */

  body.page-sd-quiz .video-frame.fixed,
  body.page-smp-quiz .video-frame.fixed,
  body.page-tk-quiz .video-frame.fixed,
  body.page-sma-quiz .video-frame.fixed {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 130px !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
    z-index: 10 !important;
    border-radius: 20px !important;
    background-image: url("../img/border_video.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
  }

  body.page-sd-quiz .quiz-image-frame.fixed,
  body.page-smp-quiz .quiz-image-frame.fixed,
  body.page-tk-quiz .quiz-image-frame.fixed,
  body.page-sma-quiz .quiz-image-frame.fixed {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: auto !important;
    right: 12px !important;
    width: 130px !important;
    height: auto !important;
    aspect-ratio: 9 / 9;
    z-index: 10 !important;
  }

  body.page-sd-quiz section,
  body.page-smp-quiz section,
  body.page-tk-quiz section,
  body.page-sma-quiz section {
    padding-bottom: 280px !important;
  }

  /* Atur ulang posisi fixed agar:
     - video di kiri bawah
     - gambar di kanan bawah
  */
  body.page-sd-quiz .video-frame.fixed,
  body.page-smp-quiz .video-frame.fixed,
  body.page-tk-quiz .video-frame.fixed,
  body.page-sma-quiz .video-frame.fixed {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
  }

  body.page-sd-quiz .quiz-image-frame.fixed,
  body.page-smp-quiz .quiz-image-frame.fixed,
  body.page-tk-quiz .quiz-image-frame.fixed,
  body.page-sma-quiz .quiz-image-frame.fixed {
    right: 10px !important;
    left: auto !important;
    bottom: 12px !important;
  }

  /* Jangan sampai gambar/video border container lain ikut terdorong atau ter-hidden */
  body.page-sd-quiz #quizImage,
  body.page-smp-quiz #quizImage,
  body.page-tk-quiz #quizImage,
  body.page-sma-quiz #quizImage {
    display: block !important;
    object-fit: cover !important;
  }

  body.page-sd-quiz #quizVideo,
  body.page-smp-quiz #quizVideo,
  body.page-tk-quiz #quizVideo,
  body.page-sma-quiz #quizVideo {
    display: block !important;
    object-fit: cover !important;
  }

  /* =========================
     Materi/halaman umum: video landscape agar portrait di HP
     + gambar fixed (kalau ada) ditempatkan kanan bawah
  ========================= */

  /* Video materi (div.video-container fixed di HP) */
  body.page-navbar-materi .video-container,
  body.page-navbar-materi .video-frame,
  body.page-navbar-materi video {
    /* no-op (sekedar scope) */
  }

  @media (max-width: 768px) {
    /* Materi: video tetap portrait dan posisinya kiri bawah */
    body.page-navbar-materi .video-container {
      width: 130px !important;
      height: auto !important;
      aspect-ratio: 9 / 16 !important;
      bottom: 1px !important;
      top: auto !important;
      right: 12px !important;
      left: auto !important;
      position: fixed !important;
      z-index: 100 !important;
    }

    body.page-navbar-materi . video {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
    }

    body.page-navbar-materi .video-frame {
      width: 100% !important;
      height: 100% !important;
      display: block !important;
    }

    /* Jika ada gambar yang dibuat fixed di kanan/bawah, pastikan tampil portrait */
    body.page-navbar-materi img {
      max-width: 100% !important;
    }
  }
}
