:root {
    --red: #cc0000;
    --red-dark: #990000;
    --white: #fff;
    --bg: #f5f4f0;
    --border: #ddd9d0;
    --text: #1a1a1a;
    --muted: #7a7570;
    --surface: #fff;
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Source Sans 3", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page-anim {
    flex: 1 0 auto;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── TOP STRIP ── */
.topstrip {
    background: var(--red);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.ts-inner {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    padding: 7px 20px;
    display: flex;
    align-items: center;
}

.ts-links {
    display: flex;
    gap: 0;
}

.ts-link {
    padding: 0 14px 0 0;
    margin: 0 14px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    user-select: none;
}

.ts-link:last-child {
    border-right: none;
}

.ts-link:hover {
    opacity: 0.75;
}

.ts-link.active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ts-socials {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.ts-social {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: 0.15s;
}

.ts-social:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── HEADER ── */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--text);
    position: relative;
    z-index: 200;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: "Merriweather", serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -2px;
    flex-shrink: 0;
    cursor: pointer;
}

.header-tagline {
    font-size: 12px;
    color: var(--muted);
    border-left: 2px solid var(--border);
    padding-left: 14px;
    line-height: 1.5;
}

.header-search {
    margin-left: auto;
    display: flex;
    gap: 0;
    position: relative;
}

.search-input {
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    width: 260px;
    transition: 0.15s;
}

.search-input:focus {
    border-color: var(--red);
}

.search-btn {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
}

.search-btn:hover {
    background: var(--red-dark);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--red);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.search-dropdown.open {
    display: block;
}

.sd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: 0.15s;
}

.sd-item:last-child {
    border-bottom: none;
}

.sd-item:hover {
    background: #fde8e826;
}

.sd-emoji {
    font-size: 22px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 4px;
    flex-shrink: 0;
}

.sd-info {
    flex: 1;
}

.sd-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sd-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.sd-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.sd-empty {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.sd-header {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

/* ── NAV ── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.nav-item {
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.15s;
    white-space: nowrap;
    letter-spacing: 0.3px;
    user-select: none;
}

.nav-item:hover {
    color: var(--red);
}

.nav-item.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.nav-more {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    transition: 0.15s;
    position: relative;
}

.nav-more:hover {
    border-color: var(--red);
    color: var(--red);
}

.nav-more-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 9999;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-more-dropdown.open {
    display: block;
}

.nav-more-dropdown::-webkit-scrollbar {
    width: 6px;
}

.nav-more-dropdown::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
}

.nmd-item {
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.nmd-item:last-child {
    border-bottom: none;
}

.nmd-item:hover {
    background: var(--bg);
    color: var(--red);
}

/* ── FILTER BAR (category page) ── */
.filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.filter-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-right: 4px;
}

.filter-chip {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    background: var(--bg);
}

.filter-chip:hover {
    border-color: var(--red);
    color: var(--red);
}

.filter-chip.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── MAIN LAYOUT ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    width: 100%;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    width: 100%;
}

.main-content {
    min-width: 0;
    width: 100%;
}

.sidebar-col {
    min-width: 0;
}

/* ── HERO ── */
.hero-section {
    margin-bottom: 28px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
}

.hero-main {
    position: relative;
    background: #111;
    min-height: 360px;
    cursor: pointer;
}

.hero-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, #1a1a2e, #2d1a1a);
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-family: "Merriweather", serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
}

.hero-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-thumb {
    position: relative;
    background: #222;
    flex: 1;
    cursor: pointer;
    min-height: 118px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-thumb:hover .ht-title {
    color: #ffd;
}

.ht-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.5;
}

.ht-overlay {
    position: relative;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    width: 100%;
}

.ht-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ht-title {
    font-family: "Merriweather", serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    transition: 0.15s;
}

/* ── SECTION HEADER ── */
.sec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sec-bar {
    width: 4px;
    height: 22px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.sec-title {
    font-family: "Merriweather", serif;
    font-size: 17px;
    font-weight: 900;
}

.sec-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    cursor: pointer;
}

.sec-link:hover {
    text-decoration: underline;
}

.sec-divider {
    border: none;
    border-top: 2px solid var(--text);
    margin-bottom: 16px;
}

/* ── NEWS CARDS ── */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.news-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    min-height: 300px;
}

.news-card {
    cursor: pointer;
    transition: 0.2s;
}

.news-card:hover .nc-title {
    color: var(--red);
}

.nc-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.2s;
}

.news-card:hover .nc-img {
    opacity: 0.85;
}

.nc-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.nc-title {
    font-family: "Merriweather", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 5px;
    transition: 0.15s;
}

.nc-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── LIST BERITA ── */
.news-list {
    min-height: 300px;
}

.news-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover .nli-title {
    color: var(--red);
}

.nli-img {
    width: 80px;
    height: 58px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.nli-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.nli-title {
    font-family: "Merriweather", serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: 0.15s;
}

.nli-meta {
    font-size: 11px;
    color: var(--muted);
}

/* ── SIDEBAR WIDGETS ── */
.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.wgt-title {
    font-family: "Merriweather", serif;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text);
}

.trending-item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover .tr-title {
    color: var(--red);
}

.tr-rank {
    font-family: "JetBrains Mono";
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
    width: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.tr-rank.gold   { color: #b8860b; }
.tr-rank.silver { color: #888; }
.tr-rank.bronze { color: #a0522d; }

.tr-title {
    font-family: "Merriweather", serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    transition: 0.15s;
}

.tr-views {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.tr-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.tr-badge.up  { background: #e8f8e8; color: #1a7a3c; }
.tr-badge.hot { background: #ffe8e8; color: var(--red); }

/* ── PROMO BANNER ── */
.promo-banner {
    background: var(--text);
    color: var(--white);
    border-radius: 4px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-box {
    aspect-ratio: 300 / 250;
    width: 100%;
}

.promo-horizontal {
    aspect-ratio: 728 / 90;
    width: 100%;
}

.promo-label {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.4;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.promo-content {
    font-family: "Merriweather", serif;
    font-size: clamp(12px, 2.5vw, 18px);
    font-weight: 900;
    letter-spacing: 2px;
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .es-icon  { font-size: 48px; margin-bottom: 12px; }
.empty-state .es-title { font-family: "Merriweather", serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state .es-sub   { font-size: 14px; color: var(--muted); }

/* ── PAGE TITLE (for category view) ── */
.page-header {
    padding: 20px 0 16px;
}

.ph-breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.ph-breadcrumb span { color: var(--red); }

.ph-title {
    font-family: "Merriweather", serif;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-count {
    font-size: 13px;
    color: var(--muted);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
}

.ph-divider {
    border: none;
    border-top: 3px solid var(--text);
    margin-bottom: 24px;
}

/* ── ARTICLE ── */
.article-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.article-title {
    font-family: "Merriweather", serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.a-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.a-author { font-weight: 600; font-size: 13px; }
.a-date   { font-size: 12px; color: var(--muted); }

.a-stats {
    margin-left: auto;
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.a-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-hero {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: linear-gradient(135deg, #2d1a1a, #1a2d1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #2a2a2a;
}

.article-body p         { margin-bottom: 16px; }
.article-body h2        { font-family: "Merriweather", serif; font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 10px 16px;
    background: #fde8e826;
    border-radius: 0 6px 6px 0;
    margin: 16px 0;
    font-style: italic;
    color: var(--muted);
}

/* Bikin gambar dalam artikel responsif */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ── REACTION BAR ── */
.reaction-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rb-label { font-size: 13px; color: var(--muted); margin-right: 4px; }

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}

.reaction-btn:hover,
.reaction-btn.active {
    border-color: var(--red);
    background: #fde8e826;
}

.reaction-btn.active .rb-count {
    color: var(--red);
    font-weight: 700;
}

.rb-count {
    font-size: 12px;
    color: var(--muted);
    font-family: "JetBrains Mono";
}

/* ── SHARE BAR ── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.share-label { font-size: 13px; font-weight: 600; margin-right: 4px; }

.share-btn {
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.15s;
    font-family: inherit;
}

.sb-fb   { background: #1877f2; color: #fff; }
.sb-tw   { background: #000; color: #fff; }
.sb-wa   { background: #25d366; color: #fff; }
.sb-copy { background: var(--bg); border: 1px solid var(--border) !important; color: var(--text); }
.sb-copy:hover { border-color: var(--red); }
.share-btn:hover { opacity: 0.85; }

/* ── COMMENTS ── */
.comments-section { margin-top: 28px; }

.cs-title {
    font-family: "Merriweather", serif;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text);
}

.comment-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.cf-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: 0.15s;
    min-height: 80px;
}

.cf-input:focus { border-color: var(--red); }

.cf-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.cf-name {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: 0.15s;
}

.cf-name:focus { border-color: var(--red); }

.cf-submit {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
}

.cf-submit:hover { background: var(--red-dark); }

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ci-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    color: var(--muted);
}

.ci-body  { flex: 1; min-width: 0; }
.ci-user  { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.ci-time  { font-size: 11px; color: var(--muted); margin-bottom: 6px; }

.ci-text {
    font-size: 14px;
    line-height: 1.6;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 13px;
    word-wrap: break-word;
}

.ci-acts {
    display: flex;
    gap: 10px;
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted);
}

.ci-act { cursor: pointer; transition: 0.15s; }
.ci-act:hover { color: var(--red); }

/* ── VIEW COUNTER ── */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-family: "JetBrains Mono";
}

.vc-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: vcPulse 2s infinite;
}

@keyframes vcPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── SEARCH RESULTS PAGE ── */
.search-results-page        { display: none; }
.search-results-page.active { display: block; }

.sr-head    { margin-bottom: 20px; }
.sr-title   { font-family: "Merriweather", serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sr-sub     { font-size: 14px; color: var(--muted); }

.sr-filters {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sr-filter-chip {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    background: var(--bg);
}

.sr-filter-chip:hover          { border-color: var(--red); color: var(--red); }
.sr-filter-chip.active         { background: var(--red); border-color: var(--red); color: #fff; }

/* ── MODAL BACKDROP ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop[style*="display:none"] {
    display: none !important;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 420px;
    width: 95%;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
    padding: 28px;
    text-align: center;
}

/* ── TOAST NOTIFICATION ── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.3s ease;
}

.toast.show { display: block; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
.footer {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: var(--text);
    color: #fff;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.ft-brand {
    font-family: "Merriweather", serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 8px;
}

.ft-desc      { font-size: 13px; color: #aaa; line-height: 1.6; }
.ft-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #aaa; margin-bottom: 12px; }

.ft-link {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.15s;
    display: block;
}

.ft-link:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* ── CAT COLORS ── */
.cat-politik    { color: #cc0000; }
.cat-ekonomi    { color: #1a3a7a; }
.cat-olahraga   { color: #1a7a3c; }
.cat-teknologi  { color: #7a1a7a; }
.cat-kesehatan  { color: #b86200; }
.cat-hukum      { color: #555; }
.cat-lingkungan { color: #2a6a2a; }
.cat-budaya     { color: #8b5e00; }

/* ── ANIMATIONS ── */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-anim {
    animation: slideIn 0.25s ease;
}

/* ── LOADING SKELETON ── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--border) 25%,
        #e8e4dc 50%,
        var(--border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── BUTTONS GLOBAL ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fde8e826;
}

.btn-red            { background: var(--red); color: #fff; }
.btn-red:hover      { background: var(--red-dark); }

/* ── WIDGET KATEGORI SIDEBAR ── */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cat-box {
    background: #f8f7f4;
    border: 1px solid #e8e6e1;
    border-radius: 6px;
    padding: 10px 6px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cat-box:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fff;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
}

/* ── STICKY HEADER ── */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   🔥 MEDIA QUERIES UNTUK RESPONSIVITAS (TABLET, MOBILE, FOLD) 🔥
   ========================================================= */

/* ── TABLET (di bawah 992px) ── */
@media screen and (max-width: 992px) {
    /* Pindahkan sidebar ke bawah konten utama */
    .main-grid {
        grid-template-columns: 1fr;
    }

    /* Ubah News Grid 3 kolom jadi 2 kolom */
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero Grid ditumpuk vertikal */
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-side {
        flex-direction: row; /* Thumbnail Hero berjejer di bawah */
    }

    /* Footer dari 4 kolom jadi 2 kolom */
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ── MOBILE PHONE (di bawah 768px) ── */
@media screen and (max-width: 768px) {
    /* Sembunyikan top links yang kurang penting */
    .ts-links {
        display: none;
    }

    /* Tumpuk Tagline atau Sembunyikan di HP */
    .header-tagline {
        display: none;
    }

    /* Search Bar di header penuhi sisa tempat */
    .header-search {
        flex: 1;
        justify-content: flex-end;
    }

    .search-input {
        width: 100%;
        max-width: 200px; /* Biar ngga nabrak logo */
    }

    /* Navigasi Menu horizontal bisa di-swipe/scroll */
    .nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Biar mulus di iOS */
        padding-bottom: 5px; /* Space buat scrollbar kalau muncul */
    }

    .nav-inner::-webkit-scrollbar {
        height: 0px; /* Sembunyikan scrollbar bawaan di Mobile */
    }

    /* News Grid semua jadi 1 kolom di HP */
    .news-grid-3, .news-grid-2 {
        grid-template-columns: 1fr;
    }

    /* Hero Thumbnail Side kembali ditumpuk kalau layarnya sempit */
    .hero-side {
        flex-direction: column;
    }

    /* Footer jadi full 1 kolom ke bawah */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ft-desc {
        margin: 0 auto 20px;
    }

    /* Artikel Detil */
    .article-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .article-hero {
        font-size: 50px;
        aspect-ratio: auto;
        min-height: 200px;
    }

    .article-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .a-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .cf-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .cf-name {
        width: 100%;
    }
}

/* ── HP LIPAT / SANGAT KECIL (Galaxy Fold / di bawah 320px) ── */
@media screen and (max-width: 320px) {
    .logo {
        font-size: 28px; /* Kecilin logo biar search bar muat */
    }

    .search-input {
        max-width: 140px;
    }

    .container {
        padding: 10px 12px;
    }

    .article-title {
        font-size: 18px;
    }

    .reaction-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
