/*
Theme Name: Detik Portal Child Theme
Theme URI: https://example.com
Author: Kustom Developer
Template: detik-portal
Description: Modifikasi desain Child Theme khusus untuk personalisasi aksen warna portal dan pembersihan layout.
Version: 1.0
Text Domain: detikchild
*/

/* ==========================================================================
   1. PONDASI WARNA STANDAR PORTAL (CERAH & KONTRAS BEBAS DARK MODE)
   ========================================================================== */
:root {
    --detik-blue: #005691;
    --detik-red: #cc0000;
    --detik-dark: #1a1a1a;
    --detik-grey: #f4f4f4;
    --detik-text: #333333;
    --detik-border: #e0e0e0;
}

body {
    background-color: #ffffff !important;
    color: var(--detik-text) !important;
}

/* ==========================================================================
   2. TATA LETAK STRUKTUR BACA & READ MORE MINIMALIS
   ========================================================================== */
.news-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.readmore-box {
    display: block;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 4px;
}

.detik-readmore {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 900 !important; /* Ketebalan Tulisan Maksimal */
    color: var(--detik-blue) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.detik-readmore:hover {
    color: var(--detik-red) !important;
    text-decoration: underline !important;
}

/* Input Form Pencarian Minimalis */
.search-field {
    padding: 8px 15px; 
    border: 1px solid #ccc; 
    border-radius: 20px; 
    outline: none; 
    font-size: 14px;
    background-color: #ffffff;
    color: var(--detik-dark);
}

/* ==========================================================================
   3. TAMPILAN SHARE MINIMALIS & STRUKTUR NAVIGASI POST
   ========================================================================== */
.detik-share-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    margin: 15px 0;
    border-radius: 4px;
    background-color: var(--detik-grey);
    border: 1px solid var(--detik-border);
}
.share-label { font-size: 10px; font-weight: 800; color: #666; }
.share-links { display: flex; gap: 4px; }
.share-item {
    display: inline-block; padding: 2px 6px; font-size: 10px; font-weight: 700;
    color: #ffffff !important; border-radius: 3px; text-align: center; min-width: 24px; line-height: 1.2;
}
.share-item.wa { background-color: #25d366 !important; }
.share-item.fb { background-color: #1877f2 !important; }
.share-item.tw { background-color: #000000 !important; }

.detik-post-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--detik-border); border-bottom: 1px solid var(--detik-border); }
.nav-box { flex: 1; display: flex; flex-direction: column; }
.nav-previous-post { text-align: left; }
.nav-next-post { text-align: right; }
.nav-label { font-size: 11px; font-weight: 800; color: var(--detik-red) !important; margin-bottom: 5px; }
.nav-box a { font-size: 14px; font-weight: 700; color: var(--detik-dark) !important; text-decoration: none; }
.nav-box a:hover { color: var(--detik-blue) !important; text-decoration: underline; }

/* ==========================================================================
   4. WARNA KUSTOM KATEGORI (DYNAMIS BRANDING)
   ========================================================================== */
body.detik-cat-finance, body.detik-cat-ekonomi { --detik-blue: #f39c12; }
body.detik-cat-sport, body.detik-cat-sepakbola { --detik-blue: #27ae60; }
body.detik-cat-teknologi { --detik-blue: #00a8ff; }
body.detik-cat-health { --detik-blue: #e84393; }

/* ==========================================================================
   5. ADVERTISEMENT STICKY BOTTOM BANNER
   ========================================================================== */
.mobile-sticky-ad { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #ffffff; border-top: 2px solid var(--detik-border); box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15); z-index: 9999; padding: 10px 0 5px 0; display: none; text-align: center; }
.ad-close-btn { position: absolute; top: -24px; right: 10px; background-color: #333; color: #fff; font-size: 11px; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 4px 4px 0 0; cursor: pointer; font-weight: bold; }
.ad-lbl-mini { display: block; font-size: 8px; color: #999; letter-spacing: 0.5px; margin-bottom: 2px; }
.ad-content-wrapper { max-width: 320px; height: 50px; margin: 0 auto; background-color: var(--detik-grey); border: 1px dashed var(--detik-border); display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 11px; }

@media (max-width: 767px) {
    .mobile-sticky-ad { display: block; }
    body { padding-bottom: 75px !important; }
    .detik-post-navigation { flex-direction: column; gap: 15px; }
    .nav-next-post { text-align: left; border-top: 1px dashed var(--detik-border); padding-top: 15px; }
}

/* ==========================================================================
   PENYESUAIAN KEPADATAN FONT JUDUL & PEMBERSIHAN TOTAL AREA IKLAN
   ========================================================================== */

/* Menghapus padding bawah ekstra di HP setelah iklan melayang dibuang */
body {
    padding-bottom: 0 !important;
}

/* Mengatur Judul Berita Utama (Headline Kiri) agar Lebih Padat */
.headline-title {
    font-size: 24px !important; /* Ukuran diperkecil dari 28px agar lebih padat */
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 8px 0 !important;
}

.headline-excerpt {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Mengatur Judul Daftar Berita (News Feed List) agar Ringkas & Berbaris Rapi */
.news-item h3 {
    font-size: 15px !important; /* Ukuran diperkecil dari 18px khas detikcom */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.2px !important;
}

/* Mengatur Judul Halaman Hasil Pencarian & Kategori Indeks */
.search-news-details h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Penyesuaian Responsif Kepadatan Judul di HP */
@media (max-width: 576px) {
    .headline-title {
        font-size: 20px !important; /* Lebih mengecil di HP agar tidak memakan layar */
    }
    .news-item h3 {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   OPTIMASI KEPADATAN LAYOUT & EFEK TRANSISI HALUS (DETIK-CHILD)
   ========================================================================== */

/* --- 1. Memperrapat Jarak Antar Daftar Berita (High Density List) --- */
.news-feed-list {
    gap: 12px !important; /* Memperrapat jarak vertikal antar blok artikel */
}

.news-item {
    gap: 12px !important; /* Memperrapat jarak horizontal antara gambar thumb dan teks */
    padding-bottom: 12px !important; /* Mengurangi ruang kosong di bawah garis pembatas */
    margin-bottom: 0 !important;
}

.search-feed-list {
    gap: 12px !important;
}

.search-news-item {
    gap: 12px !important;
    padding-bottom: 12px !important;
}

/* Mengurangi margin bawah box berita utama (Headline) agar fokus berita naik */
.headline-container {
    margin-bottom: 20px !important;
}

/* --- 2. Efek Visual Transisi Warna Halus (Smooth Hover Transitions) --- */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.trending-link, 
.detik-readmore, 
.news-breadcrumb a, 
.search-news-cat a {
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                text-decoration 0.25s ease !important;
}

/* --- 3. Mengatur Ukuran Gambar Kotak Samping Berita agar Serasi --- */
.news-item img, .search-news-thumb img {
    width: 130px !important;  /* Sedikit memperkecil lebar gambar agar serasi dengan teks yang padat */
    height: 85px !important;  /* Mengunci tinggi gambar agar seragam lurus ke bawah */
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* Penyesuaian Ruang Fleksibel untuk Tampilan HP */
@media (max-width: 576px) {
    .news-item {
        gap: 8px !important;
        padding-bottom: 10px !important;
    }
    .news-item img, .search-news-thumb img {
        width: 100% !important; /* Tetap penuh melebar ke samping di layar ponsel */
        height: auto !important;
    }
}

/* ==========================================================================
   OPTIMASI SIDEBAR TERPOPULER MODERN & PENGATURAN LOGO DINAMIS
   ========================================================================== */

/* Pengaturan Teks Logo Utama Dinamis */
.site-logo h1 {
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.site-logo h1 a {
    color: var(--detik-blue) !important;
    text-decoration: none !important;
}

.site-logo h1 a:hover {
    color: var(--detik-red) !important; /* Berubah aksen saat diarahkan kursor */
}

/* Desain List Nomor Vertikal Berwarna untuk Sidebar Terpopuler */
.detik-trending-box {
    background-color: #ffffff !important; /* Dibuat putih bersih agar kontras */
    padding: 15px !important;
    border-radius: 4px !important;
}

.trending-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list-modern li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--detik-border);
}

.trending-list-modern li:last-child {
    border-bottom: none;
}

/* Desain Angka Bulat Besar Khas Portal Berita Premium */
.rank-badge {
    font-size: 24px;
    font-weight: 900;
    color: #94a3b8; /* Warna abu-abu netral default */
    line-height: 1;
    font-family: 'Arial Black', Gadget, sans-serif;
    min-width: 35px;
    padding-top: 2px;
}

/* Mewarnai Tiga Peringkat Teratas dengan Aksen Warna Khusus */
.trending-list-modern li:nth-child(1) .rank-badge { color: #e74c3c; } /* Peringkat 1: Merah */
.trending-list-modern li:nth-child(2) .rank-badge { color: #e67e22; } /* Peringkat 2: Jingga */
.trending-list-modern li:nth-child(3) .rank-badge { color: #f1c40f; } /* Peringkat 3: Kuning */

.trending-info-modern {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trending-link-modern {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--detik-dark) !important;
    line-height: 1.35 !important;
    text-decoration: none;
}

.trending-link-modern:hover {
    color: var(--detik-blue) !important;
    text-decoration: underline !important;
}

.trending-time {
    font-size: 11px;
    color: #888;
}

/* --- Penataan Gaya Navigasi Menu Utama Portal --- */
.detik-main-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.detik-main-menu li a {
    font-size: 14px;
    font-weight: 700;
    color: var(--detik-dark) !important;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 5px;
    display: inline-block;
}

.detik-main-menu li a:hover, 
.detik-main-menu li.current-menu-item a {
    color: var(--detik-blue) !important;
    border-bottom: 2px solid var(--detik-blue); /* Efek garis bawah warna branding saat aktif/dilewati kursor */
}

/* Penyesuaian Baris Atas Header */
.header-top-row {
    width: 100%;
}

@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .detik-main-menu {
        justify-content: center;
        gap: 12px;
    }
}

/* ==========================================================================
   FITUR NAVIGASI MENU DROP-DOWN PORTAL (SUB-MENU ELEGAN)
   ========================================================================== */

/* Memastikan elemen induk memiliki ruang jangkar untuk sub-menu */
.detik-main-menu li {
    position: relative;
}

/* Menyembunyikan dan memosisikan Sub-Menu (Drop-Down) secara default */
.detik-main-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--detik-border);
    border-top: 3px solid var(--detik-blue); /* Garis aksen atas mengikuti warna tema */
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 180px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Memunculkan Sub-Menu secara Halus dengan Efek Mengambang saat Di-hover */
.detik-main-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mengatur Tata Letak & Jarak Teks di dalam Sub-Menu */
.detik-main-menu ul.sub-menu li {
    width: 100%;
    display: block;
}

.detik-main-menu ul.sub-menu li a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--detik-dark) !important;
    text-transform: capitalize !important; /* Huruf kapital hanya di awal kata */
    padding: 8px 16px !important;
    display: block;
    width: 100%;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Efek Sorot (Hover) Khusus Item di dalam Sub-Menu */
.detik-main-menu ul.sub-menu li a:hover {
    background-color: var(--detik-grey) !important;
    color: var(--detik-blue) !important;
}

/* Penyesuaian Responsif untuk Layar HP (Agar Menu Melebar Rapi Vertikal) */
@media (max-width: 768px) {
    .detik-main-menu ul.sub-menu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--detik-border);
        background-color: var(--detik-grey);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        padding: 5px 0;
        margin-top: 5px;
    }
    
    .detik-main-menu li:hover > ul.sub-menu {
        display: block;
    }
}

/* ==========================================================================
   ARSITEKTUR RESPONSIF GLOBAL & OPTIMASI MULTI-PERANGKAT (DETIK-CHILD)
   ========================================================================== */

/* --- 1. PONDASI DASAR KONTEN --- */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    transition: width 0.3s ease;
}

/* Memastikan gambar berita tidak keluar dari jalurnya */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. LAYOUT LAYAR BESAR (KOMPUTER & MONITOR WIDESCREEN: >= 1200px) --- */
@media (min-width: 1200px) {
    .portal-wrapper {
        display: grid;
        grid-template-columns: 2.6fr 1fr; /* Kolom berita utama luas, sidebar pas */
        gap: 35px;
    }
    .news-item img, .search-news-thumb img {
        width: 150px !important;
        height: 95px !important;
    }
    .site-logo h1 { font-size: 32px !important; }
}

/* --- 3. LAYOUT LAPTOP & TABLET HORIZONTAL (SCREEN: 992px - 1199px) --- */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 94%;
    }
    .portal-wrapper {
        display: grid;
        grid-template-columns: 2.3fr 1fr;
        gap: 25px;
    }
    .news-item img, .search-news-thumb img {
        width: 130px !important;
        height: 85px !important;
    }
    .site-logo h1 { font-size: 28px !important; }
}

/* --- 4. LAYOUT TABLET VERTIKAL & HP LEBAR (SCREEN: 768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        width: 95%;
    }
    .portal-wrapper {
        display: grid;
        grid-template-columns: 1fr; /* Sidebar otomatis turun ke bawah kolom utama */
        gap: 30px;
    }
    /* Memposisikan sidebar agar rapi di bawah berupa deretan box */
    aside {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Widget sidebar berbaris 2 kolom berdampingan */
        gap: 20px;
    }
    .news-item img, .search-news-thumb img {
        width: 140px !important;
        height: 90px !important;
    }
    .header-top-row {
        flex-direction: row !important; /* Tetap sejajar horizontal untuk ukuran ini */
    }
}

/* --- 5. LAYOUT HANDPHONE STANDAR (SCREEN: 481px - 767px) --- */
@media (max-width: 767px) {
    .container {
        width: 92%;
    }
    .portal-wrapper {
        display: block; /* Melebur menjadi satu baris lurus vertikal ke bawah */
    }
    aside {
        display: block;
        margin-top: 30px;
    }
    /* Mengubah susunan header atas menjadi bertumpuk rapi di tengah */
    .header-top-row {
        flex-direction: column !important;
        gap: 12px;
        text-align: center;
    }
    .header-search {
        width: 100%;
        justify-content: center;
    }
    .search-field {
        width: 100%; /* Kotak cari memanjang penuh di HP agar mudah disentuh */
        max-width: 320px;
    }
    /* Mengubah daftar menu utama agar mengalir ke bawah dengan rapi */
    .detik-main-menu {
        justify-content: center;
        gap: 12px 16px;
    }
    /* Menyesuaikan daftar list berita samping agar hemat ruang layar HP */
    .news-item, .search-news-item {
        gap: 12px !important;
        align-items: center;
    }
    .news-item img, .search-news-thumb img {
        width: 110px !important; /* Gambar sedikit mengecil di HP agar teks judul tidak terpotong */
        height: 75px !important;
    }
    .news-item h3, .search-news-details h3 {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

/* --- 6. LAYOUT HANDPHONE SANGAT KECIL (SCREEN: <= 480px) --- */
@media (max-width: 480px) {
    /* Mengubah headline berita utama paling atas agar teksnya berada di bawah gambar */
    .headline-container {
        display: flex;
        flex-direction: column;
    }
    .headline-title {
        font-size: 18px !important;
    }
    /* Mengubah list berita kecil menjadi mode susun vertikal penuh (Gambar di atas, teks di bawah) */
    .news-item, .search-news-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .news-item img, .search-news-thumb img {
        width: 100% !important; /* Gambar menjadi besar melebar penuh */
        height: 180px !important; /* Tinggi disesuaikan agar proporsional */
    }
    .news-item-content, .search-news-details {
        width: 100%;
    }
}

/* Memaksa link Selengkapnya berwarna hitam legam */
.detik-readmore {
    color: #111111 !important;
}
.detik-readmore:hover {
    color: #cc0000 !important;
}

/* ==========================================================================
   FITUR KUSTOM: TOMBOL MELAYANG KEMBALI KE ATAS (BACK TO TOP ARROW)
   ========================================================================== */
.detik-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--detik-blue, #005691); /* Mengikuti warna utama portal */
    color: #ffffff !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Membuat tombol berbentuk bulat sempurna */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ketika tombol aktif dimunculkan oleh JavaScript */
.detik-back-to-top.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.detik-back-to-top:hover {
    background-color: var(--detik-red, #cc0000); /* Berubah menjadi merah khas detik saat disentuh */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px); /* Efek melayang sedikit naik ke atas saat di-hover */
}

/* Penyesuaian agar posisi tombol tidak menutupi konten penting di layar HP */
@media (max-width: 767px) {
    .detik-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* ==========================================================================
   DESAIN FOOTER HITAM PEKAT PREMIUM & NAVIGASI HORIZONTAL
   ========================================================================== */
footer {
    background-color: #111111 !important; /* Mengubah latar belakang menjadi hitam pekat */
    color: #a0aec0 !important;             /* Warna teks abu-abu soft agar nyaman dibaca */
    padding: 35px 0 !important;
    text-align: center !important;
    margin-top: 40px !important;
    border-top: 3px solid var(--detik-blue, #005691) !important; /* Garis aksen atas */
}

/* Mengatur Susunan Tautan Menu Footer Sejajar Horizontal */
.detik-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-wrap: wrap; /* Otomatis melipat baris dengan rapi di HP */
}

.detik-footer-links li a {
    color: #ffffff !important; /* Teks link berwarna putih bersih agar terlihat jelas */
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detik-footer-links li a:hover {
    color: var(--detik-red, #cc0000) !important; /* Efek merah menyala saat disentuh kursor */
    text-decoration: underline;
}

.footer-copyright {
    font-size: 13px !important;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin: 0 0 4px 0 !important;
}

.footer-network {
    font-size: 11px !important;
    color: #718096 !important;
    margin: 0 !important;
}

/* Penyesuaian Responsif Menu Footer di Handphone */
@media (max-width: 576px) {
    .detik-footer-links {
        gap: 10px 14px; /* Lebih rapat di ponsel */
    }
    .detik-footer-links li a {
        font-size: 11px !important;
    }
}

/* --- Penyesuaian Gaya Jarak Tombol Media Sosial & Logo TikTok --- */
.detik-footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px !important; /* Diperlebar dari 10px menjadi 18px agar tidak terlalu rapat */
    margin-bottom: 25px;
}

.social-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;  /* Ukuran bulatan tombol sedikit diperbesar agar lebih elegan */
    height: 36px !important;
    border-radius: 50%; 
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icon svg {
    display: block;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Warna Latar Belakang Resmi Brand Media Sosial */
.social-icon.fb { background-color: #1877f2 !important; }
.social-icon.ig { background-color: #e1306c !important; }
.social-icon.tt { background-color: #010101 !important; border: 1px solid #222; } /* Warna Hitam Khas TikTok */
.social-icon.x  { background-color: #000000 !important; border: 1px solid #333; }


/* Menyelaraskan ulang jarak menu agar simetris dengan ikon sosial */
.detik-footer-links {
    margin: 0 0 15px 0 !important;
}

/* ==========================================================================
   PERBAIKAN ENGINE TICKER RUNNING TEXT (100% AMAN & BERJALAN MULUS)
   ========================================================================== */
/* ==========================================================================
   PERBAIKAN ENGINE TICKER RUNNING TEXT (100% AMAN & SANGAT MULUS)
   ========================================================================== */
.breaking-news-container {
    background-color: #ffffff;
    border-top: 1px solid var(--detik-border);
    border-bottom: 1px solid var(--detik-border);
    padding: 8px 0;
    width: 100%;
}

.breaking-news-flex {
    display: flex;
    align-items: center;
    position: relative; /* Menjadi jangkar posisi untuk teks berjalan */
    height: 24px; /* Mengunci tinggi area biar stabil */
}

.breaking-title {
    background-color: var(--detik-red);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    position: absolute;
    left: 0;
    z-index: 99; /* Memastikan label "BREAKING NEWS" tetap berada di lapisan paling atas */
}

.breaking-content {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Container Pembungkus Utama Ticker */
.ticker-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Memberikan ruang kosong di sebelah kiri agar teks tidak menabrak label merah saat meluncur */
    padding-left: 130px; 
    box-sizing: border-box;
}

/* Animasi Inti Pergerakan Teks Berjalan Khas Portal Detik */
.ticker-move {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    will-change: transform; /* Mengoptimalkan kinerja kartu grafis/GPU biar scroll super smooth */
    animation: detikTickerScroll 25s linear infinite; /* Kecepatan pas (25 detik) */
}

/* Membuat Teks Berhenti Berjalan saat Disentuh Jari (HP) atau Kursor (PC) */
.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding-right: 60px; /* Jarak renggang antar judul berita */
    font-size: 13.5px;
    font-weight: 700;
    color: var(--detik-dark) !important;
    text-decoration: none;
}

.ticker-item:hover {
    color: var(--detik-blue) !important;
}

/* Perhitungan Keyframe Gerakan Menyamping dari Kanan Murni ke Kiri Luar Halaman */
@keyframes detikTickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Penyesuaian agar teks tetap rapi saat dibuka di HP */
@media (max-width: 576px) {
    .breaking-title {
        font-size: 10px;
        padding: 3px 8px;
    }
    .ticker-wrap {
        padding-left: 110px; /* Mengurangi jarak pembatas kiri di layar HP */
    }
    .ticker-item {
        font-size: 13px;
        padding-right: 40px;
    }
}

/* ==========================================================================
   DESAIN LAYOUT FORMULIR KONTAK MINIMALIS (PAGE-CONTACT.PHP)
   ========================================================================== */
.alsen-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alsen-form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.alsen-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.alsen-form-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--detik-dark, #1a1a1a);
    text-transform: uppercase;
}

.alsen-form-group input[type="text"],
.alsen-form-group input[type="email"],
.alsen-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--detik-border, #e0e0e0);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background-color: #ffffff;
}

.alsen-form-group input:focus,
.alsen-form-group textarea:focus {
    border-color: var(--detik-blue, #005691);
    box-shadow: 0 0 0 3px rgba(0, 86, 145, 0.1);
}

/* Tombol Submit */
.alsen-send-btn {
    background-color: var(--detik-blue, #005691);
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.alsen-send-btn:hover {
    background-color: var(--detik-red, #cc0000);
}

/* Kotak Notifikasi Alert */
.alsen-alert {
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.success-alert {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #c2e7cb;
}
.danger-alert {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* Responsif Layar HP */
@media (max-width: 576px) {
    .alsen-form-row {
        flex-direction: column;
        gap: 16px;
    }
    .alsen-send-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   DESAIN HALAMAN 404 & OPTIMASI KENYAMANAN TEKS ARTIKEL DI LAYAR HP
   ========================================================================== */

/* Efek Hover untuk Tombol Kembali ke Beranda Halaman 404 */
.detik-back-home-btn:hover {
    background-color: var(--detik-red, #cc0000) !important;
}

/* --- Kerapian Jarak Teks Isi Artikel (Kenyamanan Membaca Maksimal) --- */
.news-detail-content {
    font-size: 16.5px !important;       /* Sedikit menaikkan ukuran teks agar pas di mata */
    color: #222222 !important;
    line-height: 1.8 !important;        /* Memberikan ruang antar baris tulisan agar tidak rapat */
    letter-spacing: 0.1px !important;
}

.news-detail-content p {
    margin-bottom: 24px !important;    /* Memberikan jarak kosong yang proporsional antar paragraf */
    text-align: justify;                /* Membuat tulisan rata kanan-kiri yang rapi */
}

/* Mengatur sub-judul (heading) di dalam artikel agar tegas dan memiliki jarak */
.news-detail-content h2, 
.news-detail-content h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 35px 0 15px 0 !important;
    line-height: 1.3 !important;
    color: var(--detik-dark, #1a1a1a) !important;
}

/* --- Optimasi Khusus Tampilan Layar HP / Seluler (Mobile Optimization) --- */
@media (max-width: 767px) {
    .news-detail-title {
        font-size: 24px !important;     /* Menyesuaikan judul artikel utama HP agar padat */
        line-height: 1.3 !important;
    }
    
    .news-detail-content {
        font-size: 15.5px !important;   /* Menurunkan ukuran teks sedikit di HP agar tidak meluber */
        line-height: 1.75 !important;   /* Menjaga ruang renggang baris di HP tetap lega */
    }
    
    .news-detail-content p {
        margin-bottom: 20px !important; /* Jarak paragraf disesuaikan dengan layar HP */
        text-align: left;               /* Di layar HP kecil, rata kiri lebih nyaman dibaca dibanding rata kanan-kiri */
    }
    
    .news-detail-content h2, 
    .news-detail-content h3 {
        font-size: 18px !important;     /* Ukuran sub-judul di HP diperkecil secara proporsional */
        margin: 25px 0 12px 0 !important;
    }
}

/* --- Penyesuaian Desain Halaman Pencarian & Pola Pagination --- */
.search-item-cat a {
    text-decoration: none !important;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background-color: var(--detik-grey);
    border: 1px solid var(--detik-border);
    color: var(--detik-dark);
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--detik-blue) !important;
    color: #ffffff !important;
    border-color: var(--detik-blue) !important;
}

/* Transisi Halus pada Badge Berita Utama saat Di-hover */
.detik-headline-badge {
    transition: background-color 0.2s ease;
}
.headline-container:hover .detik-headline-badge {
    background-color: var(--detik-blue) !important; /* Otomatis berubah warna aksen biru saat artikel didekati kursor */
}

/* --- Modifikasi Kotak Gulir Kebijakan Hukum (Scroll-Box) --- */
.news-detail-content::-webkit-scrollbar {
    width: 6px;
}
.news-detail-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.news-detail-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.news-detail-content::-webkit-scrollbar-thumb:hover {
    background: var(--detik-blue, #005691);
}

/* --- Penataan Posisi Gambar Logo di Samping Kata Teks ALSEN --- */
.detik-logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.alsen-custom-logo-img {
    width: 34px !important;   /* Menyesuaikan lebar logo gambar agar seimbang dengan font judul */
    height: 34px !important;  /* Menyesuaikan tinggi logo gambar */
    object-fit: contain !important;
    transition: transform 0.2s ease;
}

/* Efek opsional: Logo sedikit berputar halus saat kursor mouse mendekati area judul */
.detik-logo-link:hover .alsen-custom-logo-img {
    transform: rotate(7deg) scale(1.05);
}

@media (max-width: 768px) {
    .detik-logo-link {
        justify-content: center !important; /* Menjaga posisi logo tetap seimbang tepat di tengah layar HP */
    }
}

/* --- Pembersihan & Pengunci Kerapian Struktur Header Kustom --- */
.header-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.detik-logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.alsen-custom-logo-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
    .detik-logo-link {
        justify-content: center !important;
    }
}

/* --- Penyesuaian Tombol Share Baru Anti-Blocked --- */
.detik-share-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 8px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    background-color: var(--detik-grey) !important;
    border: 1px solid var(--detik-border) !important;
}

.share-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #666 !important;
}

.share-links {
    display: flex !important;
    gap: 4px !important;
}

.share-item {
    display: inline-block !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    text-align: center !important;
    min-width: 24px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* Warna Masing-Masing Tombol */
.share-item.wa { background-color: #25d366 !important; }
.share-item.fb { background-color: #1877f2 !important; }
.share-item.copy-btn { background-color: #010101 !important; border: 1px solid #444 !important; }

.share-item:hover {
    opacity: 0.85 !important;
}

/* Merampingkan lebar paragraf artikel agar nyaman dibaca */
.entry-content, 
.post-content, 
.single-post .entry-content p {
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.85 !important;
    font-size: 1.15rem !important;
}

/* Memastikan gambar di dalam artikel tetap proporsional */
.entry-content img {
    max-width: 100% !important;
    height: auto !important;
}
