.home {
    --rad: 16px;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    --yellow: #ffd400;
    --text-dim: #8a8a8a;

    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial, sans-serif;
}
/* ====== HERO ====== */
.home .hero-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--rad);
    overflow: hidden;
}
.home .hero-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 35%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(0, 0, 0, 0) 85%
    );
}

.home .content-wrapper {
    padding: 24px 0;
}

/* ====== KARTU / CARD ====== */
.home .card {
    border: 0;
    border-radius: var(--rad);
    box-shadow: var(--shadow);
    background: #fff;
}

.home .fs-12 {
    font-size: 0.75rem;
}

.home .social-title {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 25px;
}

.home .social-subtitle {
    font-weight: 800;
    color: rgb(2, 216, 216) !important;
    text-decoration: none;
}

.home .social-subtitle:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ================= HERO ================= */
.home .hero-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .hero-row {
    align-items: stretch !important;
}

/* .home .hero-row > [class^="col-"],
.home .hero-row > [class*=" col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
} */

.home .hero-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--rad);
    overflow: hidden;
}

.home .hero-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 35%,
        rgba(0, 0, 0, 0.12) 65%,
        rgba(0, 0, 0, 0) 85%
    );
}

.home .hero-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home .banner-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75);
}

.home .badge-warning {
    background: var(--yellow);
    color: #111;
}

/* ================= POPULER (kanan) ================= */
.home .pop-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home .pop-heading {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--yellow);
    padding: 10px 16px;
    border-radius: 0 20px 20px 0;
    color: #111;
}

.home .pop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.home .pop-thumb {
    width: 150px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 150px;
}

.home .pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home .pop-item-title {
    line-height: 1.2;
    font-weight: 600;
}

.home .byline {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* underline kuning untuk nama pengirim */
.home .byline strong {
    text-decoration-line: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    /* tebal garis */
    text-underline-offset: 2px;
    /* jarak dari teks */
}

/* ================= KARTU BERITA ================= */
.home .card-thumb {
    position: relative;
    border-top-left-radius: var(--rad);
    border-top-right-radius: var(--rad);
    overflow: hidden;
}

.home .card-thumb img,
.home .card-thumb video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.home .badge-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Seksi berikutnya (card kuning/Instagram) jangan mendorong ke atas */
.home .card-yellow {
    margin-top: 2px;
    /* semula my-4 memberi jarak besar */
}

/* Tombolnya sendiri (biarkan seperti sebelumnya, contoh): */
.home .btn-see-all {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    background: #ffd400;
    color: #111;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.08s ease, box-shadow 0.2s ease,
        background-color 0.15s ease;
    font-size: 15px;
    margin-bottom: 80px;
}

.home .btn-see-all:hover {
    background: #ffdc33;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.home .btn-see-all:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Container tombol supaya lebih dekat dengan card */
.home .text-center.mt-3.mb-2 {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

.home .play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease,
        border-color 0.2s ease;
}

.home .card-thumb:hover .play-badge {
    background: rgba(0, 0, 0, 0.75);
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #fff;
}

/* ================= INSTAGRAM ================= */
.home .card-yellow {
    background: var(--yellow);
    border-radius: var(--rad);
    box-shadow: var(--shadow);
}

.home .instagram-media {
    max-width: 360px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ================= YOUTUBE ================= */
.home .yt-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.home .yt-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= PARTNERS ================= */
.home .partners-section {
    margin: 60px 0 120px;
}

.home .partners-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: nowrap;
}

.home .partner {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.home .video-section {
    padding-block: 0;
}

/* kalau mau tanpa padding atas/bawah ekstra */
.home .section-pill {
    font-weight: 700;
    background: #ffd400;
    padding: 10px 16px;
    border-radius: 0 20px 20px 0;
}

.home .see-all {
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.home .see-all:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- util: clamp & word break --- */
.home .clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* max 2 baris */
    overflow: hidden;
}

.home .wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .home .partners-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .home .hero-box {
        aspect-ratio: 16 / 9;
        /* dari 4/3 -> 16/9 supaya lebih pendek */
        max-height: 360px;
        /* hard cap agar tidak terlalu tinggi */
    }

    .home .hero-row .col-12.col-lg-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* opsional: sedikit rapikan daftar */
    .home .pop-right {
        padding-left: 0;
        padding-right: 0;
    }

    .home .pop-list {
        gap: 10px;
    }

    .home .pop-thumb {
        width: 110px;
        height: 72px;
    }

    /* kecilkan thumb di mobile, opsional */

    /* rapikan overlay teks */
    .home .banner-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .home .badge-warning {
        font-size: 0.68rem;
        padding: 0.25rem 0.5rem;
    }

    .home .banner-content h2 {
        font-size: clamp(16px, 4.2vw, 20px);
        line-height: 1.25;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        /* judul max 2 baris */
        margin: 4px 0 0;
    }

    .home .banner-content .fs-12 {
        font-size: 0.72rem;
    }

    .home .video-list {
        display: flex !important;
        /* override bootstrap .row */
        flex-wrap: nowrap !important;
        /* JANGAN melipat ke bawah */
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 0 16px;
        /* biar gak nempel tepi */
        margin-left: 0 !important;
        /* matikan gutter negatif .row */
        margin-right: 0 !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home .video-list::-webkit-scrollbar {
        display: none;
    }

    .home .video-list > [class^="col-"],
    .home .video-list > [class*=" col-"] {
        padding-left: 0 !important;
        /* matikan gutter column */
        padding-right: 0 !important;
    }

    .home .video-item {
        flex: 0 0 68% !important;
        //* Lebar tiap kartu (sesuaikan 60–72% sesuai selera) */
        max-width: 68% !important;
        scroll-snap-align: start;
    }

    /* opsional: pendekkan thumbnail di mobile */
    .home .video-item .card-thumb img,
    .home .video-item .card-thumb video {
        height: 160px;
        object-fit: cover;
    }

    /* Pad & font lebih kecil */
    .home .video-item .card-body {
        padding: 10px 12px;
    }

    .home .video-item .card-title {
        font-size: 1rem;
        line-height: 1.25;
        margin: 0.25rem 0 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .home .video-item small,
    .home .video-item .byline {
        font-size: 0.72rem;
    }

    .home .video-item .badge-cat {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
        top: 6px;
        left: 6px;
    }

    .home .video-item .play-badge {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .home .youtube-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 0 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        align-items: flex-start !important;
        /* <- jangan stretch */
    }

    .home .youtube-list::-webkit-scrollbar {
        display: none;
    }

    .home .youtube-list > [class^="col-"],
    .home .youtube-list > [class*=" col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .home .youtube-item {
        flex: 0 0 78% !important;
        /* ubah 70–85% sesuai selera */
        max-width: 78% !important;
        scroll-snap-align: start;
    }

    /* Kunci rasio 16:9 biar semua sama */
    .home .youtube-item .yt-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        /* <- ganti padding-top */
        padding-top: 0 !important;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }

    .home .youtube-item .yt-wrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1199.98px) {
    .home .pop-right {
        height: auto;
    }

    .home .pop-list {
        gap: 12px;
    }

    .home .pop-thumb {
        width: 136px;
        height: 88px;
        flex-basis: 136px;
    }
}

@media (max-width: 991.98px) {
    .home .container-fluid.px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .home .hero-box {
        aspect-ratio: 4 / 3;
    }

    /* ini bikin gambar jadi tinggi */

    .home .hero-box::after {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.18) 70%,
            rgba(0, 0, 0, 0) 88%
        );
    }

    .home .pop-thumb {
        width: 120px;
        height: 80px;
        flex-basis: 120px;
    }
}

@media (max-width: 576px) {
    .home .play-badge {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .home .hero-box {
        aspect-ratio: 18 / 9;
        /* lebih “wide”, jadi makin pendek */
        max-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .home .container-fluid.px-5 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Opsional: HP sangat kecil */
@media (max-width: 420px) {
    .home .hero-box {
        max-height: 260px;
    }
}

/* 1024-ish: bikin hero lebih pendek & teks sedikit mengecil */
/* 1024px fix: pendekkan hero supaya tidak terlalu besar */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* opsi A: pakai rasio lebih “wide” */
    .home .hero-box {
        /* biar tidak dibatasi dan boleh mengikuti tinggi kanan */
        max-height: none; /* override 460px */
    }

    /* kalau ingin lebih ketat, pakai opsi B (hard height) */
    /* .hero-box{ height: 420px; aspect-ratio: auto; } */

    .home .hero-box img {
        object-fit: cover;
        object-position: center;
    }

    /* pastikan kolom kanan mulai dari atas, tidak “stretch” ikut hero */
    .home .hero-row {
        align-items: start !important;
    }

    .home .pop-list {
        gap: 10px;
    }

    .home .pop-thumb {
        width: 110px;
        /* dari 136–150 */
        height: 74px;
        flex: 0 0 110px;
        border-radius: 10px;
    }

    .home .pop-item-title {
        font-size: 0.95rem;
        /* kecilin font judul */
        line-height: 1.25;
        -webkit-line-clamp: 2;
        /* pastikan max 2 baris */
        max-height: calc(1.25em * 2);
    }

    .home .pop-right .badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }

    .home .pop-right .fs-12 {
        font-size: 0.72rem;
        /* waktu, dsb, ikut kecil */
    }

    /* pendekkan thumbnail semua kartu (termasuk video) */
    .home .card-thumb img,
    .home .card-thumb video {
        height: 180px;
        /* dari 240px -> 180px */
    }

    /* rapikan padding & teks */
    /* .home .card .card-body {
        padding: 12px 16px;
    } */

    .home .byline {
        font-size: 0.75rem;
        margin: 2px 0 8px;
    }

    /* judul: 2 baris saja */
    .home .card .card-title {
        font-size: 1rem;
        line-height: 1.25;
        margin-bottom: 0.35rem;
    }

    .home .card .card-title a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    /* excerpt: sembunyikan di 1024 agar kartu tidak kepanjangan */
    .home .card .card-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        margin-top: 0.35rem;
    }

    /* badge kategori di thumbnail sedikit diperkecil */
    .home .badge-cat {
        top: 8px;
        left: 8px;
        font-size: 0.7rem;
        padding: 0.25rem 0.45rem;
    }
}

.home .banner-content h2 {
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.2;
}

.home .banner-content .fs-12 {
    /* waktu & kategori */
    font-size: 0.72rem;
}

/* thumbnail Populer sedikit diperkecil agar kompak */
.home .pop-thumb {
    width: 132px;
    height: 86px;
    flex-basis: 132px;
}

/* Pastikan baris hero selalu stretch */
.home .hero-row {
    align-items: stretch !important;
}

/* HIDE ELFSIGHT BRANDING — AT YOUR OWN RISK */
/* Scope ke halaman home agar tidak nabrak halaman lain */
.home [class^="eapps-widget-toolbar"],
.home [class*=" eapps-widget-toolbar"],
.home a[href*="elfsight.com"] {
    display: none !important;
}

/* Di layar besar, biar kanan setinggi hero kiri tanpa ubah layout */
@media (min-width: 1200px) {
    .home .hero-row .col-lg-8,
    .home .hero-row .col-lg-4 {
        display: stretch !important;
        /* jangan dipaksa flex */
    }

    /* Kanan: kolom dan isi mengisi tinggi */
    .home .pop-right {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        /* ikut tinggi kolom */
    }

    /* jaga lebar judul Populer seperti semula */
    .home .pop-right h2 {
        width: 300px !important;
    }

    /* Daftar populer mengisi ruang kosong di kolom */
    .home .pop-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1 1 auto;
        /* isi sisa tinggi */
        justify-content: space-between;
        /* tersebar merata secara vertikal */
    }

    /* anaknya ikut setinggi kolom */
}

/* ====== PARTNERS (scoped ke halaman Home) ====== */
.home .partners-section {
    margin: 60px 0 120px;
}

.home .partners-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.home .partners-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: nowrap;
}

.home .partner {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.home .partner img:hover {
    filter: none;
    transform: translateY(-2px);
}

/* Mobile: bisa digeser horizontal */
@media (max-width: 768px) {
    .home .partners-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 8px;
        gap: 32px;
    }
    .home .partner {
        flex: 0 0 160px;
    }
}

/* ====== PARTNERS (scoped ke halaman Home) ====== */
.home .partners-section {
    margin: 60px 0 120px;
}

.home .partners-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.home .partners-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: nowrap;
}

.home .partner {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.home .partner img:hover {
    filter: none;
    transform: translateY(-2px);
}

/* Mobile: bisa digeser horizontal */
@media (max-width: 768px) {
    .home .partners-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 8px;
        gap: 32px;
    }
    .home .partner {
        flex: 0 0 160px;
    }
}

/* ULTRA‑WIDE tweak: besarkan thumbnail daftar POPULER di kanan */
/* === 4K-ish: >1920px === */
@media (min-width: 1920px) {
    .home .hero-container {
        max-width: min(98vw, 2600px) !important;
    }
    .home .hero-row {
        grid-template-columns: 1.5fr 720px !important;
        column-gap: 32px !important;
    }
    .home .pop-right .pop-list .pop-thumb {
        width: 320px !important;
        height: 192px !important;
        flex-basis: 320px !important;
    }
    .home .hero-container {
        max-width: min(96vw, 2200px) !important;
        margin: 0 auto !important;
        padding: 0 24px !important;
    }
    .home .hero-container .hero-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 560px;
        column-gap: 28px;
        align-items: start;
    }
    .home .hero-container .hero-row > .col-12.col-lg-8,
    .home .hero-container .hero-row > .col-12.col-lg-4 {
        flex: initial !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* INI YANG PENTING: besarkan thumbnail populer dan paksa nilainya */
    .home .pop-right .pop-list .pop-thumb {
        width: 230px !important;
        height: 140px !important;
        flex: 0 0 230px !important;
    }
    .home .pop-right .pop-list .pop-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .home .pop-right .d-flex {
        gap: 16px !important;
    } /* jarak teks vs thumbnail */
}

/* === Ultra-wide: >2560px === */
@media (min-width: 2560px) {
    .home .hero-container {
        max-width: 2800px !important;
    }
    .home .hero-row {
        grid-template-columns: 1.8fr 820px !important;
        column-gap: 36px !important;
    }
    .home .pop-right .pop-list .pop-thumb {
        width: 360px !important;
        height: 216px !important;
        flex-basis: 360px !important;
    }
}
/* ==== FULL-BLEED HERO (khusus section container.my-4 di halaman .home) ==== */
@media (min-width: 992px){
  /* bobol lebar bootstrap container */
  .home section.container.my-4{
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* matikan gutter negatif baris & padding kolom di sisi kiri */
  .home section.container.my-4 .row{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .home section.container.my-4 .row.g-4 > .col-12.col-lg-8{
    padding-left: 0 !important;      /* sisi kiri hero nol */
  }
  .home section.container.my-4 .row.g-4 > .col-12.col-lg-4{
    padding-right: 0 !important;     /* opsional: kanan rapih */
  }
}

/* Jarak antara hero & Populer saat stacked (≤ 991.98px) */
@media (max-width: 991.98px){
  .home .container.my-4 .row.g-4.align-items-stretch > .col-12.col-lg-4{
    margin-top: 16px !important; 
  }
}



