/* ================================================================
   S01 — HERO SLIDER (ch-hero)
   Self-contained: tidak bergantung pada aturan .kw-hero lama.
================================================================ */
.ch-hero {
    --ch-gold: #e9b78d;
    --ch-gold-soft: rgba(233, 183, 141, .85);
    --ch-ink: #fbf7f1;
    --ch-navy: 6, 18, 32;
    --ch-gutter: clamp(20px, 6.2vw, 118px);
    position: relative;
    height: clamp(640px, 100svh, 960px);
    background: rgb(var(--ch-navy));
    color: var(--ch-ink);
    overflow: hidden;
}

.ch-hero-swiper,
.ch-hero-slide {
    height: 100%;
}

.ch-hero-slide {
    position: relative;
    overflow: hidden;
}

.ch-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--ch-pos, center);
}

/* Scrim kiri agar teks terbaca; gradient bawah untuk pagination. */
.ch-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--ch-navy), .90) 0%, rgba(var(--ch-navy), .70) 30%, rgba(var(--ch-navy), .22) 56%, transparent 72%),
        linear-gradient(0deg, rgba(var(--ch-navy), .55) 0%, transparent 28%);
}

.ch-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding: calc(var(--kw-header-height, 84px) + 64px) var(--ch-gutter) 56px;
}

.ch-hero-content {
    width: min(40vw, 640px);
    text-align: left;
}

/* Eyebrow */
.ch-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 clamp(14px, 2.4vh, 22px);
    color: var(--ch-gold);
    font-size: clamp(11px, .85vw, 14px);
    line-height: 1;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.ch-hero-eyebrow-line {
    flex: 0 0 clamp(36px, 3.4vw, 64px);
    height: 1px;
    background: var(--ch-gold-soft);
}

/* Title */
.ch-hero-title {
    margin: 0 0 clamp(14px, 2.4vh, 22px);
    color: var(--ch-ink);
    font-size: clamp(28px, min(3.4vw, 6.4vh), 58px);
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.ch-hero-accent {
    color: var(--ch-gold);
}

/* Body */
.ch-hero-body {
    max-width: 560px;
    color: rgba(251, 247, 241, .92);
    font-size: clamp(13px, min(1.02vw, 2.1vh), 17px);
    line-height: 1.55;
}

.ch-hero-body p {
    margin: 0 0 .6em;
}

.ch-hero-body p:last-child {
    margin-bottom: 0;
}

/* Topic tags (slide 4) */
.ch-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.ch-hero-tags li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: clamp(12px, .88vw, 14px);
    line-height: 1.2;
    color: var(--ch-ink);
}

.ch-hero-tags svg {
    flex: 0 0 auto;
    color: var(--ch-gold);
}

/* CTA */
.ch-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(18px, 3vh, 28px);
    padding: 14px 26px;
    border: 1px solid rgba(255, 233, 214, .55);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(247, 214, 190, .95), rgba(233, 167, 138, .92));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
    color: #3a2018;
    font-size: clamp(14px, 1.02vw, 17px);
    line-height: 1;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ch-hero-cta:hover,
.ch-hero-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.ch-hero-cta svg {
    transition: transform .25s ease;
}

.ch-hero-cta:hover svg {
    transform: translateX(3px);
}

.ch-hero-disclaimer {
    max-width: 440px;
    margin: 14px 0 0;
    color: rgba(251, 247, 241, .78);
    font-size: clamp(11px, .8vw, 13px);
    line-height: 1.5;
}

/* Pagination: titik bulat di kiri atas (gaya Lunaray), tanpa panah */
.ch-hero-pagination.swiper-pagination {
    top: calc(var(--kw-header-height, 84px) + 12px);
    left: calc(var(--ch-gutter) - 8px);
    right: auto;
    bottom: auto;
    width: auto;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.ch-hero-pagination .swiper-pagination-bullet {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    background: transparent;
    opacity: 1;
    cursor: pointer;
}

.ch-hero-pagination .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(6, 18, 32, .25);
    transform: translate(-50%, -50%);
    transition: all .25s ease;
}

.ch-hero-pagination .swiper-pagination-bullet-active::before {
    background: var(--ch-gold);
    box-shadow: none;
    transform: translate(-50%, -50%) scale(1.3);
}

/* Variasi per slide: foto punya kartu hologram di kiri-tengah, jadi teks naik ke atas */
.ch-hero-slide--expertise .ch-hero-inner,
.ch-hero-slide--reality .ch-hero-inner {
    align-items: flex-start;
    padding-top: calc(var(--kw-header-height, 84px) + clamp(64px, 9vh, 100px));
}

/* Scrim hanya di bagian atas agar kartu hologram di foto tetap terbaca */
.ch-hero-slide--expertise .ch-hero-overlay,
.ch-hero-slide--reality .ch-hero-overlay {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 72%);
}

.ch-hero-slide--expertise .ch-hero-content { width: min(38vw, 600px); }
.ch-hero-slide--reality .ch-hero-content { width: min(42vw, 640px); }
.ch-hero-slide--expertise .ch-hero-body { max-width: 520px; font-size: clamp(13px, .92vw, 16px); }
.ch-hero-slide--reality .ch-hero-body { max-width: 500px; }
.ch-hero-slide--event .ch-hero-content { width: min(44vw, 680px); }

/* Tablet */
@media (max-width: 1024px) {
    .ch-hero-content,
    .ch-hero-slide--expertise .ch-hero-content,
    .ch-hero-slide--reality .ch-hero-content,
    .ch-hero-slide--event .ch-hero-content { width: min(58vw, 560px); }
}

/* Mobile: foto di atas, teks di bawah di atas scrim gelap */
@media (max-width: 767px) {
    .ch-hero {
        height: clamp(620px, 100svh, 820px);
    }

    .ch-hero-overlay {
        background:
            linear-gradient(0deg, rgba(var(--ch-navy), .96) 0%, rgba(var(--ch-navy), .88) 42%, rgba(var(--ch-navy), .35) 66%, transparent 82%);
    }

    .ch-hero-inner {
        align-items: flex-end;
        padding: calc(var(--kw-header-height, 72px) + 16px) var(--ch-gutter) 72px;
    }

    .ch-hero-content,
    .ch-hero-slide--expertise .ch-hero-content,
    .ch-hero-slide--reality .ch-hero-content,
    .ch-hero-slide--event .ch-hero-content { width: 100%; }

    .ch-hero-slide--expertise .ch-hero-inner,
    .ch-hero-slide--reality .ch-hero-inner {
        align-items: flex-end;
        padding-top: calc(var(--kw-header-height, 72px) + 16px);
    }

    .ch-hero-eyebrow { margin-bottom: 14px; gap: 12px; letter-spacing: .2em; }

    .ch-hero-title {
        margin-bottom: 14px;
        font-size: clamp(28px, 8.2vw, 38px);
    }

    .ch-hero-body { font-size: 14px; }
    /* Deskripsi panjang dipangkas agar CTA tetap terlihat di layar kecil */
    .ch-hero-body p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ch-hero-slide--aira .ch-hero-body p { -webkit-line-clamp: 3; }

    .ch-hero-tags { margin-top: 16px; gap: 8px; }
    .ch-hero-tags li { padding: 7px 12px 7px 10px; font-size: 12px; }

    .ch-hero-cta { margin-top: 18px; padding: 13px 22px; }

    .ch-hero-pagination.swiper-pagination { top: calc(var(--kw-header-height, 72px) + 6px); }

    .ch-hero-slide--expertise .ch-hero-overlay,
    .ch-hero-slide--reality .ch-hero-overlay { -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ch-hero-cta, .ch-hero-cta svg, .ch-hero-pagination .swiper-pagination-bullet::before { transition: none; }
}
