/* ==========================================================================
   STYLE VARIASI 3: PREMIUM EDITORIAL WITH SMOOTH MOBILE ANIMATION
   ========================================================================== */

* {
    box-sizing: border-box;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: #fcfbf9;
    /* Background Putih Lembut */
    color: #222222;
    padding-top: 90px;
}

/* NAVBAR LURUS MELEBAR DARI UJUNG KE UJUNG (FULL WIDTH) */
.custom-navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #111111;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Brand / Logo InfoRLX */
.brand-logo {
    font-size: 24px;
    font-weight: 900;
    color: #111111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand-logo span {
    color: #d4af37;
    /* Warna Gold */
}

/* Menu Kategori Horizontal Segaris (Desktop) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item-link {
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    transition: 0.2s;
    border-radius: 4px;
}

.nav-item-link:hover {
    color: #b33939;
    /* Merah */
    background-color: #f5f4f0;
}

.nav-item-link.active {
    color: #ffffff;
    background-color: #006241;
    /* Hijau Zamrud untuk menu aktif */
}

/* Bar Pencarian Sisi Kanan */
.search-wrapper {
    position: relative;
    width: 260px;
}

.search-wrapper input {
    width: 100%;
    background: #f5f4f0;
    border: 1px solid #e1dfd8;
    color: #111;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

.search-wrapper input:focus {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Tombol Hamburger Mobile (Offline Ready Symbol) */
.hamburger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #111111;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Animasi memutar tombol hamburger */
}

/* Efek tombol berputar saat menu terbuka */
.hamburger-toggle.active {
    transform: rotate(90deg);
    color: #006241;
}

/* SPACE / JARAK ANTARA NAVBAR DENGAN ISI KONTEN BERITA */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* Pembagian Kolom Konten */
.left-content {
    flex: 3;
}

.right-content {
    flex: 1;
}

/* Komponen Berita */
.flat-headline {
    background: #ffffff;
    border: 1px solid #eae7e0;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
}

.flat-headline img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.p-content {
    padding: 25px;
}


.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 10px 0;
}

.article-title a {
    color: #111111;
    text-decoration: none;
}

.article-title a:hover {
    color: #b33939;
}

.category-pill {
    color: #006241;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

.time-text {
    color: #888680;
    font-size: 12px;
}

/* List Berita Bawah */
.row-news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eae7e0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.row-news-item:last-child {
    border-bottom: none;
}

.row-news-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    background: #eae7e0;
    flex-shrink: 0;
}


/* Sidebar Panel */
.sidebar-panel {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #eae7e0;
    position: sticky;
    top: 110px;
}

.section-header {
    font-size: 14px;
    font-weight: 900;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #006241;
}

/* Trending Item */
.compact-trending {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eae7e0;
}

.compact-trending:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.compact-title {
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0;
    line-height: 1.4;
}

.compact-title a {
    color: #222222;
    text-decoration: none;
}

.compact-title a:hover {
    color: #006241;
}

.alert-box {
    background: #ffffff;
    color: #7f8c8d;
    padding: 30px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

footer {
    text-align: center;
    color: #888680;
    background: #ffffff;
    padding: 30px 0;
    font-size: 13px;
    border-top: 1px solid #eae7e0;
    margin-top: 60px;
}

/* ==========================================================================
   ANIMASI BERGULIR MELUNCUR HALUS PADA NAVBAR HP (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 991.98px) {
    body {
        padding-top: 80px;
    }

    .custom-navbar {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .search-wrapper {
        margin: 0 10px;
        width: 50%;
        display: block;
    }

    .search-wrapper input {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Memunculkan Tombol Hamburger */
    .hamburger-toggle {
        display: block;
    }

    /* MENU BERUBAH MENJADI TIRAI YANG DIANIMASIKAN */
    .nav-menu {
        display: flex;
        /* Menggunakan flex agar transisi bekerja */
        flex-direction: column;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 0px solid #111111;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);

        /* Logika Efek Tirai Meluncur Turun */
        max-height: 0;
        /* Awalnya menutup rapat (tinggi 0) */
        overflow: hidden;
        /* Sembunyikan item menu saat tertutup */
        opacity: 0;
        /* Transparan */
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        /* Durasi animasi meluncur */
    }

    /* Ketika class .mobile-open ditambahkan lewat JavaScript */
    .nav-menu.mobile-open {
        max-height: 350px;
        /* Batas tinggi maksimal tirai saat meluncur turun */
        opacity: 1;
        /* Terlihat penuh */
        border-bottom: 2px solid #111111;
    }

    .nav-item-link {
        display: block;
        padding: 12px 25px;
        border-radius: 0;
        border-bottom: 1px solid #f5f4f0;
    }

    .nav-item-link.active {
        background-color: #006241;
    }

    .main-wrapper {
        margin-top: 20px;
        flex-direction: column;
        gap: 30px;
    }

    .row-news-item {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .row-news-img {
        width: 100px;
        height: 75px;
    }
}