@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-right {
    animation: slideInFromRight 2s ease-out forwards;
}

/* Rata kiri di layar kecil agar jarak antar kata tidak melebar. */
.hero-desc,
.lpk-desc {
    text-align: left;
}

@media (min-width: 768px) {
    .hero-desc,
    .lpk-desc {
        text-align: justify;
    }
}

.bidang-label {
    color: #3b4252 !important;
}

/* ===== Gaya baru landing page: mengikuti token visual dashboard_saya ===== */
body:has(#home-v2) {
    --hv-navy: #1e266d;
    --hv-blue: #3751ff;
    --hv-muted: #6c7392;
    --hv-border: rgba(30, 38, 109, .10);
    --hv-shadow: 0 1px 2px rgba(17, 22, 51, .04), 0 14px 30px -22px rgba(17, 22, 51, .28);
    --hv-shadow-hover: 0 2px 6px rgba(17, 22, 51, .05), 0 24px 44px -24px rgba(30, 38, 109, .38);
    --hv-surface: #f6f8fd;
}

/* Judul: warna navy, rapat, tanpa text-shadow. */
body:has(#home-v2) h1,
body:has(#home-v2) h2,
body:has(#home-v2) .text-shadow,
body:has(#home-v2) .text-shadow-2 {
    text-shadow: none !important;
}

body:has(#home-v2) h1,
body:has(#home-v2) h2 {
    color: var(--hv-navy);
    letter-spacing: -.02em;
}

body:has(#home-v2) h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
}

body:has(#home-v2) .bg-light {
    background: var(--hv-surface) !important;
}

body:has(#home-v2) .text-muted,
body:has(#home-v2) .bidang-label {
    color: var(--hv-muted) !important;
}

/* Kartu: radius 20px, border tipis, bayangan dua lapis, naik saat disorot. */
body:has(#home-v2) .card {
    border: 1px solid var(--hv-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--hv-shadow) !important;
    transition: transform .22s ease, box-shadow .22s ease;
}

body:has(#home-v2) .card.platform-container:hover,
body:has(#home-v2) .card.fitur-card:hover,
body:has(#home-v2) .card.h-100:hover,
body:has(#home-v2) .card:has(.bidang-label):hover {
    transform: translateY(-3px);
    box-shadow: var(--hv-shadow-hover) !important;
}

body:has(#home-v2) .card:has(.bidang-label) .bidang-label {
    color: var(--hv-navy) !important;
    font-weight: 600;
}

/* Tombol utama: gradien biru-navy, radius 14px seperti CTA dashboard. */
body:has(#home-v2) .btn.btn-main:not(.nav-link),
body:has(#home-v2) .btn.bg-hitam-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    line-height: 1.3;
    text-align: center;
    min-height: 46px;
    border: 0;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--hv-blue), var(--hv-navy)) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px -16px rgba(30, 38, 109, .85);
    transition: filter .2s ease, transform .2s ease;
}

/* Tombol ber-class d-block / w-100 tetap selebar kontainer, isi tetap di tengah. */
body:has(#home-v2) .btn.btn-main.d-block:not(.nav-link) {
    display: flex !important;
}

body:has(#home-v2) .btn.btn-main:not(.nav-link) i.ms-1 {
    margin-left: 0 !important;
}

body:has(#home-v2) .btn.btn-main:not(.nav-link):hover,
body:has(#home-v2) .btn.bg-hitam-custom:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Tombol sekunder (outline). */
body:has(#home-v2) .btn.btn-outline-dark,
body:has(#home-v2) #btnCorporateHero {
    min-height: 46px;
    border: 1px solid rgba(30, 38, 109, .22) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--hv-navy) !important;
    box-shadow: none !important;
    transition: background-color .2s ease, transform .2s ease;
}

body:has(#home-v2) .btn.btn-outline-dark:hover,
body:has(#home-v2) #btnCorporateHero:hover {
    background: #f0f3ff !important;
    transform: translateY(-1px);
}

/* Tab kategori mitra mengikuti gaya chip. */
body:has(#home-v2) .nav-pills .nav-link.btn-main {
    border-radius: 999px !important;
    border: 1px solid var(--hv-border) !important;
    background: #eef1fb !important;
    color: var(--hv-navy) !important;
    box-shadow: none !important;
    filter: none;
    transform: none;
}

body:has(#home-v2) .nav-pills .nav-link.btn-main:hover {
    background: #e2e7fa !important;
}

body:has(#home-v2) .nav-pills .nav-link.btn-main.active {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--hv-blue), var(--hv-navy)) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -12px rgba(30, 38, 109, .85) !important;
}

/* Chip kategori dan tombol "Lihat ... Lainnya": buang margin kiri bawaan (ml-2) agar benar-benar di tengah. */
body:has(#home-v2) #clients-section-content .nav-pills .nav-link,
body:has(#home-v2) #clients-section-content .tab-pane > a.btn,
body:has(#home-v2) #clients-section-content .tab-pane > .aos-btn-wrap > a.btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:has(#home-v2) #clients-section-content .tab-pane > a.btn,
body:has(#home-v2) #clients-section-content .tab-pane > .aos-btn-wrap > a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 3rem auto 0 !important;
    padding: 12px 28px !important;
    line-height: 1.3;
    text-align: center;
}

/* Ganti tab mitra: tinggi area dianimasikan via JS, kartu logo masuk bertahap. */
body:has(#home-v2) #clients-section-content .tab-content {
    transition: height .4s cubic-bezier(.22, 1, .36, 1);
}

body:has(#home-v2) #clients-section-content .tab-pane.fade {
    transition: opacity .2s ease;
}

@keyframes hvLogoIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body:has(#home-v2) #clients-section-content .tab-pane.hv-pane-in .card,
body:has(#home-v2) #clients-section-content .tab-pane.hv-pane-in .aos-btn-wrap {
    animation: hvLogoIn .5s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(var(--hv-i, 0) * 22ms);
}

@media (prefers-reduced-motion: reduce) {
    body:has(#home-v2) #clients-section-content .tab-content,
    body:has(#home-v2) #clients-section-content .tab-pane.fade {
        transition: none;
    }

    body:has(#home-v2) #clients-section-content .tab-pane.hv-pane-in .card,
    body:has(#home-v2) #clients-section-content .tab-pane.hv-pane-in .aos-btn-wrap {
        animation: none;
    }
}

/* Hover: chip kategori dan tombol sedikit membesar. */
@media (hover: hover) {
    body:has(#home-v2) #clients-section-content .nav-pills .nav-link,
    body:has(#home-v2) #clients-section-content .tab-pane > a.btn,
    body:has(#home-v2) #clients-section-content .tab-pane > .aos-btn-wrap > a.btn {
        transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s ease, box-shadow .2s ease, filter .2s ease;
    }

    body:has(#home-v2) #clients-section-content .nav-pills .nav-link:hover,
    body:has(#home-v2) #clients-section-content .tab-pane > a.btn:hover,
    body:has(#home-v2) #clients-section-content .tab-pane > .aos-btn-wrap > a.btn:hover {
        transform: scale(1.08) !important;
    }
}

/* Animasi geser kiri/kanan (AOS) tidak boleh melebarkan halaman sebelum elemen masuk. */
body:has(#home-v2) {
    overflow-x: clip;
}

/* Transisi AOS diperhalus dengan kurva easing yang lembut.
   Setelah animasi masuk selesai (.aos-animate), transition-delay di-reset ke 0s agar efek hover kartu/logo responsif tanpa jeda. */
body:has(#home-v2) [data-aos] {
    transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
    will-change: transform, opacity;
}

body:has(#home-v2) [data-aos].aos-animate {
    will-change: auto;
}

body:has(#home-v2) .card[data-aos].aos-animate:hover,
body:has(#home-v2) .mitra-item[data-aos].aos-animate:hover {
    transition-delay: 0s !important;
    transition-duration: .22s !important;
}

/* Garis aksen di bawah judul section: tumbuh saat judul masuk viewport. */
body:has(#home-v2) h2[data-aos]::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hv-blue), var(--hv-navy));
    transition: width .7s cubic-bezier(.2, .8, .2, 1) .35s;
}

body:has(#home-v2) h2[data-aos].aos-animate::after {
    width: 56px;
}

/* Progress bar scroll. */
.hv-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3751ff, #1e266d);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* Sertifikasi Tersedia: logo dalam kartu, membesar saat disorot. */
body:has(#home-v2) #mitra-section-content .mitra-grid {
    gap: 14px !important;
    padding: 0 8px;
}

body:has(#home-v2) #mitra-section-content .mitra-item {
    justify-content: center;
    width: 132px !important;
    height: 76px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--hv-border);
    border-radius: 16px;
    box-shadow: var(--hv-shadow);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease;
}

body:has(#home-v2) #mitra-section-content .mitra-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

@media (hover: hover) {
    body:has(#home-v2) #mitra-section-content .mitra-item:hover {
        transform: scale(1.12);
        border-color: rgba(55, 81, 255, .35);
        box-shadow: var(--hv-shadow-hover);
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(#home-v2) h2[data-aos]::after {
        transition: none;
        width: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(#home-v2) .card,
    body:has(#home-v2) .btn {
        transition: none;
    }

    body:has(#home-v2) .card:hover,
    body:has(#home-v2) .btn:hover {
        transform: none !important;
    }
}

/* ===== Tampilan modern: hero, statistik, katalog, testimoni ===== */
body:has(#home-v2) .hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

body:has(#home-v2) .hv-btn i {
    transition: transform .2s ease;
}

body:has(#home-v2) .hv-btn:hover i.bi-arrow-right {
    transform: translateX(3px);
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(55, 81, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #3751ff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hv-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

/* Hero */
.hv-hero {
    position: relative;
    overflow: hidden;
    padding: 128px 0 120px;
    background: #f6f8fd;
}

.hv-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 420px at 85% 20%, rgba(55, 81, 255, .16), transparent 70%),
        radial-gradient(520px 380px at 5% 90%, rgba(56, 189, 248, .14), transparent 70%),
        linear-gradient(rgba(30, 38, 109, .045) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(30, 38, 109, .045) 1px, transparent 1px) 0 0 / 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
    pointer-events: none;
}

body:has(#home-v2) .hv-hero-title {
    margin: 20px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.hv-grad {
    background: linear-gradient(90deg, #3751ff, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hv-hero-desc {
    max-width: 580px;
    margin: 20px 0 0;
    color: #4a5175;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.hv-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hv-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
}

.hv-hero-links a {
    color: #1e266d;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 38, 109, .25);
    transition: color .2s ease, border-color .2s ease;
}

.hv-hero-links a:hover {
    color: #3751ff;
    border-color: #3751ff;
}

.hv-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    color: #6c7392;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.hv-trust strong {
    color: #1e266d;
}

.hv-trust-avatars {
    display: flex;
    flex-shrink: 0;
}

.hv-trust-avatars img {
    width: 36px;
    height: 36px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.hv-trust-avatars img:first-child {
    margin-left: 0;
}

.hv-hero-visual {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.hv-hero-blob {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 88%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(160deg, #3751ff, #1e266d);
    box-shadow: 0 40px 80px -40px rgba(30, 38, 109, .7);
}

.hv-hero-img {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent);
    mask-image: linear-gradient(to bottom, #000 85%, transparent);
}

.hv-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 40px -20px rgba(17, 22, 51, .45);
    backdrop-filter: blur(10px);
    text-align: left;
    animation: hvFloat 6s ease-in-out infinite;
}

.hv-chip strong,
.hv-chip small {
    display: block;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.hv-chip strong {
    color: #1e266d;
    font-size: 16px;
}

.hv-chip small {
    color: #6c7392;
    font-size: 11px;
}

.hv-chip-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef1ff;
    color: #3751ff;
    font-size: 18px;
}

.hv-chip-a {
    left: -12px;
    top: 38%;
}

.hv-chip-b {
    right: -12px;
    bottom: 14%;
    animation-delay: -3s;
}

@keyframes hvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Statistik: satu band kartu yang menimpa bagian bawah hero */
.hv-stats-section {
    position: relative;
    z-index: 2;
    margin-top: -64px;
    padding-bottom: 56px;
}

.hv-stats {
    padding: 28px 24px 12px;
    border: 1px solid rgba(30, 38, 109, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px -36px rgba(17, 22, 51, .35);
}

body:has(#home-v2) .hv-stats h2.hv-stats-label {
    margin: 0 0 12px;
    color: #6c7392;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

body:has(#home-v2) .hv-stats h2.hv-stats-label::after {
    display: none;
}

.hv-stat {
    padding: 16px 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .hv-stat + .hv-stat {
        border-left: 1px solid rgba(30, 38, 109, .08);
    }
}

.hv-stat-ico {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef1ff, #e0f2fe);
    color: #3751ff;
    font-size: 20px;
}

body:has(#home-v2) .hv-stat p.h3 {
    margin: 0;
    color: #1e266d;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.hv-stat-text {
    display: block;
    margin-top: 4px;
    color: #6c7392;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

/* Katalog: panel CTA navy */
.hv-catalog-section {
    padding: 72px 0;
}

.hv-catalog {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border-radius: 28px;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(56, 189, 248, .28), transparent 70%),
        linear-gradient(135deg, #3751ff 0%, #1e266d 70%);
    color: #fff;
}

.hv-eyebrow-dark {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.hv-catalog-title {
    margin: 16px 0 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.hv-catalog-desc {
    max-width: 460px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .78);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

.hv-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

body:has(#home-v2) .hv-btn-light {
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #1e266d;
}

body:has(#home-v2) .hv-btn-light:hover {
    background: #eef1ff;
    color: #1e266d;
}

body:has(#home-v2) .hv-btn-glass {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

body:has(#home-v2) .hv-btn-glass:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.hv-doc .item {
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    background-size: cover;
}

.hv-doc-caption {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 14, 40, .85), rgba(10, 14, 40, 0) 60%);
    text-align: left;
}

.hv-doc-caption p {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.hv-catalog .owl-dots {
    margin-top: 14px !important;
}

.hv-catalog .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, .35) !important;
}

.hv-catalog .owl-dots .owl-dot.active span {
    background: #fff !important;
}

/* Testimoni */
.hv-testi-section {
    padding: 24px 0 72px;
}

.hv-section-sub {
    margin: 12px auto 0;
    color: #6c7392;
    font-family: 'Poppins', sans-serif;
}

.hv-testi-carousel .owl-stage {
    display: flex;
}

.hv-testi-carousel .owl-item {
    display: flex;
}

.hv-testi-carousel .item {
    display: flex;
    width: 100%;
    padding: 32px 12px;
}

.hv-testi {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(30, 38, 109, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 22, 51, .04), 0 20px 40px -28px rgba(17, 22, 51, .35);
    text-align: left;
    transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
}

.hv-testi figcaption span {
    flex: 1;
    min-width: 0;
}

.testimoni .owl-item:not(.center) .hv-testi {
    opacity: .6;
    transform: scale(.94);
}

.testimoni .owl-item.center .hv-testi {
    border-color: rgba(55, 81, 255, .25);
    box-shadow: 0 2px 6px rgba(17, 22, 51, .05), 0 30px 60px -30px rgba(30, 38, 109, .45);
}

.hv-testi-mark {
    color: #3751ff;
    font-size: 40px;
    line-height: 1;
}

.hv-testi blockquote {
    flex: 1;
    margin: 8px 0 24px;
    color: #3b4252;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.75;
}

.hv-testi figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 38, 109, .08);
}

.hv-testi figcaption img {
    width: 48px !important;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.hv-testi figcaption strong,
.hv-testi figcaption small {
    display: block;
    font-family: 'Poppins', sans-serif;
}

.hv-testi figcaption strong {
    color: #1e266d;
    font-size: 15px;
}

.hv-testi figcaption small {
    color: #6c7392;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .hv-hero {
        padding: 96px 0 104px;
    }

    .hv-hero-visual {
        max-width: 280px;
        margin: 0 auto 28px;
    }

    .hv-chip {
        padding: 8px 10px;
    }

    .hv-chip-ico {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .hv-hero-cta .hv-btn {
        width: 100%;
    }

    .hv-hero-visual {
        max-width: 230px;
    }

    .hv-catalog {
        padding: 32px 22px;
    }

    .hv-catalog-actions .hv-btn {
        width: 100%;
    }

    .hv-doc .item {
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv-chip {
        animation: none;
    }
}

/* Preview logo mitra & sertifikasi: kartu melayang di dekat logo, tanpa backdrop gelap. */
body:has(#home-v2) #clients-section-content .tab-pane .card,
body:has(#home-v2) #mitra-section-content .mitra-item {
    cursor: zoom-in;
}

body:has(#home-v2) #clients-section-content .tab-pane .card.hv-logo-active,
body:has(#home-v2) #mitra-section-content .mitra-item.hv-logo-active {
    border-color: #3751ff !important;
    box-shadow: 0 0 0 4px rgba(55, 81, 255, .15), 0 18px 34px -16px rgba(30, 38, 109, .45) !important;
}

.hv-logo-pop {
    position: absolute;
    z-index: 1080;
    width: min(300px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid rgba(30, 38, 109, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(17, 22, 51, .06), 0 30px 60px -20px rgba(17, 22, 51, .35);
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateY(8px) scale(.92);
    transform-origin: var(--hv-ox, 50%) 100%;
    transition: opacity .18s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.hv-logo-pop.is-below {
    transform: translateY(-8px) scale(.92);
    transform-origin: var(--hv-ox, 50%) 0;
}

.hv-logo-pop.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.hv-logo-pop-arrow {
    position: absolute;
    bottom: -7px;
    left: var(--hv-ox, 50%);
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-right: 1px solid rgba(30, 38, 109, .1);
    border-bottom: 1px solid rgba(30, 38, 109, .1);
    background: #fff;
    transform: rotate(45deg);
}

.hv-logo-pop.is-below .hv-logo-pop-arrow {
    top: -7px;
    bottom: auto;
    transform: rotate(225deg);
}

.hv-logo-pop-media {
    display: grid;
    place-items: center;
    height: 150px;
    padding: 22px;
    border-radius: 16px;
    background:
        radial-gradient(220px 120px at 50% 0%, rgba(55, 81, 255, .10), transparent 70%),
        #f6f8fd;
}

.hv-logo-pop-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 106px;
    object-fit: contain;
    transition: opacity .18s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}

.hv-logo-pop-media img.is-swapping {
    opacity: 0;
    transform: scale(.94);
}

.hv-logo-pop-body {
    padding: 12px 8px 4px;
}

.hv-logo-pop-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef1ff;
    color: #3751ff;
    font-size: 11px;
    font-weight: 600;
}

.hv-logo-pop-name[hidden] {
    display: none;
}

.hv-logo-pop-name {
    display: block;
    margin-top: 8px;
    color: #1e266d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.hv-logo-pop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 4px 2px;
    border-top: 1px solid rgba(30, 38, 109, .08);
}

.hv-logo-pop-count {
    color: #6c7392;
    font-size: 12px;
}

.hv-logo-pop button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e266d;
    font-size: 16px;
    transition: background-color .15s ease;
}

.hv-logo-pop button:hover {
    background: #eef1ff;
}

.hv-logo-pop button:focus-visible {
    outline: 2px solid #3751ff;
    outline-offset: 1px;
}

.hv-logo-pop-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    background: rgba(255, 255, 255, .85) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hv-logo-pop,
    .hv-logo-pop-media img {
        transition: none;
    }
}

/* Bidang Pembelajaran versi mobile: grid 2 kolom (sebelumnya daftar kartu satu per baris). */
.hv-bidang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

body:has(#home-v2) section:has(> .container > .hv-bidang-grid) .row > br {
    display: none;
}

@media (min-width: 576px) {
    .hv-bidang-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body:has(#home-v2) .hv-bidang-grid .item,
body:has(#home-v2) .hv-bidang-grid .card {
    height: 100%;
    margin: 0 !important;
}

body:has(#home-v2) .hv-bidang-grid .card {
    border-radius: 16px !important;
}

.hv-bidang-grid .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px !important;
}

.hv-bidang-grid .card-body img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

body:has(#home-v2) .hv-bidang-grid .bidang-label {
    margin: 0 !important;
    font-size: 12.5px;
    line-height: 1.35;
    letter-spacing: 0;
}

/* ===== Optimasi tata letak mobile ===== */
@media (max-width: 767.98px) {
    /* Mitra: grid 3 kolom menggantikan carousel satu-logo; tampilkan 15 logo pertama. */
    body:has(#home-v2) #clients-section-content .clients-mobile-content .partner {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    body:has(#home-v2) #clients-section-content .clients-mobile-content .partner > .card {
        width: auto !important;
        height: 64px !important;
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }

    body:has(#home-v2) #clients-section-content .clients-mobile-content .partner > .card:nth-child(n+16) {
        display: none !important;
    }

    body:has(#home-v2) #clients-section-content .clients-mobile-content .partner > .card img {
        width: auto !important;
        max-width: 100%;
        max-height: 40px;
        object-fit: contain;
    }

    body:has(#home-v2) #clients-section-content .clients-mobile-content .tab-pane > a.btn,
    body:has(#home-v2) #clients-section-content .clients-mobile-content .tab-pane > .aos-btn-wrap > a.btn {
        width: 100% !important;
        margin: 1.25rem auto 0 !important;
        font-size: 13px;
    }

    /* Sertifikasi Tersedia: 4 kolom agar tidak memanjang. */
    body:has(#home-v2) #mitra-section-content .mitra-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px !important;
        padding: 0 16px;
    }

    body:has(#home-v2) #mitra-section-content .mitra-item {
        width: auto !important;
        height: 58px;
        padding: 8px;
        border-radius: 12px;
    }

    /* Carousel "Kenapa Harus Belajar": lebar kartu mengikuti slot carousel (inline 350px memotong teks). */
    body:has(#home-v2) .fitur-hp .item.platform-container {
        width: auto !important;
        margin: 0 8px 16px !important;
    }

    body:has(#home-v2) .fitur-hp .platform-container .card-body {
        text-align: center;
    }

    body:has(#home-v2) .fitur-hp .platform-container img {
        width: 88px !important;
    }

    body:has(#home-v2) .fitur-hp .fitur-card img {
        width: 96px !important;
        height: 96px !important;
    }

    /* Video profil: rasio 16:9 alih-alih tinggi minimum 450px. */
    body:has(#home-v2) iframe[src*="youtube.com"],
    body:has(#home-v2) .yt-lite {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }

    /* Footer: Link Cepat dua kolom. */
    body:has(#home-v2) footer .row.text-left > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    body:has(#home-v2) footer .row.text-left > .col-sm-6 a {
        font-size: 13px;
    }

    /* Tombol prev/next carousel legalitas tidak keluar layar. */
    body:has(#home-v2) footer .legalitas-carousel .nav-btn.prev-slide {
        left: 6px !important;
    }

    body:has(#home-v2) footer .legalitas-carousel .nav-btn.next-slide {
        right: 6px !important;
        left: auto !important;
    }
}

/* Facade YouTube click-to-play agar embed & font Roboto YouTube tidak dimuat saat initial load. */
.yt-lite {
    position: relative;
    display: block;
    width: 100%;
    min-height: 450px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.yt-lite img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.yt-lite:hover img {
    transform: scale(1.02);
    filter: brightness(.92);
}

.yt-lite-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.yt-lite-bg {
    fill: rgba(33, 33, 33, .85);
    transition: fill .2s ease;
}

.yt-lite:hover .yt-lite-bg,
.yt-lite:focus-visible .yt-lite-bg {
    fill: #f00;
}
