/*
  © 2026 JomWARM. Hak Cipta Terpelihara.

  Fail CSS ini adalah sebahagian daripada projek JomWARM.
  Sebarang penyalinan, pengubahsuaian, pengedaran atau penggunaan
  tanpa kebenaran bertulis terlebih dahulu adalah dilarang sama sekali.
*/

/* =========================
   GLOBAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   HOME PAGE / INDEX
========================= */

.home-page {
  width: 100%;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
  border-top: none;
}

.home-hero {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: stretch;
  background: #ffffff;
  overflow: hidden;
}

/* LEFT CONTENT */
.home-content {
  width: 100%;
  height: 100vh;
  padding: 40px 5vw 150px 7vw;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  background-image: url("../media/image/colorful-waves.webp");
  background-position: left calc(100% + 55px);
  background-repeat: no-repeat;
  background-size: 100% auto;

  position: relative;
  z-index: 2;
}

.home-logo {
  width: 170px;
  max-width: 45vw;
  margin: 0 auto 30px;
}

.home-content h1 {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #25306b;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.12;
}

.home-content p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #25306b;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.home-button {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  padding: 16px 38px;
  border-radius: 50px;
  background: #fbac18;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 18px rgba(0,0,0,0.28);
}

/* RIGHT IMAGE - DESKTOP ONLY */
.home-visual {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-visual img {
  position: absolute;
  top: 0;
  right: -40px;
  left: auto;

  width: 106%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center center;

  -webkit-mask-image: url("../media/image/mask-1.png");
  mask-image: url("../media/image/mask-1.png");

  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;

  -webkit-mask-position: 102% center;
  mask-position: 102% center;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


/* =========================
   TABLET - HOME
   Mask dibuang untuk tablet
========================= */

@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .home-page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: none;
  }

  .home-hero {
    width: 100%;
    height: auto;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .home-content {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 540px;

    padding: 45px 7vw 230px;
    text-align: center;

    background-image: none;
    position: relative;
    overflow: hidden;
  }

  .home-content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);

    width: 100%;
    height: 260px;

    background-image: url("../media/image/colorful-waves.webp");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 850px auto;

    z-index: 0;
    pointer-events: none;
  }

  .home-logo,
  .home-content h1,
  .home-content p,
  .home-button {
    position: relative;
    z-index: 2;
  }

  .home-logo {
    width: 150px;
    max-width: 60vw;
    margin: 0 auto 28px;
  }

  .home-content h1 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 38px;
    line-height: 1.15;
  }

  .home-content p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    line-height: 1.5;
  }

  .home-button {
    margin-left: auto;
    margin-right: auto;
  }

  .home-visual {
    order: 2;
    width: 100vw;
    height: 55vh;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    overflow: hidden;
    position: relative;
  }

  .home-visual img {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;

    width: 100vw;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center center;

    -webkit-mask-image: none;
    mask-image: none;

    -webkit-mask-size: auto;
    mask-size: auto;

    -webkit-mask-position: initial;
    mask-position: initial;

    -webkit-mask-repeat: initial;
    mask-repeat: initial;
  }
}


/* =========================
   MOBILE - HOME
   Mask juga tiada di mobile
========================= */

@media (max-width: 767px) {
  .home-content {
    min-height: 555px;
    padding: 32px 26px 230px;
  }

  .home-content::after {
    height: 255px;
    bottom: -12px;
    background-size: 760px auto;
  }

  .home-logo {
    width: 145px;
    max-width: 60vw;
    margin-bottom: 25px;
  }

  .home-content h1 {
    font-size: 29px;
    line-height: 1.15;
    margin-bottom: 22px;
  }

  .home-content p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 32px;
  }

  .home-button {
    padding: 14px 34px;
    font-size: 16px;
  }

  .home-visual {
    width: 100vw;
    height: 48vh;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    overflow: hidden;
  }

  .home-visual img {
    width: 100vw;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    -webkit-mask-image: none;
    mask-image: none;
  }
}


/* =========================
   MANUSIA
========================= */

.manusia-page {
  width: 100%;
  height: calc(100vh - 38px);
  border-top: 18px solid #25306b;
  overflow: hidden;
}

.manusia-grid {
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.manusia-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* IMAGE */
.manusia-image {
  cursor: default;
}

.manusia-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;
}

/* TEXT */
.manusia-text {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 32px;
  color: #ffffff;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.manusia-content {
  max-width: 430px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.manusia-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 52px;
  height: 52px;

  padding: 10px 20px;
  margin-bottom: 20px;

  border-radius: 50px;
  background: #ffffff;

  font-size: 28px;
  font-weight: 700;

  box-shadow: 0 8px 10px rgba(0,0,0,0.35);
}

.manusia-text h2 {
  margin-bottom: 18px;

  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.manusia-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* LABEL BUTANG
   Default: sentiasa nampak untuk tablet/mobile/touch device */
.manusia-text::after {
  content: "Tekan untuk mula ➜";

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  margin: 18px auto 0;
  padding: 8px 16px;

  border-radius: 999px;

  background: #ffffff;
  color: #25306b;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  opacity: 1;
  transform: none;

  box-shadow: 0 4px 8px rgba(0,0,0,0.16);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Desktop sahaja: label muncul bila hover */
@media (hover: hover) and (pointer: fine) {
  .manusia-text:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    filter: brightness(1.04);
    z-index: 2;
  }

  .manusia-text::after {
    position: absolute;
    right: 24px;
    bottom: 20px;

    margin: 0;

    opacity: 0;
    transform: translateY(6px);
  }

  .manusia-text:hover::after {
    opacity: 1;
    transform: translateY(0);
  }
}

/* COLORS */
.manusia-pink {
  background: #fe4980;
}

.manusia-pink .manusia-number {
  color: #fe4980;
}

.manusia-orange {
  background: #fbac18;
}

.manusia-orange .manusia-number {
  color: #fbac18;
}

.manusia-blue {
  background: #16c4e3;
}

.manusia-blue .manusia-number {
  color: #16c4e3;
}

.manusia-green {
  background: #7dbe48;
}

.manusia-green .manusia-number {
  color: #7dbe48;
}

/* FOOTER */
.footer {
  height: 38px;

  text-align: center;
  padding: 10px;

  font-size: 13px;

  color: #ffffff;
  background: #25306b;
}


/* =========================
   TABLET - MANUSIA
========================= */

@media (max-width: 1024px) {
  .manusia-page {
    height: auto;
    overflow: visible;
  }

  .manusia-grid {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .manusia-card {
    aspect-ratio: 1 / 1;
  }

  .manusia-text {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .manusia-text:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .manusia-text::after {
    position: static;

    margin: 18px auto 0;

    opacity: 1;
    transform: none;
  }
}


/* =========================
   MOBILE - MANUSIA
========================= */

@media (max-width: 767px) {
  .manusia-grid {
    grid-template-columns: 1fr;
  }

  .manusia-text {
    padding: 28px;
  }

  .manusia-number {
    min-width: 48px;
    height: 48px;

    padding: 9px 18px;
    margin-bottom: 18px;

    font-size: 25px;
  }

  .manusia-text h2 {
    font-size: 24px;
  }

  .manusia-text p {
    font-size: 15px;
  }

  .manusia-text::after {
    margin-top: 16px;
    padding: 8px 15px;
    font-size: 13px;
  }
}


/* =========================
   SISTEM RANGKA PAGE
========================= */

.topic-page {
  --topic-panel-height: min(730px, calc(100vh - 75px));

  width: 100%;
  min-height: calc(100vh - 38px);
  position: relative;
  overflow: hidden;

  background-image: url("../media/image/bg-belakang.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.topic-page::before {
  content: none;
}

/* MAIN LAYOUT */
.topic-hero {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: calc(100vh - 38px);

  display: grid;
  grid-template-columns: 300px 850px;
  gap: 0;
  align-items: center;
  justify-content: center;

  padding: 30px 5vw 10px;
}


/* =========================
   LEFT CONTENT CARD
========================= */

.topic-content {
  grid-column: 1;
  grid-row: 1;

  width: 100%;
  height: var(--topic-panel-height);
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding: 24px 22px 22px;

  background: #ffffff;
  border-radius: 8px 0 0 8px;
  box-shadow: 5px 0 10px rgba(0,0,0,0.35);

  text-align: center;
}

.topic-logo {
  width: 42%;
  max-width: 130px;
  height: auto;
  margin-bottom: 18px;
}

.topic-icon {
  width: 62%;
  max-width: 180px;
  height: auto;
  margin-bottom: 14px;
}

.topic-content h1 {
  margin: 0 0 14px;
  color: #3a3d72;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
}

.topic-content p {
  margin: 0 0 18px;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}


/* BUTTONS */
.topic-button-list {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 13px;

  margin-top: 6px;
}

.topic-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border-radius: 50px;
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;

  box-shadow: 0 5px 8px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.topic-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 13px rgba(0,0,0,0.28);
  opacity: 0.96;
}

.topic-button-blue,
.topic-button-orange,
.topic-button-green {
  background: #fe4980;
}

/* BUTANG AKTIF / PAGE SEMASA */
.topic-button.topic-button-active {
  background: #fbac18;
  color: #25306b;
  pointer-events: none;
  cursor: default;
  box-shadow: 0 5px 8px rgba(0,0,0,0.18);
}

.topic-button.topic-button-active:hover {
  transform: none;
  opacity: 1;
  box-shadow: 0 5px 8px rgba(0,0,0,0.18);
}

.topic-button-pink {
  width: 58%;
  align-self: center;

  margin-top: 28px;
  background: #010757;
  border-radius: 10px;
  gap: 14px;
}

.topic-menu-arrow {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border-radius: 50%;
  background: #ffffff;

  flex: 0 0 20px;
}

.topic-menu-arrow::before {
  content: "";
  position: absolute;

  width: 7px;
  height: 7px;

  border-left: 3px solid #010757;
  border-bottom: 3px solid #010757;

  transform: rotate(45deg);
  left: 7px;
}

.topic-menu-arrow::after {
  content: "";
  position: absolute;

  width: 8px;
  height: 3px;

  background: #010757;
  left: 7px;
}


/* =========================
   RIGHT VIDEO / MEDIA CARD
========================= */

.topic-media {
  grid-column: 2;
  grid-row: 1;

  width: 100%;
  max-width: none;
  height: var(--topic-panel-height);

  display: flex;
  align-items: stretch;
  justify-content: center;

  padding: 12px;

  background: #ffffff;
  border-radius: 0 8px 8px 0;
  box-shadow: 5px 0 10px rgba(0,0,0,0.35);

  overflow: hidden;
}

.topic-video {
  width: 100%;
  height: 100%;

  display: block;

  border: none;
  border-radius: 0;

  background: #000000;
  object-fit: contain;
  object-position: center center;
}


/* =========================
   TABLET LANDSCAPE - SISTEM RANGKA
   Paparan kiri-kanan seperti desktop
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .topic-page {
    --topic-panel-height: min(650px, calc(100vh - 75px));

    min-height: calc(100vh - 38px);
    overflow: hidden;

    background-image: url("../media/image/bg-belakang.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .topic-hero {
    min-height: calc(100vh - 38px);

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    align-items: center;
    justify-content: center;

    padding: 24px 4vw 10px;
  }

  .topic-content {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: var(--topic-panel-height);

    padding: 20px 18px;

    border-radius: 8px 0 0 8px;
  }

  .topic-logo {
    width: 115px;
    max-width: 48%;
    margin-bottom: 14px;
  }

  .topic-icon {
    width: 145px;
    max-width: 66%;
    margin-bottom: 12px;
  }

  .topic-content h1 {
    font-size: 23px;
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .topic-content p {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .topic-button-list {
    width: 100%;
    max-width: none;
    gap: 11px;
  }

  .topic-button {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .topic-button-pink {
    width: 60%;
    margin-top: 16px;
  }

  .topic-media {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    max-width: none;
    height: var(--topic-panel-height);
    margin: 0;

    aspect-ratio: auto;
    padding: 12px;

    border-radius: 0 8px 8px 0;
  }

  .topic-video {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}


/* =========================
   TABLET PORTRAIT - SISTEM RANGKA
   Paparan atas-bawah
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .topic-page {
    --topic-panel-height: auto;

    min-height: auto;
    overflow: visible;

    background-image: url("../media/image/bg-belakang.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .topic-page::before {
    content: none;
  }

  .topic-hero {
    min-height: auto;

    grid-template-columns: 1fr;
    gap: 28px;

    padding: 60px 7vw 44px;
  }

  .topic-content {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    height: auto;
    min-height: auto;

    padding: 32px 28px;

    border-radius: 10px;
  }

  .topic-logo {
    width: 140px;
    max-width: 42vw;
    margin-bottom: 22px;
  }

  .topic-icon {
    width: 200px;
    max-width: 58vw;
  }

  .topic-content h1 {
    font-size: 30px;
  }

  .topic-content p {
    max-width: 560px;
    font-size: 18px;
  }

  .topic-button-list {
    max-width: 460px;
    gap: 14px;
  }

  .topic-button-pink {
    width: 58%;
    margin-top: 28px;
  }

  .topic-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto;

    aspect-ratio: 16 / 9;
    padding: 0;

    border-radius: 10px;
  }

  .topic-video {
    width: 100%;
    height: 100%;
    object-fit: contain;

    border-radius: 10px;
  }
}


/* =========================
   MOBILE - SISTEM RANGKA
========================= */

@media (max-width: 767px) {
  .topic-page {
    --topic-panel-height: auto;

    min-height: auto;
    overflow: visible;

    background-image: url("../media/image/bg-belakang.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .topic-hero {
    min-height: auto;

    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;

    padding: 48px 22px 34px;
  }

  .topic-content {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    height: auto;
    min-height: auto;

    padding: 28px 22px 26px;
    border-radius: 10px;
  }

  .topic-logo {
    width: 130px;
    max-width: 56vw;
    margin-bottom: 20px;
  }

  .topic-icon {
    width: 180px;
    max-width: 66vw;
    margin-bottom: 14px;
  }

  .topic-content h1 {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .topic-content p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .topic-button-list {
    gap: 13px;
  }

  .topic-button {
    padding: 12px 18px;
    font-size: 15px;
  }

  .topic-button-pink {
    width: 58%;
    margin-top: 24px;
  }

  .topic-menu-arrow {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .topic-menu-arrow::before {
    width: 6px;
    height: 6px;
    border-left-width: 3px;
    border-bottom-width: 3px;
    left: 6px;
  }

  .topic-menu-arrow::after {
    width: 7px;
    height: 3px;
    left: 6px;
  }

  .topic-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;
    padding: 0;

    border-radius: 10px;
  }

  .topic-video {
    width: 100%;
    height: 100%;
    object-fit: contain;

    border-radius: 10px;
  }
}


/* =========================
   VIDEO OVERLAY
========================= */

.topic-video-wrap {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 8px;
}

.topic-video-overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: none;
  background: transparent;

  cursor: pointer;
  z-index: 2;
}

.topic-video-overlay-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center center;

  z-index: 1;
}

.topic-video-overlay::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.08);

  z-index: 2;
}

.topic-play-button {
  position: relative;
  z-index: 3;

  width: 88px;
  height: 88px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255, 0, 0, 0.82);

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.topic-video-overlay:hover .topic-play-button {
  transform: scale(1.06);
  background: rgba(255, 0, 0, 0.92);
}

.topic-play-icon {
  width: 0;
  height: 0;

  margin-left: 7px;

  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
}

.topic-video-overlay.is-hidden {
  display: none;
}


/* =========================
   NOTA RANGKA - SELF-HOSTED SLIDE
========================= */

.nota-rangka-page .topic-slide-media {
  padding: 12px;
}

.warm-slide-viewer {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.warm-slide-stage {
  width: 100%;
  flex: 1;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;

  overflow: hidden;
  background: #eef7fb;
}

.warm-slide-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center center;

  background: #ffffff;
  border: 1px solid #d7e4ea;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.warm-slide-controls {
  width: 100%;
  height: 54px;
  flex: 0 0 54px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  background: #25306b;
  z-index: 5;
}

.warm-slide-btn {
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: #ffffff;
  color: #25306b;

  font-family: 'Quicksand', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.warm-slide-btn:hover {
  transform: scale(1.06);
}

.warm-slide-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.warm-slide-counter {
  min-width: 86px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.warm-slide-download {
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;

  border-radius: 50px;

  background: #ffffff;
  color: #25306b;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 4px 8px rgba(0,0,0,0.18);

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.warm-slide-download:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}


/* =========================
   TABLET LANDSCAPE - NOTA RANGKA SLIDE
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .nota-rangka-page .topic-slide-media {
    padding: 12px;
    aspect-ratio: auto;
  }

  .warm-slide-viewer {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

  .warm-slide-stage {
    padding: 10px;
  }

  .warm-slide-controls {
    height: 48px;
    flex-basis: 48px;
    gap: 14px;
  }

  .warm-slide-btn {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }

  .warm-slide-counter {
    min-width: 82px;
    font-size: 15px;
  }

  .warm-slide-download {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
}


/* =========================
   TABLET PORTRAIT - NOTA RANGKA SLIDE
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .nota-rangka-page .topic-slide-media {
    padding: 0;
    aspect-ratio: 16 / 9;
  }

  .warm-slide-viewer {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .warm-slide-stage {
    width: 100%;
    flex: 1;
    min-height: 0;

    padding: 10px;
  }

  .warm-slide-image {
    border-radius: 6px;
  }

  .warm-slide-controls {
    height: 48px;
    flex-basis: 48px;
    gap: 14px;
  }

  .warm-slide-btn {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }

  .warm-slide-counter {
    min-width: 82px;
    font-size: 15px;
  }

  .warm-slide-download {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
}


/* =========================
   MOBILE - NOTA RANGKA SLIDE
========================= */

@media (max-width: 767px) {
  .nota-rangka-page .topic-slide-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .nota-rangka-page .topic-content {
    grid-column: 1;
    grid-row: 2;
  }

  .warm-slide-viewer {
    width: 100%;
    height: 100%;
  }

  .warm-slide-stage {
    width: 100%;
    flex: 1;
    min-height: 0;

    padding: 6px;
  }

  .warm-slide-image {
    border-radius: 4px;
    border: 1px solid #d7e4ea;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
  }

  .warm-slide-controls {
    height: 46px;
    flex-basis: 46px;
    gap: 10px;
  }

  .warm-slide-btn {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .warm-slide-counter {
    min-width: 76px;
    font-size: 13px;
  }

  .warm-slide-download {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}


/* =========================
   WEBAR RANGKA PAGE
========================= */

.webar-rangka-page .webar-launch-media {
  padding: 12px;
}

.webar-launch-card {
  width: 100%;
  height: 100%;

  display: block;

  padding: 0;
  border: none;
  border-radius: 8px;

  overflow: hidden;
  background: #000000;

  cursor: pointer;
}

.webar-launch-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;

  transition: transform 0.35s ease;
}

.webar-launch-card:hover .webar-launch-image {
  transform: scale(1.025);
}


/* =========================
   TABLET PORTRAIT - WEBAR RANGKA
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .webar-rangka-page .webar-launch-media {
    padding: 0;
    aspect-ratio: 16 / 9;
  }

  .webar-launch-card {
    border-radius: 10px;
  }
}


/* =========================
   MOBILE - WEBAR RANGKA
========================= */

@media (max-width: 767px) {
  .webar-rangka-page .webar-launch-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .webar-rangka-page .topic-content {
    grid-column: 1;
    grid-row: 2;
  }

  .webar-launch-card {
    border-radius: 10px;
  }
}


/* =========================
   WEBAR FULLSCREEN IFRAME
========================= */

.warm-ar-wrap {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;
  height: 100svh;

  display: none;

  background: #000000;

  z-index: 999999;
  overflow: hidden;
}

.warm-ar-wrap.is-open {
  display: block;
}

.warm-ar-iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  border: 0;
  background: #000000;
}

.warm-ar-close {
  position: fixed;
  top: 14px;
  right: 14px;
  left: auto;
  transform: none;

  z-index: 1000000;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.85);

  background: rgba(0,0,0,0.78);
  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 4px 14px rgba(0,0,0,0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.warm-ar-close:hover {
  background: rgba(0,0,0,0.9);
}

@supports (padding: env(safe-area-inset-top)) {
  .warm-ar-close {
    top: calc(10px + env(safe-area-inset-top));
  }
}


/* =========================
   KUIZ RANGKA PAGE
========================= */

.kuiz-rangka-page .quiz-media {
  padding: 12px;
}

.quiz-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: linear-gradient(135deg, #eef7fb 0%, #dff4fa 100%);
  border: 3px dashed #16c4e3;

  overflow: hidden;
}

.quiz-placeholder-content {
  width: 88%;
  max-width: 620px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 42px 36px;

  text-align: center;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.quiz-placeholder-content h2 {
  margin-bottom: 16px;

  color: #25306b;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
}

.quiz-placeholder-content p {
  max-width: 520px;
  margin-bottom: 20px;

  color: #25306b;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.quiz-placeholder-content span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  border-radius: 50px;

  background: #fbac18;
  color: #25306b;

  font-size: 16px;
  font-weight: 700;

  box-shadow: 0 5px 8px rgba(0,0,0,0.18);
}


/* =========================
   TABLET PORTRAIT - KUIZ RANGKA
========================= */

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .kuiz-rangka-page .quiz-media {
    padding: 0;
    aspect-ratio: 16 / 9;
  }

  .quiz-placeholder {
    border-radius: 10px;
  }

  .quiz-placeholder-content {
    width: 88%;
    padding: 34px 28px;
  }

  .quiz-placeholder-content h2 {
    font-size: 34px;
  }

  .quiz-placeholder-content p {
    font-size: 18px;
  }
}


/* =========================
   MOBILE - KUIZ RANGKA
========================= */

@media (max-width: 767px) {
  .kuiz-rangka-page .quiz-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .kuiz-rangka-page .topic-content {
    grid-column: 1;
    grid-row: 2;
  }

  .quiz-placeholder {
    border-radius: 10px;
    border-width: 2px;
  }

  .quiz-placeholder-content {
    width: 88%;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .quiz-placeholder-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
  }

  .quiz-placeholder-content p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.35;
  }

  .quiz-placeholder-content span {
    padding: 9px 16px;
    font-size: 12px;
  }
}
/* =========================================================
   WEBAR ULANGKAJI - CAROUSEL PILIHAN AR
   ========================================================= */

/* Layout khas untuk page ulangkaji sahaja */
.webar-ulangkaji-page .topic-hero {
  grid-template-columns: 300px 850px;
  align-items: center;
  justify-content: center;
  padding: 30px 5vw 10px;
}

.webar-ulangkaji-page .topic-content {
  z-index: 5;
}

.webar-ulangkaji-page .topic-media {
  height: var(--topic-panel-height);
}

/* Panel kanan */
.webar-ulangkaji-media {
  position: relative;
  width: 100%;
  min-height: 620px;
  padding: 24px 34px 28px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webar-ulangkaji-media img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Carousel wrapper */
.webar-carousel {
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}

.webar-carousel-header {
  margin-bottom: 18px;
}

.webar-carousel-header h2 {
  margin: 0 0 8px;
  color: #171653;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}

.webar-carousel-header p {
  margin: 0;
  color: #22223d;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.webar-tap-icon {
  color: #f83b7a;
  font-size: 28px;
  line-height: 1;
}

/* Stage utama */
.webar-carousel-stage {
  position: relative;
  width: 100%;
  min-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Kad utama - desktop */
.webar-carousel-card {
  position: relative;
  width: 660px;
  min-height: 430px;
  padding: 42px 42px;
  border: 5px solid #91d8ef;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: 43% 57%;
  gap: 26px;
  align-items: center;
  z-index: 4;
  overflow: visible;
}

/* Animasi slide ringan untuk kad utama */
.webar-carousel-card.is-slide-out-left {
  animation: webarSlideOutLeft 0.22s ease forwards;
}

.webar-carousel-card.is-slide-out-right {
  animation: webarSlideOutRight 0.22s ease forwards;
}

.webar-carousel-card.is-slide-in-left {
  animation: webarSlideInLeft 0.26s ease forwards;
}

.webar-carousel-card.is-slide-in-right {
  animation: webarSlideInRight 0.26s ease forwards;
}

@keyframes webarSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes webarSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(34px);
  }
}

@keyframes webarSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes webarSlideInRight {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Kad bayang kiri dan kanan */
.webar-side-card {
  position: absolute;
  top: 50%;
  width: 235px;
  height: 285px;
  transform: translateY(-50%);
  border-radius: 24px;
  background: #ffffff;
  opacity: 0.65;
  overflow: hidden;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.webar-side-card-left {
  left: 24px;
  border: 4px solid #ffb7cf;
  background: #fff5fa;
}

.webar-side-card-right {
  right: 24px;
  border: 4px solid #b9df9d;
  background: #f7fff4;
}

.webar-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.webar-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.32);
}

/* Gambar utama */
.webar-carousel-image-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  padding: 8px;
  border-radius: 22px;
  background: #eaf8ff;
  border: 3px solid rgba(22, 119, 242, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.webar-carousel-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 16px;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

/* Info kanan */
.webar-carousel-info {
  text-align: center;
  padding: 0 18px 0 4px;
}

.webar-carousel-info h3 {
  margin: 0 0 14px;
  color: #1d1b5f;
  font-size: 33px;
  line-height: 1.16;
  font-weight: 700;
  word-break: normal;
}

.webar-carousel-info h3::after {
  content: "";
  display: block;
  width: 84%;
  height: 5px;
  margin: 15px auto 0;
  border-radius: 999px;
  background: #f7b31a;
}

.webar-carousel-info p {
  max-width: 370px;
  margin: 0 auto 24px;
  color: #25253a;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
}

/* Button Buka WebAR */
.webar-carousel-launch {
  min-width: 230px;
  min-height: 54px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #1677f2;
  color: #ffffff;
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 119, 242, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webar-carousel-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 119, 242, 0.42);
}

.webar-launch-icon {
  font-size: 21px;
  line-height: 1;
}

/* Anak panah */
.webar-carousel-arrow {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #1677f2;
  font-size: 48px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webar-carousel-arrow:hover {
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.webar-carousel-arrow-left {
  left: 44px;
  transform: translateY(-50%);
}

.webar-carousel-arrow-right {
  right: 44px;
  transform: translateY(-50%);
}

.webar-carousel-arrow-left:hover,
.webar-carousel-arrow-right:hover {
  transform: translateY(-50%) scale(1.06);
}

/* Dots */
.webar-carousel-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.webar-carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.webar-carousel-dot.is-active {
  background: #1677f2;
  transform: scale(1.1);
}

/* Dekorasi kecil */
.webar-deco {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  font-weight: 700;
}

.webar-deco-star-1 {
  top: 30px;
  left: 24px;
  color: #ff3d7c;
  font-size: 44px;
}

.webar-deco-star-2 {
  right: 28px;
  bottom: 22px;
  color: #f7b31a;
  font-size: 42px;
}

.webar-deco-line {
  top: 30px;
  right: 46px;
  color: #1baeea;
  font-size: 42px;
  transform: rotate(-20deg);
}

/* Tablet landscape / skrin sederhana */
@media (max-width: 1250px) {
  .webar-ulangkaji-page .topic-hero {
    grid-template-columns: 300px 850px;
  }

  .webar-carousel-card {
    width: 660px;
    min-height: 430px;
    padding: 42px 42px;
    gap: 26px;
  }

  .webar-carousel-image-wrap {
    height: 300px;
  }

  .webar-side-card {
    width: 235px;
    height: 285px;
  }

  .webar-side-card-left {
    left: 24px;
  }

  .webar-side-card-right {
    right: 24px;
  }

  .webar-carousel-arrow-left {
    left: 44px;
  }

  .webar-carousel-arrow-right {
    right: 44px;
  }

  .webar-carousel-info h3 {
    font-size: 29px;
  }

  .webar-carousel-info p {
    font-size: 18px;
  }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .webar-ulangkaji-page .topic-hero {
    grid-template-columns: 1fr;
  }

  .webar-ulangkaji-media {
    min-height: 560px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .webar-ulangkaji-page {
    overflow: visible;
  }

  .webar-ulangkaji-page .topic-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 22px 34px;
  }

  .webar-ulangkaji-page .topic-media,
  .webar-ulangkaji-media {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: auto;
    min-height: auto;
    aspect-ratio: auto;

    padding: 20px 14px 24px;

    border-radius: 10px;
    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .webar-ulangkaji-page .topic-content {
    grid-column: 1;
    grid-row: 2;
  }

  .webar-carousel {
    width: 100%;
    max-width: 100%;
  }

  .webar-carousel-header {
    margin-bottom: 18px;
  }

  .webar-carousel-header h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .webar-carousel-header p {
    font-size: 15px;
    line-height: 1.35;
  }

  .webar-carousel-stage {
    width: 100%;
    min-height: auto;
    padding: 0 34px;
    overflow: visible;
  }

  .webar-side-card {
    display: none;
  }

  .webar-carousel-card {
    width: 100%;
    min-height: auto;

    padding: 20px 16px 24px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    border-width: 4px;
    border-radius: 24px;
  }

  .webar-carousel-image-wrap {
    width: 100%;
    height: 230px;
    padding: 8px;
  }

  .webar-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .webar-carousel-info {
    padding: 0;
  }

  .webar-carousel-info h3 {
    font-size: 22px;
    line-height: 1.18;
    margin-bottom: 10px;
  }

  .webar-carousel-info h3::after {
    width: 72%;
    height: 4px;
    margin-top: 12px;
  }

  .webar-carousel-info p {
    max-width: 280px;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .webar-carousel-launch {
    min-width: 190px;
    min-height: 48px;
    font-size: 16px;
  }

  .webar-carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 38px;
    z-index: 10;
  }

  .webar-carousel-arrow-left {
    left: 0;
  }

  .webar-carousel-arrow-right {
    right: 0;
  }

  .webar-carousel-dots {
    margin-top: 10px;
    gap: 8px;
  }

  .webar-carousel-dot {
    width: 10px;
    height: 10px;
  }

  .webar-carousel-dot.is-active {
    transform: scale(1.1);
  }

  .webar-deco-star-1,
  .webar-deco-star-2,
  .webar-deco-line {
    display: none;
  }
}

/* Mobile kecil */
@media (max-width: 480px) {
  .webar-carousel-stage {
    padding: 0 30px;
  }

  .webar-carousel-card {
    padding: 18px 14px 22px;
  }

  .webar-carousel-image-wrap {
    height: 220px;
  }

  .webar-carousel-image {
    object-fit: contain;
    object-position: center top;
  }

  .webar-carousel-info h3 {
    font-size: 21px;
  }

  .webar-carousel-info p {
    font-size: 15px;
  }

  .webar-carousel-launch {
    min-width: 175px;
    min-height: 46px;
    font-size: 15px;
  }

  .webar-carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 36px;
  }
}
/* =========================
   SLIDE VIEWER - PAPARAN PENUH
========================= */

.warm-slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  overflow: visible;
}

.warm-slide-fullscreen {
  height: 38px;
  min-width: 128px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;
  padding: 0 16px;

  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;

  background: #fbac18;
  color: #25306b;

  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
  white-space: nowrap;

  position: relative;
  z-index: 20;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.warm-slide-fullscreen:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.warm-slide-viewer:fullscreen {
  width: 100vw;
  height: 100vh;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  padding: 20px;
  border-radius: 0;
}

.warm-slide-viewer:fullscreen .warm-slide-stage {
  flex: 1;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;
}

.warm-slide-viewer:fullscreen .warm-slide-image {
  width: auto;
  height: calc(100vh - 120px);

  max-width: 100%;
  max-height: calc(100vh - 120px);

  object-fit: contain;
}

.warm-slide-viewer:fullscreen .warm-slide-controls {
  height: 60px;
  flex: 0 0 60px;
  margin-top: 10px;
}

/* Safari */
.warm-slide-viewer:-webkit-full-screen {
  width: 100vw;
  height: 100vh;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  padding: 20px;
  border-radius: 0;
}
/* =========================
   MOBILE - HOME CLEAN VERSION
========================= */

@media (max-width: 767px) {
  .home-page {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
  }

  .home-hero {
    min-height: 100vh;
    height: 100vh;
    display: block;
    background: #ffffff;
  }

  .home-content {
    width: 100%;
    min-height: 100vh;
    height: 100vh;

    padding: 42px 28px 220px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
    background-image: none;
    overflow: hidden;
  }

  .home-content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);

    width: 120%;
    height: 260px;

    background-image: url("../media/image/colorful-waves.webp");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 780px auto;

    z-index: 0;
    pointer-events: none;
  }

  .home-logo {
    width: 125px;
    max-width: 55vw;
    margin: 0 auto 26px;
  }

  .home-content h1 {
    max-width: 390px;
    margin: 0 auto 24px;

    font-size: 26px;
    line-height: 1.22;
  }

  .home-content p {
    max-width: 360px;
    margin: 0 auto 32px;

    font-size: 17px;
    line-height: 1.45;
  }

  .home-button {
    padding: 14px 34px;
    font-size: 15px;
  }

  .home-visual {
    display: none;
  }
}
/* =========================================================
   FIX VIDEO RESPONSIVE - TOPIC VIDEO PAGES
   Letakkan blok ini di BAWAH sekali dalam style.css
   ========================================================= */

.topic-media:has(.topic-video-wrap) {
  align-items: center;
  justify-content: center;
}

.topic-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000000;
}

.topic-video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  border-radius: 8px;
  background: #000000;
  object-fit: contain;
  object-position: center center;
}

.topic-video-overlay,
.topic-video-overlay-image {
  width: 100%;
  height: 100%;
}

.topic-video-overlay-image {
  object-fit: cover;
  object-position: center center;
}

.topic-video:fullscreen,
.topic-video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  object-position: center center;
  background: #000000;
  border-radius: 0;
}

@media (min-width: 1181px) {
  .topic-media:has(.topic-video-wrap) {
    height: var(--topic-panel-height);
    padding: 12px;
  }

  .topic-media:has(.topic-video-wrap) .topic-video-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
  .topic-media:has(.topic-video-wrap) {
    height: var(--topic-panel-height);
    padding: 12px;
  }

  .topic-media:has(.topic-video-wrap) .topic-video-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .topic-media:has(.topic-video-wrap) {
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .topic-media:has(.topic-video-wrap) .topic-video-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .topic-media:has(.topic-video-wrap) .topic-video {
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  .topic-media:has(.topic-video-wrap) {
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .topic-media:has(.topic-video-wrap) .topic-video-wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .topic-media:has(.topic-video-wrap) .topic-video {
    border-radius: 10px;
  }
}
