/* ==================================================
   HERO SLIDER – RESPONSIVE (TEXT & IMAGE TETAP 1 BARIS DI MOBILE)
================================================== */

/* ===============================
   BASE & WRAPPER
================================ */

.hero-slider {
  position: relative;
  width: 100%;
  margin-top: 90px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
}

/* ===============================
   SLIDE BASE
================================ */

.slide {
  position: relative;
  width: 100%;
  height: 600px;
  display: none;
}

.slide.active {
  display: block;
}

/* ===============================
   SLIDE INNER
================================ */

.slide-inner-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  display: flex;
  align-items: center;
}

/* Background text besar */
.slide-inner-container::after {
  content: "印尼语\A INDONESIA";
  white-space: pre-line;

  position: absolute;
  top: 45%;
  left: -220px;
  transform: translateY(-50%);

  width: fit-content;
  text-align: center;

  font-family:
    "PingFang SC", "Microsoft YaHei", "Heiti SC", "Noto Sans SC", Arial,
    sans-serif;
  font-size: clamp(12rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;

  color: rgba(190, 190, 190, 0.015);

  text-shadow:
    1px 0 0 rgba(190, 190, 190, 0.015),
    -1px 0 0 rgba(190, 190, 190, 0.015),
    0 1px 0 rgba(190, 190, 190, 0.015),
    0 -1px 0 rgba(190, 190, 190, 0.015),
    1px 1px 0 rgba(190, 190, 190, 0.015),
    -1px -1px 0 rgba(190, 190, 190, 0.015),
    2px 0 0 rgba(190, 190, 190, 0.015),
    -2px 0 0 rgba(190, 190, 190, 0.015),
    0 2px 0 rgba(190, 190, 190, 0.015),
    0 -2px 0 rgba(190, 190, 190, 0.015);

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 30%,
    black 55%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 30%,
    black 55%
  );

  pointer-events: none;
  z-index: 1;
}

/* BARIS KEDUA (INDONESIA) LEBIH RAPAT */
.slide-inner-container::after::first-line {
  letter-spacing: 0.05em;
}

/* ===============================
   NAVIGATION
================================ */

.slider-arrows {
  position: absolute;
  top: 50%;
  inset-inline: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  color: #b50804; /* icon merah → tetap terlihat di putih */
  font-weight: bold;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);

  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: #b50804;
  color: #fff;
  border-color: #b50804;
  transform: scale(1.08);
}

/* DOTS */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
  border: 2px solid #961b1a;
}
/* ===============================
   CONTENT GRID
================================ */

.slide-content-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.slide-content-wrapper-2 {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  width: 100%;
  height: 100%;
}

/* ===============================
   LOGO
================================ */

.slide-logo-mini-2 {
  position: absolute;
  bottom: 0px;
  left: 30px;
  z-index: 3;
}

.slide-logo-mini-2 img {
  height: 70px;
  margin-bottom: 0px;
  position: absolute;
  bottom: 10px;
}

/* ===============================
   TEXT SIDE
================================ */

.slide-text-side {
  color: #fff;
  z-index: 5;
  padding-top: 40px;
}

.slide-logo-mini-2 {
  position: absolute;
  z-index: 100;
}

.slide-logo-mini img,
.slide-logo-mini-2 img {
  height: 70px;
  margin-bottom: 20px;
}

.bevel-text {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow:
    2px 2px 0 #d2924d,
    3px 3px 0 #b35d1c;
}

.text-highlight {
  background: yellow;
  color: #b50804;
  text-shadow: none;
}

.text-divider {
  width: 480px;
  height: 3px;
  background: #fff;
  margin: 20px 0;
}

.slide-text-side p {
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 630px;
  font-weight: 600;
}

.btn-start {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 40px;
  border-radius: 50px;
  background: #fff;
  color: #b50804;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
}

/* ===============================
   IMAGE SIDE
================================ */

.slide-image-side {
  position: relative;
  height: 100%;
}

.hero-person {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  object-fit: contain;
  z-index: 10;
}

/* ===============================
   SLIDE 1
================================ */

.slide-1 {
  background: linear-gradient(300deg, #966708, #b50804);
}

.slide-2 {
  background: #ececec;
}

/* ===============================
   NAVIGATION
================================ */

.slider-arrows,
.slider-dots {
  position: absolute;
  z-index: 20;
}

/* ===============================
   SLIDE 2 SPECIFIC STYLES
================================ */

.slide-title-large {
  font-size: 3.2rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.2;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  background: #b50804;
  border-radius: 30px 0 0 30px;
  padding: 10px 65px 10px 65px;
  max-width: 420px;
  transition: transform 0.3s ease;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  min-height: 75px;
}

.benefit-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ff7e47; /* Warna orange/gold sesuai gambar */
  font-style: italic;
  margin-right: 20px;
  min-width: 60px;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.benefit-text {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

.mt-20 {
  margin-top: 30px;
}

/* ===============================
   RESPONSIVE SLIDE 2
================================ */

@media (max-width: 768px) {
  .slide-title-large {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .benefit-number {
    font-size: 1.4rem;
    min-width: 40px;
    margin-right: 10px;
  }

  .benefit-text {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .slide-2 .slide-content-wrapper {
    grid-template-columns: 1.5fr 0.5fr; /* Memberi ruang lebih untuk teks di HP */
  }
}

/* ==================================================
   📱 UKURAN SEDANG (TABLET / LAPTOP KECIL)
================================================== */
@media (max-width: 1360px) {
  .bevel-text {
    font-size: 3.8rem;
    line-height: 1.2;
  }

  .slide-text-side p {
    font-size: 1.35rem;
    line-height: 1.6;
  }

  .slide-inner-container {
    padding: 0 40px;
  }

  .slide-inner-container-2 {
    padding: 0;
  }

  .hero-person {
    height: 90%;
  }
}

@media (max-width: 1024px) {
  .slide-inner-container {
    padding: 0 20px 0 30px;
  }

  .slide-inner-container-2 {
    padding: 0;
  }

  .slide {
    height: 520px;
  }

  .slide-logo-mini img,
  .slide-logo-mini-2 img {
    height: 55px;
  }

  .btn-start {
    font-size: 0.95rem;
    padding: 12px 32px;
  }

  .text-divider {
    width: 440px;
  }

  .slide-inner-container::after {
    font-size: clamp(10rem, 10vw, 8.5rem);
  }
}

@media (max-width: 900px) {
  .bevel-text {
    font-size: 3rem;
    line-height: 1.2;
  }

  .slide-text-side p {
    font-size: 1.2rem;
  }
}

/* ==================================================
   📱 UKURAN KECIL (HP) – TEXT & IMAGE TETAP 1 BARIS, GAMBAR Nempel BAWAH
================================================== */

@media (max-width: 768px) {
  .slide {
    height: auto; /* Naikkan tinggi agar orang muat tanpa terpotong */
  }

  .slide-inner-container {
    height: 100%;
    padding: 15px 0 0 30px; /* Padding kecil agar muat di lebar sempit */
    align-items: flex-end; /* ← Kunci: seluruh konten rata bawah */
  }

  .slide-content-wrapper,
  .slide-content-wrapper-2 {
    gap: 12px;
    height: 100%;
    align-items: flex-end; /* Pastikan kedua sisi rata bawah */
  }

  .slide-text-side {
    padding-top: 10px;
    padding-bottom: 30px;
    align-self: flex-start; /* Teks juga ikut rata bawah */
  }

  .slide-image-side {
    position: relative;
    height: 100%;
  }

  .hero-person {
    position: absolute !important;
    bottom: 0 !important;
    right: 0;
    height: 80% !important; /* Full height → pasti nempel bawah */
    max-height: none;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
  }

  /* Ukuran teks disesuaikan agar tetap terbaca tapi tidak overflow */
  .bevel-text {
    font-size: 2.5rem; /* Cukup besar tapi muat 2-3 baris */
    line-height: 1.2;
  }

  .slide-text-side p {
    font-size: 1.1rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .slide-logo-mini img,
  .slide-logo-mini-2 img {
    height: 48px;
    margin-bottom: 12px;
  }

  .text-divider {
    width: 55%;
    margin: 12px 0;
  }

  .btn-start {
    font-size: 0.81rem;
    padding: 6px 21px;
    margin-top: 0px;
  }

  /* Background text besar dikecilkan & digeser agar tidak ganggu */
  .slide-inner-container::after {
    font-size: clamp(6rem, 11vw, 7.5rem);
    left: -120px;
    top: 50%;
  }

  .slider-dots {
    bottom: 10px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    transform: scale(1.4);
  }
}

@media (max-width: 640px) {
  .slide-inner-container {
    height: 100%;
    padding: 15px 0 0 20px;
    align-items: flex-end;
  }

  .slide-inner-container-2 {
    height: 100%;
    padding: 0;
    align-items: flex-end;
  }

  .slide-content-wrapper {
    grid-template-columns: 1.38fr 0.62fr;
    gap: 0px;
  }

  .hero-person {
    max-width: 100%;
    height: 85% !important;
  }

  .bevel-text {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .slide-text-side p {
    font-size: 0.6rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .slide-logo-mini img,
  .slide-logo-mini-2 img {
    height: 40px;
    margin-bottom: 5px;
  }

  .slider-arrows {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-person {
    max-width: 110%;
    height: 100% !important;
  }
}

/* ==================================================
   SLIDE 2 – OVERLAP HERO + FLOATING NUMBER
================================================== */

.slide-2 {
  position: relative;
  overflow: hidden;
}

/* GRID */
.slide-content-wrapper-2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
  align-items: center;
}

/* ===============================
   HERO IMAGE BACKGROUND
================================ */

.slide-image-bg-2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-person-2 {
  position: absolute;
  bottom: 0;
  left: 0;

  height: 100%;
  width: auto; /* penting → biar tidak stretch full */
  max-width: none;

  object-fit: contain;
  object-position: bottom left; /* anchor kiri bawah */

  z-index: 2;
}

/* ===============================
   TEXT SIDE
================================ */

.slide-text-side-2 {
  position: relative;
  z-index: 5;
  color: #fff;
  max-width: 750px;
  margin-left: auto;
}

.slide-title-q {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #66000e;
  margin-top: 0px;
  max-width: 450px;
  margin-right: -23px;
}

/* ===============================
   BENEFIT LIST
================================ */

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 5px);
  align-items: flex-end; /* ← bikin semua item nempel kanan */
  margin-left: auto;
}

/* FLOAT NUMBER */
.benefit-no {
  position: absolute;
  top: -35px;
  left: -20px;
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  text-shadow:
    2px 2px 0 #ef3713,
    1.5px 1.5px 0 #c41b02,
    2.6px 2.6px 0 #fff;
}

.benefit-item p {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

/* WARNA NOMOR BERBEDA */
.benefit-item:nth-child(1) .benefit-no {
  color: #ff8f61;
}

.benefit-item:nth-child(2) .benefit-no {
  color: #fe7c41;
}

.benefit-item:nth-child(3) .benefit-no {
  color: #fe7a42;
}

.benefit-item:nth-child(4) .benefit-no {
  color: #fd5702;
  text-shadow:
    2px 2px 0 #fd5702,
    2px 2px 0 #ef3713,
    1.5px 1.5px 0 #c41b02,
    2.6px 2.6px 0 #fff;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1360px) {
  .slide-title-q {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .slide-title-q {
    font-size: 2.5rem;
  }

  .benefit-item p {
    font-size: 1rem;
  }

  .hero-person-2 {
    max-width: 65%;
  }
}

@media (max-width: 1000px) {
  .benefit-item {
    padding: 10px 60px 10px 55px;
    min-height: 50px;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .slide-text-side-2 {
    padding: 20px 0;
    max-width: 80%;
  }

  .slide-title-q {
    font-size: 1.35rem;
    margin-bottom: 20px;
    margin-left: 0px;
  }

  .benefit-item {
    padding: 5px 20px 5px 40px;
    min-height: 30px;
    max-width: 180px;
  }

  .benefit-no {
    font-size: 1.6rem;
    top: -25px;
    left: -10px;
  }

  .benefit-item p {
    font-size: 0.55rem;
  }

  .benefit-list {
    gap: clamp(5px, 2vh, 5px);
  }

  .hero-person-2 {
    max-width: 68%;
    margin-left: -20px;
  }
}
