/* =========================================
   1. GLOBAL RESET & LAYOUT FLOW
   ========================================= */
:root {
    --primary-blue: #003366;
    --accent-gold: #FFD700;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    margin: 0;
    /* PENTING: Jarak agar konten tidak tertutup Header Fixed */
    /* Header (70) + Nav (45) + Recap (30) = 145px */
    padding-top: 145px; 
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* CONTAINER */
.container { 
    width: 100%; padding: 0 15px; margin: 0 auto;
    position: relative; 
}
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed; top: 0; left: 0; right: 0;
    background-color: var(--primary-blue);
    height: 70px; z-index: 1050;
    display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 0 15px;
}
.header-left { display: flex; align-items: center; gap: 15px; }
.header-logo img { height: 40px; filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }

/* Hamburger Button */
.toggle {
    background: transparent; border: none; cursor: pointer; padding: 0;
    display: flex; flex-direction: column; gap: 5px; width: 30px;
}
.bars {
    width: 100%; height: 3px; background-color: #fff;
    border-radius: 4px; transition: all 0.3s ease;
}
.search-icon { color: #fff; font-size: 1.2rem; }

/* Menu Modal (Popup) */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 1060; transition: 0.3s;
    opacity: 0; visibility: hidden; pointer-events: none;
}
.modal-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }

.centered-menu-card {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%; max-width: 320px;
    background: var(--primary-blue);
    border-radius: 15px; padding: 30px 20px;
    text-align: center; z-index: 1070;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.centered-menu-card.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.menu-link {
    display: block; color: #fff; font-size: 18px; font-weight: 600;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.menu-link:hover { color: var(--accent-gold); letter-spacing: 1px; }

/* Scroll Nav */
.scroll-nav-container {
    background: #fff; border-bottom: 1px solid #ddd;
    position: fixed; top: 70px; left: 0; right: 0;
    height: 45px; z-index: 1040;
    display: flex; align-items: center; overflow-x: auto;
}
.scroll-nav-container::-webkit-scrollbar { display: none; }
.nav-item-scroll {
    color: #555; padding: 0 15px; font-size: 13px; font-weight: 600; text-transform: uppercase; white-space: nowrap;
}
.nav-item-scroll:hover { color: var(--primary-blue); font-weight: 800; }

/* Recap Bar */
.today-recap-bar {
    position: fixed; top: 115px; left: 0; right: 0;
    height: 30px; background: #f8f9fa; border-bottom: 1px solid #e9ecef;
    display: flex; align-items: center; z-index: 1030;
}
.recap-label {
    background: var(--primary-blue); color: #fff; font-size: 10px;
    padding: 0 15px; height: 100%; display: flex; align-items: center; font-weight: bold;
}
.recap-scroll {
    animation: marquee 25s linear infinite; padding-left: 100%; 
    display: inline-block; white-space: nowrap;
}
.recap-item { margin-right: 30px; font-size: 12px; color: #333; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* =========================================
   3. STORIES (LENSA KREATIF)
   ======================================== */
.stories-area {
    background: #fff; padding: 15px 0; margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.stories-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 5px 15px; 
    scrollbar-width: none; scroll-snap-type: x mandatory;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.story-item {
    width: 100px; height: 160px; flex-shrink: 0; position: relative;
    border-radius: 10px; overflow: hidden; background: #000;
    scroll-snap-align: start;
}
.story-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.story-title {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; font-size: 9px; font-weight: 700; line-height: 1.2;
}
.story-icon {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
    background: rgba(0,0,0,0.6); border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* =========================================
   4. HERO SECTION (HOME)
   ========================================= */
.hero-container { margin-bottom: 30px; width: 100%; position: relative; z-index: 1; display: block; }

@media (max-width: 991px) {
    .hero-grid { display: flex; flex-direction: column; gap: 10px; height: auto !important; overflow: visible; }
    .hero-grid > a { display: block; width: 100%; height: 220px; border-radius: 8px; overflow: hidden; position: relative; }
    .hero-sub-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: auto !important; width: 100%; }
    .hero-sub-wrap > a { display: block; width: 100%; height: 130px; border-radius: 8px; overflow: hidden; position: relative; }
    .hero-card, .hero-sub { width: 100%; height: 100%; position: relative; }
    .hero-img { width: 100%; height: 100%; object-fit: cover; }
    .hero-big { font-size: 16px; margin-bottom: 0; }
    .hero-small { font-size: 11px; line-height: 1.3; }
    .cat-badge { font-size: 8px; padding: 2px 4px; }
}

@media (min-width: 992px) {
    .hero-grid { display: grid; grid-template-columns: 65% 1fr; gap: 10px; height: 300px; width: 100%; overflow: hidden; }
    .hero-grid > a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; position: relative; }
    .hero-sub-wrap { display: flex; flex-direction: column; gap: 10px; height: 100%; width: 100%; }
    .hero-sub-wrap > a { display: block; height: 50%; width: 100%; overflow: hidden; border-radius: 8px; position: relative; flex-grow: 1; }
    .hero-card, .hero-sub { width: 100%; height: 100%; position: relative; }
    .hero-img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; z-index: 0; }
    .hero-big { font-size: 18px !important; }
    .hero-small { font-size: 13px !important; }
}

.hero-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent 100%);
    padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-title { color: #fff; font-weight: 700; line-height: 1.3; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hero-card:hover .hero-img, .hero-sub:hover .hero-img { transform: scale(1.05); transition: transform 0.5s ease; }
.cat-badge { background: var(--accent-gold); color: var(--primary-blue); font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 3px; width: fit-content; margin-bottom: 4px; text-transform: uppercase; display: inline-block; }

/* =========================================
   5. PODCAST (PARAMETER TV)
   ========================================= */
.podcast-area {
    background: var(--primary-blue); padding: 30px 0; margin-bottom: 30px;
    position: relative; z-index: 2;
}
.pod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.pod-card { background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.pod-thumb { width: 100%; height: 160px; position: relative; }
.pod-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; background: var(--accent-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); }
.pod-info { padding: 12px; font-weight: 700; color: #fff; font-size: 14px; }

/* =========================================
   6. LIST BERITA (HOME)
   ========================================= */
.machine-label { display: flex; align-items: center; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.machine-text { font-size: 15px; font-weight: 800; color: var(--primary-blue); border-left: 4px solid var(--accent-gold); padding-left: 10px; }

.news-list-item { 
    display: flex; gap: 15px; margin-bottom: 15px; 
    background: #fff; padding: 12px; border-radius: 10px; 
    border: 1px solid #f1f5f9; min-height: 110px; height: auto;
}
.news-list-thumb { width: 120px; height: 90px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eee; }
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-title-list { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.35; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 10px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }

/* =========================================
   7. SIDEBAR WIDGETS
   ========================================= */
.sidebar-widget { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid #f0f0f0; }

.sidebar-profile-card { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 16px; padding: 30px 20px; text-align: center; color: #fff; position: relative; overflow: hidden; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(30, 41, 59, 0.3); }
.sidebar-deco, .sidebar-deco-2 { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.05); z-index: 1; }
.sidebar-deco { width: 150px; height: 150px; top: -50px; right: -50px; }
.sidebar-deco-2 { width: 100px; height: 100px; bottom: -20px; left: -20px; }

.brand-logo-circle { width: 90px; height: 90px; background: #fff; border-radius: 50%; margin: 0 auto 15px; padding: 5px; position: relative; z-index: 2; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo-circle img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.sidebar-profile-card h5 { position: relative; z-index: 2; font-size: 1.1rem; letter-spacing: 0.5px; }
.sidebar-profile-card p { position: relative; z-index: 2; opacity: 0.8; }

.sosmed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; position: relative; z-index: 2; }
.btn-sosmed { display: flex; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff; text-decoration: none; transition: transform 0.2s ease, opacity 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.btn-sosmed:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.bg-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bg-tiktok { background: #000; border: 1px solid #333; }
.bg-fb { background: #1877F2; }
.bg-yt { background: #FF0000; }

.machine-label-sidebar { border-bottom: 2px solid #000; margin-bottom: 20px; display: flex; align-items: center; }
.machine-text-sidebar { background: #000; color: #FFD700; padding: 5px 15px; font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; position: relative; }
.machine-text-sidebar::after { content: ''; position: absolute; right: -10px; top: 0; width: 0; height: 0; border-top: 31px solid #000; border-right: 10px solid transparent; }

.pop-item { display: flex; align-items: flex-start; text-decoration: none; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; transition: all 0.3s; }
.pop-item:last-child { border-bottom: none; }
.pop-item:hover .pop-title { color: #003366; }
.pop-rank { font-size: 24px; font-weight: 900; color: #e2e8f0; line-height: 1; margin-right: 15px; min-width: 35px; font-style: italic; }
.pop-item:nth-of-type(1) .pop-rank { color: #FFD700; text-shadow: 1px 1px 0 #b8860b; }
.pop-item:nth-of-type(2) .pop-rank { color: #C0C0C0; text-shadow: 1px 1px 0 #7f8c8d; }
.pop-item:nth-of-type(3) .pop-rank { color: #CD7F32; text-shadow: 1px 1px 0 #8b4513; }
.pop-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-meta { font-size: 11px; color: #94a3b8; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-badge { background: #f1f5f9; color: #475569; padding: 6px 12px; border-radius: 20px; font-size: 12px; text-decoration: none; font-weight: 500; transition: all 0.2s; border: 1px solid transparent; }
.tag-badge:hover { background: #1e293b; color: #FFD700; border-color: #1e293b; transform: scale(1.05); }

/* =======================================================
   9. CSS KHUSUS HALAMAN KATEGORI (GRID SYSTEM)
   ======================================================= */

/* Wrapper & Header */
.cat-wrapper { margin-top: 30px; margin-bottom: 60px; }

.cat-header {
    border-left: 6px solid #003366; /* Primary Blue */
    padding-left: 20px; margin-bottom: 30px;
}
.cat-label {
    font-size: 14px; color: #6c757d; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 5px; display: block;
}
.cat-name {
    font-size: 32px; font-weight: 800; color: #1e293b;
    margin: 0; text-transform: uppercase; line-height: 1;
}

/* --- KARTU BERITA (GRID) --- */
.cat-grid-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Agar tinggi kartu rata */
    display: flex; flex-direction: column;
}

.cat-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #003366;
}

/* Gambar Thumbnail */
.cat-thumb-wrap {
    position: relative; width: 100%;
    padding-top: 60%; /* Rasio 16:9 */
    overflow: hidden; background: #f1f5f9; display: block;
}

.cat-thumb-wrap img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-grid-card:hover .cat-thumb-wrap img { transform: scale(1.1); } /* Zoom */

/* Konten Text */
.cat-card-body {
    padding: 20px; flex-grow: 1;
    display: flex; flex-direction: column;
}

.cat-date {
    font-size: 11px; color: #94a3b8; font-weight: 700;
    text-transform: uppercase; margin-bottom: 10px;
}

.cat-title-link {
    font-size: 18px; font-weight: 700; color: #1e293b;
    text-decoration: none; line-height: 1.4;
    margin-bottom: 15px; display: block; transition: color 0.2s;
}
.cat-title-link:hover { color: #003366; }

.cat-excerpt {
    font-size: 13px; color: #64748b; line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-read-btn {
    margin-top: auto; /* Dorong ke bawah */
    font-size: 12px; font-weight: 800; color: #003366;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    border-top: 1px solid #f1f5f9; padding-top: 15px; display: block;
}

/* --- HERO CARD (BERITA UTAMA) --- */
.hero-wrap {
    position: relative; border-radius: 16px;
    overflow: hidden; margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: block;
}
.hero-thumb {
    width: 100%; height: 400px; object-fit: cover;
    display: block; transition: transform 0.5s;
}
.hero-wrap:hover .hero-thumb { transform: scale(1.05); }

.hero-overlay-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, transparent 100%);
    padding: 30px; color: #fff;
}
.hero-badge {
    background: #FFD700; color: #003366;
    padding: 5px 12px; border-radius: 4px; font-size: 11px;
    font-weight: 800; text-transform: uppercase;
    display: inline-block; margin-bottom: 10px;
}
.hero-title {
    font-size: 28px; font-weight: 800; margin-bottom: 10px;
    line-height: 1.3; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .cat-name { font-size: 24px; }
    .hero-thumb { height: 250px; }
    .hero-title { font-size: 20px; }
    .hero-overlay-content { padding: 20px; }
}