/* ============================================
   UPROARNEWS - STYLE.CSS (PUBLIC)
   ============================================ */

:root {
    /* TEMA: BIRU + MERAH + PUTIH (tidak ada lagi hitam/maroon sebagai warna brand) */
    --maroon: #1450c9;           /* biru utama — tombol, judul, link, elemen aktif */
    --maroon-hover: #0d3a94;     /* biru gelap — hover state */
    --navy-dark: #0a1f3d;        /* biru sangat gelap — pengganti background hitam (footer, kartu gelap, dropdown) */
    --navy-dark-2: #123163;      /* biru gelap kedua — untuk gradient di atas navy-dark */
    --gray-bg: #f4f4f4;
    --paper: #ffffff;
    --line: #e2e2e2;
    --text-dark: #0a0a0a;
    --text-muted: #5c5c5c;
    --gold: #444444;
    --brand-blue: #1450c9;
    --brand-red: #e0142c;
    /* Aksen merah — dipakai untuk badge, garis, dan elemen penekanan */
    --accent-red: #e0142c;
    --accent-red-hover: #b30f22;
    --accent-red-soft: rgba(224, 20, 44, 0.35);
    --cb-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* VIEW LOGIC */
.page-view { display: none; opacity: 0; transform: translateY(15px) scale(0.995); transition: opacity 0.5s var(--cb-premium), transform 0.5s var(--cb-premium); }
.page-view.active { display: block; opacity: 1; transform: translateY(0) scale(1); }

/* ANIMATIONS */
.animate-fade-up { animation: premiumFadeUp 0.9s var(--cb-premium) both; }
@keyframes premiumFadeUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-fade-down { animation: premiumFadeDown 0.7s var(--cb-premium) both; }
@keyframes premiumFadeDown { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: premiumFadeIn 0.6s var(--cb-premium) both; }
@keyframes premiumFadeIn { 0% { opacity: 0; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }

/* HERO */
.hero-section {
    position: relative;
    background-image: linear-gradient(135deg, var(--navy-dark-2), var(--navy-dark));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0 78px 0;
    margin: 14px;
    border-radius: 14px;
    /* overflow: visible agar hamburger menu dropdown tidak terpotong */
    overflow: visible;
    /* clip-path menggantikan overflow:hidden untuk tetap menampilkan border-radius */
    clip-path: inset(0 round 14px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
/* Saat mobile, lepas clip-path agar dropdown tidak kepotong */
@media (max-width: 768px) {
    .hero-section {
        clip-path: none;
        /* overflow: hidden dihapus — ini yang bikin navbar dropdown terpotong di Android/iOS */
        overflow: visible;
    }
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,31,61,0.56), rgba(18,49,99,0.78));
    z-index: 1;
}

/* AD SLOT: placeholder banner di bawah hero */
.ad-slot {
    max-width: 1200px;
    margin: 18px auto 0;
    padding: 0 20px;
}
.ad-slot-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.ad-slot-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}
.ad-slot-placeholder {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--line, #ddd);
    border-radius: 10px;
    background: #fafafa;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
}
@media (max-width: 600px) {
    .ad-slot-placeholder { min-height: 60px; }
}
.hero-container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.14); flex-wrap: nowrap; gap: 8px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: white; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.nav-links { display: flex; list-style: none; gap: 24px; }
.nav-item { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; font-weight: 500; position: relative; transition: color 0.3s ease; cursor: pointer; }
.nav-item::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: white; transition: width 0.4s var(--cb-premium); }
.nav-item:hover::after, .nav-item.active::after { width: 100%; }
.nav-item:hover, .nav-item.active { color: #ffffff; }

.nav-search-wrap { display: flex; align-items: center; }

/* Nav search icon button */
.nav-search-icon-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nav-search-icon-btn:hover { background: rgba(255,255,255,0.28); }

/* Navbar Search Dropdown */
.nav-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search-box {
    display: block !important;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 300px;
    background: var(--navy-dark);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
.nav-search-box.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.nav-search-box input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    outline: none;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    padding: 11px 36px 11px 14px;
}
.nav-search-box input::placeholder { color: rgba(255,255,255,0.38); }
.nav-search-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    transition: color 0.15s;
}
.nav-search-close-btn:hover { color: #fff; }
.nav-search-dropdown {
    display: none;
    max-height: 340px;
    overflow-y: auto;
}
.nav-search-dropdown.show { display: block; }
.nav-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.15s;
}
.nav-search-result-item:last-child { border-bottom: none; }
.nav-search-result-item:hover { background: rgba(255,255,255,0.07); }
.nav-search-result-thumb {
    width: 48px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--navy-dark-2);
}
.nav-search-result-thumb-placeholder {
    width: 48px;
    height: 38px;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--navy-dark-2);
}
.nav-search-result-info { flex: 1; min-width: 0; }
.nav-search-result-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-search-result-cat {
    font-size: 10px;
    color: var(--maroon);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}
.nav-search-msg {
    padding: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    text-align: center;
}

.hero-content { text-align: center; margin-top: 64px; }
.hero-content h1 { font-size: 2.7rem; font-weight: 800; line-height: 1.18; margin-bottom: 18px; letter-spacing: 0; }
.subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 12px; font-weight: 300; }
.hashtag { font-size: 0.8rem; opacity: 0.4; font-weight: 700; letter-spacing: 0.5px; }

/* FILTER BAR */
.category-filter-bar { max-width: 1200px; margin: 22px auto 0; padding: 0 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.cat-btn { background: white; border: 1px solid var(--line); color: #555; padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.cat-btn:hover, .cat-btn.active { background: var(--maroon); border-color: var(--maroon); color: white; }

/* FEATURED CARD */
.home-featured-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 42px; margin-top: 20px; cursor: pointer; background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px; box-shadow:0 14px 40px rgba(21,21,21,.06); }
.featured-left-img { overflow: hidden; border-radius: 8px; background: #e0e0e0; min-height: 315px; }
.featured-left-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--cb-premium), opacity 0.4s ease; }
.home-featured-card:hover .featured-left-img img { transform: scale(1.04); opacity: 0.9; }

.meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.date-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.badge-category { background-color: var(--maroon); color: white; font-size: 0.7rem; padding: 3px 12px; border-radius: 20px; font-weight: 700; text-transform: uppercase; }
.main-title { font-size: 1.9rem; color: var(--maroon); font-weight: 800; line-height: 1.28; margin-bottom: 15px; transition: color 0.3s ease; letter-spacing:0; }
.home-featured-card:hover .main-title { color: var(--maroon-hover); }
.summary-text { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 25px; }

.author-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
.author-profile { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: url('/images/author-profile.svg') center/cover no-repeat;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.18);
} /* FEATURE: Foto profil penulis konsisten seperti referensi. */
.author-meta .name { display: block; font-weight: 700; font-size: 0.88rem; color: var(--maroon); font-style: italic; }
.author-meta .role { font-size: 0.75rem; color: var(--text-muted); }

/* BUTTONS */
.btn-read-more, .btn-see-all-maroon, .btn-see-all-rect, .btn-discover-more, .btn-submit-comment {
    background-color: var(--maroon); color: white; border: none; padding: 10px 24px; border-radius: 7px; font-size: 0.78rem; font-weight: 800; cursor: pointer;
    transition: transform 0.3s var(--cb-premium), background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-read-more:hover, .btn-see-all-maroon:hover, .btn-see-all-rect:hover, .btn-discover-more:hover, .btn-submit-comment:hover {
    background-color: var(--maroon-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* LATEST STRIP */
.latest-strip-section {
    margin-top: 34px;
}
.latest-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--maroon) #ece7e2;
    scroll-behavior: smooth;
}
.latest-strip::-webkit-scrollbar { height: 10px; }
.latest-strip::-webkit-scrollbar-track { background: #ece7e2; border-radius: 999px; }
.latest-strip::-webkit-scrollbar-thumb { background: var(--maroon); border-radius: 999px; }
.latest-strip-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .35s var(--cb-premium), box-shadow .35s var(--cb-premium);
    animation: stripRise .55s var(--cb-premium) both;
    display: flex;
    flex-direction: column;
}
@keyframes stripRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.latest-strip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.11);
}
.latest-strip-img {
    height: 172px;
    overflow: hidden;
    background: #e9e4df;
    position: relative;
    flex-shrink: 0;
}
.latest-strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--cb-premium), opacity .4s ease;
}
.latest-strip-card:hover .latest-strip-img img { transform: scale(1.05); opacity: .88; }
.latest-strip-img .badge-overlay {
    position: absolute;
    bottom: 10px; left: 12px;
    background: var(--maroon);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}
.latest-strip-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.latest-strip-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: .74rem;
    color: var(--text-muted);
}
.latest-strip-meta .red-bar { flex-shrink: 0; }

.latest-strip-body h3 {
    color: #1a1a1a;
    font-size: .97rem;
    line-height: 1.48;
    margin-bottom: 8px;
    font-weight: 700;
    transition: color .25s ease;
}
.latest-strip-card:hover .latest-strip-body h3 { color: var(--maroon); }
.latest-strip-body p {
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SECTION TITLE */
.section-title { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); position: relative; padding-left: 14px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--maroon); border-radius: 2px; }
.page-title { font-size: 2rem; font-weight: 800; color: var(--maroon); margin-bottom: 10px; }
.grid-header-btn { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.grid-header-with-tools { gap: 18px; align-items: flex-end; }

.slider-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.slider-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--maroon);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .22s var(--cb-premium), background-color .22s ease, opacity .22s ease;
}
.slider-arrow:hover { background: #f9efef; transform: translateY(-1px); }
.slider-arrow:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.news-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.news-tools input, .news-tools select {
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    color: #222;
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-size: 0.86rem;
}
.news-tools input { width: 220px; }
.news-tools select { min-width: 130px; }
.btn-tool {
    height: 38px;
    border: 1px solid var(--maroon);
    background: var(--maroon);
    color: #fff;
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s var(--cb-premium), background-color 0.25s ease;
}
.btn-tool:hover { transform: translateY(-1px); background: var(--maroon-hover); }
.btn-tool.ghost { background: #fff; color: var(--maroon); }
.btn-tool.ghost:hover { background: #f7eeee; }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* === GRID CARD — PROFESSIONAL NEWS STYLE === */
.grid-card {
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--line);
    transition: transform 0.35s var(--cb-premium), box-shadow 0.35s var(--cb-premium);
    animation: cardRise 0.55s var(--cb-premium) both;
    position: relative;
}
@keyframes cardRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.grid-card:nth-child(2n) { animation-delay: .06s; }
.grid-card:nth-child(3n) { animation-delay: .12s; }
.grid-card:nth-child(4n) { animation-delay: .18s; }
.grid-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.11); }

.grid-img-wrapper {
    overflow: hidden;
    height: 200px;
    background: #e8e8e8;
    position: relative;
    flex-shrink: 0;
}
.grid-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.7s var(--cb-premium), opacity 0.4s ease;
}
.grid-card:hover .grid-img-wrapper img,
.rec-card:hover .grid-img-wrapper img { transform: scale(1.05); opacity: 0.88; }

.badge-overlay {
    position: absolute;
    bottom: 10px; left: 12px;
    background: var(--maroon);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}

.grid-body {
    padding: 16px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.grid-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.grid-date { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }
.red-bar { width: 22px; height: 2.5px; background: var(--maroon); border-radius: 2px; flex-shrink: 0; }
.grid-card h3 {
    font-size: 0.97rem; font-weight: 700; color: #1a1a1a; line-height: 1.48;
    margin-bottom: 0; flex: 1; transition: color 0.25s ease;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.grid-card:hover h3 { color: var(--maroon); }
.grid-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f2f2f2; padding-top: 11px; margin-top: 14px;
}
.mini-author { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 600; color: #555; }
.avatar-xs {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: url('/images/author-profile.svg') center/cover no-repeat;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #fff;
} /* FEATURE: Avatar kecil penulis/komentar memakai foto profil yang sama. */
.red-line-indicator { width: 30px; height: 3px; background-color: var(--maroon); transition: width 0.4s var(--cb-premium); }
.grid-card:hover .red-line-indicator { width: 55px; }

/* PAGINATION */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { background: white; border: 2px solid #ddd; color: #555; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.page-btn.active, .page-btn:hover { background: var(--maroon); border-color: var(--maroon); color: white; }

/* LOADING & EMPTY */
.loading-state { display: flex; flex-direction: column; align-items: center; padding: 60px 0; gap: 16px; color: var(--text-muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #eee; border-top-color: var(--maroon); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 1rem; }

/* DETAIL VIEW */
.detail-navbar { background: #ffffff; border-bottom: 2px solid var(--maroon); padding: 18px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.detail-nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.detail-hamburger { display: none; }
.logo.colored { color: var(--maroon); }
.nav-links.colored .nav-item { color: #444; }
.nav-links.colored .nav-item::after { background: var(--maroon); }

.detail-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 45px; }
.detail-content-area{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;box-shadow:0 8px 28px rgba(0,0,0,.045);}
.detail-banner-wrapper { overflow: hidden; border-radius: 8px; margin-bottom: 25px; background: #eee; }
.detail-banner-wrapper img { width: 100%; height: auto; display: block; max-height: 450px; object-fit: cover; }
.meta-row.style-detail { margin-bottom: 10px; }
.author-profile.style-detail { margin-bottom: 20px; }
.author-profile.style-detail .avatar-circle { width: 36px; height: 36px; }
.author-profile.style-detail .author-meta .name { font-size: 0.86rem; }
.author-profile.style-detail .author-meta .role { display: block; margin-top: 1px; font-size: 0.72rem; font-style: italic; color: var(--maroon); opacity: .72; }
.detail-title { font-size: 2.1rem; color: var(--maroon); font-weight: 800; margin-bottom: 25px; line-height: 1.25; }
.detail-article-body { font-size: 1.05rem; color:#222; line-height:1.82; }
.detail-article-body p { margin-bottom: 22px; text-align: justify; }
.detail-article-body h2,.detail-article-body h3{color:var(--maroon);line-height:1.35;margin:26px 0 14px;}
.detail-article-body ul,.detail-article-body ol{margin:0 0 22px 24px;}
.detail-article-body blockquote{border-left:4px solid var(--maroon);padding:12px 16px;margin:20px 0;background:#faf5f5;color:#333;}

/* ABOUT PAGE */
.about-page { max-width: 1120px; }
.about-hero {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 8px 28px rgba(0,0,0,.045);
    margin-bottom: 28px;
}
.about-kicker {
    color: var(--maroon);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.about-hero h1 {
    color: var(--maroon);
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 800;
}
.about-hero p,
.about-block p,
.about-card p,
.about-contact p {
    color: #333;
    line-height: 1.75;
}
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 28px;
}
.about-block {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 8px 28px rgba(0,0,0,.035);
}
.about-block:first-child { grid-row: span 2; }
.about-block h2,
.about-contact h2 {
    color: var(--maroon);
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
}
.about-block ul {
    margin-left: 18px;
    color: #333;
    line-height: 1.75;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
.about-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,.035);
}
.about-card h3 {
    color: var(--maroon);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.35;
}
.about-contact {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 24px;
    align-items: center;
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    border-top: 4px solid var(--accent-red); /* garis merah, bukan background/font */
}
.about-contact h2,
.about-contact .about-kicker,
.about-contact p { color: #ffffff; }
.about-contact p { opacity: .82; }
.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.about-contact-list span {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .88rem;
}

/* COMMENTS */
.comments-box { background-color: #ffffff; padding: 26px; border-radius: 10px; margin-bottom: 35px; border: 1px solid var(--line); box-shadow:0 8px 28px rgba(0,0,0,.045); }
.comments-box h3 { font-size: 1.1rem; border-bottom: 2px solid var(--text-dark); padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; font-weight: 800; }
.no-comment-text { font-size: 0.9rem; color: var(--text-muted); font-style: italic; text-align: center; padding: 20px 0; }
.comment-item {
    background: white; padding: 15px; border-radius: 8px; margin-bottom: 15px; border-left: 4px solid var(--maroon);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    animation: slideCommentIn 0.5s var(--cb-premium) both;
}
@keyframes slideCommentIn { 0% { opacity: 0; transform: translateX(-15px); } 100% { opacity: 1; transform: translateX(0); } }
.comment-msg { font-size: 0.92rem; font-weight: 500; margin-bottom: 10px; color: #222; }
.comment-user { display: flex; align-items: center; gap: 10px; }
.c-name { font-size: 0.82rem; font-weight: 700; color: var(--maroon); }
.c-email { font-size: 0.72rem; color: var(--text-muted); }
.comment-form-container { margin-top: 30px; padding-top: 25px; border-top: 1px dashed #ddd; }
.comment-form-container h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 15px; color: #333; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.comment-form-container input, .comment-form-container textarea {
    width: 100%; border: 1px solid #ddd; padding: 12px 16px; border-radius: 8px; font-family: inherit; font-size: 0.88rem; outline: none;
    transition: border-color 0.3s ease;
}
.comment-form-container input:focus, .comment-form-container textarea:focus { border-color: var(--maroon); }
.btn-submit-comment { width: 100%; border-radius: 8px; margin-top: 8px; }

/* SIDEBAR RECOMMENDATION */
.sidebar-recommendation { margin-top: 15px; }
.btn-discover-more { border-radius: 4px; margin-bottom: 20px; width: 100%; text-align: center; padding: 10px; display: block; }
.news-tools + .btn-tool.ghost { white-space: nowrap; }
/* rec-card: pakai style grid-card, layout vertikal */
.rec-card .grid-img-wrapper { height: 180px; }
#related-articles { display: flex; flex-direction: column; gap: 16px; }

/* FOOTER */
.footer { background-color: var(--navy-dark); color: #ffffff; padding: 60px 0 30px 0; margin-top: 60px; border-top: 4px solid var(--accent-red); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; border-bottom: 1px solid #222; }
.footer-brand h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { color: #ccc; font-size: 0.9rem; line-height: 1.5; }
.footer-brand small { color: #777; font-size: 0.78rem; display: block; margin-top: 8px; }
.footer-links h4, .footer-contact h4 { font-size: 1rem; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; position: relative; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 25px; height: 2px; background-color: var(--maroon); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links ul li a { color: #aaa; text-decoration: none; font-size: 0.88rem; transition: color 0.3s ease, padding-left 0.3s; display: inline-block; cursor: pointer; }
.footer-links ul li a:hover { color: #fff; padding-left: 6px; }
.footer-contact p { color: #aaa; font-size: 0.88rem; margin-bottom: 10px; }
.footer-contact .email-text { color: #fff; font-weight: 600; margin-top: 15px; border-left: 2px solid var(--maroon); padding-left: 8px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 25px 20px 0; text-align: center; color: #555; font-size: 0.8rem; }
.footer-bottom a { color: var(--maroon); text-decoration: none; }

/* HAMBURGER BUTTON */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.28); }
.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .home-featured-card, .detail-layout, .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-left-img { min-height: 220px; }
    .latest-strip-card { min-width: 250px; max-width: 250px; }
    .about-section, .about-contact { grid-template-columns: 1fr; }
    .about-block:first-child { grid-row: auto; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-header-with-tools { align-items: flex-start; flex-direction: column; }
    .slider-actions, .news-tools { justify-content: flex-start; width: 100%; }
    .news-tools input { width: min(100%, 260px); }
}
@media (max-width: 768px) {
    .hamburger-btn { display: flex; }
    /* Hero navbar mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 12px;
        left: auto;
        width: 180px;
        background: rgba(18,0,0,0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 2px;
        padding: 8px 8px;
        border-radius: 14px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
        z-index: 500;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links .nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        font-size: 0.88rem;
        font-weight: 600;
        border-bottom: none;
        border-radius: 8px;
        color: rgba(255,255,255,0.75) !important;
        transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
        letter-spacing: 0.01em;
        /* Touch: pastikan area klik cukup besar dan event tidak hilang */
        min-height: 48px;
        -webkit-tap-highlight-color: rgba(255,255,255,0.1);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        position: relative;
        z-index: 1;
    }
    .nav-links .nav-item::before {
        content: '';
        display: inline-block;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        flex-shrink: 0;
        transition: background 0.18s ease, transform 0.18s ease;
    }
    .nav-links .nav-item:hover,
    .nav-links .nav-item.active {
        background: rgba(0,0,0,0.55);
        color: #fff !important;
        transform: translateX(4px);
    }
    .nav-links .nav-item:hover::before,
    .nav-links .nav-item.active::before {
        background: #ff6b6b;
        transform: scale(1.4);
    }
    .nav-links .nav-item.active {
        background: rgba(0,0,0,0.7);
        color: #fff !important;
    }
    .nav-links .nav-item::after { display: none; }
    .navbar { position: relative; }

    /* Detail navbar mobile */
    .detail-hamburger { display: flex; }
    .detail-nav-container { position: relative; }
    .detail-nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 12px;
        left: auto;
        width: 180px;
        background: #fff;
        flex-direction: column;
        gap: 2px;
        padding: 8px 8px;
        border-radius: 14px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
        z-index: 500;
    }
    .detail-nav-links.mobile-open { display: flex; }
    .detail-nav-links li { width: 100%; }
    .detail-nav-links .nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        font-size: 0.88rem;
        font-weight: 600;
        color: #444 !important;
        border-bottom: none;
        border-radius: 8px;
        transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    }
    .detail-nav-links .nav-item::before {
        content: '';
        display: inline-block;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: #ddd;
        flex-shrink: 0;
        transition: background 0.18s ease, transform 0.18s ease;
    }
    .detail-nav-links .nav-item::after { display: none; }
    .detail-nav-links .nav-item:hover { background: #fdf3f3; color: var(--maroon) !important; transform: translateX(4px); }
    .detail-nav-links .nav-item:hover::before { background: var(--maroon); transform: scale(1.4); }

    .nav-search-box {
        right: auto;
        left: 0;
        width: min(300px, calc(100vw - 40px));
    }
}
@media (max-width: 600px) {
    .main-container { padding: 30px 16px; }
    .hero-section { margin: 0; border-radius: 0; padding-bottom: 58px; }
    .article-grid { grid-template-columns: 1fr; }
    .latest-strip-card { min-width: 84vw; max-width: 84vw; }
    .hero-content h1 { font-size: 1.8rem; }
    .home-featured-card { padding: 12px; gap: 20px; }
    .author-row { align-items:flex-start; flex-direction:column; gap:14px; }
    .detail-title { font-size: 1.5rem; }
    .detail-content-area, .comments-box { padding: 18px; }
    .form-group-row { grid-template-columns: 1fr; }
    .about-hero, .about-block, .about-card, .about-contact { padding: 20px; }
    .about-hero h1 { font-size: 1.55rem; }
    .about-grid { grid-template-columns: 1fr; }
    .slider-actions, .news-tools { gap: 6px; }
    .news-tools input, .news-tools select, .btn-tool { width: 100%; }
    .btn-tool { justify-content: center; }
    .nav-search-box { left: 0; right: 0; width: calc(100vw - 28px); }
}

/* =============================================
   CUSTOM SELECT DROPDOWN - PROFESSIONAL
   ============================================= */
.custom-select-wrap {
    position: relative;
    display: inline-block;
    min-width: 130px;
    user-select: none;
    z-index: 100;
}

.custom-select-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    width: 100%;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.86rem;
    color: #222;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.18s ease;
    white-space: nowrap;
    outline: none;
}

.custom-select-btn:hover {
    border-color: var(--maroon);
    background: #fdf8f8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.custom-select-wrap.open .custom-select-btn {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.10);
    background: #fff;
}

.custom-select-icon {
    color: var(--maroon);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.custom-select-label {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    color: #888;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.custom-select-wrap.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--maroon);
}

/* Dropdown menu */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    list-style: none;
    margin: 0;
    padding: 5px;
    overflow: hidden;
    /* Animation */
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1),
                transform 0.22s cubic-bezier(0.16,1,0.3,1);
}

.custom-select-wrap.open .custom-select-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}

.custom-select-option:hover {
    background: #fdf0f0;
    color: var(--maroon);
}

.custom-select-option.active {
    background: #fdf0f0;
    color: var(--maroon);
    font-weight: 700;
}

.option-check {
    color: var(--maroon);
    font-size: 0.8rem;
    width: 14px;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.custom-select-option.active .option-check {
    opacity: 1;
}

/* Mobile */
@media (max-width: 600px) {
    .custom-select-wrap { width: 100%; }
    .news-tools .custom-select-wrap { min-width: unset; }
}

/* Detail navbar search icon - dark theme override */
.detail-navbar .nav-search-icon-btn {
    background: rgba(0,0,0,0.08);
    color: var(--maroon);
}
.detail-navbar .nav-search-icon-btn:hover { background: rgba(0,0,0,0.15); }
.detail-navbar .nav-search-box {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.detail-navbar .nav-search-box input {
    color: #111;
    border-bottom: 1px solid var(--line);
}
.detail-navbar .nav-search-box input::placeholder { color: #aaa; }
.detail-navbar .nav-search-close-btn { color: #aaa; }
.detail-navbar .nav-search-close-btn:hover { color: #333; }
.detail-navbar .nav-search-dropdown { background: #fff; }
.detail-navbar .nav-search-result-item { color: #111; border-bottom-color: #f0f0f0; }
.detail-navbar .nav-search-result-item:hover { background: #f7f7f7; }
.detail-navbar .nav-search-result-title { color: #111; }
.detail-navbar .nav-search-msg { color: #aaa; }

/* Detail navbar hamburger - maroon theme */
.detail-hamburger span { background: var(--maroon); }
.detail-hamburger { background: rgba(0,0,0,0.08); }
.detail-hamburger:hover { background: rgba(0,0,0,0.15); }

/* HOT NEWS title */
.hot-news-title { color: var(--maroon) !important; }
.hot-news-title::before { background: var(--maroon); }

/* Featured card mirror — foto di kanan */
.home-featured-card-mirror {
    grid-template-columns: 1.1fr 1fr;
    margin-top: 0;
}
@media (max-width: 768px) {
    .home-featured-card-mirror { grid-template-columns: 1fr; }
    .home-featured-card-mirror .featured-left-img { order: -1; }
}
/* =============================================
   ENHANCED ANIMATIONS & SMOOTH UI UPGRADE
   ============================================= */

/* === HERO: flat brand-color background, no photo === */
.hero-section {
    background-image: linear-gradient(135deg, var(--navy-dark-2), var(--navy-dark)) !important;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
}

/* === Hero content: stagger animasi lebih smooth === */
.hero-content {
    animation: heroContentReveal 1s cubic-bezier(0.16,1,0.3,1) both 0.1s;
}
@keyframes heroContentReveal {
    0%  { opacity: 0; transform: translateY(36px) scale(0.97); filter: blur(4px); }
    60% { filter: blur(0); }
    100%{ opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero-content h1 {
    animation: heroH1Slide 1.1s cubic-bezier(0.16,1,0.3,1) both 0.18s;
}
@keyframes heroH1Slide {
    0%  { opacity:0; transform: translateY(28px); }
    100%{ opacity:1; transform: translateY(0); }
}
.hero-content .subtitle {
    animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.38s;
}
.hero-content .hashtag {
    animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both 0.52s;
}
@keyframes heroFadeUp {
    0%  { opacity:0; transform: translateY(18px); }
    100%{ opacity:1; transform: translateY(0); }
}

/* === Navbar logo: bounce masuk === */
.logo {
    animation: logoBounceIn 0.8s cubic-bezier(0.34,1.56,0.64,1) both 0.05s;
}
@keyframes logoBounceIn {
    0%  { opacity:0; transform: scale(0.8) translateX(-10px); }
    100%{ opacity:1; transform: scale(1) translateX(0); }
}

/* === Nav links: stagger slide down === */
.nav-links li { animation: navItemDrop 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.16s; }
.nav-links li:nth-child(3) { animation-delay: 0.22s; }
.nav-links li:nth-child(4) { animation-delay: 0.28s; }
.nav-links li:nth-child(5) { animation-delay: 0.34s; }
@keyframes navItemDrop {
    0%  { opacity:0; transform: translateY(-14px); }
    100%{ opacity:1; transform: translateY(0); }
}

/* === Page view transitions: lebih cinematic === */
.page-view {
    transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1),
                transform 0.45s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}
.page-view.active { display: block; opacity: 1; transform: translateY(0) scale(1); }

/* === Category filter bar: slide in dari bawah === */
.category-filter-bar {
    animation: filterBarReveal 0.7s cubic-bezier(0.16,1,0.3,1) both 0.3s;
}
@keyframes filterBarReveal {
    0%  { opacity:0; transform: translateY(20px); }
    100%{ opacity:1; transform: translateY(0); }
}

/* === Cat button: efek ripple saat klik === */
.cat-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16,1,0.3,1);
    transform: translateY(0);
}
.cat-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.cat-btn:active { transform: scale(0.96) translateY(0); }
.cat-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.cat-btn:active::after { opacity: 1; transform: scale(2.5); transition: none; }

/* === Featured card: shimmer loading skeleton === */
@keyframes shimmer {
    0%   { background-position: -700px 0; }
    100% { background-position: 700px 0; }
}
.loading-state {
    background: linear-gradient(90deg, #f0ece8 25%, #e8e2dc 50%, #f0ece8 75%);
    background-size: 700px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 10px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: transparent;
}
.loading-state .spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--maroon); }
.loading-state p { color: var(--text-muted); background: transparent; }

/* === Featured card: entrance lebih premium === */
.home-featured-card {
    animation: featuredReveal 0.75s cubic-bezier(0.16,1,0.3,1) both;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes featuredReveal {
    0%  { opacity:0; transform: translateY(28px) scale(0.98); }
    100%{ opacity:1; transform: translateY(0) scale(1); }
}
.home-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(21,21,21,0.12) !important;
}
.home-featured-card-mirror { animation-delay: 0.12s; }

/* === Grid cards: stagger entrance yang lebih smooth === */
@keyframes cardRise {
    0%  { opacity:0; transform: translateY(24px) scale(0.97); }
    100%{ opacity:1; transform: translateY(0) scale(1); }
}
.grid-card:nth-child(1)  { animation-delay: 0.00s; }
.grid-card:nth-child(2)  { animation-delay: 0.07s; }
.grid-card:nth-child(3)  { animation-delay: 0.14s; }
.grid-card:nth-child(4)  { animation-delay: 0.07s; }
.grid-card:nth-child(5)  { animation-delay: 0.14s; }
.grid-card:nth-child(6)  { animation-delay: 0.21s; }
.grid-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 48px rgba(0,0,0,0.13) !important;
}

/* === Latest strip cards: stagger & hover lebih enak === */
.latest-strip-card:nth-child(1) { animation-delay: 0.02s; }
.latest-strip-card:nth-child(2) { animation-delay: 0.09s; }
.latest-strip-card:nth-child(3) { animation-delay: 0.16s; }
.latest-strip-card:nth-child(4) { animation-delay: 0.23s; }
.latest-strip-card:nth-child(5) { animation-delay: 0.30s; }
.latest-strip-card:nth-child(6) { animation-delay: 0.37s; }
.latest-strip-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 20px 44px rgba(0,0,0,0.13) !important;
}

/* === Slider arrow: spring hover === */
.slider-arrow {
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                background-color 0.2s ease,
                box-shadow 0.2s ease;
}
.slider-arrow:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.slider-arrow:active:not(:disabled) { transform: scale(0.94); }

/* === Buttons: spring bounce === */
.btn-read-more, .btn-see-all-maroon, .btn-see-all-rect, .btn-discover-more, .btn-submit-comment, .btn-tool {
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                background-color 0.22s ease,
                box-shadow 0.22s ease !important;
}
.btn-read-more:hover, .btn-see-all-maroon:hover, .btn-discover-more:hover, .btn-submit-comment:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28) !important;
}
.btn-tool:hover { transform: translateY(-2px) scale(1.02); }
.btn-read-more:active, .btn-tool:active { transform: scale(0.96); }

/* === Cat-btn active: pulse animation === */
.cat-btn.active {
    animation: catBtnPulse 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes catBtnPulse {
    0%  { transform: scale(0.93); }
    60% { transform: scale(1.06); }
    100%{ transform: scale(1); }
}

/* === Section titles: slide in dari kiri === */
.section-title {
    animation: sectionTitleReveal 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes sectionTitleReveal {
    0%  { opacity:0; transform: translateX(-18px); }
    100%{ opacity:1; transform: translateX(0); }
}

/* === Spinner: upgrade spin === */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--maroon);
    border-radius: 50%;
    animation: spinSmooth 0.75s cubic-bezier(0.4,0,0.6,1) infinite;
    flex-shrink: 0;
}
@keyframes spinSmooth {
    to { transform: rotate(360deg); }
}

/* === Footer links: slide arrow on hover === */
.footer-links ul li a {
    transition: color 0.25s ease, padding-left 0.3s cubic-bezier(0.16,1,0.3,1), letter-spacing 0.25s ease;
}
.footer-links ul li a:hover { letter-spacing: 0.01em; }

/* === Comment items: slide in lebih cepat === */
@keyframes slideCommentIn {
    0%  { opacity:0; transform: translateX(-18px) scale(0.98); }
    100%{ opacity:1; transform: translateX(0) scale(1); }
}

/* === Image lazy load fade in === */
img {
    transition: opacity 0.4s ease;
}
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded, img.lazy-loaded { opacity: 1; }

/* === Scroll progress indicator === */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon), #e84040, var(--maroon));
    background-size: 200% 100%;
    animation: progressGlow 2s linear infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}
@keyframes progressGlow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* === Detail page: banner zoom smooth === */
.detail-banner-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.detail-banner-wrapper img {
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.detail-banner-wrapper:hover img { transform: scale(1.02); }

/* === Badge overlay: pulse saat card hover === */
.latest-strip-card:hover .badge-overlay,
.grid-card:hover .badge-overlay {
    animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badgePop {
    0%  { transform: scale(1); }
    50% { transform: scale(1.1); }
    100%{ transform: scale(1); }
}

/* === Pagination: button hover === */
.page-btn {
    transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.page-btn:hover { transform: translateY(-2px) scale(1.08); }
.page-btn:active { transform: scale(0.93); }

/* === About cards: fade up dengan stagger === */
.about-card {
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.35s ease;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09) !important;
}

/* === Hamburger: smooth open animation === */
.hamburger-btn span {
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
                opacity 0.25s ease,
                background-color 0.2s ease;
}

/* === Mobile nav open: slide down === */
.nav-links.mobile-open {
    animation: mobileNavOpen 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes mobileNavOpen {
    0%  { opacity:0; transform: translateY(-10px) scale(0.97); }
    100%{ opacity:1; transform: translateY(0) scale(1); }
}

/* Staggered item entrance */
.nav-links.mobile-open li {
    animation: navItemSlide 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.nav-links.mobile-open li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.mobile-open li:nth-child(2) { animation-delay: 0.1s; }
.nav-links.mobile-open li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.mobile-open li:nth-child(4) { animation-delay: 0.2s; }
.nav-links.mobile-open li:nth-child(5) { animation-delay: 0.25s; }
@keyframes navItemSlide {
    0%  { opacity:0; transform: translateX(-10px); }
    100%{ opacity:1; transform: translateX(0); }
}

/* === Smooth scroll utk seluruh halaman === */
html { scroll-behavior: smooth; }

/* === will-change optimization utk elemen animasi aktif === */
.hero-section,
.grid-card,
.latest-strip-card,
.home-featured-card {
    will-change: transform;
}
/* Hapus will-change setelah idle agar tidak makan memory === */
.grid-card:not(:hover),
.latest-strip-card:not(:hover),
.home-featured-card:not(:hover) {
    will-change: auto;
}

/* =============================================
   MOBILE-FIRST PREMIUM REDESIGN
   iOS & Android native app feel
   ============================================= */

/* Safe area support untuk iPhone notch/dynamic island */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --mobile-radius: 16px;
    --mobile-card-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

@media (max-width: 600px) {

    /* === BASE === */
    html { -webkit-text-size-adjust: 100%; }
    body { background: #f2f2f7; /* iOS system gray */ }

    /* === SCROLL PROGRESS === */
    #scroll-progress { height: 2.5px; }

    /* === MAIN CONTAINER === */
    .main-container {
        padding: 16px 0 100px 0; /* bottom padding utk safe area */
        padding-bottom: calc(100px + var(--safe-bottom));
    }

    /* ========================
       HERO SECTION - NATIVE APP STYLE
       ======================== */
    .hero-section {
        margin: 0 !important;
        border-radius: 0 0 28px 28px !important;
        padding: calc(16px + var(--safe-top)) 0 44px 0 !important;
        background-attachment: scroll !important;
        min-height: 200px;
    }
    .hero-container { padding: 0 18px; }
    .hero-content { margin-top: 28px; text-align: left; }
    .hero-content h1 {
        font-size: 1.55rem !important;
        line-height: 1.22;
        margin-bottom: 10px;
        letter-spacing: -0.3px;
    }
    .subtitle { font-size: 0.82rem !important; margin-bottom: 8px; }
    .hashtag { font-size: 0.72rem !important; opacity: 0.5; }

    /* === NAVBAR MOBILE === */
    .navbar {
        padding-bottom: 14px;
        gap: 0;
    }
    .logo { font-size: 1.25rem; }

    /* ========================
       CATEGORY FILTER BAR - PILL SCROLL
       ======================== */
    .category-filter-bar {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px !important;
        padding: 14px 16px 10px !important;
        margin: 0 !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        will-change: scroll-position;
        /* iOS portrait fix: force GPU compositing layer */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .category-filter-bar::-webkit-scrollbar { display: none; }
    .cat-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 7px 16px !important;
        font-size: 0.78rem !important;
        border-radius: 999px !important;
        white-space: nowrap;
        height: 34px;
        display: flex;
        align-items: center;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    }
    .cat-btn.active {
        box-shadow: 0 3px 10px rgba(0,0,0,0.28) !important;
    }

    /* ========================
       FEATURED CARD - MOBILE CARD STYLE
       ======================== */
    #featured-section { padding: 0 16px; margin-top: 16px; }
    .home-featured-card {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: var(--mobile-radius) !important;
        overflow: hidden;
        border: none !important;
        box-shadow: var(--mobile-card-shadow) !important;
        margin-top: 0 !important;
    }
    .featured-left-img {
        min-height: 200px !important;
        max-height: 200px;
        border-radius: 0 !important;
    }
    .featured-right-content {
        padding: 16px 18px 20px;
        background: #fff;
    }
    .meta-row { margin-bottom: 10px; }
    .main-title {
        font-size: 1.2rem !important;
        line-height: 1.35;
        margin-bottom: 10px;
    }
    .summary-text {
        font-size: 0.86rem !important;
        line-height: 1.55;
        margin-bottom: 16px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .author-row {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
    }
    .btn-read-more {
        font-size: 0.74rem !important;
        padding: 8px 16px !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }
    .home-featured-card-mirror { margin-top: 12px !important; }
    #featured-cards-wrap { gap: 12px !important; }

    /* ========================
       HOT NEWS / LATEST STRIP
       ======================== */
    #latest-strip-section {
        margin-top: 24px !important;
    }
    .latest-strip-section .grid-header-btn {
        padding: 0 16px;
        margin-bottom: 12px;
        align-items: center;
    }
    .hot-news-title { font-size: 1rem !important; }
    .slider-actions {
        gap: 6px !important;
        justify-content: flex-end !important;
        width: auto !important;
    }
    .slider-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        border-radius: 999px !important;
    }
    .btn-tool.ghost {
        font-size: 0.72rem !important;
        height: 32px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
    }
    /* Strip scroll — snap ke card */
    .latest-strip {
        padding: 4px 16px 14px !important;
        gap: 12px !important;
        scroll-snap-type: x mandatory !important;
    }
    .latest-strip-card {
        min-width: 72vw !important;
        max-width: 72vw !important;
        border-radius: var(--mobile-radius) !important;
        scroll-snap-align: start;
        box-shadow: var(--mobile-card-shadow) !important;
    }
    .latest-strip-img { height: 140px !important; }
    .latest-strip-body { padding: 12px 14px !important; }
    .latest-strip-body h3 { font-size: 0.88rem !important; line-height: 1.4; }
    .latest-strip-body p { font-size: 0.78rem !important; -webkit-line-clamp: 2; }
    .latest-strip-meta { font-size: 0.7rem !important; margin-bottom: 6px; }

    /* ========================
       NEWS GRID - CARD LIST STYLE
       ======================== */
    #news-list-section {
        margin-top: 24px !important;
        padding: 0 16px;
    }
    .section-title { font-size: 1rem !important; }
    .grid-header-btn { margin-bottom: 12px !important; }

    /* Tools bar: compact horizontal */
    .grid-header-with-tools {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .news-tools {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        flex-wrap: nowrap;
    }
    .news-tools input {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
    }
    .custom-select-wrap {
        min-width: 0 !important;
        width: auto !important;
        flex-shrink: 0;
    }
    .custom-select-btn {
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
    }
    .custom-select-label { display: none; } /* hide label, show hanya icon+arrow di mobile */
    .btn-tool:not(.ghost) {
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    #btn-see-all-grid { display: none !important; } /* hidden di mobile, ada di strip */

    /* Grid cards: horizontal list style (kaya app berita) */
    .article-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .grid-card {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        border-radius: var(--mobile-radius) !important;
        overflow: hidden;
        box-shadow: var(--mobile-card-shadow) !important;
        min-height: 110px;
        border: none !important;
        background: #fff;
    }
    .grid-img-wrapper {
        height: 100% !important;
        min-height: 110px;
        width: 110px;
        border-radius: 0 !important;
        flex-shrink: 0;
    }
    .badge-overlay { font-size: 0.55rem !important; padding: 2px 8px !important; bottom: 7px; left: 8px; }
    .grid-body {
        padding: 12px 14px 10px !important;
        justify-content: space-between;
    }
    .grid-meta { margin-bottom: 5px !important; }
    .grid-date { font-size: 0.68rem !important; }
    .red-bar { width: 16px !important; }
    .grid-card h3 {
        font-size: 0.88rem !important;
        line-height: 1.38;
        -webkit-line-clamp: 3;
        margin-bottom: 6px;
    }
    .grid-footer {
        padding-top: 7px !important;
        margin-top: 6px !important;
        border-top: none !important;
    }
    .mini-author { font-size: 0.68rem !important; gap: 5px; }
    .avatar-xs { width: 18px !important; height: 18px !important; }
    .red-line-indicator { display: none; }

    /* ========================
       PAGINATION
       ======================== */
    .pagination-wrap { gap: 6px !important; margin-top: 24px !important; flex-wrap: wrap; }
    .page-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
        min-width: 36px;
    }

    /* ========================
       DETAIL VIEW
       ======================== */
    .detail-navbar {
        padding: 12px 0;
        padding-top: calc(12px + var(--safe-top));
    }
    .detail-nav-container { padding: 0 16px; }
    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 16px 0 60px 0;
    }
    .detail-content-area {
        padding: 16px !important;
        border-radius: var(--mobile-radius) !important;
        margin: 0 16px;
        box-shadow: var(--mobile-card-shadow) !important;
        border: none !important;
    }
    .detail-banner-wrapper {
        margin: -16px -16px 18px -16px !important;
        border-radius: var(--mobile-radius) var(--mobile-radius) 0 0 !important;
    }
    .detail-banner-wrapper img { max-height: 220px !important; }
    .detail-title { font-size: 1.3rem !important; line-height: 1.3; }
    .detail-article-body { font-size: 0.93rem !important; line-height: 1.7; }
    .detail-sidebar-area { padding: 0 16px; }
    .comments-box {
        border-radius: var(--mobile-radius) !important;
        border: none !important;
        box-shadow: var(--mobile-card-shadow) !important;
        padding: 16px !important;
    }
    .sidebar-recommendation { margin-top: 12px; }
    .btn-discover-more {
        border-radius: 10px !important;
        font-size: 0.82rem !important;
    }

    /* ========================
       FOOTER
       ======================== */
    .footer {
        margin-top: 32px;
        padding: 40px 0 calc(20px + var(--safe-bottom)) 0;
        border-radius: 20px 20px 0 0;
    }
    .footer-container {
        padding: 0 20px 30px 20px;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .footer-brand h2 { font-size: 1.3rem; }
    .footer-bottom { font-size: 0.75rem; }

    /* ========================
       ABOUT PAGE
       ======================== */
    .about-page { padding: 16px 0 60px 0; }
    .about-hero, .about-block, .about-card, .about-contact {
        padding: 18px !important;
        border-radius: var(--mobile-radius) !important;
        border: none !important;
        box-shadow: var(--mobile-card-shadow) !important;
        margin: 0 16px;
    }
    .about-section, .about-grid, .about-contact {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 0 16px 0;
    }
    .about-card { margin: 0 !important; }
    .about-block { margin: 0 !important; }
    .about-contact { margin: 0 16px 0 16px !important; border-top: 3px solid var(--accent-red) !important; }
    .about-hero { margin-bottom: 16px !important; }
    .about-grid { margin: 0 16px 16px 16px !important; }
    .about-section { margin: 0 16px 16px 16px !important; }
    .about-hero h1 { font-size: 1.35rem !important; }

    /* ========================
       LOADING STATE MOBILE
       ======================== */
    .loading-state {
        padding: 40px 20px !important;
        margin: 0 16px;
        border-radius: var(--mobile-radius);
    }
    .empty-state { padding: 40px 20px !important; }

    /* ========================
       SEARCH BOX MOBILE
       ======================== */
    .nav-search-box {
        left: -50px !important;
        right: -50px !important;
        width: calc(100vw - 20px) !important;
        top: calc(100% + 8px);
    }

    /* ========================
       SMOOTH TOUCH SCROLLING
       ======================== */
    .latest-strip,
    .category-filter-bar {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    /* Tap highlight hapus buat feel native */
    * { -webkit-tap-highlight-color: transparent; }
    button, a, [role="button"] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* === Grid header section title + tools compact === */
    #news-list-section .grid-header-btn {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }
}

/* === Tablet intermediate (601-768) === */
@media (min-width: 601px) and (max-width: 768px) {
    .article-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .latest-strip-card { min-width: 260px !important; max-width: 260px !important; }
    .hero-section { border-radius: 0 0 24px 24px !important; }
    .main-container { padding: 24px 20px 80px; }
    .home-featured-card { grid-template-columns: 1fr !important; }
}

/* =============================================
   SEARCH BOX BUG FIX - iOS/Android Portrait
   ============================================= */

/* Backdrop z-index di bawah search box */
#search-backdrop { z-index: 9990 !important; }

/* FIX: page-view punya transform (stacking context baru), beri z-index agar
   nav-search-box di dalamnya bisa muncul di atas backdrop (z-index:9990) */
.page-view.active { z-index: 9995; }

/* Search box selalu di atas backdrop */
.nav-search-box,
.detail-search-box {
    z-index: 9999 !important;
}

/* Mobile: search box full width, absolute mengikuti posisi tombol */
@media (max-width: 600px) {
    .nav-search-box {
        position: fixed !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: auto !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    /* Posisi diatur JS via --search-top */
    .nav-search-box { top: var(--search-top, 80px) !important; }

    .detail-search-box {
        position: fixed !important;
        top: var(--search-top, 70px) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 48px rgba(0,0,0,0.2) !important;
        background: #fff !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
    }
    .nav-search-box input {
        font-size: 16px !important;
        padding: 14px 42px 14px 16px !important;
    }
    .detail-search-box input {
        font-size: 16px !important;
        color: #111 !important;
    }
    .nav-search-close-btn {
        top: 14px !important;
        right: 14px !important;
        font-size: 18px !important;
        padding: 4px 6px !important;
        color: rgba(255,255,255,0.6) !important;
    }
    .detail-search-close {
        top: 14px !important;
        right: 14px !important;
        font-size: 18px !important;
        color: #999 !important;
    }
    .nav-search-dropdown,
    .detail-search-dropdown {
        max-height: 200px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-search-result-item,
    .detail-search-dropdown .nav-search-result-item {
        padding: 12px 16px !important;
        min-height: 48px; /* touch target minimum */
    }
    .nav-search-result-thumb {
        width: 44px !important;
        height: 36px !important;
    }
    .nav-search-result-title { font-size: 13px !important; }
}

/* =============================================
   HERO & NAVBAR MOBILE VISUAL REDESIGN
   Feel: premium news app (CNN / Kompas / detik)
   ============================================= */
@media (max-width: 600px) {

    /* === HERO: flat gradient, no photo === */
    .hero-section {
        background-image: linear-gradient(180deg, var(--navy-dark-2) 0%, var(--navy-dark) 100%) !important;
        border-radius: 0 0 32px 32px !important;
        min-height: 230px;
        padding-bottom: 52px !important;
    }

    /* Overlay dimatikan — gradient di atas sudah cukup */
    .hero-overlay { display: none !important; }

    /* === NAVBAR: floating pill style === */
    .navbar {
        padding: 10px 4px 16px !important;
        border-bottom: none !important;
        gap: 0 !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Logo: lebih besar, lebih bernyawa */
    .logo {
        font-size: 1.35rem !important;
        font-weight: 900 !important;
        letter-spacing: -0.8px !important;
        color: #fff !important;
        text-shadow: 0 2px 12px rgba(0,0,0,0.4);
        flex: 1;
    }

    /* Wrapper icon kanan */
    .navbar > div:last-child {
        display: flex !important;
        align-items: center;
        gap: 8px !important;
    }

    /* Search icon button: circle pill */
    .nav-search-icon-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.18) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255,255,255,0.22) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
        transition: background 0.2s, transform 0.18s !important;
    }
    .nav-search-icon-btn:active {
        transform: scale(0.91) !important;
        background: rgba(255,255,255,0.28) !important;
    }

    /* Hamburger: matching circle pill */
    .hamburger-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.18) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255,255,255,0.22) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
        transition: background 0.2s, transform 0.18s !important;
    }
    .hamburger-btn:active {
        transform: scale(0.91) !important;
        background: rgba(255,255,255,0.28) !important;
    }
    .hamburger-btn span { width: 16px !important; height: 2px !important; }

    /* === HERO CONTENT: lebih dramatis, ada label brand === */
    .hero-content {
        text-align: left !important;
        margin-top: 20px !important;
        padding: 0 4px;
    }

    /* Kicker label dihapus */
    .hero-content::before { display: none !important; content: none !important; }

    .hero-content h1 {
        font-size: 1.65rem !important;
        font-weight: 900 !important;
        line-height: 1.18 !important;
        letter-spacing: -0.5px !important;
        text-shadow: 0 2px 20px rgba(0,0,0,0.5);
        margin-bottom: 12px !important;
    }

    .subtitle {
        font-size: 0.8rem !important;
        opacity: 0.82 !important;
        margin-bottom: 6px !important;
        font-weight: 400 !important;
        letter-spacing: 0.01em;
    }

    .hashtag {
        font-size: 0.7rem !important;
        opacity: 0.55 !important;
        letter-spacing: 0.02em;
    }

    /* === Separator bawah hero: fade ke halaman === */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 40px;
        background: linear-gradient(to bottom, transparent, rgba(242,242,247,0.0));
        pointer-events: none;
    }
}

/* =============================================
   ABOUT PAGE MOBILE FIX - Kontak Redaksi
   ============================================= */
@media (max-width: 600px) {

    /* About page container */
    .about-page {
        padding: 0 0 80px 0 !important;
    }

    /* Hero about */
    .about-hero {
        margin: 16px 16px 12px !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
        border: none !important;
        box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    }
    .about-hero h1 { font-size: 1.3rem !important; line-height: 1.3; }
    .about-kicker { font-size: 0.7rem !important; margin-bottom: 8px; }

    /* About section (Profil, Visi, Misi) */
    .about-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 16px 12px !important;
        padding: 0 !important;
    }
    .about-block {
        margin: 0 !important;
        padding: 18px !important;
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 2px 14px rgba(0,0,0,0.06) !important;
        grid-row: auto !important;
    }
    .about-block h2 { font-size: 1rem !important; margin-bottom: 8px; }
    .about-block p, .about-block ul { font-size: 0.86rem !important; line-height: 1.65; }
    .about-block ul { margin-left: 16px !important; }

    /* About grid (4 cards) */
    .about-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin: 0 16px 12px !important;
        padding: 0 !important;
    }
    .about-card {
        margin: 0 !important;
        padding: 16px !important;
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 2px 14px rgba(0,0,0,0.06) !important;
    }
    .about-card h3 { font-size: 0.88rem !important; margin-bottom: 6px; }
    .about-card p { font-size: 0.78rem !important; line-height: 1.55; color: #555; }

    /* === KONTAK REDAKSI — FULL REDESIGN MOBILE === */
    .about-contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 0 16px 16px !important;
        padding: 22px 18px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        /* Hitam pekat premium (bukan maroon) — garis merah hanya di outline atas/bawah */
        background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy-dark-2) 50%, var(--navy-dark) 100%) !important;
        border-top: 3px solid var(--accent-red) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.2) !important;
        position: relative;
        overflow: hidden;
    }
    /* Accent line atas — garis merah tipis, bukan background/font */
    .about-contact::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-red), #ff4d4d, var(--accent-red));
    }
    /* Accent line bawah — outline merah tipis untuk penutup kartu */
    .about-contact::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent-red-soft), transparent);
    }

    .about-contact .about-kicker {
        font-size: 0.68rem !important;
        letter-spacing: 0.08em;
        color: rgba(255,255,255,0.55) !important;
        text-transform: uppercase;
        font-weight: 800;
        margin-bottom: 8px;
    }
    .about-contact h2 {
        font-size: 1.15rem !important;
        line-height: 1.3;
        color: #fff !important;
        font-weight: 800;
        margin-bottom: 8px;
    }
    .about-contact > div > p {
        font-size: 0.82rem !important;
        line-height: 1.6;
        color: rgba(255,255,255,0.65) !important;
        opacity: 1 !important;
    }

    /* Kontak list: icon + teks, lebih rapi */
    .about-contact-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .about-contact-list span {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        background: rgba(255,255,255,0.07) !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        border-left: 2px solid var(--accent-red) !important; /* garis merah di sisi kiri, hanya outline */
        border-radius: 12px !important;
        padding: 13px 15px !important;
        font-size: 0.82rem !important;
        color: #fff !important;
        line-height: 1.3;
        word-break: break-all;
        transition: border-color 0.2s ease;
    }
    /* Tambah icon sebelum setiap item */
    .about-contact-list span:nth-child(1)::before { content: '✉️'; font-size: 1rem; flex-shrink: 0; }
    .about-contact-list span:nth-child(2)::before { content: '📸'; font-size: 1rem; flex-shrink: 0; }
    .about-contact-list span:nth-child(3)::before { content: '📸'; font-size: 1rem; flex-shrink: 0; }
    .about-contact-list span:nth-child(4)::before { content: '👤'; font-size: 1rem; flex-shrink: 0; }
}

/* =============================================
   FIX: Nav mobile tidak overlap konten
   FIX: Search box z-index benar
   ============================================= */

/* Nav mobile harus di bawah search box */
@media (max-width: 768px) {
    .nav-links {
        z-index: 400 !important; /* di bawah search (9999) dan backdrop (9990) */
    }
    .detail-nav-links {
        z-index: 400 !important;
    }
    /* Nav open tidak push konten — absolute sudah benar */
    .navbar { position: relative; z-index: 10; }
    .hero-container { position: relative; z-index: 2; }
}

/* Pastikan hero-content::before benar-benar hilang di semua ukuran */
.hero-content::before { display: none !important; content: '' !important; }

/* iOS: matikan QuickType bar suggestion via CSS hint */
input[type="search"],
input[id*="search"],
input[class*="search"] {
    -webkit-user-select: text;
}

/* =============================================
   LIST CAT BAR - Filter kategori halaman Semua Berita
   ============================================= */
.list-cat-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 0 12px 0;
    margin-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.list-cat-bar::-webkit-scrollbar { display: none; }

.list-cat-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: #555;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.list-cat-btn:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}
.list-cat-btn.active {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .list-cat-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    /* Keluar dari padding container supaya bisa scroll penuh */
    .list-cat-bar {
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: calc(100% + 32px) !important;
        max-width: none !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


/* =============================================
   MOBILE FIX v5.1 - Android & iOS
   Masalah: hero grid kurang ke bawah, kategori 
   lifestyle terpotong di menu utama & category bar,
   sort terpotong di Berita Terbaru
   ============================================= */

@media (max-width: 600px) {

    /* === FIX 1+2: Hero section — tinggi auto + overflow visible agar konten
       tidak terpotong dan dropdown navbar tidak kepotong di iOS/Android === */
    .hero-section {
        min-height: unset !important;
        height: auto !important;
        padding-bottom: 36px !important;
        overflow: visible !important;
        /* KRITIS: transform & will-change pada ancestor menjebak position:fixed di iOS/Android */
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
        /* filter juga buat stacking context — matikan di mobile */
        filter: none !important;
        isolation: auto !important;
    }
    .hero-container {
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* === FIX 3: Category filter bar — pastikan "Lifestyle" tidak 
       terpotong. Tambah padding kanan agar item terakhir terlihat === */
    .category-filter-bar {
        padding-right: 24px !important;
    }

    /* === FIX 4: Berita Terbaru — grid-header-with-tools wrap dengan benar,
       sort dropdown tidak terpotong ke kanan === */
    .grid-header-with-tools {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .news-tools {
        width: 100% !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    /* Sort dropdown: jangan overflow ke kanan layar */
    .custom-select-wrap {
        position: relative;
        flex-shrink: 0;
        max-width: 50% !important;
    }

    /* Custom select menu: buka ke atas atau pastikan tidak clip */
    .custom-select-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        z-index: 9999 !important;
    }

    /* === FIX 5: Menu utama (nav-links di hamburger dropdown) — 
       pastikan "Lifestyle" tampil lengkap, tidak terpotong === */
    .nav-links .nav-item {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    /* === FIX 6: Detail page nav-links juga fix === */
    .detail-nav-links .nav-item {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === FIX 7: Padding bawah latest strip section agar sort
       tidak bertindih dengan card pertama === */
    #latest-strip-section {
        margin-top: 20px !important;
    }

    /* Sort di section berita terbaru: icon saja (hide label teks) */
    .custom-select-label {
        display: none !important;
    }

    /* Tombol sort: cukup icon + arrow saja */
    .custom-select-btn {
        min-width: 42px !important;
        width: auto !important;
        padding: 0 10px !important;
        gap: 4px !important;
        justify-content: center !important;
    }

    /* Search input di tools: ambil sisa ruang */
    .news-tools input[type="text"],
    .news-tools input[type="search"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* === FIX 8: cat-btn touch area === */
    .cat-btn {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
}

/* =============================================
   HIGHLIGHT SECTION: Artikel Populer + Berita Lokal
   (dua kolom ala Google News)
   ============================================= */
.highlight-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}
.highlight-col {
    background: var(--navy-dark);
    border-radius: 16px;
    padding: 20px;
    color: #f2f2f2;
}
.highlight-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    cursor: pointer;
}
.highlight-col-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f2f2;
    margin: 0;
}
.highlight-col-arrow {
    font-size: 1.3rem;
    color: #8fd694;
    font-weight: 700;
}

/* --- Kolom utama: Artikel Populer --- */
.highlight-popular-main {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.highlight-popular-main .highlight-thumb {
    flex: 0 0 190px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
}
.highlight-popular-main .highlight-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-popular-main .highlight-body { flex: 1; min-width: 0; }
.highlight-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: 600;
}
.highlight-source .dot { width: 5px; height: 5px; border-radius: 50%; background: #8fd694; flex: none; }
.highlight-popular-main h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.highlight-time { font-size: 0.76rem; color: #888; }

.highlight-popular-list { display: flex; flex-direction: column; }
.highlight-popular-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}
.highlight-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.highlight-popular-item .highlight-item-title {
    font-size: 0.92rem;
    line-height: 1.4;
    color: #f2f2f2;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Kolom samping: Berita Lokal --- */
.highlight-local-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
}
.highlight-local-item:first-child { padding-top: 0; }
.highlight-local-item:last-child { border-bottom: none; padding-bottom: 0; }
.highlight-local-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}
.highlight-local-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-local-body { flex: 1; min-width: 0; }
.highlight-local-body h3 {
    font-size: 0.88rem;
    line-height: 1.35;
    color: #f2f2f2;
    font-weight: 600;
    margin: 4px 0 6px;
}

@media (max-width: 900px) {
    .highlight-section { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .highlight-popular-main { flex-direction: column; }
    .highlight-popular-main .highlight-thumb { flex: none; width: 100%; height: 160px; }
}

/* ============================================================
   HEADER GAYA PORTAL BERITA (ala detik.com) — OVERRIDE FINAL
   Ditaruh paling bawah agar menang dari rule lama (dark hero).
   ============================================================ */

/* Header utama: putih bersih, tidak ada foto/gradient gelap lagi */
.hero-section {
    background: #ffffff !important;
    background-image: none !important;
    color: var(--text-dark) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: sticky;
    top: 0;
    z-index: 200;
}
.hero-section::after { content: none !important; display: none !important; }
.hero-overlay { display: none !important; }
.hero-content { display: none !important; }

.hero-container { padding: 0 20px !important; }

/* Baris 1: logo + search/hamburger */
.hero-section .navbar {
    padding: 16px 0 !important;
    border-bottom: none !important;
    background: transparent;
}
.hero-section .logo {
    color: var(--maroon) !important;
    text-shadow: none !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.9rem !important;
    letter-spacing: -0.5px;
    animation: none !important;
}
.logo-a { color: var(--maroon); font-weight: 900; }
.logo-b { color: var(--accent-red); font-weight: 900; font-style: normal; }

/* Baris 2: menu horizontal dengan garis biru tegas, gaya koran klasik */
.navbar-menu-row {
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 2px solid var(--maroon);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.navbar-menu-row::-webkit-scrollbar { display: none; }
.logo-mini {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--maroon);
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
    padding-right: 14px;
    border-right: 1px solid var(--line);
    letter-spacing: -0.2px;
}
.navbar-menu-row .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    gap: 20px !important;
    padding: 0 !important;
    width: auto !important;
    flex-wrap: nowrap;
}
.navbar-menu-row .nav-links li { animation: none !important; white-space: nowrap; }
.navbar-menu-row .nav-item {
    color: #333 !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 4px 2px;
}
.navbar-menu-row .nav-item::after { background: var(--maroon) !important; }
.navbar-menu-row .nav-item:hover,
.navbar-menu-row .nav-item.active {
    color: var(--maroon) !important;
}

/* Search icon & hamburger: versi terang (di atas dasar putih) */
.hero-section .nav-search-icon-btn {
    background: #f0f2f5 !important;
    border: 1px solid var(--line) !important;
    color: var(--maroon) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.hero-section .hamburger-btn {
    background: #f0f2f5 !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.hero-section .hamburger-btn span { background: var(--maroon) !important; }
.hero-section .nav-search-box { background: #fff !important; border: 1px solid var(--line); }
.hero-section .nav-search-box input { color: var(--text-dark) !important; }

/* Dropdown menu mobile (hamburger) untuk header home: tema terang, samakan dgn halaman lain */
@media (max-width: 768px) {
    .navbar-menu-row .nav-links {
        display: none !important;
    }
    .navbar-menu-row .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        width: 200px !important;
        background: #ffffff !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06) !important;
        border-radius: 14px !important;
        padding: 8px !important;
        gap: 2px !important;
    }
    .navbar-menu-row .nav-links .nav-item {
        color: #333 !important;
        padding: 10px 14px !important;
        border-radius: 8px;
    }
    .navbar-menu-row .nav-links .nav-item::before { background: #ccc !important; }
    .navbar-menu-row .nav-links .nav-item:hover,
    .navbar-menu-row .nav-links .nav-item.active {
        background: #f0f0f0 !important;
        color: var(--maroon) !important;
    }
    .navbar-menu-row .nav-links .nav-item:hover::before,
    .navbar-menu-row .nav-links .nav-item.active::before { background: var(--maroon) !important; }
    .logo-mini { display: none; }
}

/* ============================================================
   SISTEM IKLAN — banyak slot iklan seperti situs berita umum
   (aktif di semua halaman KECUALI halaman Tentang Kami)
   ============================================================ */
.ad-slot-leaderboard { margin: 26px auto; }
.ad-slot-rectangle-wrap {
    max-width: 1200px;
    margin: 26px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ad-slot-placeholder-rect { max-width: 300px; min-height: 250px; }
.ad-slot-inarticle { margin: 30px 0; }

/* Skyscraper kiri/kanan menempel di tepi layar (desktop lebar) */
.ad-rail {
    position: fixed;
    top: 130px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 50;
}
.ad-rail-left { left: 14px; }
.ad-rail-right { right: 14px; }
.ad-rail .ad-slot-placeholder-sky {
    width: 160px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fafafa;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
}
/* Hanya tampil di layar sangat lebar agar tidak menutupi konten utama */
@media (max-width: 1580px) {
    .ad-rail { display: none !important; }
}

/* Iklan TIDAK ditampilkan sama sekali di halaman Tentang Kami */
#about-view .ad-slot,
#about-view .ad-rail { display: none !important; }
#about-view.active ~ #ad-rail-left,
#about-view.active ~ #ad-rail-right { display: none !important; }

/* ============================================================
   TEMA BIRU · MERAH · PUTIH — KLASIK PROFESIONAL (koran/majalah berita)
   ============================================================ */
.main-title,
.detail-title,
.feat-title,
.page-title,
.about-hero h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    letter-spacing: -0.3px;
}
.section-title,
.hot-news-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-category {
    background-color: var(--accent-red) !important;
    color: #fff !important;
    border-radius: 3px !important;
    letter-spacing: 0.06em;
}
.footer { background-color: var(--navy-dark) !important; }

/* ============================================================
   IKLAN TAMBAHAN — pasangan rectangle & sticky bottom
   Dibuat agar TIDAK mengganggu tombol/menu/konten lain:
   - tidak menimpa elemen manapun (bukan position:absolute di atas konten)
   - sticky bottom bisa ditutup & selalu di bawah tombol lain (z-index rendah dari dropdown/menu)
   - otomatis hilang di halaman Tentang Kami
   ============================================================ */
.ad-dual-rect {
    max-width: 1200px;
    margin: 26px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.ad-slot-rect-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 1 300px;
}
.ad-slot-rect-single .ad-slot-placeholder {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
}

/* Sticky bottom: hanya di layar sempit, tidak menimpa hamburger/search karena ada di posisi paling bawah */
.ad-sticky-bottom {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30; /* lebih rendah dari dropdown menu (500) & search (900+) agar tidak mengganggu */
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 6px 40px 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.ad-sticky-bottom .ad-slot-label { position: absolute; left: 10px; top: 2px; }
.ad-slot-placeholder-sticky {
    min-height: 50px;
    width: 100%;
    max-width: 320px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fafafa;
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-sticky-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Beri jarak bawah halaman supaya sticky bottom tidak menutupi footer/tombol terakhir */
body { padding-bottom: 62px; }
@media (min-width: 900px) {
    /* Di layar besar, cukup pakai skyscraper kiri-kanan, sticky bottom disembunyikan agar tidak berlebihan/mengganggu */
    .ad-sticky-bottom { display: none !important; }
    body { padding-bottom: 0; }
}

/* Pastikan SEMUA jenis iklan baru juga otomatis hilang total di halaman Tentang Kami */
#about-view .ad-dual-rect,
#about-view .ad-sticky-bottom { display: none !important; }
#about-view.active ~ #ad-sticky-bottom { display: none !important; }
body:has(#about-view.active) { padding-bottom: 0 !important; }

/* ============================================================
   IKLAN NATIVE — kartu iklan yang menyatu di antara daftar berita
   Otomatis terlihat "rapi" (mengikuti bentuk grid-card) dan
   otomatis hilang di halaman Tentang Kami via aturan .ad-slot di atas.
   ============================================================ */
.ad-slot-native {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}
.ad-slot-label-native { padding: 0 2px; }
.ad-slot-placeholder-native {
    min-height: 180px;
    border-radius: 10px;
}
/* Saat sudah diisi HTML iklan asli, hilangkan tampilan kotak placeholder */
.ad-slot-filled {
    border: none !important;
    background: transparent !important;
    min-height: 0 !important;
    color: inherit !important;
    font-weight: normal !important;
}

/* IKLAN OFF (dimatikan lewat admin): sembunyikan total wrapper-nya (label + kotak),
   supaya layout otomatis menutup ruang kosong tanpa perlu ubah HTML/CSS lain. */
.ad-slot-off {
    display: none !important;
}
body.no-sticky-ad { padding-bottom: 0 !important; }

/* ============================================================
   POP-UP IKLAN — muncul saat pindah menu/halaman
   (KECUALI di halaman Tentang Kami, diatur lewat ads-config.js)
   Tema hitam & putih, garis merah HANYA di outline atasnya.
   ============================================================ */
.ad-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.ad-popup-overlay.ad-popup-visible {
    opacity: 1;
    visibility: visible;
}
.ad-popup-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 14px;
    border-top: 3px solid var(--accent-red); /* outline merah saja */
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: translateY(10px);
    transition: transform 0.25s ease;
}
.ad-popup-overlay.ad-popup-visible .ad-popup-box { transform: translateY(0); }
.ad-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.ad-popup-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-popup-close:hover { border-color: var(--accent-red); color: var(--accent-red); }
.ad-popup-content {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
@media (max-width: 480px) {
    .ad-popup-box { max-width: 92vw; }
    .ad-popup-content { min-height: 200px; }
}
