/* Malaka Hero Slider — frontend */
.mlkhs {
    position: relative;
    width: 100%;
    height: var(--mlkhs-h, 560px);
    overflow: hidden;
    font-family: "Segoe UI", "Segoe UI Web", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}
.mlkhs * { box-sizing: border-box; }

.mlkhs-track { position: relative; width: 100%; height: 100%; }

.mlkhs-slide-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}
.mlkhs-slide-front.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Overlay & zoom background */
.mlkhs-overlay { position: absolute; inset: 0; z-index: 1; }
.mlkhs-zoom-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    z-index: 0;
}
.mlkhs-slide-front.is-active .mlkhs-zoom-bg {
    animation: mlkhs-kenburns 12s ease-out forwards;
}
@keyframes mlkhs-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.18); }
}

/* Layout konten */
.mlkhs-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.mlkhs-content { flex: 1 1 55%; min-width: 0; }
.mlkhs-side {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.mlkhs-side img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Perataan */
.mlkhs-align-center .mlkhs-inner,
.mlkhs-inner.mlkhs-align-center { justify-content: center; text-align: center; }
.mlkhs-align-center .mlkhs-content { flex-basis: 100%; }
.mlkhs-align-center .mlkhs-cta-row { justify-content: center; }
.mlkhs-align-right .mlkhs-content { text-align: right; }
.mlkhs-align-right .mlkhs-cta-row { justify-content: flex-end; }

/* Eyebrow */
.mlkhs-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 999px;
    margin-bottom: 22px;
    opacity: .9;
}

/* Judul */
.mlkhs-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 18px;
}
.mlkhs .mlkhs-hl {
    display: inline !important;
    font-style: italic;
    padding: 0 .12em !important;
    border-radius: 4px;
    color: inherit;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor;
}

/* Subjudul */
.mlkhs-subtitle {
    font-size: clamp(15px, 1.6vw, 19px);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Tombol */
.mlkhs-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mlkhs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    cursor: pointer;
}
.mlkhs-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,76,129,.18); }
.mlkhs-btn--outline { border-style: solid; }

/* Panah */
.mlkhs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: #0F4C81;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transition: background .15s ease;
}
.mlkhs-arrow:hover { background: #fff; }
.mlkhs-prev { left: 18px; }
.mlkhs-next { right: 18px; }

/* Titik navigasi */
.mlkhs-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 9px;
}
.mlkhs-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(15,76,129,.3);
    cursor: pointer;
    padding: 0;
    transition: width .25s ease, background .2s ease;
}
.mlkhs-dot.is-active { width: 26px; border-radius: 6px; background: #F2A03D; }

/* ===== ANIMASI TRANSISI ===== */

/* 1. FADE */
.mlkhs--fade .mlkhs-slide-front { transition: opacity .7s ease, visibility .7s ease; }

/* 2. SLIDE (geser horizontal) */
.mlkhs--slide .mlkhs-slide-front {
    transform: translateX(40px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1), visibility .6s ease;
}
.mlkhs--slide .mlkhs-slide-front.is-active { transform: translateX(0); }
.mlkhs--slide .mlkhs-slide-front.is-prev { transform: translateX(-40px); }

/* 3. ZOOM (membesar saat muncul) */
.mlkhs--zoom .mlkhs-slide-front {
    transform: scale(.92);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1), visibility .7s ease;
}
.mlkhs--zoom .mlkhs-slide-front.is-active { transform: scale(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mlkhs-slide-front,
    .mlkhs--slide .mlkhs-slide-front,
    .mlkhs--zoom .mlkhs-slide-front { transition: opacity .3s ease; transform: none !important; }
    .mlkhs-slide-front.is-active .mlkhs-zoom-bg { animation: none; }
}

/* Responsif */
@media (max-width: 900px) {
    .mlkhs { height: var(--mlkhs-hm, 480px); }
    .mlkhs-inner { flex-direction: column; justify-content: center; text-align: center; padding: 28px 22px; gap: 20px; }
    .mlkhs-content { flex-basis: auto; order: 2; }
    .mlkhs-side { flex-basis: auto; order: 1; justify-content: center; max-height: 40%; }
    .mlkhs-cta-row { justify-content: center; }
    .mlkhs-align-right .mlkhs-content,
    .mlkhs-align-right .mlkhs-cta-row { text-align: center; justify-content: center; }
}
