/* ===================================================
   LAVELLE — Blog (file terpisah; tidak mengubah style.css).
   Memakai variabel warna dari style.css.
   Latar "Golden Aurora": gradien hangat bergerak + tekstur halus.
   =================================================== */

/* ---------- LATAR HIDUP (elegan & subtil) ---------- */
body {
    position: relative;
    background:
        radial-gradient(1200px 620px at 10% -8%, rgba(194, 149, 79, .16), transparent 60%),
        radial-gradient(1000px 720px at 102% 6%, rgba(151, 160, 127, .18), transparent 55%),
        radial-gradient(900px 760px at 50% 112%, rgba(194, 149, 79, .12), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
/* aurora emas/sage yang melayang perlahan */
body::before {
    content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
    background:
        radial-gradient(38% 40% at 18% 28%, rgba(216, 173, 104, .22), transparent 70%),
        radial-gradient(34% 36% at 82% 18%, rgba(151, 160, 127, .22), transparent 70%),
        radial-gradient(44% 46% at 62% 92%, rgba(194, 149, 79, .16), transparent 72%);
    filter: blur(26px);
    animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(3%, 2.5%, 0) scale(1.1); }
}
/* tekstur titik halus + ornamen daun samar di sudut */
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(59, 53, 42, .05) 1px, transparent 1.4px);
    background-size: 24px 24px;
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- NAVBAR ---------- */
.blog-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 244, 232, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.blog-nav__in { max-width: var(--maxw); margin: 0 auto; padding: .9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.blog-nav .brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.blog-nav .brand img { height: 32px; width: 32px; object-fit: contain; }
.blog-nav .brand b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.blog-nav__links { display: flex; align-items: center; gap: 1.2rem; }
.blog-nav__links a { text-decoration: none; color: var(--ink-soft); font-size: .9rem; transition: color .25s; }
.blog-nav__links a:hover { color: var(--gold-deep); }
@media (max-width: 600px) { .blog-nav__links a:not(.btn) { display: none; } }

/* ---------- HERO ---------- */
.blog-hero { text-align: center; padding: 4.5rem 1.4rem 2.5rem; position: relative; }
.blog-hero .eyebrow { display: inline-block; letter-spacing: .3em; text-transform: uppercase; font-size: .7rem; color: var(--gold-deep); }
.blog-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; margin: .5rem 0; color: var(--ink); }
.blog-hero p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
.blog-hero::after { content: "\2766"; display: block; margin: 1.2rem auto 0; color: var(--gold); font-size: 1.4rem; opacity: .8; }

.blog-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem 4rem; }

/* ---------- DAFTAR ARTIKEL ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { position: relative; display: flex; flex-direction: column; background: rgba(255, 250, 240, .72); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s, box-shadow .35s, border-color .35s; }
.post-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card:hover::before { transform: scaleX(1); }
.post-card__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; transition: transform .5s ease; }
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.post-card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: .35rem 0 .5rem; line-height: 1.25; }
.post-card__excerpt { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.post-card__meta { margin-top: 1rem; font-size: .8rem; color: var(--ink-mute); }

/* ---------- HALAMAN ARTIKEL ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 0 1.4rem 4rem; }
.breadcrumb { font-size: .82rem; color: var(--ink-mute); margin: 1.5rem 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.article__head { text-align: center; margin-bottom: 2rem; }
.article__cat { display: inline-block; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: var(--gold-deep); }
.article__title { font-family: var(--serif); font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 700; line-height: 1.15; margin: .5rem 0; color: var(--ink); }
.article__meta { color: var(--ink-mute); font-size: .85rem; }
.article__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: 0 20px 50px -28px rgba(74, 60, 25, .5); }

.prose { color: var(--ink); line-height: 1.85; font-size: 1.06rem; }
.prose p { margin: 0 0 1.2rem; }
/* drop cap elegan di paragraf pertama */
.prose > p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.4em; line-height: .82; float: left; margin: .06em .12em 0 0; color: var(--gold-deep); font-weight: 600; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 2.3rem 0 .8rem; color: var(--ink); padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.prose h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--gold); background: rgba(236, 224, 203, .5); border-radius: 0 12px 12px 0; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* tabel perbandingan */
.prose .table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: rgba(255, 250, 240, .7); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--green); color: var(--cream); font-weight: 500; }
.prose tbody tr:last-child td { border-bottom: none; }

/* FAQ artikel */
.faq-list { margin: 1rem 0 1.5rem; }
.faq-list details { background: rgba(255, 250, 240, .7); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; margin-bottom: .7rem; }
.faq-list summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: .8rem 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--gold-deep); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin: 0 0 .9rem; color: var(--ink-soft); }

/* kotak CTA dalam artikel */
.cta-box { margin: 2.6rem 0 1rem; padding: 2.2rem 1.6rem; text-align: center; background: var(--grad-green); color: var(--cream); border-radius: var(--radius); box-shadow: 0 22px 50px -30px rgba(40, 50, 25, .7); }
.cta-box h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .5rem; color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .82); margin-bottom: 1.2rem; }

/* navigasi antar-artikel */
.post-more { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-more h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-mute); margin-bottom: .6rem; }
.post-more a { display: block; color: var(--gold-deep); text-decoration: none; padding: .35rem 0; }
.post-more a:hover { text-decoration: underline; }

.blog-foot { text-align: center; padding: 2.5rem 1.4rem; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: .85rem; background: rgba(250, 244, 232, .6); }
.blog-foot a { color: var(--gold-deep); text-decoration: none; }
