/* KTX SERPONG | HERO SECTION ONLY
   CSS is scoped to .ktx-hero / .ktx-carousel to avoid site-wide collisions.
   Desktop: split hero; mobile: content -> CTA -> carousel -> 2x2 benefits.
*/
.ktx-hero {
  --ktx-ink: #101d2c;
  --ktx-gold: #ffc107;
  --ktx-muted: #68758b;
  --ktx-green: #05b958;
  --ktx-line: #e6e9ef;
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--ktx-ink);
  overflow: hidden;
  font-family: inherit;
}
.ktx-hero *, .ktx-hero *::before, .ktx-hero *::after { box-sizing: border-box; }
.ktx-hero::before {
  content: "";
  position: absolute;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  right: -12%;
  top: -48%;
  border: clamp(24px, 3.8vw, 70px) solid #fbf6ee;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.ktx-hero__container { max-width: 1700px; padding: 40px 32px 48px; margin: 0 auto; }
.ktx-hero__main {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(36px, 4vw, 78px);
}
.ktx-hero__copy { min-width: 0; }
.ktx-hero__eyebrow {
  display: flex; align-items: center; gap: 24px;
  margin: 0 0 29px;
  color: #546179;
  font-size: clamp(10px, .82vw, 14px);
  font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
.ktx-hero__eyebrow::before { content: none; }
.ktx-hero__title {
  margin: 0;
  font-size: clamp(42px, 3.75vw, 72px);
  letter-spacing: -.052em;
  font-weight: 800;
  line-height: 1.09;
}
.ktx-hero__title span { display: block; color: var(--ktx-gold); white-space: nowrap; }
.ktx-hero__description {
  max-width: 700px; margin: 23px 0 0;
  color: var(--ktx-muted);
  font-size: clamp(16px, 1.28vw, 23px);
  line-height: 1.5;
  font-weight: 400;
}
.ktx-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 29px; }
.ktx-hero__button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 16px; min-height: 64px; padding: 0 27px;
  border: 1.5px solid transparent; border-radius: 13px;
  font-size: clamp(13px, 1.01vw, 18px); font-weight: 700;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ktx-hero__button svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ktx-hero__button .ktx-hero__arrow-icon { width: 21px; height: 21px; stroke-width: 2; }
.ktx-hero__button--whatsapp {
  color: #fff; background: var(--ktx-green);
  box-shadow: 0 13px 22px rgba(0, 166, 73, .14);
}
.ktx-hero__button--whatsapp:hover { background: #009c45; box-shadow: 0 15px 25px rgba(0, 166, 73, .20); }
.ktx-hero__button--product { color: var(--ktx-ink); background: #fff; border-color: var(--ktx-gold); min-width: 224px; }
.ktx-hero__button--product .ktx-hero__arrow-icon { stroke: var(--ktx-gold); }
.ktx-hero__button--product:hover { background: #fff9f0; }
.ktx-hero__button:hover { transform: translateY(-2px); }
.ktx-hero a:focus-visible, .ktx-hero button:focus-visible { outline: 3px solid #c68a16; outline-offset: 4px; }

/* Stacked peek: next slide sits UNDER the front slide, 46px visible at bottom. */
.ktx-hero__visual { min-width: 0; }
.ktx-carousel { position: relative; width: 100%; }
.ktx-carousel__stage { position: relative; width: 100%; aspect-ratio: 1481 / 810; isolation: isolate; }
.ktx-carousel__slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; display: block; padding: 0;
  background: #111; border: 2px solid white; overflow: hidden;
  border-radius: 21px; cursor: pointer; user-select: none;
  box-shadow: 0 16px 36px rgba(19, 30, 44, .13), 0 3px 9px rgba(19, 30, 44, .1);
  transition: top .34s ease, left .34s ease, width .34s ease, box-shadow .34s ease, filter .34s ease, opacity .34s ease;
}
.ktx-carousel__slide img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ktx-carousel__slide.is-front { z-index: 2; top: 0; left: 0; width: 100%; box-shadow: 0 23px 48px rgba(19, 30, 44, .19), 0 5px 15px rgba(19, 30, 44, .11); }
.ktx-carousel__slide.is-behind { z-index: 1; top: 48px; left: 4%; width: 92%; filter: brightness(.87); }
.ktx-carousel__slide.is-behind:hover { filter: brightness(1); }
.ktx-carousel__slide.is-hidden { z-index: 0; top: 48px; left: 4%; width: 92%; opacity: 0; pointer-events: none; visibility: hidden; transition: top .34s ease, left .34s ease, width .34s ease, opacity .34s ease, visibility 0s linear .34s; }
.ktx-carousel__nav {
  display: grid; place-items: center; position: absolute;
  top: 50%; z-index: 4; transform: translateY(-50%);
  width: 57px; height: 57px; padding: 0;
  border: none; border-radius: 50%; color: var(--ktx-ink); background: white;
  box-shadow: 0 8px 22px rgba(10, 22, 35, .11);
  cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease;
}
.ktx-carousel__nav:hover { background: #fff9ee; box-shadow: 0 8px 24px rgba(10,22,35,.18); }
.ktx-carousel__nav svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.ktx-carousel__nav--prev { left: -28px; }
.ktx-carousel__nav--next { right: -28px; }
.ktx-carousel__dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 75px; }
.ktx-carousel__dot { width: 14px; height: 14px; border: 0; padding: 0; border-radius: 99px; background: #c1c6d0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.ktx-carousel__dot.is-active { width: 31px; background: var(--ktx-gold); }
.ktx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Four compact benefits with shared baseline and equal spacing. */
.ktx-hero__benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ktx-line);
  margin-top: 51px; padding-top: 22px;
}
.ktx-hero__benefit {
  display: flex; align-items: center; gap: 18px;
  position: relative; padding: 0 22px 0 28px; min-height: 93px;
}
.ktx-hero__benefit:first-child { padding-left: 0; }
.ktx-hero__benefit + .ktx-hero__benefit::before { content: ""; position: absolute; top: 13px; bottom: 13px; left: 0; width: 1px; background: #dbe0e7; }
.ktx-hero__benefit-icon { flex: 0 0 86px; height: 86px; display: grid; place-items: center; background: var(--ktx-gold); border-radius: 50%; }
.ktx-hero__benefit-icon svg { width: 46px; height: 46px; stroke: #111e2e; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ktx-hero__benefit strong { display: block; font-size: clamp(14px, 1.14vw, 21px); line-height: 1.25; letter-spacing: -.02em; }
.ktx-hero__benefit span:not(.ktx-hero__benefit-icon) { display: block; color: var(--ktx-muted); margin-top: 8px; font-size: clamp(12px, 1vw, 17px); line-height: 1.3; }

@media (max-width: 1260px) {
  .ktx-hero__container { padding: 45px 30px 42px; }
  .ktx-hero__main { gap: 38px; }
  .ktx-hero__title { font-size: clamp(40px, 3.8vw, 58px); }
  .ktx-hero__description { font-size: 16px; }
  .ktx-hero__button { min-height: 55px; padding: 0 19px; }
  .ktx-hero__benefit { gap: 12px; padding: 0 13px; }
  .ktx-hero__benefit-icon { flex-basis: 63px; height: 63px; }
  .ktx-hero__benefit-icon svg { width: 35px; height: 35px; }
}
@media (max-width: 920px) {
  .ktx-hero__main { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; gap: 34px; }
  .ktx-hero__copy { width: 100%; }
  .ktx-hero__title { font-size: clamp(38px, 6.3vw, 56px); }
  .ktx-hero__description { font-size: 16px; }
  .ktx-hero__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 40px auto 0; }
  .ktx-hero__benefit { padding: 12px 18px; }
  .ktx-hero__benefit:nth-child(odd) { padding-left: 0; }
  .ktx-hero__benefit:nth-child(3)::before { display: none; }
  .ktx-hero__benefit:nth-child(-n+2) { border-bottom: 1px solid var(--ktx-line); }
}
@media (max-width: 600px) {
  .ktx-hero__container { padding: 28px 19px 35px; }
  .ktx-hero__main { gap: 31px; }
  .ktx-hero__eyebrow { font-size: 9px; letter-spacing: .16em; gap: 9px; margin-bottom: 19px; }
  .ktx-hero__title { font-size: clamp(32px, 8.3vw, 42px); letter-spacing: -.055em; line-height: 1.14; }
  .ktx-hero__description { font-size: 14px; line-height: 1.6; margin-top: 18px; }
  .ktx-hero__actions { margin-top: 23px; flex-direction: column; gap: 10px; }
  .ktx-hero__button { width: 100%; padding: 0 15px; min-height: 53px; font-size: 14px; }
  .ktx-hero__button svg { width: 25px; height: 25px; }
  .ktx-hero__button--product { min-width: 0; }
  .ktx-carousel__slide { border-radius: 13px; }
  .ktx-carousel__slide.is-behind, .ktx-carousel__slide.is-hidden { top: 24px; }
  .ktx-carousel__nav { width: 37px; height: 37px; }
  .ktx-carousel__nav--prev { left: -8px; }
  .ktx-carousel__nav--next { right: -8px; }
  .ktx-carousel__nav svg { width: 18px; height: 18px; }
  .ktx-carousel__dots { margin-top: 38px; gap: 9px; }
  .ktx-carousel__dot { width: 10px; height: 10px; }
  .ktx-carousel__dot.is-active { width: 23px; }
  .ktx-hero__benefits { margin-top: 30px; padding-top: 12px; }
  .ktx-hero__benefit { min-height: 90px; padding: 10px 8px; gap: 9px; }
  .ktx-hero__benefit-icon { flex-basis: 40px; height: 40px; }
  .ktx-hero__benefit-icon svg { width: 25px; height: 25px; stroke-width: 1.7; }
  .ktx-hero__benefit strong { font-size: 12px; }
  .ktx-hero__benefit span:not(.ktx-hero__benefit-icon) { font-size: 11px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ktx-hero__button, .ktx-carousel__slide, .ktx-carousel__dot, .ktx-carousel__nav { transition: none !important; }
}

/* Isolasi dari tema situs (Bootstrap 3 / public-theme). */
body.ktx-public-theme .ktx-hero .ktx-hero__title { color: var(--ktx-ink); font-size: clamp(42px, 3.75vw, 72px); font-weight: 800; line-height: 1.09; margin: 0; }
body.ktx-public-theme .ktx-hero .ktx-hero__title span { color: var(--ktx-gold); }
@media (max-width: 1260px) { body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(40px, 3.8vw, 58px); } }
@media (max-width: 920px) { body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(38px, 6.3vw, 56px); } }
@media (max-width: 600px) { body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(32px, 8.3vw, 42px); } }
body.ktx-public-theme .ktx-hero p.ktx-hero__description, body.ktx-public-theme .ktx-hero p.ktx-hero__eyebrow { text-align: left !important; }
body.ktx-public-theme .ktx-hero a.ktx-hero__button--whatsapp { color: #fff; }
body.ktx-public-theme .ktx-hero a.ktx-hero__button--product { color: var(--ktx-ink); }
body.ktx-public-theme .ktx-hero a.ktx-hero__button { text-decoration: none; }
body.ktx-public-theme .ktx-hero .ktx-carousel__nav { border-radius: 50% !important; }
body.ktx-public-theme .ktx-hero .ktx-carousel__dot { border-radius: 99px !important; }
body.ktx-public-theme .ktx-hero .ktx-carousel__slide { border-radius: 21px !important; }
body.ktx-public-theme .ktx-hero .ktx-hero__button { border-radius: 13px !important; }
@media (max-width: 600px) { body.ktx-public-theme .ktx-hero .ktx-carousel__slide { border-radius: 13px !important; } }
@media (max-width: 600px) { body.ktx-public-theme .ktx-hero .ktx-hero__title span { white-space: normal; } }
/* navbar.php mematikan SEMUA transisi situs (transition-duration:0s !important).
   Hero dikecualikan supaya slide bertukar posisi atas-bawah seperti di handoff. */
@media (prefers-reduced-motion: no-preference) {
  body.ktx-public-theme .ktx-hero .ktx-carousel__slide { transition-duration: .34s !important; }
  body.ktx-public-theme .ktx-hero .ktx-carousel__dot,
  body.ktx-public-theme .ktx-hero .ktx-carousel__nav,
  body.ktx-public-theme .ktx-hero .ktx-hero__button { transition-duration: .2s !important; }
}

/* Ukuran/ritme judul & teks keunggulan sesuai mockup; !important karena CSS situs menimpa. */
body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(42px, 3.75vw, 72px) !important; letter-spacing: -.052em !important; font-weight: 800 !important; line-height: 1.09 !important; margin: 0 !important; }
body.ktx-public-theme .ktx-hero .ktx-hero__title span { display: block; white-space: nowrap; }
body.ktx-public-theme .ktx-hero .ktx-hero__benefit strong { display: block; font-size: clamp(14px, 1.14vw, 21px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
body.ktx-public-theme .ktx-hero .ktx-hero__benefit span:not(.ktx-hero__benefit-icon) { display: block; color: var(--ktx-muted); margin-top: 8px; font-size: clamp(12px, 1vw, 17px); line-height: 1.3; font-weight: 400; }
@media (max-width: 1260px) { body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(40px, 3.8vw, 58px) !important; } }
@media (max-width: 920px) { body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(38px, 6.3vw, 56px) !important; } }
@media (max-width: 600px) {
  body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(32px, 8.3vw, 42px) !important; letter-spacing: -.055em !important; line-height: 1.14 !important; }
  body.ktx-public-theme .ktx-hero .ktx-hero__title span { white-space: normal; }
  body.ktx-public-theme .ktx-hero .ktx-hero__benefit strong { font-size: 12px; }
  body.ktx-public-theme .ktx-hero .ktx-hero__benefit span:not(.ktx-hero__benefit-icon) { font-size: 11px; margin-top: 4px; }
}

/* Lebar mengikuti .container situs seperti navbar (width: 100% - 32px; max-width: 1344px). */
body.ktx-public-theme .ktx-hero .ktx-hero__container.container { width: calc(100% - 32px); max-width: 1344px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
@media (min-width: 1200px) { body.ktx-public-theme .ktx-hero .ktx-hero__container.container { width: calc(100% - 48px); padding-left: 0; padding-right: 0; } }

/* Skala desktop untuk container 1344px (bukan 1700px seperti mockup lebar penuh). */
@media (min-width: 1261px) {
  body.ktx-public-theme .ktx-hero .ktx-hero__title { font-size: clamp(46px, 3.8vw, 58px) !important; }
  .ktx-hero__main { gap: 48px; }
  .ktx-hero__eyebrow { font-size: 12px; margin-bottom: 24px; }
  .ktx-hero__description { font-size: 17px; margin-top: 20px; }
  .ktx-hero__actions { gap: 14px; margin-top: 26px; }
  .ktx-hero__button { min-height: 56px; padding: 0 22px; gap: 12px; font-size: 15px; }
  .ktx-hero__button svg { width: 26px; height: 26px; }
  .ktx-hero__button .ktx-hero__arrow-icon { width: 19px; height: 19px; }
  .ktx-hero__button--product { min-width: 0; }
  .ktx-hero__benefits { margin-top: 44px; padding-top: 20px; }
  .ktx-hero__benefit { gap: 14px; padding: 0 16px 0 22px; min-height: 80px; }
  .ktx-hero__benefit:first-child { padding-left: 0; }
  .ktx-hero__benefit-icon { flex-basis: 68px; height: 68px; }
  .ktx-hero__benefit-icon svg { width: 38px; height: 38px; }
  body.ktx-public-theme .ktx-hero .ktx-hero__benefit strong { font-size: 16px; }
  body.ktx-public-theme .ktx-hero .ktx-hero__benefit span:not(.ktx-hero__benefit-icon) { font-size: 13.5px; margin-top: 5px; }
  .ktx-carousel__nav--prev { left: -24px; }
  .ktx-carousel__nav--next { right: -24px; }
  .ktx-carousel__nav { width: 50px; height: 50px; }
  .ktx-carousel__dots { margin-top: 62px; }
}
@media (max-width: 600px) {
  body.ktx-public-theme .ktx-hero .ktx-hero__title--id {
    font-size: clamp(24px, 7.5vw, 34px) !important;
    white-space: nowrap;
  }
  body.ktx-public-theme .ktx-hero .ktx-hero__title--id span {
    white-space: normal;
  }
}
