/* ==========================================================================
   infomasuk.com — tema v2 (portal berita)
   Dimuat SETELAH app.css. Tujuan: kepadatan & hierarki ala portal berita
   besar (detik/Kompas/Tempo), bukan landing page.
   ========================================================================== */

:root {
    --c-ink: #0B1220;
    --c-ink-2: #26303F;
    --c-muted: #64748B;
    --c-line: #E5E9F0;
    --c-line-soft: #EFF2F7;
    --c-surface: #FFFFFF;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F7F8FA;
    --c-red: #C81E1E;
    --c-red-dark: #A31515;
    --c-blue: #1D6FE8;
    --c-blue-dark: #0F4FA8;
    --c-navy: #0A1628;
    --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --f-sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --w: 1240px;
}

body {
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-sans);
    font-size: 15px;
    line-height: 1.65;
}

.container { max-width: var(--w); padding: 0 20px; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- TOP BAR ---------- */
.topbar {
    background: #fff !important;
    color: var(--c-ink-2);
    border-bottom: 1px solid var(--c-line-soft);
    padding: 7px 0;
    font-family: var(--f-sans);
    font-size: 12px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .ticker { display: flex; gap: 18px; align-items: center; overflow: hidden; }
.topbar .ticker .ticker-item { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink-2) !important; font-size: 12px; padding: 0 10px 0 0; }
.topbar .ticker .ticker-item .ticker-label { color: var(--c-muted) !important; font-weight: 500; }
.topbar .ticker .ticker-item .ticker-price { color: var(--c-ink) !important; font-weight: 700; }
.topbar .ticker .ticker-item .ticker-change.up { color: #15803D !important; }
.topbar .ticker .ticker-item .ticker-change.down { color: var(--c-red) !important; }
.topbar .ticker-label { color: var(--c-muted); font-weight: 500; }
.topbar .ticker-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.topbar .ticker-change { font-size: 11px; font-weight: 600; }
.topbar .ticker-change.up { color: #15803D; }
.topbar .ticker-change.down { color: var(--c-red); }
.topbar-right a { color: var(--c-muted); font-size: 12px; }

/* ---------- HEADER ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); }
.header-main { padding: 16px 0; }
.header-inner { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-word {
    font-family: var(--f-serif);
    font-size: 34px; font-weight: 900; letter-spacing: -1px;
    color: var(--c-navy);
}
.logo-word span { color: var(--c-red); }
.logo-tagline {
    font-family: var(--f-sans); font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--c-muted); margin-top: 6px; font-weight: 600;
}
.search-bar {
    flex: 1; max-width: 520px; margin-left: auto;
    display: flex; align-items: stretch; height: 46px;
    border: 1px solid var(--c-line); background: var(--c-bg-soft);
    border-radius: 2px; overflow: hidden;
}
.search-bar input {
    flex: 1; border: 0; background: transparent; padding: 11px 14px;
    font-family: var(--f-sans); font-size: 13px; color: var(--c-ink); outline: none;
}
/* tombol menempel penuh setinggi kotak cari (sebelumnya menggantung 26px) */
.search-bar button {
    flex: 0 0 58px; align-self: stretch; height: 100%; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 0; background: var(--c-red); color: #fff;
    cursor: pointer; font-size: 17px; line-height: 1;
}
.search-bar button:hover { background: var(--c-red-dark); }
.search-bar button i { margin: 0; line-height: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* Ikon cari versi ponsel: jangan tampil di desktop (dulu muncul dobel di kanan kotak cari) */
.mobile-search-btn { display: none !important; }
.topbar-right a, .topbar-right span { color: var(--c-muted) !important; }
.btn.btn-outline {
    border: 1px solid var(--c-line); border-radius: 2px; padding: 9px 16px;
    font-size: 12px; font-weight: 600; color: var(--c-ink); background: #fff;
}
.btn.btn-outline:hover { border-color: var(--c-red); color: var(--c-red); }

/* ---------- NAV ---------- */
.main-nav { background: #fff !important; border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links a {
    display: block; padding: 12px 16px; font-size: 13px; font-weight: 600;
    color: var(--c-ink-2) !important; letter-spacing: .01em; position: relative;
    background: transparent !important;
}
.nav-links a:first-child { padding-left: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--c-red) !important; }
.nav-links a.active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 0;
    height: 3px; background: var(--c-red); border-radius: 0;
}
.nav-links a:first-child.active::after { left: 0; }
.nav-right { display: flex; align-items: center; }
.nav-breaking {
    background: var(--c-red); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px;
}

/* ---------- BREAKING ---------- */
.breaking-bar { background: var(--c-red); color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 0; }
.breaking-label {
    background: var(--c-red-dark); padding: 9px 16px; font-size: 11px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-items span { font-size: 12.5px; padding: 9px 0; cursor: pointer; }
.breaking-bar:hover .ticker-items { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- HOME: HERO ---------- */
.hero-section { padding: 24px 0 8px; background: #fff; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 28px; background: transparent; box-shadow: none; border: 0;
}
.hero-main { position: relative; display: block; background: #fff; min-height: 0; }
.hero-main > a.hero-split-media { display: block; }
.hero-main .hs-media {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16/10; background: var(--c-navy); overflow: hidden;
}
.hero-main .hs-fg { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
/* latar hero: navy bersih (blur gambar membuat tampilan seperti noda) */
.hero-main .hs-bg { display: none; }
.hero-main-content { padding: 16px 0 0; background: #fff; height: auto; display: block; }
.hero-main .category-badge { display: inline-block; margin-bottom: 10px; }
.hero-main h1 {
    font-family: var(--f-serif); font-size: 34px; line-height: 1.18; font-weight: 900;
    letter-spacing: -0.4px; color: var(--c-navy); margin: 0 0 10px;
}
.hero-main h1 a { color: inherit; }
.hero-main h1 a:hover { color: var(--c-red); }
.hero-main .excerpt {
    font-family: var(--f-sans); font-size: 15px; line-height: 1.6; color: var(--c-ink-2);
    margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--c-muted); }
.hero-meta .hero-time { color: var(--c-muted); font-family: var(--f-sans); }
.hero-meta .hero-time::before { content: none; }

/* hero side: daftar berita dengan thumbnail kecil */
.hero-side { display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--c-line-soft); padding-left: 24px; }
.hero-side-item { padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: start; }
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: 0; }
.hero-side-item .thumb, .hero-side-item img { width: 96px; height: 96px; border-radius: 2px; object-fit: cover; }
.hero-side-item h3 { font-family: var(--f-sans); font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.hero-side-item h3 a { color: var(--c-ink); }
.hero-side-item h3 a:hover { color: var(--c-red); }
.hero-side-item .meta-small { font-size: 11.5px; color: var(--c-muted); display: flex; gap: 12px; }

/* ---------- HERO HALAMAN STATIS (tentang, pedoman, privasi) ---------- */
.cat-header { background: var(--c-navy) !important; padding: 26px 0 30px !important; margin-bottom: 0; }
.cat-header h1 { font-family: var(--f-serif) !important; font-weight: 900 !important; color: #fff !important; letter-spacing: -.5px; }
.cat-header p { color: rgba(255,255,255,.72) !important; max-width: 62ch; }
.cat-header .cat-breadcrumb, .cat-header .cat-breadcrumb a, .cat-header .cat-breadcrumb span { color: rgba(255,255,255,.6) !important; }
.cat-header .cat-breadcrumb a:hover { color: #fff !important; }

/* ---------- BADGE KATEGORI ---------- */
.category-badge {
    display: inline-block; font-family: var(--f-sans); font-size: 10.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--c-red);
    background: transparent; padding: 0; border-radius: 0;
}
.category-badge::before { content: ''; }

/* ---------- SECTION HEADER ---------- */
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2px solid var(--c-navy); padding-bottom: 8px; margin-bottom: 18px;
}
.section-title {
    font-family: var(--f-sans); font-size: 17px; font-weight: 800; letter-spacing: -.2px;
    color: var(--c-navy); text-transform: uppercase; margin: 0;
}
.section-more { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.section-more:hover { color: var(--c-red); }

/* ---------- MAIN GRID ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 28px 0 56px; }
.main-content { min-width: 0; }
.main-content section { margin-bottom: 34px; }

/* ---------- KARTU BERITA ---------- */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card { background: #fff; border: 0; border-radius: 0; overflow: visible; transition: none; }
.news-card .card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center top; border-radius: 2px; }
.news-card .card-body { padding: 10px 0 0; }
.card-title {
    font-family: var(--f-sans); font-size: 15.5px; font-weight: 700; line-height: 1.4;
    margin: 6px 0 6px; color: var(--c-ink);
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--c-red); }
.card-excerpt { font-size: 13px; color: var(--c-muted); line-height: 1.55; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--c-muted); }

/* ---------- DAFTAR BERITA (list) ---------- */
.news-list-item {
    display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--c-line-soft); align-items: start;
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item img, .news-list-item .ph { width: 128px; height: 84px; border-radius: 2px; object-fit: cover; }
.list-title { font-family: var(--f-sans); font-size: 15px; font-weight: 700; line-height: 1.4; margin: 4px 0 6px; }
.list-title a:hover { color: var(--c-red); }
.list-meta { font-size: 11.5px; color: var(--c-muted); display: flex; gap: 12px; }

/* ---------- TERKINI (timeline ringkas) ---------- */
.terkini-band { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 18px 0; margin: 10px 0 30px; }
.terkini-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.terkini-head .dot { width: 8px; height: 8px; background: var(--c-red); border-radius: 50%; animation: pulse 1.6s infinite; }
.terkini-head h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0; color: var(--c-red); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.terkini-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; }
.terkini-item { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--c-line); font-size: 13.5px; }
.terkini-item time { color: var(--c-red); font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 92px; margin-right: 4px; }
.terkini-item a { color: var(--c-ink-2); }
.terkini-item a:hover { color: var(--c-red); }

/* ---------- BLOK RUBRIK (lead + daftar) ---------- */
.channel-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 26px; }
.channel-lead img, .channel-lead .ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center top; border-radius: 2px; }
.channel-lead h3 {
    font-family: var(--f-serif); font-size: 20px; line-height: 1.3; font-weight: 800;
    margin: 12px 0 8px; letter-spacing: -0.2px;
}
.channel-lead h3 a { color: var(--c-navy); }
.channel-lead h3 a:hover { color: var(--c-red); }
.channel-lead p { font-size: 13.5px; color: var(--c-muted); line-height: 1.6; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-list li { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--c-line-soft); }
.channel-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.channel-list a { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--c-ink); margin-bottom: 4px; }
.channel-list a:hover { color: var(--c-red); }
.channel-list .meta-small { font-size: 11px; color: var(--c-muted); }

/* ---------- SIDEBAR ---------- */
.sidebar { min-width: 0; }
.sidebar-widget { background: #fff; border: 1px solid var(--c-line); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.widget-header {
    font-family: var(--f-sans); font-size: 12px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: #fff; background: var(--c-navy); padding: 10px 14px;
}
.widget-body { padding: 14px; }
.ranked-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line-soft); }
.ranked-item:last-child { border-bottom: 0; }
.ranked-num { font-family: var(--f-serif); font-size: 26px; font-weight: 900; color: var(--c-line); line-height: 1; flex-shrink: 0; width: 26px; }
.ranked-item:first-child .ranked-num { color: var(--c-red); }
.ranked-title { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ranked-title a:hover { color: var(--c-red); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
    display: inline-block; padding: 6px 11px; border: 1px solid var(--c-line);
    border-radius: 2px; font-size: 12px; font-weight: 600; color: var(--c-ink-2); background: #fff;
}
.topic-chip:hover { border-color: var(--c-red); color: var(--c-red); }

/* ---------- ARTIKEL ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 10px 0 40px; }
.cat-breadcrumb { font-size: 12px; color: var(--c-muted); display: flex; gap: 6px; margin-bottom: 12px; }
.cat-breadcrumb a, .cat-breadcrumb span { color: var(--c-muted); }
/* di atas hero navy, breadcrumb jadi putih */
.cat-header .cat-breadcrumb a, .cat-header .cat-breadcrumb span { color: rgba(255,255,255,.62); }
.cat-breadcrumb a:hover { color: var(--c-red); }
.article-wrap .cat-breadcrumb, .article-wrap .cat-breadcrumb a, .article-wrap .cat-breadcrumb span { color: var(--c-muted) !important; }
.article-wrap .cat-breadcrumb a:hover { color: var(--c-red) !important; }
.article-title {
    font-family: var(--f-serif); font-size: 40px; line-height: 1.16; font-weight: 900;
    letter-spacing: -0.6px; color: var(--c-navy); margin: 8px 0 12px;
}
.article-subtitle { font-size: 17px; line-height: 1.55; color: var(--c-ink-2); margin: 0 0 18px; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-size: 12.5px; color: var(--c-muted); }
.article-hero-img {
    width: 100%; max-height: 520px; height: auto; object-fit: contain;
    background: #0b1220; border-radius: 2px; margin: 20px 0 8px;
}
.article-body { font-family: var(--f-sans); font-size: 17px; line-height: 1.85; color: #16202E; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-family: var(--f-sans); font-size: 21px; font-weight: 800; color: var(--c-navy); margin: 30px 0 12px; line-height: 1.3; }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article-body a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 700; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--c-red); font-size: 18px; color: var(--c-ink-2); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.72); margin-top: 40px; padding: 44px 0 24px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { font-family: var(--f-serif); font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 12px; }
/* 'masuk' di footer memakai merah merek, bukan putih pudar */
.footer-logo .footer-word span { color: #F2564F; opacity: 1; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 34ch; }
.footer-col h5 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: #fff; }
.footer-socials { display: flex; gap: 8px; }
.social-icon {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.18); border-radius: 2px; color: rgba(255,255,255,.75);
}
.social-icon:hover { border-color: #fff; color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- HALAMAN ERROR ---------- */
.error-page { max-width: 860px; margin: 0 auto; padding: 40px 0 60px; text-align: center; }
.error-page .error-code {
    font-family: var(--f-serif); font-size: 92px; font-weight: 900; line-height: 1;
    color: var(--c-line); letter-spacing: -3px;
}
.error-page h1 { font-family: var(--f-serif); font-size: 28px; font-weight: 900; color: var(--c-navy); margin: 6px 0 8px; }
.error-page > p { font-size: 14px; color: var(--c-muted); margin: 0; }
.error-latest { margin-top: 36px; }
.error-latest .post-row { grid-template-columns: minmax(0,1fr); }

/* ---------- RESPONSIF ---------- */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
    .hero-main h1 { font-size: 28px; }
    .article-title { font-size: 32px; }
}
@media (max-width: 900px) {
    .mobile-search-btn { display: inline-flex !important; }
    .hamburger-btn { display: block !important; }
    .hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-line-soft); }
    .hero-side-item:first-child { padding-top: 14px; }
    .content-grid { grid-template-columns: 1fr; }
    .cards-grid-3 { grid-template-columns: 1fr 1fr; }
    .terkini-list { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .search-bar { display: none; }
    .logo-word { font-size: 28px; }
    .article-title { font-size: 26px; }
    .article-body { font-size: 16px; }
}
@media (max-width: 600px) {
    .cards-grid-3 { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .hero-main h1 { font-size: 23px; }
    .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-links a { padding: 10px 12px; white-space: nowrap; }
}

/* ---------- HALAMAN INDEKS (kategori, semua berita, pencarian) ---------- */
.page-head { border-bottom: 1px solid var(--c-line); padding: 20px 0 16px; margin-bottom: 24px; }
.page-head h1 {
    font-family: var(--f-serif); font-size: 34px; font-weight: 900; color: var(--c-navy);
    margin: 6px 0 6px; letter-spacing: -.5px; line-height: 1.2;
}
.page-head p { font-size: 13.5px; color: var(--c-muted); margin: 0; }
.page-head .cat-breadcrumb, .page-head .cat-breadcrumb a, .page-head .cat-breadcrumb span { color: var(--c-muted) !important; }
.page-head .cat-breadcrumb a:hover { color: var(--c-red) !important; }
.page-head .count { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--c-red); }

.post-lead { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--c-line-soft); margin-bottom: 8px; }
.post-lead img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center top; border-radius: 2px; }
.post-lead h2 { font-family: var(--f-serif); font-size: 25px; line-height: 1.26; font-weight: 900; margin: 8px 0 10px; letter-spacing: -.3px; }
.post-lead h2 a { color: var(--c-navy); }
.post-lead h2 a:hover { color: var(--c-red); }
.post-lead p { font-size: 14px; color: var(--c-ink-2); line-height: 1.6; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 30px; }
.post-row { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); }
.post-row img { width: 104px; height: 76px; object-fit: cover; object-position: center top; border-radius: 2px; }
.post-row h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 2px 0 5px; }
.post-row h3 a { color: var(--c-ink); }
.post-row h3 a:hover { color: var(--c-red); }
.post-row .meta-small { font-size: 11px; color: var(--c-muted); }

.pagination { display: flex; gap: 6px; margin: 26px 0 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.page-btn {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-line); border-radius: 2px; font-size: 12.5px; font-weight: 600;
    color: var(--c-ink-2); background: #fff;
}
.page-btn:hover { border-color: var(--c-red); color: var(--c-red); }
.page-btn.active { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.promo-follow { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: 2px; padding: 16px; }
.promo-follow h4 { font-size: 13px; font-weight: 800; margin: 0 0 6px; color: var(--c-navy); }
.promo-follow p { font-size: 12.5px; color: var(--c-muted); margin: 0 0 12px; line-height: 1.55; }
.promo-follow .act { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-follow .act a {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
    padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 2px; background: #fff; color: var(--c-ink);
}
.promo-follow .act a:hover { border-color: var(--c-red); color: var(--c-red); }

.empty-state { text-align: center; padding: 44px 20px; }
.empty-state i { font-size: 34px; color: var(--c-line); }
.empty-state h3 { font-family: var(--f-serif); font-size: 22px; margin: 10px 0 6px; color: var(--c-navy); }
.empty-state p { font-size: 13.5px; color: var(--c-muted); margin: 0 0 16px; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px; background: var(--c-red); color: #fff;
    padding: 10px 18px; border-radius: 2px; font-size: 13px; font-weight: 600;
}
.btn-primary:hover { background: var(--c-red-dark); }

.search-big { display: flex; border: 1px solid var(--c-line); background: #fff; border-radius: 2px; overflow: hidden; max-width: 640px; margin-top: 14px; }
.search-big input { flex: 1; border: 0; padding: 12px 14px; font-family: var(--f-sans); font-size: 14px; outline: none; }
.search-big button { border: 0; background: var(--c-red); color: #fff; padding: 0 22px; font-size: 13px; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
    .post-lead { grid-template-columns: 1fr; }
    .post-rows { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 26px; }
}
/* ---------- BAGIKAN ARTIKEL ---------- */
.share-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 0; margin: 4px 0 20px;
    border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft);
}
.share-label {
    font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-muted); margin-right: 4px;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
    border: 1px solid var(--c-line); border-radius: 2px; background: #fff;
    font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; color: var(--c-ink-2);
    cursor: pointer; line-height: 1.2;
}
.share-btn i { font-size: 15px; }
.share-btn:hover { border-color: var(--c-red); color: var(--c-red); }
.share-btn.wa:hover { border-color: #25D366; color: #128C4A; }
.share-btn.x:hover { border-color: #0B1220; color: #0B1220; }
.share-btn.fb:hover { border-color: #1877F2; color: #1877F2; }
.share-btn.tg:hover { border-color: #229ED9; color: #229ED9; }

/* ---------- HALAMAN PENULIS ---------- */
.author-head { padding: 20px 0 6px; }
.author-card {
    display: flex; gap: 18px; align-items: center;
    background: var(--c-bg-soft); border: 1px solid var(--c-line);
    border-radius: 2px; padding: 20px;
}
.author-avatar {
    width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
    background: var(--c-navy); color: #fff; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-serif); font-size: 32px; font-weight: 900;
}
.author-meta h1 { font-family: var(--f-serif); font-size: 26px; font-weight: 900; color: var(--c-navy); margin: 0 0 6px; }
.author-meta p { font-size: 13.5px; color: var(--c-muted); margin: 0 0 8px; max-width: 70ch; }
.author-meta .count { font-size: 11.5px; font-weight: 700; color: var(--c-red); }

/* ---------- DAFTAR TOPIK ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--c-line); border-radius: 2px; background: #fff;
    font-size: 13.5px; font-weight: 600; color: var(--c-ink-2);
}
.tag-cloud-item:hover { border-color: var(--c-red); color: var(--c-red); }
.tag-cloud-count {
    font-size: 11px; font-weight: 700; color: var(--c-muted);
    background: var(--c-bg-soft); padding: 2px 6px; border-radius: 2px;
}
.tag-cloud-item:hover .tag-cloud-count { color: var(--c-red); }
.article-tags a.tag { color: var(--c-ink-2); }
.article-tags a.tag:hover { border-color: var(--c-red); color: var(--c-red); }


@media (max-width: 600px) {
    .share-row { gap: 6px; padding: 10px 0; }
    .share-label { width: 100%; margin: 0 0 2px; }
    .share-btn { padding: 7px 9px; font-size: 11.5px; }
    .share-btn i { font-size: 14px; }
    .author-card { flex-direction: column; text-align: center; gap: 12px; padding: 18px 14px; }
    .author-meta p { margin-left: auto; margin-right: auto; }
}

/* ---------- WIDGET SIDEBAR: TERKINI & RUBRIK ---------- */
.sidebar .widget-row {
    display: flex; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--c-line-soft); font-size: 13px;
}
.sidebar .widget-row:last-child { border-bottom: 0; }
.sidebar .widget-row time {
    color: var(--c-red); font-weight: 700; font-size: 11.5px;
    font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 2px;
}
.sidebar .widget-row a { color: var(--c-ink-2); line-height: 1.4; }
.sidebar .widget-row a:hover { color: var(--c-red); }

.widget-cat {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid var(--c-line-soft);
    font-size: 13px; font-weight: 600; color: var(--c-ink-2);
}
.widget-cat:last-child { border-bottom: 0; }
.widget-cat .n { font-size: 11.5px; font-weight: 700; color: var(--c-muted); }
.widget-cat:hover { color: var(--c-red); }

/* hero: pita samping lebih padat karena kini 5 berita */
.hero-side-item { padding: 11px 0; grid-template-columns: 88px minmax(0,1fr); }
.hero-side-item .thumb, .hero-side-item img { width: 88px; height: 88px; }
.hero-side-item h3 { font-size: 13.5px; margin-bottom: 4px; }

/* ---------- PELENGKAP: hero side & sidebar lengket ---------- */
.hero-side-more {
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line-soft);
    font-size: 12px; font-weight: 700; color: var(--c-red);
}
.hero-side-more:hover { color: var(--c-red-dark); }

/* Sidebar: JANGAN dibatasi max-height. Dulu dipasang max-height + overflow-y,
   akibatnya (sidebar = flex column) tiap widget menyusut dan terpotong.
   Sticky hanya dipasang lewat JS kalau tingginya memang muat di layar. */
.sidebar > * { flex: 0 0 auto; }
.sidebar { overflow: visible; }
.sidebar.is-sticky { position: sticky; top: 16px; align-self: start; }

/* ---------- SIDEBAR LENGKET DI SEMUA HALAMAN + WIDGET BERGANBAR ---------- */
.content-grid > .sidebar { align-self: start; }
@media (max-width: 900px) {
    .sidebar.is-sticky { position: static; }
}
.widget-media {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px solid var(--c-line-soft);
}
.widget-media:last-child { border-bottom: 0; }
.widget-media img, .widget-media .ph { width: 64px; height: 64px; object-fit: cover; object-position: center top; border-radius: 2px; flex-shrink: 0; }
.widget-media strong {
    display: block; font-size: 12.5px; font-weight: 700; line-height: 1.4;
    color: var(--c-ink); margin-bottom: 3px;
}
.widget-media em { font-style: normal; font-size: 11px; color: var(--c-muted); }
.widget-media:hover strong { color: var(--c-red); }

/* ---------- RAPATKAN: tinggi daftar rubrik mengisi kolom, meta seragam ---------- */
/* daftar rubrik: butir rapat di atas, jarak antar butir 12px */
.channel-list { display: flex; flex-direction: column; height: 100%; }
.channel-list li { padding: 0 0 12px; margin-bottom: 12px; }
.channel-list li:last-child { padding-bottom: 0; }

.channel-lead .meta-small,
.post-lead .meta-small,
.post-row .meta-small,
.hero-side-item .meta-small { font-size: 12px !important; font-weight: 500; color: var(--c-muted); font-family: var(--f-sans); letter-spacing: 0; }

/* ---------- KARTU BERITA: beri bingkai + padding dalam ---------- */
.news-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--c-line); border-radius: 2px; overflow: hidden;
}
.news-card .card-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center top; }
.news-card .card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.news-card .card-title { font-size: 15px; margin: 6px 0 10px; }
.news-card .card-meta {
    margin-top: auto; padding-top: 9px; border-top: 1px solid var(--c-line-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12px; color: var(--c-muted);
}
.news-card .category-badge { margin-bottom: 2px; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- GAMBAR: jangan potong (poster berita memuat judul di dalamnya) ---------- */
.post-row { grid-template-columns: 88px minmax(0, 1fr); }
.post-row img { width: 88px; height: 88px; object-fit: contain; background: #EEF2F8; }
.post-lead img { object-fit: contain; background: #EEF2F8; }
.channel-lead img { object-fit: contain; background: #EEF2F8; }
.news-card .card-img { object-fit: contain; background: #EEF2F8; }
.hero-side-item img { object-fit: contain; background: #EEF2F8; }
.widget-media img { object-fit: contain; background: #EEF2F8; }

/* lead kategori: slot persegi (mayoritas gambar 1:1) supaya tidak menyisakan pita lebar */
.post-lead { grid-template-columns: 320px minmax(0, 1fr); }
.post-lead img { aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
    .post-lead { grid-template-columns: 1fr; }
    .post-lead img { aspect-ratio: 16 / 10; }
}

/* kartu: slot gambar persegi (69% gambar artikel 1:1) → pita kosong minim */
.news-card .card-img { aspect-ratio: 1 / 1; }
.news-card .card-body { padding: 12px 14px 14px; }

/* ---------- LOGO (merek baru) ---------- */
.logo { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--f-serif); font-size: 33px; font-weight: 900; letter-spacing: -1.2px; color: var(--c-navy); }
.logo-word span { color: var(--c-red); }
.logo-tagline { font-family: var(--f-sans); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); margin-top: 6px; font-weight: 700; }
@media (max-width: 900px) {
    .logo-mark { width: 40px; height: 40px; }
    .logo-word { font-size: 27px; }
}

/* logo: rapatkan di ponsel supaya header tidak meluber */
@media (max-width: 600px) {
    .header-inner { gap: 10px; }
    .logo { gap: 8px; }
    .logo-mark { width: 34px; height: 34px; }
    .logo-word { font-size: 22px; letter-spacing: -0.6px; }
    .logo-tagline { font-size: 7.5px; letter-spacing: .12em; margin-top: 4px; }
}

/* ---------- AVATAR PENULIS = MARK MEREK ---------- */
.byline-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; object-fit: cover; display: block; }
.author-avatar { border-radius: 18px; }
.author-card .brand-mark.author-avatar { display: block; }

/* ---------- LOGO FOOTER (samakan dengan header) ---------- */
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-word {
    font-family: var(--f-serif); font-size: 29px; font-weight: 900;
    letter-spacing: -1px; color: #fff; line-height: 1;
}
.site-footer .footer-word, .site-footer a.footer-logo { color: #FFFFFF !important; opacity: 1 !important; }
.footer-word span { color: #F2564F !important; opacity: 1 !important; }
.footer-logo:hover .footer-word span { color: #fff !important; }
@media (max-width: 600px) {
    .footer-logo { gap: 9px; }
    .footer-word { font-size: 24px; }
}

/* mark di footer: kotak sedikit lebih terang agar bentuknya terlihat di atas navy */
.site-footer .brand-mark > rect:first-of-type { fill: #172A4C; }

/* Slot iklan (tampil hanya bila kredensial diisi di pengaturan) */
.ad-slot { margin: 28px 0; text-align: center; }
.ad-slot__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #98a2b3; margin-bottom: 6px; }
.ad-slot--infeed { padding: 10px 0; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.ad-slot--article { margin: 32px 0 8px; }
