/* =========================================================
   HitunginAja — Main Stylesheet
   Port 1:1 dari desain mockup asli, disesuaikan untuk markup
   WordPress (wp_nav_menu, is_page, dsb) tanpa mengubah tampilan.
   ========================================================= */

/* ROOT VARIABLES */
:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border: #e2e8f0;

    /* Soft Colors */
    --c-mint-light: #e2f8ee; --c-mint: #10b981;
    --c-blue-light: #e0f2fe; --c-blue: #0ea5e9;
    --c-orange-light: #ffedd5; --c-orange: #f97316;
    --c-red-light: #ffe4e6; --c-red: #f43f5e;
    --c-purple-light: #f3e8ff; --c-purple: #a855f7;
    --c-green-light: #dcfce7; --c-green: #22c55e;
}

/* GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-sm { font-size: 0.875rem; }
.bg-light { background-color: var(--bg-light); }
.screen-reader-text { position: absolute !important; left: -9999px; }

/* BUTTONS */
.btn {
    padding: 10px 20px; border-radius: 8px; font-weight: 500; font-size: 0.95rem;
    cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--c-blue-light); }
.icon-btn { background: transparent; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-dark); padding: 8px; }
.link-btn { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: 0.95rem; }

/* NAVBAR */
.navbar { padding: 16px 0; border-bottom: 1px solid var(--bg-lighter); background: var(--bg-white); position: sticky; top: 0; z-index: 100; transition: box-shadow .2s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.2rem; line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); }

/* Logo upload (Customize > Site Identity): tinggi tetap, lebar menyesuaikan
   rasio asli gambar (object-fit: contain) supaya tidak gepeng/terpotong. */
.logo-image-wrap { display: flex; align-items: center; }
.site-logo-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 0.95rem; font-weight: 500; }
.nav-links li { position: relative; }
.nav-links a { color: var(--text-muted); }
.nav-links a.active, .nav-links a:hover, .nav-links li.current-menu-item > a { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* Dropdown (kategori) — dekoratif, tampil bila menu punya sub-item */
.nav-links li.menu-item-has-children > a i { margin-left: 4px; }
.nav-links ul.sub-menu {
    list-style: none; position: absolute; top: 100%; left: 0; background: white;
    border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .18s; z-index: 50;
}
.nav-links li.menu-item-has-children:hover ul.sub-menu,
.nav-links li.menu-item-has-children:focus-within ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links ul.sub-menu li { padding: 0; }
.nav-links ul.sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-dark); font-weight: 500; }
.nav-links ul.sub-menu a:hover { background: var(--bg-lighter); color: var(--primary); }

/* HERO SECTION */
.hero { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); padding: 60px 0 80px; overflow: hidden; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: #0f172a; }
.hero-content .subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }

.search-box {
    display: flex; align-items: center; background: white; padding: 6px 6px 6px 20px;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 24px; border: 1px solid var(--border);
    position: relative;
}
.search-icon { color: var(--text-muted); margin-right: 12px; }
.search-box input { flex: 1; border: none; outline: none; font-size: 1rem; color: var(--text-dark); background: transparent; }
.search-box .btn-primary { padding: 12px 28px; border-radius: 8px; }

/* Live search AJAX dropdown */
.search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: white;
    border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 60; overflow: hidden; display: none;
}
.search-suggestions.is-open { display: block; }
.search-suggestions a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-dark); font-size: 0.95rem; }
.search-suggestions a:hover { background: var(--bg-lighter); }
.search-suggestions .suggestion-empty,
.search-suggestions .suggestion-loading { padding: 14px 16px; color: var(--text-muted); font-size: 0.9rem; }

.popular-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.tag-label { color: var(--text-muted); }
.tag { background: var(--bg-lighter); padding: 6px 16px; border-radius: 20px; color: var(--text-dark); font-weight: 500; transition: background 0.2s; }
.tag:hover { background: #e2e8f0; }

/* HERO ILLUSTRATION (CSS Murni) */
.hero-illustration { flex: 1; position: relative; height: 450px; display: flex; align-items: center; justify-content: center; }
.calc-graphic { width: 220px; height: 320px; background: #475569; border-radius: 24px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: relative; z-index: 5; }
.calc-screen { background: #94a3b8; height: 60px; border-radius: 12px; margin-bottom: 24px; display: flex; align-items: center; justify-content: flex-end; padding: 10px; color: white; font-weight: 600; font-size: 1.2rem; }
.calc-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-buttons div { background: #cbd5e1; height: 36px; border-radius: 8px; }

.floating-badge { position: absolute; background: white; padding: 12px 20px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; z-index: 10; animation: float 6s ease-in-out infinite; }
.floating-badge .icon-box { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.badge-keuangan { top: 20px; left: 10%; background: var(--c-mint-light); border-radius: 24px; width: 110px; height: 110px; justify-content: center;}
.badge-gaji { top: 0; right: 25%; background: var(--c-blue-light); border-radius: 24px; width: 110px; height: 110px; justify-content: center; }
.badge-kesehatan { top: 30px; right: 0; background: var(--c-red-light); border-radius: 24px; width: 110px; height: 110px; justify-content: center; }
.badge-bisnis { top: 160px; left: 0; background: var(--c-orange-light); border-radius: 24px; width: 100px; height: 100px; justify-content: center; }
.badge-tanggal { bottom: 30px; left: 15%; background: var(--c-purple-light); border-radius: 24px; width: 120px; height: 110px; justify-content: center; }
.badge-waris { bottom: 40px; right: 15%; background: var(--c-green-light); border-radius: 24px; width: 120px; height: 110px; justify-content: center; }

.hero-text-decor { position: absolute; right: -20px; top: 180px; font-family: 'Caveat', cursive; color: var(--text-muted); font-size: 1.2rem; transform: rotate(-5deg); text-align: center; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* COMMON SECTIONS */
section { padding: 80px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; }

/* GRID & CARDS */
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: box-shadow 0.3s, transform 0.3s; }
.card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }

.card h3 { font-size: 1.1rem; margin: 16px 0 8px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }
.center-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.align-left { text-align: left; }

/* ICON BOXES */
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }
.icon-box.large { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 50%; }

/* Color classes */
.text-mint { color: var(--c-mint); } .mint-light { background: var(--c-mint-light); }
.text-blue { color: var(--c-blue); } .blue-light { background: var(--c-blue-light); }
.text-orange { color: var(--c-orange); } .orange-light { background: var(--c-orange-light); }
.text-red { color: var(--c-red); } .red-light { background: var(--c-red-light); }
.text-purple { color: var(--c-purple); } .purple-light { background: var(--c-purple-light); }
.text-green { color: var(--c-green); } .green-light { background: var(--c-green-light); }

/* CTA BANNER */
.banner-section { padding: 40px 24px; }
.banner-box { background: #eef2ff; border-radius: 16px; padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; }
.banner-content { display: flex; align-items: center; gap: 24px; }
.icon-box-large { background: #fef08a; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #ca8a04; box-shadow: 0 4px 10px rgba(202, 138, 4, 0.2); }
.banner-box h2 { font-size: 1.5rem; margin-bottom: 8px; }
.banner-box p { color: var(--text-muted); font-size: 0.95rem; }

/* STATS */
.stats { padding: 40px 0; border-bottom: 1px solid var(--border); }
.stats-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.stat-item { display: flex; align-items: center; gap: 16px; }
.icon-box-round { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-item h4 { font-size: 1.5rem; font-weight: 700; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; }

/* FOOTER */
.footer { padding: 60px 0 20px; background: var(--bg-white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin: 20px 0; font-size: 0.95rem; line-height: 1.6; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-lighter); display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.2s; }
.social-icons a:hover { background: var(--primary); color: white; }

.footer-links h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--text-muted); transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--primary); }

.newsletter-box { background: var(--bg-light); padding: 24px; border-radius: 12px; }
.newsletter-box h4 { margin-bottom: 8px; }
.newsletter-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.newsletter-msg { margin-top: 10px; font-size: 0.85rem; }
.newsletter-msg.success { color: var(--c-green); }
.newsletter-msg.error { color: var(--c-red); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; flex-wrap: wrap; gap: 8px; }

/* Fallback generik untuk konten single/page/archive/404 standar WP,
   dibuat senada dengan gaya di atas supaya tidak "pecah" desain. */
.site-content-wrap { padding: 60px 0; max-width: 760px; margin: 0 auto; }
.site-content-wrap article { margin-bottom: 40px; }
.site-content-wrap h1 { font-size: 2rem; margin-bottom: 16px; }
.site-content-wrap .entry-content { color: var(--text-muted); line-height: 1.7; }
.site-content-wrap .entry-content a { color: var(--primary); text-decoration: underline; }

/* Typography konten artikel (dari editor Gutenberg) — heading, gambar, list,
   dan blockquote sebelumnya sama sekali tidak ada gaya, jadi ikut default
   browser mentah (H6 lebih kecil dari teks biasa, gambar bisa meluber, dst).
   Skala heading dibuat menurun jelas H2 → H6 supaya hierarki tetap masuk akal
   berapa pun level heading yang dipakai penulis. */
.site-content-wrap .entry-content h1,
.site-content-wrap .entry-content h2,
.site-content-wrap .entry-content h3,
.site-content-wrap .entry-content h4,
.site-content-wrap .entry-content h5,
.site-content-wrap .entry-content h6 {
    color: var(--text-dark); font-weight: 700; line-height: 1.3;
    margin: 1.6em 0 0.6em;
}
.site-content-wrap .entry-content h1 { font-size: 1.5rem; } /* disamakan dengan H2 — H1 halaman sudah dipakai oleh judul post */
.site-content-wrap .entry-content h2 { font-size: 1.5rem; }
.site-content-wrap .entry-content h3 { font-size: 1.25rem; }
.site-content-wrap .entry-content h4 { font-size: 1.1rem; }
.site-content-wrap .entry-content h5 { font-size: 1rem; }
.site-content-wrap .entry-content h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .03em; }
.site-content-wrap .entry-content > *:first-child { margin-top: 0; }

.site-content-wrap .entry-content p { margin: 0 0 1.2em; }

.site-content-wrap .entry-content img,
.site-content-wrap .entry-content figure img {
    max-width: 100%; height: auto; display: block; border-radius: 12px; margin: 1.6em 0;
}
.site-content-wrap .entry-content figure { margin: 1.6em 0; }
.site-content-wrap .entry-content figcaption {
    font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 8px;
}

.site-content-wrap .entry-content ul,
.site-content-wrap .entry-content ol {
    margin: 0 0 1.2em; padding-left: 1.4em;
}
.site-content-wrap .entry-content li { margin-bottom: 0.4em; }
.site-content-wrap .entry-content ul { list-style: disc; }
.site-content-wrap .entry-content ol { list-style: decimal; }

.site-content-wrap .entry-content blockquote {
    margin: 1.6em 0; padding: 12px 20px; border-left: 4px solid var(--primary);
    background: var(--bg-light); color: var(--text-dark); font-style: italic; border-radius: 0 8px 8px 0;
}
.site-content-wrap .entry-content blockquote p:last-child { margin-bottom: 0; }

.site-content-wrap .entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.site-content-wrap .entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92rem; }
.site-content-wrap .entry-content th, .site-content-wrap .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.site-content-wrap .entry-content th { background: var(--bg-light); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 1200px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-illustration { width: 100%; margin-top: 40px; }

    /* Menu utama disembunyikan dari layout normal, dibuka lewat tombol hamburger
       sebagai panel dropdown di bawah navbar. */
    .nav-links {
        display: none; position: absolute; top: calc(100% + 16px); left: 0; right: 0;
        flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--border);
        border-radius: 12px; padding: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); z-index: 99;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px 14px; border-radius: 8px; }
    .nav-links a:hover, .nav-links a.active { background: var(--bg-lighter); }
    /* Submenu (kalau ada menu WP dengan child item) tampil langsung mengalir ke bawah, bukan hover-dropdown. */
    .nav-links ul.sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: none; padding-left: 16px; margin-top: 0;
    }

    .hamburger-btn {
        display: inline-flex; align-items: center; justify-content: center;
        background: transparent; border: none; font-size: 1.2rem; color: var(--text-dark);
        cursor: pointer; padding: 8px; width: 40px; height: 40px;
    }

    .banner-box { flex-direction: column; text-align: center; gap: 20px; }
    .banner-content { flex-direction: column; }
    .stats-container { flex-wrap: wrap; gap: 24px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-tags { justify-content: center; }
}
@media (min-width: 993px) {
    .hamburger-btn { display: none; }
}

/* Di bawah ~700px, badge ilustrasi hero (posisi absolut, didesain untuk
   lebar desktop) mulai saling bertumpuk satu sama lain karena kontainernya
   makin sempit. Solusinya: ganti jadi grid statis yang rapi — grafis
   kalkulator & teks dekoratif disembunyikan (dekorasi saja, bukan konten
   penting), 6 badge kategori tetap tampil penuh tanpa saling menutupi. */
@media (max-width: 700px) {
    .hero-illustration {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
        height: auto; padding: 0 0 8px;
    }
    .hero-illustration .calc-graphic,
    .hero-illustration .hero-text-decor { display: none; }
    .floating-badge {
        position: static; width: 100% !important; height: auto !important;
        padding: 16px 8px; border-radius: 16px !important; animation: none;
    }
}
@media (max-width: 480px) {
    .hero-illustration { grid-template-columns: repeat(2, 1fr); }
    .search-box input::placeholder { font-size: 0.85rem; }
}
@media (max-width: 768px) {
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .grid-6 { grid-template-columns: 1fr; } .site-logo-img { height: 36px; max-width: 160px; } }

/* =========================================================
   MODAL "DUKUNG KAMI" (donasi)
   ========================================================= */
.hnj-donation-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 1000;
}
.hnj-donation-overlay[hidden] { display: none; }

.hnj-donation-modal {
    background: #fff; border-radius: 20px; max-width: 440px; width: 100%;
    max-height: 90vh; overflow-y: auto; padding: 32px 28px; position: relative;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: hnj-donation-in .2s ease;
}
@keyframes hnj-donation-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.hnj-donation-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border: none; background: var(--bg-lighter); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--text-muted); transition: background .15s;
}
.hnj-donation-close:hover { background: #e2e8f0; }

.hnj-donation-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; background: #fef08a; color: #ca8a04;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.hnj-donation-modal h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; }
.hnj-donation-text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 24px; }

.hnj-donation-banks { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 20px; }
.hnj-donation-bank-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-light);
}
.hnj-donation-bank-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hnj-donation-bank-info strong { font-size: 0.95rem; color: var(--text-dark); }
.hnj-donation-bank-number { font-size: 1.05rem; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.hnj-donation-bank-holder { font-size: 0.78rem; color: var(--text-muted); }
.hnj-donation-bank-empty { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.hnj-donation-copy-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 1px solid var(--primary); background: #fff; color: var(--primary);
    border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background .15s, color .15s;
}
.hnj-donation-copy-btn:hover { background: var(--primary); color: #fff; }
.hnj-donation-copy-btn.is-copied { background: var(--c-mint); border-color: var(--c-mint); color: #fff; }

.hnj-donation-footnote { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

@media (max-width: 480px) {
    .hnj-donation-modal { padding: 26px 20px; border-radius: 16px; }
    .hnj-donation-bank-item { flex-direction: column; align-items: stretch; gap: 10px; }
    .hnj-donation-copy-btn { justify-content: center; }
}

/* =========================================================
   SECTION ARTIKEL TERBARU (homepage, di bawah Kategori)
   ========================================================= */
.section-eyebrow {
    display: block; font-size: 0.8rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}
.articles-section { padding: 60px 0; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.article-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: box-shadow 0.3s, transform 0.3s;
}
.article-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }

.article-card-media { display: block; }
.article-card-img {
    width: 100%; height: 180px; object-fit: cover; display: block;
}
.article-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-lighter); color: var(--text-muted); font-size: 2rem;
}

.article-card-body { padding: 20px; }
.article-card-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.article-card-title {
    font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-title a { color: var(--text-dark); }
.article-card-title a:hover { color: var(--primary); }
.article-card-link { font-size: 0.9rem; }

@media (max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-card-img, .article-card-img-placeholder { height: 200px; }
    .flex-between { flex-direction: column; align-items: flex-start; gap: 12px; }
}
