/* ==========================================================================
   BelajarGold — tema publik
   Warna brand utama (--gold, --bg, dst) disuntikkan dari CMS via <style> di <head>.
   ========================================================================== */

:root {
    --gold: #D4AF37;
    --gold-2: #F3CB5B;
    --gold-deep: #8A6D1F;
    --bg: #0B0B10;
    --surface: #15151E;
    --text: #F5F3EC;
    --muted: #9C9AA7;

    --surface-2: #1C1C27;
    --border: #2A2A38;
    --border-soft: #22222E;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --gold-grad: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
    --maxw: 1120px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); display: inline-block; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, .6); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 11, 16, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; gap: 26px; height: 70px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a { font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__cta { margin-left: 4px; }
.nav__links a.nav__cta, .nav__links a.nav__cta:hover { color: #1a1405; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border-soft); border-radius: 999px; }
.nav__links .nav__lang a { font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; line-height: 1.4; }
.nav__links .nav__lang a.is-active { color: var(--text); background: var(--surface-2); }

@media (max-width: 940px) {
    .nav__links {
        position: fixed; inset: 70px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 8px 22px 20px; margin: 0;
        transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - 70px); overflow: auto;
    }
    .nav__links.is-open { transform: translateY(0); }
    .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 1rem; }
    .nav__links .btn { margin-top: 14px; }
    .nav__lang { align-self: flex-start; margin-top: 14px; }
    .nav__links .nav__lang a { padding: 4px 12px; border-bottom: 0; font-size: .78rem; }
    .nav__toggle { display: inline-flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 80px; }
.hero::after {
    content: ""; position: absolute; top: -160px; right: -140px; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(212, 175, 55, .18), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
@media (max-width: 480px) {
    .container { padding: 0 16px; }
}
.hero__stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats div { }
.hero__stats b { display: block; font-size: 1.5rem; color: var(--gold); }
.hero__stats span { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { order: -1; max-width: 100%; width: 100%; }
}
@media (max-width: 768px) {
    .hero__art { display: none; }
}
@media (max-width: 600px) {
    .hero { padding: 60px 0 50px; }
    .hero__grid { gap: 30px; }
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 24px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border); transform: translateY(-3px); }
.card__icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(212, 175, 55, .12); color: var(--gold); font-size: 1.3rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Module grid ---------- */
.modules-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .modules-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modules-list { grid-template-columns: 1fr; } }

.module-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 20px; transition: border-color .15s, transform .15s;
}
.module-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.module-card__top { display: flex; align-items: center; justify-content: space-between; }
.module-card__num {
    font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); background: rgba(212, 175, 55, .1); padding: 4px 10px; border-radius: 999px;
}
.module-card__badge { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.module-card__badge.is-full { color: #7BE0A6; }
.module-card h3 { font-size: 1.05rem; margin: 4px 0 0; }
.module-card p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.module-card__foot { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.module-card__foot .arrow { color: var(--gold); font-weight: 700; }

/* ---------- Module detail ---------- */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--border-soft); }
.page-hero .eyebrow { margin-bottom: 10px; }

/* ---------- Pengantar modul ---------- */
.modules-intro { padding: 64px 0; background: linear-gradient(145deg, var(--surface), var(--bg) 70%); }
.modules-intro__grid { display: grid; gap: 44px; align-items: center; }
.modules-intro--with-video .modules-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.modules-intro__copy { min-width: 0; }
.modules-intro__copy h1 { max-width: 640px; font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1.16; }
.modules-intro__copy .lead { margin: 20px 0 0; font-size: 1rem; line-height: 1.8; }
.modules-intro__cta { margin-top: 26px; }
.modules-intro__video { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.modules-intro__video-label { display: flex; align-items: center; gap: 8px; padding: 16px 20px; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.modules-intro__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modules-intro__player iframe, .modules-intro__player video { display: block; width: 100%; height: 100%; border: 0; }
.modules-intro__caption { padding: 20px 24px 24px; }
.modules-intro__caption h2 { margin: 0; font-size: 1.08rem; line-height: 1.5; overflow-wrap: anywhere; }
.modules-intro__caption p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
#daftar-modul { scroll-margin-top: 90px; }
@media (max-width: 900px) {
    .modules-intro { padding: 44px 0; }
    .modules-intro--with-video .modules-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .modules-intro__video { width: 100%; max-width: 720px; }
}
@media (max-width: 480px) {
    .modules-intro { padding: 32px 0; }
    .modules-intro__caption { padding: 16px 18px 20px; }
    .modules-intro__video-label { padding: 14px 18px; }
}

.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold); }

.lesson-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding: 44px 0 72px; }
@media (max-width: 900px) { .lesson-layout { grid-template-columns: 1fr; gap: 24px; } }

.lesson-nav { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px; }
@media (max-width: 900px) { .lesson-nav { position: static; } }
.lesson-nav__title { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 8px; }
.lesson-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.lesson-nav li a {
    display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; color: var(--muted);
    align-items: baseline;
}
.lesson-nav li a:hover { background: var(--surface-2); color: var(--text); }
.lesson-nav li a.is-active { background: rgba(212, 175, 55, .12); color: var(--gold); font-weight: 600; }
.lesson-nav li a .n { font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--gold); min-width: 26px; }
.lesson-nav li a.is-locked { opacity: .55; }
.lesson-nav li a.is-locked:hover { background: transparent; cursor: default; color: var(--muted); }

/* ---------- Prose (lesson & article body) ---------- */
.prose { font-size: 1.02rem; color: #E6E4DA; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; padding-top: .3em; }
.prose h3 { font-size: 1.18rem; margin: 1.6em 0 .5em; color: var(--gold); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose blockquote {
    margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--gold);
    background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted);
}
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: 12px; overflow: auto; border: 1px solid var(--border-soft); }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 12px; margin: 1.4em 0; border: 1px solid var(--border-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.5em 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; flex-wrap: wrap; }
.lesson-pager a { flex: 1; min-width: 200px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s; }
.lesson-pager a:hover { border-color: var(--gold); }
.lesson-pager span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.lesson-pager b { display: block; margin-top: 4px; font-size: .96rem; }
.lesson-pager .next { text-align: right; }

/* ---------- Locked / Telegram CTA ---------- */
.locked-band {
    margin-top: 18px; background: var(--surface); border: 1px dashed var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center;
}
.locked-band h3 { color: var(--gold); }
.locked-band p { color: var(--muted); margin: 6px auto 18px; font-size: .95rem; }

.tele-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, .14), rgba(212, 175, 55, .03));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 44px; text-align: center;
}
.tele-cta h2 { margin-bottom: 8px; }
.tele-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- Support cards (footer area) ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
@media (max-width: 620px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px;
}
.support-card:hover { border-color: var(--gold); }
.support-card .tg-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(212, 175, 55, .12); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.support-card .wa-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(37, 211, 102, .12); color: #25D366; display: grid; place-items: center; font-weight: 800; }
.support-card b { font-size: .95rem; }
.support-card span { font-size: .8rem; color: var(--muted); display: block; }

/* ---------- Article list ---------- */
.post-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.post-card__cover { aspect-ratio: 16 / 9; background: var(--surface-2); object-fit: cover; width: 100%; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.post-card h3 { font-size: 1.05rem; margin: 0; }
.post-card p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.post-card time { font-size: .78rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: .82rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chip.is-active, .chip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Forms ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
}
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-direct-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .contact-form {
        padding: 18px 16px;
    }
    .contact-form .form-row {
        margin-bottom: 14px;
    }
    .contact-form .form-row label {
        font-size: .88rem;
    }
    .contact-form .input,
    .contact-form .textarea,
    .contact-form select.input {
        font-size: 16px; /* cegah auto zoom browser iOS */
        padding: 12px 14px;
    }
    .contact-form .textarea {
        min-height: 120px;
    }
    .contact-form .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff;
    padding: 12px 18px 12px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wa-float:hover {
    background: #20bd5a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
.wa-float svg {
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .wa-float {
        bottom: 18px;
        right: 18px;
        padding: 12px;
        border-radius: 50%;
    }
    .wa-float__label {
        display: none;
    }
}


.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.input, .textarea, select.input {
    width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .95rem;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--gold); }
.textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.field-error { color: #E58B8B; font-size: .82rem; margin-top: 5px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .92rem; border: 1px solid; }
.alert-success { background: rgba(47, 191, 113, .1); border-color: rgba(47, 191, 113, .35); color: #9be9c0; }
.alert-error { background: rgba(224, 123, 123, .1); border-color: rgba(224, 123, 123, .35); color: #f0b3b3; }
.alert-info { background: rgba(212, 175, 55, .1); border-color: rgba(212, 175, 55, .3); color: var(--gold-2); }

/* ---------- Disclaimer band ---------- */
.disclaimer {
    background: rgba(224, 123, 123, .06); border-top: 1px solid rgba(224, 123, 123, .2);
    border-bottom: 1px solid rgba(224, 123, 123, .2); padding: 18px 0; font-size: .84rem; color: var(--muted);
}
.disclaimer b { color: #e6a4a4; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 54px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer img { height: 34px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { color: var(--muted); font-size: .9rem; }
.site-footer li a:hover { color: var(--gold); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Pagination (Bootstrap 5 markup from Laravel) ---------- */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 34px 0 0; flex-wrap: wrap; }
.page-link { display: block; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.page-item.active .page-link { background: var(--gold-grad); color: #1a1405; border-color: transparent; font-weight: 700; }
.page-item.disabled .page-link { opacity: .4; }
.page-link:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Misc ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .lead { margin: 0; }
.divider { height: 1px; background: var(--border-soft); margin: 0; }
.badge-locked { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
