/* ================================================================
   KGM PORTAL — Premium News Portal Design System
   Inspired by CNN Indonesia / Kompas / Detik
   Primary: #CC0000 (Red)  |  Secondary: #00897B (Teal)
   ================================================================ */

:root {
    --red: #CC0000;
    --red-dark: #a30000;
    --red-light: #ff1a1a;
    --teal: #00897B;
    --teal-dark: #00695C;
    --teal-light: #4DB6AC;
    --dark: #1B2430;
    --dark-2: #232D3F;
    --dark-3: #2C3849;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-50: #f1f3f5;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    /* Accessibility fixes */
    --gray-400: #6b7280;
    --gray-500: #4b5563;
    --gray-600: #374151;
    --gray-700: #1f2937;
    --gray-800: #212529;
    --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
    --ease: cubic-bezier(.4,0,.2,1);
    --primary: #CC0000;
}

/* RESET */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--off-white); color: var(--gray-800); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================================================================
   HEADER — CNN-style sticky top bar
   ================================================================ */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(
        90deg,
        #d02818 0%,
        #c4372a 25%,
        #7a6a5a 50%,
        #2f8f86 75%,
        #109b8b 100%
    );
}
.header-top {
    display: flex;
    align-items: center;
    padding: 0;
    gap: 0;
    min-height: 56px;
}

/* Logo */
.logo { flex-shrink: 0; padding: 8px 0; }
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -1px;
}
.logo a img { height: 40px; max-width: 200px; object-fit: contain; }
.logo a span { color: var(--gray-800); }

/* Navigation */
nav { flex: 1; margin-left: 30px; }
nav > ul {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 56px;
}
nav > ul > li { display: flex; align-items: stretch; }
nav > ul > li > a,
nav > ul > li > span {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .2s var(--ease), background .2s var(--ease);
    position: relative;
    cursor: pointer;
    gap: 5px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
nav > ul > li:hover > a,
nav > ul > li:hover > span {
    color: var(--red);
    border-bottom-color: var(--red);
    background: #fef2f2;
}
.dd-arrow { font-size: .55rem; opacity: .4; transition: transform .2s var(--ease), opacity .2s; }
nav > ul > li:hover .dd-arrow { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.dropdown-trigger { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    min-width: 220px;
    border-top: 3px solid var(--red);
    animation: menuDrop .15s var(--ease);
}
@keyframes menuDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    color: var(--gray-700);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s var(--ease);
    text-transform: none;
    letter-spacing: 0;
    border-left: 3px solid transparent;
}
.dropdown-menu li a:hover {
    background: #fef2f2;
    color: var(--red);
    border-left-color: var(--red);
    padding-left: 26px;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: 4px;
    padding: 0;
    background: var(--gray-50);
    transition: border-color .2s, box-shadow .2s;
    margin-left: auto;
    flex-shrink: 0;
    overflow: hidden;
}
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.08); }
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 160px;
    padding: 8px 12px;
    color: var(--gray-800);
}
.search-box input::placeholder { color: var(--gray-400); }
.search-box button {
    border: none;
    background: var(--red);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    transition: background .2s;
    line-height: 1;
}
.search-box button:hover { background: var(--red-dark); }

/* Topik Bar */
.topik-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--gray-100);
    font-size: 12.5px;
    overflow-x: auto;
    scrollbar-width: none;
}
.topik-bar::-webkit-scrollbar { display: none; }
.topik-bar .label {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.topik-bar a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}
.topik-bar a:hover { color: var(--red); }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
main.container { margin-top: 0; min-height: 500px; padding-top: 24px; padding-bottom: 40px; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.swiper {
    width: 100%;
    height: 480px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border-radius: 0;
}
.swiper-slide {
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 100px 40px 36px;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 50%, transparent 100%);
    color: #fff;
    text-align: left;
}
.slider-caption h2 {
    margin: 8px 0 0;
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.3px;
}
.slider-caption h2 a { color: #fff; transition: color .2s; }
.slider-caption h2 a:hover { color: var(--teal-light); }
.slider-caption .meta { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 13px; }
.swiper-button-next, .swiper-button-prev {
    color: rgba(255,255,255,.8) !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0,0,0,.3);
    border-radius: 50%;
    transition: background .2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--red); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 700; }
.swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
    margin: 0 4px !important;
    background: transparent !important;
    border: 6px solid transparent !important;
    background-clip: padding-box !important;
    position: relative;
}
.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    opacity: 0.8;
}
.swiper-pagination-bullet-active::after {
    background: var(--red);
    opacity: 1;
}

/* ================================================================
   SECTION HEADINGS — CNN-style red left border
   ================================================================ */
.section-heading {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 0 0 0 14px;
    margin: 0 0 20px;
    color: var(--gray-800);
    font-weight: 800;
border-left: 4px solid;
border-image: linear-gradient(180deg, #d02818, #109b8b) 1;
    line-height: 1.2;
}
.section-heading::before { display: none; }
.section-heading.mt { margin-top: 40px; }

/* ================================================================
   TYPE LABELS — Color-coded badges
   ================================================================ */
.label-tipe {
    display: inline-block;
    padding: 3px 8px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    border-radius: 3px;
}
.tipe-berita { background: var(--red); }
.tipe-tulisan { background: var(--teal); }
.tipe-konten { background: #eab308; color: #000; }
.tipe-foto { background: #8b5cf6; }
.tipe-video { background: #000; }

/* Meta / timestamp */
.meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

/* ================================================================
   CARDS — Grid cards
   ================================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }

.card {
    background: var(--white);
    overflow: hidden;
    transition: box-shadow .25s var(--ease);
    border: none;
    border-radius: 0;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 180px; object-fit: cover; transition: transform .3s var(--ease); }
.card:hover img { transform: scale(1.03); }
.card-body { padding: 14px 16px 18px; }
.card-body h4 {
    margin: 8px 0 6px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--gray-800);
}
.card-body h4 a { color: inherit; transition: color .15s; }
.card-body h4 a:hover { color: var(--red); }
.card-body .meta { margin-top: 4px; }
.card-compact .card-body h4 { margin: 0; font-size: 14px; }

/* Video play overlay */
.video-overlay {
    position: relative;
    display: block;
    overflow: hidden;
}
.video-overlay::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(204,0,0,.9);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    transition: transform .2s var(--ease), background .2s;
}
.video-overlay:hover::after { transform: translate(-50%, -50%) scale(1.1); background: var(--red); }

/* Foto overlay */
.foto-overlay {
    position: relative;
    display: block;
    overflow: hidden;
}
.foto-overlay::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.9); /* Purple color matching tipe-foto */
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    transition: transform .2s var(--ease), background .2s;
}
.foto-overlay:hover::after { transform: translate(-50%, -50%) scale(1.1); background: #7c3aed; }

/* ================================================================
   NEWS LIST — Horizontal items (Terkini, archives, search)
   ================================================================ */
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
    transition: background .15s;
}
.news-item:first-child { padding-top: 0; }
.news-item:hover { background: transparent; }
.news-item .thumb { width: 200px; flex-shrink: 0; overflow: hidden; }
.news-item .thumb a { display: block; }
.news-item .thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform .3s var(--ease);
}
.news-item:hover .thumb img { transform: scale(1.04); }
.news-item .info { flex: 1; min-width: 0; }
.news-item .info h3 {
    margin: 6px 0 10px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--gray-800);
}
.news-item .info h3 a { color: inherit; transition: color .15s; }
.news-item .info h3 a:hover { color: var(--red); }
.news-item .info .excerpt {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   ARCHIVE / LIST FEED — shared across topik, tag, daerah, etc.
   ================================================================ */

/* Page header banner */
.page-header {
    background: var(--white);
    padding: 24px 28px;
    border-left: 4px solid var(--red);
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}
.page-header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.3;
}
.page-header p {
    margin: 6px 0 0;
    color: var(--gray-500);
    font-size: 14px;
}

/* Feed item — used in all archive listings */
.feed-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: none; }
.feed-thumb {
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
}
.feed-thumb a { display: block; }
.feed-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform .3s var(--ease);
}
.feed-item:hover .feed-thumb img { transform: scale(1.04); }
.feed-content { flex: 1; min-width: 0; }
.feed-content .meta { margin-bottom: 8px; }
.feed-content h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
}
.feed-content h2 a {
    color: var(--gray-800);
    font-weight: 700;
    transition: color .15s;
}
.feed-content h2 a:hover { color: var(--red); }
.feed-content .excerpt {
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feed-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.feed-author a {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    transition: color .15s;
}
.feed-author a:hover { color: var(--red); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s var(--ease);
    background: var(--white);
}
.pagination a:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fef2f2;
}
.pagination a.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ================================================================
   GRID CARDS — Archive index (topik, daerah, penulis, tag cloud)
   ================================================================ */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.index-card {
    background: var(--white);
    text-align: center;
    padding: 28px 16px;
    border: 1px solid var(--gray-100);
    transition: all .2s var(--ease);
}
.index-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
    transform: translateY(-2px);
}
.index-card .ic-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.index-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}
.index-card h3 a {
    color: var(--gray-800);
    transition: color .15s;
}
.index-card h3 a:hover { color: var(--red); }
.index-card .ic-badge {
    display: inline-block;
    background: var(--gray-50);
    color: var(--gray-600);
    padding: 3px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--gray-100);
}
.index-card .ic-sub {
    display: block;
    color: var(--gray-400);
    font-size: 12px;
    margin-top: 8px;
}
.index-card .ic-label {
    display: block;
    color: var(--red);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.index-card .ic-prof {
    display: block;
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 4px;
}

/* Jurnalis avatar */
.index-card .ic-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-100);
    margin: 0 auto 12px;
}

/* Tag cloud index — full-width flex */
.tag-cloud-index {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag-cloud-index a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s var(--ease);
}
.tag-cloud-index a:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.tag-cloud-index a .tag-count {
    font-size: 11px;
    color: var(--gray-400);
}
.tag-cloud-index a:hover .tag-count { color: rgba(255,255,255,.7); }

/* ================================================================
   DETAIL PAGE
   ================================================================ */

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--gray-500);
    transition: color .15s;
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray-300); }

/* Detail article */
.post-detail h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-800);
    margin-bottom: 16px;
    letter-spacing: -.3px;
}

/* Author meta bar */
.author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.author-bar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-100);
}
.author-bar .ab-info { flex: 1; }
.author-bar .ab-name {
    font-weight: 700;
    color: var(--gray-800);
    transition: color .15s;
}
.author-bar .ab-name:hover { color: var(--red); }
.author-bar .ab-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 2px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.author-bar .ab-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Video embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--dark);
}
.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
    top: 0;
    left: 0;
}

/* Featured image */
.post-figure {
    margin: 0 0 24px;
}
.post-figure img {
    width: 100%;
    max-width: 100%;
}
.post-figure figcaption {
    margin-top: 8px;
    font-style: italic;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.5;
}

/* Content body */
.content-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 28px;
}
.content-body p { margin-bottom: 1.5rem; }
.content-body img { margin: 1.2rem 0; }
.content-body blockquote {
    border-left: 4px solid var(--teal);
    padding: 16px 20px;
    margin: 1.5rem 0;
    background: #f0fdf4;
    font-style: italic;
    color: var(--gray-600);
}

/* Tags on detail */
.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.detail-tags a {
    background: var(--gray-50);
    padding: 6px 14px;
    color: var(--gray-600);
    font-size: 13px;
    border: 1px solid var(--gray-200);
    transition: all .2s var(--ease);
}
.detail-tags a:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* Share / Like bar */
.share-bar {
    background: var(--gray-50);
    padding: 18px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Like button */
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: all .2s var(--ease);
}

.btn-like:hover {
    background: rgba(255, 0, 0, 0.12);
    color: var(--red);
    transform: translateY(-1px);
}

/* Base share */
.share-link {
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s var(--ease);
}

/* WhatsApp */
.share-wa {
    color: #fff;
    background: #25D366;
}

.share-wa:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.12);
    transform: translateY(-1px);
}

/* Facebook */
.share-fb {
    color: #fff;
    background: #1877F2;
}

.share-fb:hover {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.12);
    transform: translateY(-1px);
}

/* Optional Twitter/X */
.share-tw {
    color: #fff;
    background: #000;
}

.share-tw:hover {
    color: #000;
    background: rgba(0,0,0,0.08);
}

/* Related posts section */
.related-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}
.related-section .section-heading { margin-bottom: 20px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: box-shadow .2s var(--ease);
}
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.related-card .rc-body {
    padding: 14px;
}
.related-card .rc-body h4 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card .rc-body h4 a {
    color: var(--gray-800);
    transition: color .15s;
}
.related-card .rc-body h4 a:hover { color: var(--red); }
.related-card .rc-body .meta { font-size: 12px; }

/* ================================================================
   PROFILE PAGE — Penulis / Jurnalis
   ================================================================ */
.profile-header {
    background: var(--white);
    padding: 36px;
    text-align: center;
    border-bottom: 3px solid var(--red);
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}
.profile-header .ph-avatar {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 12px;
    display: block;
}
.profile-header img {
    margin: 0 auto 15px;
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
}
.profile-header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
}
.profile-header .ph-role {
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
    margin: 6px 0 12px;
}
.profile-header .ph-count {
    color: var(--gray-500);
    font-size: 13px;
}

/* ================================================================
   INDEKS / FILTER FORM
   ================================================================ */
.filter-box {
    background: var(--white);
    padding: 24px 28px;
    border-left: 4px solid var(--red);
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}
.filter-box h1 {
    margin: 0 0 16px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-800);
}
.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group {
    flex: 1;
    min-width: 180px;
}
.filter-group label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 14px;
    color: var(--gray-800);
    font-family: inherit;
    transition: border-color .2s;
}
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--red);
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.btn-secondary:hover { background: var(--gray-300); }
.filter-info {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ================================================================
   SEARCH PAGE — hero search box
   ================================================================ */
.search-hero {
    background: var(--white);
    padding: 48px 28px;
    text-align: center;
    border: 1px solid var(--gray-100);
    margin-bottom: 28px;
}
.search-hero .sh-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.search-hero h1 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
}
.search-hero p {
    color: var(--gray-500);
    margin-bottom: 28px;
    font-size: 15px;
}
.search-form-big {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: border-color .2s;
}
.search-form-big:focus-within { border-color: var(--red); }
.search-form-big input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
}
.search-form-big button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s;
}
.search-form-big button:hover { background: var(--red-dark); }
.search-tags {
    margin-top: 24px;
    font-size: 13px;
}
.search-tags span { color: var(--gray-400); }
.search-tags a {
    display: inline-block;
    margin: 4px;
    padding: 4px 12px;
    background: var(--gray-50);
    color: var(--red);
    font-weight: 500;
    border: 1px solid var(--gray-100);
    transition: all .15s;
}
.search-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Inline search in page-header */
.search-inline {
    display: flex;
    gap: 0;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.search-inline input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
}
.search-inline button {
    padding: 10px 20px;
    background: var(--red);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}
.search-inline button:hover { background: var(--red-dark); }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: var(--white);
}
.empty-state h3 {
    margin: 0 0 8px;
    color: var(--gray-700);
    font-size: 1.2rem;
}
.empty-state p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ================================================================
   404 PAGE
   ================================================================ */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404 h1 { font-size: 5rem; color: var(--red); font-weight: 900; margin-bottom: 12px; }
.page-404 p { color: var(--gray-500); font-size: 16px; margin-bottom: 24px; }
.page-404 a { color: var(--red); font-weight: 700; transition: opacity .2s; }
.page-404 a:hover { opacity: .7; }

/* ================================================================
   SIDEBAR
   ================================================================ */
aside {
    position: sticky;
    top: 80px;
    align-self: start;
}
.widget {
    background: var(--white);
    padding: 20px;
    margin-bottom: 24px;
    border: none;
    border-radius: 0;
    border-top: 3px solid;
border-image: linear-gradient(90deg, #d02818, #109b8b) 1;
}

.widget h3 {
    padding: 0 0 12px;
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--gray-800);
    letter-spacing: .5px;
    font-weight: 800;
    border-bottom: 1px solid var(--gray-100);
}
.pop-item {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    padding: 12px 0;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-50);
}
.pop-item:first-child { padding-top: 0; }
.pop-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-rank {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    min-width: 28px;
    text-align: center;
    font-style: italic;
}
.pop-rank.top3 { color: var(--red); }
.pop-rank.normal { color: var(--gray-200); }
.pop-thumb { width: 72px; height: 52px; flex-shrink: 0; overflow: hidden; }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-info { flex: 1; min-width: 0; }
.pop-title {
    color: var(--gray-800);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.pop-title:hover { color: var(--red); }
.pop-views { font-size: 11px; color: var(--gray-500); font-weight: 500; margin-top: 4px; }
.opini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-50);
}
.opini-item:first-child { padding-top: 0; }
.opini-item:last-child { border-bottom: none; padding-bottom: 0; }
.opini-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-100);
    flex-shrink: 0;
}
.opini-info { flex: 1; min-width: 0; }
.opini-title {
    color: var(--gray-800);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.opini-title:hover { color: var(--red); }
.opini-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.opini-author { font-weight: 500; font-size: 12px; color: var(--gray-500); }
.opini-sep { color: var(--gray-300); font-size: 10px; }
.opini-date { font-size: 11px; color: var(--gray-400); }
.opini-empty { color: var(--gray-400); font-size: 13px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 12.5px;
    border-radius: 3px;
    border: 1px solid var(--gray-100);
    transition: all .2s var(--ease);
    font-weight: 500;
}
.tag-item:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 48px 0 0;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 12px;
border-bottom: 2px solid;
border-image: linear-gradient(90deg, #d02818, #109b8b) 1;
    display: inline-block;
    font-weight: 700;
}
.footer-col ul { padding: 0; }
.footer-col li a {
    display: block;
    color: #d1d5db;
    padding: 8px 0;
    font-size: 13.5px;
    transition: all .15s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.footer-col li a:hover { color: #fff; padding-left: 6px; }
.footer-company { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.6;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: #d1d5db; transition: color .15s; }
.footer-contact-item a:hover { color: #fff; }
.footer-legal {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-legal span { color: #9ca3af; font-size: 11px; display: block; margin-bottom: 2px; }
.social-icons { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    transition: transform .2s var(--ease), opacity .2s;
}
.social-icons a:hover { transform: translateY(-2px); opacity: .85; }
.social-icons a svg { display: block; }
.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-tw { background: #000; }
.social-yt { background: #FF0000; }
.social-tt { background: #010101; }
.footer-desc { color: #d1d5db; font-size: 13px; line-height: 1.7; }
.footer-desc strong { color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,.15);
    padding: 16px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}
.footer-bottom strong { color: #e5e7eb; }
.footer-bottom a { color: var(--teal-light); text-decoration: underline; transition: color .15s; }
.footer-bottom a:hover { color: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    nav > ul > li > a,
    nav > ul > li > span { padding: 0 10px; font-size: 12px; }
    .search-box input { width: 120px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .feed-thumb { width: 180px; }
}

/* Mobile */
@media (max-width: 768px) {
    body { font-size: 14px; }
    header::before { height: 3px; }
    .header-top {
        flex-wrap: wrap;
        padding: 8px 0;
        min-height: auto;
        gap: 0;
    }
    .logo { width: 100%; text-align: center; padding: 4px 0 8px; display: flex; justify-content: center; }
    .logo a img { height: 32px; }
    nav { margin-left: 0; width: 100%; order: 3; }
    nav > ul {
        height: auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--gray-100);
        border-bottom: 1px solid var(--gray-100);
        gap: 0;
    }
    nav > ul::-webkit-scrollbar { display: none; }
    nav > ul > li > a,
    nav > ul > li > span {
        padding: 10px 13px;
        font-size: 11.5px;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
    }
    .search-box {
        order: 2;
        width: 100%;
        margin: 0 0 8px;
    }
    .search-box input {
        flex: 1;
        width: 100%;
    }
    .dropdown-trigger { position: static; }
    .dropdown-menu {
        position: absolute;
        left: 0 !important;
        right: 0;
        top: auto;
        margin-top: 40px;
        width: 100%;
        min-width: 100%;
        max-height: 50vh;
        overflow-y: auto;
        border-radius: 0;
        border-top: 3px solid var(--red);
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
        z-index: 9999;
    }
    .dropdown-menu li a { padding: 12px 24px; font-size: 14px; }
    .topik-bar { padding: 6px 0; gap: 12px; font-size: 12px; }
    main.container { padding-top: 16px; }
    .swiper { height: 240px; margin-bottom: 20px; }
    .slider-caption { padding: 60px 20px 20px; }
    .slider-caption h2 { font-size: 1.1rem; }
    .slider-caption .meta { font-size: 11px; margin-top: 6px; }
    .swiper-button-next, .swiper-button-prev { display: none !important; }
    .grid-3 { grid-template-columns: 1fr; gap: 0; margin-bottom: 20px; }
    .grid-3 .card { border-bottom: 1px solid var(--gray-100);margin-bottom:20px; }
    .grid-3 .card img { height: 200px; }
    .news-item { gap: 14px; padding: 16px 0; }
    .news-item .thumb { width: 120px; }
    .news-item .thumb img { height: 80px; }
    .news-item .info h3 { font-size: 15px; margin: 4px 0 6px; }
    .news-item .info .excerpt { font-size: 13px; -webkit-line-clamp: 2; }

    /* Archive feed */
    .feed-item { flex-direction: column; gap: 12px; }
    .feed-thumb { width: 100%; }
    .feed-thumb img { height: 200px; }
    .feed-content h2 { font-size: 1.1rem; }
    .feed-content .excerpt { -webkit-line-clamp: 2; }

    /* Detail */
    .post-detail h1 { font-size: 1.5rem; }
    .content-body { font-size: 15px; line-height: 1.8; }
    .author-bar { gap: 10px; }
    .author-bar img { width: 36px; height: 36px; }
    .related-grid { grid-template-columns: 1fr; gap: 16px; }
    .share-bar { flex-direction: column; align-items: stretch; text-align: center; }

    /* Sidebar */
    aside { position: static; }
    .widget { border-top-width: 2px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-contact { align-items: center; }
    .footer-contact-item { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-col h4 { display: table; margin-left: auto; margin-right: auto; }
    .footer-col li a { text-align: center; }

    /* Page header */
    .page-header { padding: 20px; }
    .page-header h1 { font-size: 1.3rem; }
    .filter-box { padding: 20px; }
    .filter-form { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .grid-auto { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .index-card { padding: 20px 12px; }
    .search-hero { padding: 32px 20px; }
    .search-hero h1 { font-size: 1.4rem; }
    .profile-header { padding: 28px 20px; }
    .profile-header h1 { font-size: 1.3rem; }
}

/* Small Phone */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .swiper { height: 200px; }
    .slider-caption h2 { font-size: 1rem; }
    .news-item .thumb { width: 100px; }
    .news-item .thumb img { height: 70px; }
    .news-item .info h3 { font-size: 14px; }
    nav > ul > li > a,
    nav > ul > li > span { padding: 9px 11px; font-size: 11px; }
    .grid-auto { grid-template-columns: 1fr; }
    .tag-cloud-index { gap: 8px; }
    .tag-cloud-index a { font-size: 13px; padding: 6px 12px; }
}

/* Lazy image placeholder */
img[loading="lazy"] { background-color: var(--gray-50); }