/* @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap");

* {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
} */

/* === Helvetica Neue (local) === */
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueThin.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueThinItalic.otf")
        format("opentype");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueUltraLight.otf")
        format("opentype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueUltraLightItalic.otf")
        format("opentype");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueLight.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueLightItalic.otf")
        format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueRoman.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueItalic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueMedium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueMediumItalic.otf")
        format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueBold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueBoldItalic.otf")
        format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueHeavy.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueHeavyItalic.otf")
        format("opentype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueBlack.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url("/fonts/HelveticaNeue/HelveticaNeueBlackItalic.otf")
        format("opentype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* FONT IMPLEMENT */
body {
    font-family:
        "Helvetica Neue",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

/* NAVIGATION BAR */
.navbar {
    background-color: black !important;
    color: white !important;
}

.navbar img {
    width: 75%;
}

.navbar ul li a {
    font-size: 14px;
    padding: 12px;
    margin: 0px 8px;
}

.navbar ul li a:hover {
    color: #00df82;
}

.navbar .nav-link {
    padding-bottom: 0.2rem; /* ruang untuk underline */
    border-bottom: 2px solid transparent;
    margin-bottom: 0.3rem;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: #fff !important;
    border-bottom-color: #00df82; /* hijau Finvox */
}

/* HERO SLIDER */
.hero-slide {
    background: black; /* navy gelap */
    min-height: 70vh;
}
.hero-content {
    color: #cbd5e1;
    padding: clamp(1.25rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.hero-title {
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.15;
    font-weight: bold;
    font-size: clamp(1.75rem, 3.5vw, 3.25rem);
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
}
.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.5),
        #000000 90%
    );
    pointer-events: none;
}

/* .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
} */

/* Container: beri jarak antar tombol */
.carousel-indicators {
    padding: 8px 12px; /* supaya tidak mepet tepi */
}

/* Hit area besar tapi visual dot kecil */
.carousel-indicators .indicator,
.carousel-indicators [data-bs-target] {
    --hit: 16px; /* ukuran tap target */
    --dot: 10px; /* ukuran titik visual */
    width: var(--hit);
    height: var(--hit);
    margin: 0; /* gunakan gap dari parent */
    padding: 0;
    background: transparent;
    border: 0;
    display: grid;
    place-items: center;
    line-height: 1;
}

/* Titik visual di tengah */
.carousel-indicators .indicator::before,
.carousel-indicators [data-bs-target]::before {
    content: "";
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* State aktif (Bootstrap pakai .active) + ARIA */
.carousel-indicators .indicator.active::before,
.carousel-indicators .indicator[aria-current="true"]::before,
.carousel-indicators [data-bs-target].active::before,
.carousel-indicators [data-bs-target][aria-current="true"]::before {
    background: #fff;
    transform: scale(0.7);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 0 4px rgba(0, 0, 0, 0.25);
}

/* Fokus keyboard yang jelas */
.carousel-indicators .indicator:focus-visible,
.carousel-indicators [data-bs-target]:focus-visible {
    outline: none;
}
.carousel-indicators .indicator:focus-visible::before,
.carousel-indicators [data-bs-target]:focus-visible::before {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 6px rgba(13, 110, 253, 0.75); /* ring fokus */
}

/* Sedikit toleransi untuk perangkat touch */
@media (pointer: coarse) {
    .carousel-indicators {
        gap: 10px;
    }
}

.btn-hero {
    max-width: 30%;
    border-radius: 0px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    background: black;
    border: solid 2px #00df8285;
    color: #00df82;
}

.btn-hero:hover {
    border: solid 2px #00df82;
    color: #00df82;
    background: black;
}

/* HOME */
.home-content-explainer {
    display: none;
}
.see-more {
    border-bottom: solid 2px #00df82;
    color: black;
    transition: background-position 0.5s ease;
}

.see-more:hover {
    color: #00df82;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
    background-position: right;
}

/* HOVER HOME */
/* Hover universal untuk list kecil di Home */
.hover-card {
    transition: transform 180ms ease;
}

.hover-card:hover,
.hover-card:focus-within {
    transform: translateY(-3px); /* naik sedikit, tanpa shadow */
}

/* Wrapper gambar: biar zoom nggak keluar area */
.hover-thumb {
    overflow: hidden;
}

/* Zoom gambar */
.hover-thumb-img {
    transition: transform 220ms ease;
    transform-origin: center;
}

.hover-card:hover .hover-thumb-img,
.hover-card:focus-within .hover-thumb-img,
.hover-thumb:hover .hover-thumb-img,
.hover-thumb:focus-within .hover-thumb-img {
    transform: scale(1.06);
}

/* Title jadi hijau */
.hover-title {
    transition: color 160ms ease;
}

.hover-card:hover .hover-title,
.hover-card:focus-within .hover-title,
.hover-title:hover {
    color: #16a34a !important;
}

/* VIDEO & ARTICLE */
.video-list-scroll {
    max-height: 520px;
    overflow: auto;
}

.thumb-rounded {
    border-radius: 12px;
}

.line-clamp-2 {
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-box {
    width: 140px;
}

.thumb-fixed {
    width: clamp(140px, 28vw, 220px);
    flex: 0 0 auto;
}

.btn-custom {
    border-radius: 0px;
    font-weight: 500;
    font-size: 14px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

trix-editor.form-control {
    min-height: 520px; /* ~30 rows */
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
}

/* ARTICLE */
.section-title {
    font-size: 42px;
}

.box-desc {
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-bar .btn-link {
    text-decoration: none;
}
.share-bar .btn-link:hover {
    color: #00df82 !important;
}

.label-category {
    /* color: #00df82; */
    color: #00a460;
    /* background-color: black; */
    text-align: center;
    text-transform: uppercase;
}

/* HOVER LIST MENU */
.article-card {
    --green: #16a34a; /* hijau */
}

.article-thumb {
    overflow: hidden; /* biar zoom nggak keluar kotak */
}

.article-thumb-img {
    transition: transform 220ms ease;
    transform-origin: center;
}

.article-title {
    transition: color 180ms ease;
}

.article-card:hover .article-thumb-img {
    transform: scale(1.06);
}

.article-card:hover .article-title {
    color: var(--green) !important;
}

.article-card:focus-within .article-thumb-img {
    transform: scale(1.06);
}
.article-card:focus-within .article-title {
    color: var(--green) !important;
}

.article-card {
    --green: #16a34a;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
    padding: 0.25rem 0; /* optional, bisa dihapus */
}

.article-card:hover {
    transform: translateY(-4px);
}

/* FOOTER */
.footer-dark {
    background-color: black;
    color: #d1d5db;
}

.footer-dark ul li a {
    color: white;
}

.footer-dark ul li a:hover {
    color: #00df82;
}

.divider-dot::before {
    content: " | ";
    color: #6b7280;
    margin: 0 0.35rem;
}

.logo-img {
    width: clamp(96px, 14vw, 220px);
    height: auto;
    max-height: 36px;
}

.soc-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    border: solid 2px #00df8285;
    /* background: #00df822c; */
    color: #00df82;
    transition: background-position 0.5s ease;
}

.soc-btn:hover {
    transition: 0.5s;
    background: #00df82;
    color: black;
    border: solid 2px #00df82;
}

/* COOKIE BANNER */
.cookie-modal .modal-content {
    border: 0;
    border-radius: 0px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    /* background-color: black; */
    color: white !important;
}
.cookie-modal .modal-body {
    padding: 2rem 2rem 1.25rem;
}
.fontsize-14 {
    font-size: 14px;
}
.cookie-modal .modal-footer {
    border-top: 0;
    padding: 0 2rem 2rem;
}
.cookie-link {
    color: #00df82;
    text-decoration: none;
    font-weight: 700;
}
.cookie-link:hover {
    text-decoration: underline;
}

.btn-continue {
    border-radius: 0px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    background: black;
    border: solid 2px #00df8285;
    color: #00df82;
}

.btn-continue:hover {
    border: solid 2px #00df82;
    color: #00df82;
    background: black;
}
.btn-manage {
    color: #00df82;
    font-weight: 700;
    background: transparent;
    border: 0;
}

.cookie-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1080; /* di atas konten lain */
    max-width: 450px;
    width: 100%;
}

.cookie-modal .modal-content {
    background-color: #000; /* aktifkan hitam */
    color: #fff !important;
    border-radius: 0; /* sesuai punyamu */
}

/* pastikan kontainer relatif agar absolute btn-close terposisi benar */
.cookie-modal .modal-content {
    position: relative;
}

/* jika CDN bootstrap kamu < 5.2 atau utilitas btn-close-white tidak ada,
   aktifkan fallback ini (kalau sudah ada btn-close-white dari Bootstrap, ini opsional) */
.cookie-modal .btn-close {
    /* fallback agar ikon close jadi putih */
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
}
.cookie-modal .btn-close:hover {
    opacity: 1;
}

/* pastikan tombol berada di atas elemen lain di kartu */
.cookie-modal .btn-close {
    z-index: 2;
}

/* ADMIN */
.sidebar {
    background: black;
    padding: 15px;
    width: 240px;
}

.nav-list-group {
    padding: 0px;
    display: flex;
    flex-direction: column;
}

.nav-list-group button,
.nav-list-item {
    text-decoration: none;
    color: white;
    padding: 15px;
    background: black;
    border: none;
    display: flex;
    align-items: center;
    min-width: 100%;
}

.nav-list-group button:hover,
.nav-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-content {
    min-height: 100vh;
    width: 100%;
}

.pagination-style nav {
    width: 100%;
}

.pagination-style p,
.pagination {
    margin: 0;
}

.pagination-style p {
    margin-right: 15px;
    display: none;
}

.pagination-style .pagination .page-item .page-link {
    color: black;
}

.pagination-style .pagination .active .page-link {
    background: black;
    border-color: black;
    color: white;
}

/* Pastikan editor tidak ketutup sticky header */
#editor .ql-editor {
    min-height: 340px;
}
.ql-toolbar.ql-snow {
    position: relative;
    z-index: 5;
}
#editor {
    position: relative;
    z-index: 4;
    background: #fff;
}

.article-body img {
    max-width: 100%;
    height: auto;
}
.article-body h1,
h2,
h3 {
    margin: 1.25rem 0 0.75rem;
}
.article-body p {
    margin: 0.75rem 0;
    line-height: 1.75;
}
.article-body ol,
.article-body ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

/* Perbesar teks di area editor saat mengedit */
#editor .ql-editor {
    font-size: 18px;
    line-height: 2;
}

/* (opsional) Perbesar ikon toolbar biar lebih nyaman */
.ql-toolbar.ql-snow .ql-formats button svg,
.ql-toolbar.ql-snow .ql-picker-label svg {
    transform: scale(1.15);
}

/* (opsional) Perbesar label picker (Header/Size) */
.ql-toolbar .ql-picker {
    font-size: 16px;
}

/* RICH TEXT */
/* Admin richtext size */
/* Perbesar teks di area editor saat mengedit */
#editor .ql-editor {
    font-size: 18px;
    line-height: 2;
}

/* (opsional) Perbesar ikon toolbar biar lebih nyaman */
.ql-toolbar.ql-snow .ql-formats button svg,
.ql-toolbar.ql-snow .ql-picker-label svg {
    transform: scale(1.15);
}

/* (opsional) Perbesar label picker (Header/Size) */
.ql-toolbar .ql-picker {
    font-size: 16px;
}

/* ===============================
   Quill editor (admin) styling
   Mirror dari .article-content user view
   =============================== */

/* Base typography */
#editor .ql-editor {
    font-size: 1.25rem;
    line-height: 2;
}

/* Reset margin paragraf seperti user view */
#editor .ql-editor p {
    margin: 0;
}
/* (Note) br tidak bisa "max-height" secara efektif.
   Kita kontrol spasi kosong lewat p yang hanya berisi <br>. */
#editor .ql-editor p:has(> br:only-child) {
    margin: 0;
    line-height: 1.5;
}

/* Fallback kalau :has tidak tersedia (opsional) */
#editor .ql-editor p > br:only-child {
    line-height: 1.5;
}

/* Font size output Quill */
#editor .ql-editor .ql-size-small {
    font-size: 0.95rem;
    line-height: 1.5;
}

#editor .ql-editor .ql-size-large {
    font-size: 1.5rem;
}

#editor .ql-editor .ql-size-huge {
    font-size: 2rem;
}

/* Heading dalam konten (hasil toolbar header) */
#editor .ql-editor h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 0;
}

#editor .ql-editor h2 {
    font-size: 1.5rem;
    line-height: 1.35;
    margin: 0;
}

#editor .ql-editor h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
}

/* Optional: biar list/blockquote/code tetap rapi (kalau kamu pakai) */
#editor .ql-editor ul,
#editor .ql-editor ol {
    margin: 0;
    padding-left: 1.25rem;
}

#editor .ql-editor blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 4px solid #dee2e6;
    color: #6c757d;
}

#editor .ql-editor pre {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===============================
   Quill editor (user) styling
   =============================== */

/* Base normal text artikel */
.article-content p {
    margin: 0;
}
.article-content {
    font-size: 1.25rem;
    line-height: 2;
}

.article-content .ql-size-small {
    font-size: 0.95rem;
}
.article-content p:has(.ql-size-small) {
    line-height: 1.5;
}

.article-content .ql-size-large {
    font-size: 1.5rem;
}

.article-content .ql-size-huge {
    font-size: 2rem;
}

/* Opsional: rapihin heading dalam body (kalau perlu) */
.article-content h1 {
    font-size: 2rem;
}
.article-content h2 {
    font-size: 1.5rem;
}
.article-content h3 {
    font-size: 1.25rem;
}

/* Jarak Spasi br kosong */
/* Paragraf kosong Quill: <p><br></p> */
.article-content p:empty {
    margin: 0;
    line-height: 1.5;
}

/* Banyak kasus Quill: p berisi <br> (jadi tidak dianggap empty) */
.article-content p > br:only-child {
    line-height: 1.5;
}

.article-content p:has(> br:only-child) {
    margin: 0; /* kecilin jarak, atur sesuai selera */
    line-height: 1.5; /* kecilin tinggi baris */
}

/* Quill Toolbar */
/* ===== Quill: scroll di dalam editor box, toolbar sticky di dalam box ===== */

/* ===== Quill: scroll di dalam editor box, toolbar sticky di dalam box ===== */
.quill-wrap {
    height: 600px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    background: #fff;
    overscroll-behavior: contain;
}

.quill-wrap .ql-toolbar.ql-snow {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #dee2e6;
}

.quill-wrap .ql-container.ql-snow {
    border: 0;
}

.quill-wrap .ql-editor {
    padding: 16px;
    font-size: 18px;
    line-height: 2;
}

/* RESPONSIVE */

/* MAX */
@media (max-width: 414px) {
    .navbar-brand img {
        width: 100px;
    }
    .cookie-modal .modal-dialog {
        margin: 1rem;
    }
    .cookie-float {
        max-width: 92%;
    }
}

@media (max-width: 992px) {
    .video-list-scroll {
        max-height: none;
    }
    .btn-login {
        width: 100%;
        margin: 15px 0px;
    }
    .hero-slide,
    .hero-image {
        min-height: 60vh;
    }
    .hero-gradient {
        display: none;
    }
    .hero-slide {
        min-height: auto;
    }

    .hero-center-mobile {
        align-items: center;
        text-align: center;
        padding-top: clamp(2rem, 10vh, 4rem);
        padding-bottom: 1.5rem;
    }

    /* Gambar di bawah + overlay gradient DI ATAS gambar */
    .hero-image-mobile {
        position: relative; /* penting untuk ::before absolute */
        width: 100%;
        height: 45vh;
        background-size: cover;
        background-position: center;
    }
    .hero-image-mobile::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 35%; /* seberapa panjang gradasi dari atas */
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
        z-index: 1; /* pastikan di atas gambar */
    }

    /* Hilangkan gradient horizontal desktop */
    .hero-gradient {
        display: none;
    }

    /* Tombol lebih proporsional di mobile */
    .btn-hero {
        width: min(320px, 90%);
        max-width: unset;
    }

    /* (opsional) geser indikator sedikit ke bawah */
    .carousel-indicators {
        bottom: 10px;
    }
}
