/* ============================================================
   KORINDO TERPAL — Blog stylesheet
   Dipakai oleh /blog/ dan seluruh halaman artikel.
   Warna & tipografi mengikuti halaman utama (index.html).
   ============================================================ */
:root {
    --primary: #0c1e4a;
    --primary-dark: #070f1f;
    --primary-light: #d4e0f5;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border: #cbd5e1;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar (sama dengan halaman utama) ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(12,30,74,0.06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.logo-icon {
    width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.9rem; color: var(--text-body); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -24px; left: 0; right: 0; height: 2px; background: var(--primary);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(12,30,74,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.mobile-toggle {
    display: none; background: none; border: none; font-size: 1.5rem;
    color: var(--text-dark); cursor: pointer; padding: 8px;
}
.mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.99); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(12,30,74,0.12);
    z-index: 999; padding: 8px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: flex; align-items: center; min-height: 48px; padding: 12px 24px;
    font-weight: 600; font-size: 1rem; color: var(--text-dark);
    border-bottom: 1px solid rgba(203,213,225,0.4);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--primary); background: var(--bg-light); }
.mobile-menu .mm-wa { color: var(--primary); }

/* ---------- Page hero (blog index & artikel) ---------- */
.page-hero {
    position: relative;
    padding: 144px 0 72px;
    background-image: url('/bg-aerial.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(12,30,74,0.92) 0%, rgba(7,15,31,0.88) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px;
}
.page-hero-label i { color: var(--accent); }
.page-hero h1 { color: white; font-size: 3rem; font-weight: 800; line-height: 1.12; max-width: 860px; margin-bottom: 18px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p.lead { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 680px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.88rem; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.65); }
.breadcrumb li + li::before { content: '\203A'; color: var(--accent); font-weight: 700; }
.breadcrumb a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: white; font-weight: 600; }

/* ---------- Blog index ---------- */
.section { padding: 88px 0; }
.blog-section { background: linear-gradient(180deg, var(--bg-white) 0%, #f0f4fa 100%); }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 { font-size: 2rem; }
.section-head h2::after {
    content: ''; display: block; width: 60px; height: 4px; margin-top: 14px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.section-head p { color: var(--text-light); max-width: 460px; }

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

.blog-card {
    background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.blog-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-light); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-tag {
    position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--primary-dark);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 100px;
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.blog-meta i { color: var(--accent); margin-right: 6px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.35; }
.blog-card h3 a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.blog-card p { font-size: 0.93rem; margin-bottom: 22px; flex: 1; }
.blog-card .btn { align-self: flex-start; padding: 10px 20px; font-size: 0.85rem; }
.blog-card .btn i { transition: transform 0.2s; }
.blog-card .btn:hover i { transform: translateX(3px); }

/* Kartu "segera hadir" */
.blog-card.is-soon { border-style: dashed; box-shadow: none; background: rgba(255,255,255,0.6); }
.blog-card.is-soon:hover { transform: none; box-shadow: none; }
.blog-card.is-soon .blog-card-body { justify-content: center; align-items: flex-start; }
.soon-icon {
    width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--primary); color: white; border-radius: 24px; padding: 48px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(245,158,11,0.15);
}
.cta-band h2 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn-outline { color: white; border-color: rgba(255,255,255,0.45); }
.cta-band .btn-outline:hover { background: white; color: var(--primary); }

/* ---------- Artikel ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.article-meta i { color: var(--accent); margin-right: 6px; }

.article-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
    padding: 64px 24px 88px; align-items: start;
}

.article-cover { margin: -120px 0 40px; position: relative; z-index: 2; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-xl); }
.article-cover figcaption, .article-body figure figcaption {
    font-size: 0.82rem; color: var(--text-light); margin-top: 10px; text-align: center;
}

.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-body); }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 {
    font-size: 1.75rem; margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 96px;
}
.article-body h2::before {
    content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; margin-bottom: 14px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.article-body h3 { font-size: 1.25rem; margin-top: 1.8em; scroll-margin-top: 96px; }
.article-body a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-dark); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 0.5em; }
.article-body strong { color: var(--text-dark); }
.article-body figure { margin: 2em 0; }
.article-body figure img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }

.article-intro { font-size: 1.15rem; color: var(--text-dark); }

.callout {
    background: #fff7e6; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0;
    padding: 20px 24px; font-size: 0.98rem;
}
.callout strong { display: block; margin-bottom: 4px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.article-body th, .article-body td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--primary); color: white; font-weight: 600; }
.article-body tr:nth-child(even) td { background: var(--bg-light); }
.article-body tr:last-child td { border-bottom: none; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
    content: '\2713'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.article-cta {
    margin-top: 3em !important; background: var(--primary); color: white; border-radius: 20px; padding: 36px;
}
.article-cta h2 { color: white; margin-top: 0 !important; font-size: 1.5rem; }
.article-cta h2::before { display: none; }
.article-cta p { color: rgba(255,255,255,0.8); margin: 10px 0 20px; }
.article-cta .btn { text-decoration: none; color: var(--primary-dark); }
.article-cta .btn-outline { color: white; border-color: rgba(255,255,255,0.45); margin-left: 8px; }
.article-cta .btn-outline:hover { background: white; color: var(--primary); }

/* Sidebar */
.article-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.sidebar-box h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 10px; }
.toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 0.9rem; line-height: 1.45; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent-dark); font-weight: 700; font-size: 0.8rem; padding-top: 2px; }
.toc a { color: var(--text-body); }
.toc a:hover { color: var(--primary); }
.sidebar-cta { background: var(--primary); border-color: var(--primary); color: white; }
.sidebar-cta h2 { color: var(--accent); }
.sidebar-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.sidebar-links a { display: flex; align-items: center; gap: 8px; color: var(--text-body); }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links i { color: var(--accent); font-size: 0.75rem; }

/* Artikel terkait */
.related { background: var(--bg-light); padding: 72px 0; }

/* ---------- Footer (sama dengan halaman utama) ---------- */
.footer { background: var(--text-dark); color: white; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: white; font-size: 1rem; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--accent); width: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; transition: all 0.2s;
}
.social-links a:hover { background: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nav-links { gap: 20px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-sidebar { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band .cta-actions { justify-content: flex-start; }
    .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-cta .btn-outline { display: none; }

    .page-hero { padding: 112px 0 56px; }
    .page-hero h1 { font-size: 1.85rem; }
    .page-hero p.lead { font-size: 1rem; }

    .section { padding: 56px 0; }
    .section-head h2 { font-size: 1.6rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 24px; }

    .article-layout { padding: 40px 20px 64px; }
    .article-cover { margin-top: -72px; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.45rem; }
    .article-body h3 { font-size: 1.15rem; }
    .article-cta { padding: 28px 22px; }
    .article-cta .btn-outline { margin: 10px 0 0; }

    .cta-band { padding: 32px 24px; }
    .cta-band h2 { font-size: 1.45rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
