/* --- Core Styles --- */
html, body { width: 100%; margin: 0; padding: 0; }
*, *:before, *:after { box-sizing: border-box; }

/* Gunakan ini untuk mencegah layar goyang ke samping */
body { font-family: 'Libre Franklin', sans-serif; background-color: #fff; color: #000; overflow-x: clip; }
.site-title { font-family: 'Playfair Display', serif; font-weight: 900; letter-spacing: -3px; color: #000; }
.top-bar { font-size: 11px; letter-spacing: 1px; }
header { border-bottom: 4px double #000 !important; }
footer { border-top: 1px solid #000; margin-top: 50px; padding: 40px 0; }
.row { --bs-gutter-x: 1.5rem; margin-right: 0; margin-left: 0; }

/* --- Header Ads & Logo Layout --- */
.site-logo { max-width: 600px; width: 100%; height: auto; display: block; margin: 0 auto; transition: all 0.3s; }
.header-ads { height: 100px; display: flex; align-items: center; width: 100%; } 
.header-ads a { display: block; line-height: 0; }
.ads-banner { height: 80px; width: auto; min-width: 120px; object-fit: contain; transition: all 0.2s; }
.ads-banner:hover { transform: scale(1.05); }
.justify-content-start { justify-content: flex-start !important; display: flex; }
.justify-content-end { justify-content: flex-end !important; display: flex; }

/* --- Navigation & Scroller (Mobile First) --- */
.navbar { position: -webkit-sticky; position: sticky; top: 0; z-index: 1060 !important; padding: 0; min-height: 44px; overflow: hidden; background-color: #fff !important; border-top: 4px double #000 !important; border-bottom: 1px solid #000 !important; }

/* FIX Agar Navbar Sticky tidak tertutup Admin Bar saat Login */
.admin-bar .navbar { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .navbar { top: 46px !important; } }

.nav-scroller { width: 100%; overflow: hidden; }
.nav-scroller .navbar-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding: 12px 15px; gap: 20px; }
.nav-scroller .navbar-nav::after { content: ''; padding-right: 15px; } 
.nav-scroller .navbar-nav::-webkit-scrollbar { display: none; }
.navbar-nav .menu-item a, .nav-link { padding: 0 !important; font-size: 13px; font-weight: 700; color: #000 !important; text-decoration: none; transition: all .15s; }
.navbar-nav .menu-item a:hover, .nav-link:hover { color: #666 !important; text-decoration: underline; }

/* --- Navigation Desktop Adjustment (min-width: 992px) --- */
@media (min-width: 992px) { 
    .nav-scroller { overflow: visible; display: flex; justify-content: center; } 
    .nav-scroller .navbar-nav { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 15px 0; gap: 30px; } 
    .nav-scroller .navbar-nav::after { display: none; }
}

@media (max-width: 991px) { .site-logo { max-width: 350px; } .header-ads { display: none !important; } }

/* --- Category & Post Pages --- */
.category-header h1 { font-family: 'Playfair Display', serif; letter-spacing: -1px; }
.category-post h2 a:hover { color: #555 !important; text-decoration: underline !important; }
.border-bottom-hover:hover { border-bottom: 1px solid #000; }
.badge a { color: #ffffff !important; text-decoration: none !important; }
.badge a:hover { color: #cccccc !important; }

/* --- Trending Sidebar (NYT Style) --- */
.trending-list { list-style: none; counter-reset: trending-counter; padding: 0; position: relative; z-index: 1; }
.trending-item { display: flex; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.trending-item::before { counter-increment: trending-counter; content: counter(trending-counter); font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: #e5e5e5; margin-right: 20px; line-height: 1; }
.trending-link { color: #000; text-decoration: none; font-weight: bold; font-size: 14px; line-height: 1.4; transition: 0.2s; }
.trending-link:hover { color: #666; text-decoration: underline; }

/* --- Pagination --- */
.nav-links { display: flex; justify-content: center; gap: 10px; }
.nav-links a, .nav-links .current { padding: 8px 16px; border: 1px solid #ddd; text-decoration: none; color: #000; font-weight: bold; }
.nav-links .current { background-color: #000; color: #fff; border-color: #000; }

/* --- Typography (Single Post) --- */
.entry-content p { margin-bottom: 1.8rem; color: #333; line-height: 1.8; }
.entry-content p:first-of-type::first-letter { float: left; font-size: 75px; line-height: 60px; padding: 4px 8px 0 3px; font-family: 'Playfair Display', serif; font-weight: bold; }

/* --- Post Meta Styling --- */
.post-category-link a { color: #000 !important; text-decoration: none !important; transition: color 0.2s; }
.post-category-link a:hover { color: #666 !important; text-decoration: underline !important; }
.date-meta { font-size: 11px; letter-spacing: 0.5px; }

/* --- Recommended Section Style --- */
.family-playfair { font-family: 'Playfair Display', serif; }
.recommended-card { transition: all 0.3s ease; }
.recommended-img { transition: transform 0.5s ease; }
.recommended-card:hover .recommended-img { transform: scale(1.05); }
.duration { font-size: 10px; font-weight: 700; color: #666; letter-spacing: 1px; font-family: 'Libre Franklin', sans-serif; }
.recommended-title { font-size: 15px; font-weight: 700; color: #000; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.recommended-meta { font-size: 11px; font-weight: 700; color: #666; letter-spacing: 0.5px; }
.recommended-card:hover .play-icon-wrapper { background: #000; border-color: #000; }
.recommended-card:hover .play-icon-wrapper i { color: #fff; }
.play-icon-wrapper { width: 24px; height: 24px; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; transition: all 0.2s; }
.play-icon-wrapper i { font-size: 16px; color: #000; line-height: 0; margin-left: 4px; }

/* Membuat grid 5 kolom di desktop */
@media (min-width: 992px) {
    .col-lg-2-5 { flex: 0 0 auto; width: 20%; }
}

/* Custom Scrollbar untuk Mobile agar estetik */
.custom-scrollbar::-webkit-scrollbar { height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #000; }

/* --- Static Page Styling --- */
.page-text { font-size: 18px; line-height: 1.8; color: #222; font-family: 'Libre Franklin', sans-serif; }
.page-text h2, .page-text h3 { font-family: 'Playfair Display', serif; margin-top: 2rem; font-weight: 700; }
.page-text p { margin-bottom: 1.5rem; }
.page-header h1 { letter-spacing: -1px; color: #000; }