/*
Theme Name: Infonesia News
Description: Tema Portal Berita Nasional Profesional (Light Mode)
Version: 1.0
*/

/* ========================================================
   1. VARIABEL WARNA & FONT (TEMA PUTIH BERSIH)
   ======================================================== */
:root {
    --bg-color: #F3F4F6; /* Latar belakang abu-abu terang (nyaman di mata) */
    --surface-color: #FFFFFF; /* Warna dasar kotak/kartu (Putih kertas bersih) */
    --text-primary: #111827; /* Hitam pekat untuk Judul agar tajam */
    --text-secondary: #374151; /* Abu-abu gelap untuk paragraf/teks bacaan */
    --text-tertiary: #6B7280; /* Abu-abu terang untuk tanggal/meta/penulis */
    --accent-color: #DC2626; /* Merah Berita Nasional (Berwibawa & Tegas) */
    --border-color: #E5E7EB; /* Warna garis pembatas abu-abu pudar */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========================================================
   2. RESET & BASE STYLES
   ======================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Mengubah Class Glassmorphism menjadi Kartu Solid (Kertas) */
.glass-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

/* Global Badge (Label Kategori) */
.badge {
    background-color: #2563EB; /* Warna Biru Profesional */
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* 2. Warna Khusus Kategori EKSKLUSIF (Merah) */
.badge.badge-eksklusif,
.badge.badge-exclusive {
    background-color: var(--accent-color, #DC2626); /* Merah Nasional */
}

/* 3. Warna Khusus Kategori NASIONAL (Orange/Oranye) */
.badge.badge-nasional {
    background-color: #14AE0C; /* Orange Tegas dan Hangat */
}

/* Opsional: Tambahan warna jika besok Anda membuat kategori Teknologi (Ungu) */
.badge.badge-teknologi {
    background-color: #7C3AED; 
}



/* ========================================================
   3. HEADER & NAVIGASI MENU
   ======================================================== */
.site-header {
    background: #FFFFFF;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-radius: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--accent-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-list a:hover, .nav-list .current-menu-item > a {
    color: var(--accent-color);
}

/* Tombol Hamburger */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }



/* ========================================================
   JUDUL SEKSI (SECTION TITLE RIBBON)
   ======================================================== */
.hero-section-title {
    background-color: #111827; /* Warna Dark Navy pekat usulan Anda */
    color: #FFFFFF; /* Teks berubah menjadi putih agar kontras */
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    padding: 12px 18px; /* Memberikan ruang di dalam balok */
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--accent-color); /* Garis merah tegas di ujung kiri */
    border-radius: 4px; /* Sudut sedikit melengkung agar tidak terlalu kaku */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Bayangan halus di bawah balok */
}

/* Matikan garis merah terpisah yang lama agar tidak dobel */
.hero-section-title::before {
    display: none; 
}

.hero-merged-box {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hero-featured-item {
    position: relative;
    height: 280px;
    width: 100%;
}

.hero-featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 25px 20px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.hero-featured-overlay h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
}

/* Styling untuk Excerpt di atas gambar Hero */
.hero-excerpt {
    color: rgba(255, 255, 255, 0.85); /* Putih sedikit transparan agar judul tetap paling menonjol */
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px; /* Jarak antara Judul dan Excerpt */
    margin-bottom: 0;
    font-weight: 400;
    /* Membatasi maksimal 2 baris saja, sisanya menjadi titik-titik (...) jika kepanjangan */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Bayangan teks agar terbaca walau gambarnya terang */
}

/* Memastikan padding overlay sedikit lebih tinggi agar teks tidak terlalu mepet ke bawah */
.hero-featured-overlay {
    padding: 70px 25px 20px 25px; /* Angka pertama (70px) diperbesar agar gradasi hitamnya naik meng-cover teks excerpt */
}

.hero-featured-overlay h2 a {
    color: #FFFFFF; /* Teks di atas gambar harus tetap putih */
}

.hero-featured-overlay h2 a:hover {
    color: #E5E7EB;
}

/* Hero List (Tampilan Baru Putih) */
.hero-merged-list {
    padding: 10px 25px 20px 25px; 
}

.hero-list {
    list-style: none;
}

.hero-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.hero-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ========================================================
   UNIFIED HERO LIST (BULLET LINGKARAN)
   ======================================================== */
.hero-list a {
    display: flex;
    align-items: flex-start; /* Agar bullet sejajar dengan baris pertama jika teks panjang */
    gap: 12px; /* Jarak antara bullet dan teks */
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* Desain Bullet Lingkaran Hitam */
.hero-list a::before {
    content: '•'; /* Karakter bullet */
    color: var(--text-primary); /* Warna hitam/abu-abu gelap bawaan teks */
    font-size: 20px; /* Ukuran bullet sedikit lebih besar dari teks */
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Efek Hover: Teks geser sedikit & Bullet berubah warna jadi merah */
.hero-list li:hover a {
    color: var(--accent-color);
    transform: translateX(4px);
}

.hero-list li:hover a::before {
    color: var(--accent-color);
}

/* ========================================================
   5. HALAMAN DEPAN: FILTER & GRID BERITA
   ======================================================== */
.filter-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    /* PERBAIKAN PADDING: Jarak atas-bawah dan kiri-kanan sekarang seimbang */
    padding: 15px 25px; 
    background: var(--surface-color); /* Latar putih */
    border: 1px solid var(--border-color); /* Garis tepi presisi */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    margin: 0;
}

.glass-select {
    flex: 1;
    appearance: none;
    /* PERBAIKAN WARNA: Latar abu-abu agar kontras dengan box putih di belakangnya */
    background: var(--bg-color); 
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 35px 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23374151%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
    transition: all 0.3s ease;
}

/* Efek saat dropdown diklik */
.glass-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Grid Layout Utama */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity 0.3s ease;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 38, 38, 0.3); /* Outline merah tipis saat hover */
}

.news-card .thumbnail {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.news-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .thumbnail img {
    transform: scale(1.05);
}

.news-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.news-card .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.news-card h2 a {
    color: var(--text-primary);
}

.news-card h2 a:hover {
    color: var(--accent-color);
}

.card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Tombol Load More */
#load-more-btn {
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
}


/* ========================================================
   6. HALAMAN BACA BERITA (SINGLE POST 70:30)
   ======================================================== */
.single-container-layout {
    max-width: 1100px;
    margin-top: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
    align-items: start;
}

.single-article {
    padding: 40px;
}

.editorial-header {
    text-align: left;
    margin-bottom: 25px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.editorial-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.editorial-meta .badge {
    transform: translateY(-1px);
}

.article-featured-image {
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 8px;
    text-align: left;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2, .article-content h3 {
    color: var(--text-primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content img, .article-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.article-tags a {
    background: var(--bg-color);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.article-tags a:hover {
    background: var(--text-primary);
    color: #FFFFFF;
}

/* Related Posts (Dalam Kotak Artikel) */
.related-posts .widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}
.related-posts .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Membagi rata menjadi 3 kolom */
    gap: 20px; /* Jarak antar kotak berita */
}


.related-posts .news-card {
    border-radius: 6px;
    background: var(--bg-color); /* Abu-abu terang agar beda dengan latar putih artikel */
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.related-posts .news-card:hover {
    background: var(--surface-color);
    border-color: var(--accent-color);
}

/* ========================================================
   7. SIDEBAR KANAN WIDGET
   ======================================================== */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    padding: 25px;
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--accent-color);
}

.sidebar-news-list {
    list-style: none;
}

.sidebar-news-list li {
    padding: 12px 0;
}

.sidebar-news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-list a {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.sidebar-news-list .meta {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sticky-widget {
    position: sticky;
    top: 90px;
}

/* ========================================================
   8. MEDIA QUERIES (RESPONSIVE MOBILE)
   ======================================================== */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-featured-item { height: 240px; }
}

@media (max-width: 992px) {
    .single-container-layout { grid-template-columns: 1fr; gap: 30px; }
    .sticky-widget { position: static; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .single-article { padding: 25px 20px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 16px; }
    
    /* Filter Stack Mobile */
    .filter-section { flex-direction: column; align-items: flex-start; gap: 15px; }
    .filter-form { flex-direction: column; width: 100%; gap: 10px; }
    .glass-select { width: 100%; }

    /* Header Mobile Menu */
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 15px 20px rgba(0,0,0,0.1);
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-list {
        flex-direction: column;
        gap: 0;
        text-align: left;
    }
    .nav-list a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-list li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   BREAKING NEWS TICKER
   ======================================================== */
.breaking-news-ticker {
    display: flex;
    align-items: center;
    background: var(--surface-color); /* Kotak warna putih */
    border: 1px solid var(--border-color); /* Garis batas abu-abu */
    border-radius: 4px;
    margin-top: 30px; /* Jarak dari atas */
    margin-bottom: 30px; /* Jarak menuju Hero News di bawahnya */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ticker-label {
    background: var(--accent-color); /* Merah Nasional */
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    flex-shrink: 0;
    position: relative;
}

/* Membuat efek panah (segitiga) lancip di ujung kanan label merah */
.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--accent-color);
    z-index: 2;
}

.ticker-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
    padding: 0;
    position: relative;
    white-space: nowrap; /* Memaksa teks memanjang ke kanan, tidak turun ke bawah */
}

/* Efek Fade Out putih di sebelah kanan agar teks tidak terpotong kasar */
.ticker-content-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), var(--surface-color));
    z-index: 1;
}

.ticker-content {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 100%; /* Mulai animasi dari ujung kanan layar */
    animation: tickerScroll 50s linear infinite; /* Kecepatan scroll 25 detik */
}

/* Hentikan teks berjalan saat mouse diarahkan ke berita */
.ticker-content-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-content li {
    display: inline-block;
    padding: 12px 40px 12px 0; /* Jarak antar berita */
}

.ticker-time {
    font-size: 12px;
    color: var(--accent-color); /* Jam warna merah */
    font-weight: 800;
    margin-right: 12px;
}

.ticker-content a {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.ticker-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Animasi bergeraknya */
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Penyesuaian untuk HP */
@media (max-width: 768px) {
    .ticker-label {
        padding: 10px 15px;
        font-size: 11px;
    }
    .ticker-content li {
        padding: 10px 30px 10px 0;
    }
    .ticker-content a {
        font-size: 13px;
    }
}

/* ========================================================
   9. FOOTER (FAT FOOTER DARK MODE)
   ======================================================== */
.site-footer {
    background-color: #111827; /* Hitam / Dark Navy sangat pekat */
    color: #D1D5DB; /* Teks abu-abu terang */
    margin-top: 60px; /* Jarak dari konten berita di atasnya */
    border-top: 4px solid var(--accent-color); /* Garis batas merah di atas footer */
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Kolom pertama lebih lebar */
    gap: 40px;
}

.footer-logo {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #9CA3AF;
}

/* Tombol Sosial Media */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08); /* Tombol transparan */
    color: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 700;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px); /* Efek tombol terangkat */
}

/* Judul Widget Footer */
.footer-widget-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

/* Daftar Link */
.links-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-widget li {
    margin-bottom: 12px;
}

.links-widget a {
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.links-widget a:hover {
    color: var(--accent-color);
    transform: translateX(4px); /* Link bergeser sedikit saat disentuh */
}

/* Footer Paling Bawah (Copyright) */
.footer-bottom {
    background-color: #030712; /* Hitam paling gelap */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Berubah menjadi 1 kolom menyusun ke bawah */
        gap: 40px;
    }
    .footer-top {
        padding: 40px 0;
    }
}

/* ========================================================
   HERO TABS (60%) & EXCLUSIVE GRID (40%)
   ======================================================== */
.hero-layout-60-40 {
    display: grid;
    grid-template-columns: 6fr 4fr; /* 60% Kiri, 40% Kanan */
    gap: 30px;
    margin-bottom: 50px;
}

/* --- TABS NAVIGASI (KIRI) --- */
.hero-left-tabs {
    display: flex;
    flex-direction: column;
}

/* --- TABS NAVIGASI (KIRI) --- */
.hero-left-tabs {
    display: flex;
    flex-direction: column;
}

.tab-header {
    display: flex;
    width: 100%; /* Memaksa wadah tab memenuhi layar */
    margin-bottom: 20px; /* Jarak antara tombol dan gambar berita */
    border-radius: 6px; /* Ujung kotak sedikit melengkung elegan */
    overflow: hidden; /* Mencegah warna tombol tumpah ke luar sudut melengkung */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Bayangan halus */
}

.tab-btn {
    flex: 1; /* AJAIB: Ini yang membagi tombol menjadi persis 50% dan 50% */
    background-color: #111827; /* Dark Navy untuk tombol yang TIDAK aktif */
    color: #9CA3AF; /* Warna teks abu-abu agar tidak terlalu mencolok */
    text-align: center; /* Posisi teks persis di tengah */
    border: none;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

/* Efek saat tombol ditunjuk mouse (tapi belum diklik) */
.tab-btn:hover {
    color: #FFFFFF;
    background-color: #1F2937; /* Navy sedikit lebih terang */
}

/* Efek saat tombol AKTIF */
.tab-btn.active {
    background-color: var(--accent-color); /* Warna Merah untuk tab aktif */
    color: #FFFFFF; /* Teks putih menyala */
}

/* Mematikan garis bawah merah dari desain lama (sudah tidak dipakai) */
.tab-btn.active::after {
    display: none;
}

.tab-pane {
    display: none; /* Disembunyikan secara default */
    flex-direction: column;
    flex-grow: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-pane.active {
    display: flex; /* Ditampilkan jika aktif */
    opacity: 1;
}

/* Gambar Hero diperbesar sedikit menyesuaikan lebar 60% */
.tab-pane .hero-featured-item {
    height: 320px; 
}


/* --- EXCLUSIVE GRID (KANAN) --- */
.hero-right-exclusive {
    display: flex;
    flex-direction: column;
    height: 100%; /* AJAIB 1: Memaksa tinggi kolom kanan 100% sejajar dengan kiri */
}

.exclusive-title {
    margin-bottom: 20px;
    background-color: #111827;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    margin-top: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Kotak 1 Kolom untuk Artikel Eksklusif di Desktop */
.exclusive-grid {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar berita eksklusif */
    flex-grow: 1; /* AJAIB 2: Memaksa grid mengisi seluruh sisa ruang ke bawah */
}

.exclusive-card {
    display: flex;
    flex-direction: row; /* Berubah jadi menyamping */
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    flex: 1; /* AJAIB 3: Membagi sisa tinggi menjadi 4 bagian sama rata persis! */
    transition: all 0.3s ease;
}

.exclusive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: rgba(220, 38, 38, 0.3);
}
.exc-thumb {
    width: 170px; 
    flex-shrink: 0;
    position: relative;
    /* Jangan beri pengaturan height di sini agar mengikuti parent-nya */
}

.exc-thumb img {
    position: absolute; /* KUNCI AJAIB: Memaksa gambar mengisi penuh wadahnya */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desain untuk teks Excerpt baru */
.exc-excerpt {
    font-size: 12px;
    color: var(--text-secondary); /* Warna abu-abu agar tidak menyaingi judul */
    line-height: 1.5;
    margin-bottom: 8px; /* Jarak dengan tanggal di bawahnya */
    /* Membatasi maksimal 2 baris teks saja */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exclusive-card:hover .exc-thumb img {
    transform: scale(1.05);
}


.exc-content {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Teks otomatis berada di tengah secara vertikal */
    flex-grow: 1;
}

.exc-content h4 {
    margin: 0 0 5px 0; /* Margin bawah dikurangi agar lebih rapat dengan excerpt */
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.exc-content h4 a {
    color: var(--text-primary);
}

.exc-content h4 a:hover {
    color: var(--accent-color);
}

.exc-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-top: auto;
}

.exclusive-card .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 3px 6px;
    z-index: 2; /* Tambahan z-index agar badge tetap di atas gambar */
}


@media (max-width: 768px) {
    /* ... kode mobile lainnya ... */

    .exclusive-grid {
        display: grid; /* Kembali pakai sistem Grid di HP */
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom berdampingan */
        gap: 15px;
    }

    .exclusive-card {
        flex-direction: column; /* Gambar kembali ke atas, Teks di bawah */
        flex: unset; 
    }

    .exc-thumb {
        width: 100%; /* Gambar full lebar */
        height: 110px; /* Tinggi gambar dibatasi */
    }

    .exc-content {
        justify-content: flex-start;
    }

    .related-posts .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membagi rata menjadi 3 kolom */
    gap: 15px; /* Jarak antar kotak berita */
    }

    .related-posts .news-grid .news-card:nth-child(3) {
        display: none !important;
    }

    .related-posts .news-card h2 {
        font-size: 13px !important; /* Silakan ubah angka ini (misal 12px) jika dirasa masih kebesaran */
        line-height: 1.3 !important; /* Merapatkan jarak atas-bawah antar baris kalimat */
        margin-bottom: 6px !important; /* Mengurangi jarak kosong di bawah judul */
    }
    
    /* (Opsional) Memperkecil juga ukuran tanggal di bawahnya agar seimbang */
    .related-posts .news-card .meta {
        font-size: 10px !important;
    }
}
/* Responsive Mobile / Tablet */
@media (max-width: 992px) {
    .hero-layout-60-40 {
        grid-template-columns: 1fr; /* Jadi 1 kolom bersusun di HP */
    }
}

/* ========================================================
   BREADCRUMBS SEO
   ======================================================== */
.breadcrumbs {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs .separator {
    color: var(--border-color);
    font-size: 14px;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================================
   PAGINASI DALAM ARTIKEL (POST PAGINATION)
   ======================================================== */
.article-pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-links-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 10px;
    font-size: 15px;
}

.article-pagination a .page-number,
.article-pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-pagination a:hover .page-number {
    background: var(--surface-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Tampilan untuk halaman yang sedang aktif */
.article-pagination > .page-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #FFFFFF;
}