/*
Theme Name: Berita Nusantara
Theme URI: https://example.com/berita-nusantara
Author: Your Name
Author URI: https://example.com
Description: Tema WordPress portal berita modern, cepat, dan SEO-friendly. Mendukung Schema Markup NewsArticle, breaking news ticker premium, mobile drawer menu, dark mode, side overlay ads, dan layout majalah responsif. Lulus pemeriksaan Theme Check. Target Lighthouse 90+ untuk Performance dan SEO.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beritanusantara
Tags: news, blog, magazine, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, dark-mode-support
*/

/* =========================================
   1. CSS CUSTOM PROPERTIES
   ========================================= */
:root {
    /* Brand Colors */
    --bn-primary: #D32F2F;
    --bn-primary-dark: #B71C1C;
    --bn-primary-light: #FFCDD2;

    /* Neutral Colors */
    --bn-bg: #FFFFFF;
    --bn-bg-alt: #F8F8F8;
    --bn-bg-elevated: #FFFFFF;
    --bn-text: #1A1A1A;
    --bn-text-muted: #5A5A5A;
    --bn-text-light: #8A8A8A;
    --bn-border: #E5E5E5;
    --bn-border-strong: #CCCCCC;

    /* NAV (selalu gelap di semua mode untuk konsistensi & kontras AA) */
    --bn-nav-bg: #111111;
    --bn-nav-bg-hover: #1F1F1F;
    --bn-nav-text: #FFFFFF;
    --bn-nav-text-muted: rgba(255, 255, 255, 0.78);

    /* Shadows */
    --bn-shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --bn-shadow-md: 0 4px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
    --bn-shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.12);

    /* Typography */
    --bn-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bn-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --bn-container: 1200px;
    --bn-gap: 24px;
    --bn-gap-sm: 12px;
    --bn-radius: 6px;
    --bn-radius-lg: 10px;

    /* Transitions */
    --bn-transition: 0.2s ease;
    --bn-transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
html[data-theme="dark"] {
    --bn-bg: #121212;
    --bn-bg-alt: #1E1E1E;
    --bn-bg-elevated: #1A1A1A;
    --bn-text: #F0F0F0;
    --bn-text-muted: #B0B0B0;
    --bn-text-light: #808080;
    --bn-border: #2E2E2E;
    --bn-border-strong: #4A4A4A;
    --bn-primary-light: #4A1B1B;

    /* Nav tetap gelap, tapi sedikit lebih kontras dengan body */
    --bn-nav-bg: #0A0A0A;
    --bn-nav-bg-hover: #1A1A1A;

    --bn-shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.5);
    --bn-shadow-md: 0 4px 8px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
    --bn-shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 16px 48px rgba(0,0,0,0.6);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: var(--bn-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--bn-text);
    background-color: var(--bn-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--bn-transition), color var(--bn-transition);
    overflow-x: hidden;
}
body.bn-menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bn-primary); text-decoration: none; transition: color var(--bn-transition); }
a:hover, a:focus { color: var(--bn-primary-dark); text-decoration: underline; }
a:focus-visible {
    outline: 2px solid var(--bn-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bn-font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--bn-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Accessibility */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; z-index: 9999;
    padding: 8px 16px; background: var(--bn-primary); color: #fff;
    font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   3. LAYOUT CONTAINERS
   ========================================= */
.bn-container {
    width: 100%;
    max-width: var(--bn-container);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) { .bn-container { padding: 0 24px; } }

.bn-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--bn-gap);
    padding: var(--bn-gap) 0;
}
@media (min-width: 1024px) {
    .bn-main {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
    }
}

/* =========================================
   4. TOP BAR
   ========================================= */
.bn-topbar {
    background: var(--bn-bg-alt);
    border-bottom: 1px solid var(--bn-border);
    font-size: 13px;
    color: var(--bn-text-muted);
}
.bn-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; gap: 16px; flex-wrap: wrap;
}
.bn-topbar-date { font-weight: 500; }
.bn-topbar-actions { display: flex; align-items: center; gap: 12px; }
.bn-topbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; font-size: 12px; }
.bn-topbar-menu a { color: var(--bn-text-muted); }
.bn-topbar-menu a:hover { color: var(--bn-primary); }

.bn-theme-toggle {
    background: transparent; border: 1px solid var(--bn-border-strong);
    border-radius: 999px; padding: 4px 12px; cursor: pointer;
    color: var(--bn-text); font-size: 12px; font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--bn-transition);
}
.bn-theme-toggle:hover { border-color: var(--bn-primary); color: var(--bn-primary); }
.bn-theme-toggle:focus-visible {
    outline: 2px solid var(--bn-primary);
    outline-offset: 2px;
}

/* =========================================
   5. HEADER & LOGO
   ========================================= */
.bn-site-header {
    border-bottom: 3px solid var(--bn-primary);
    padding: 20px 0;
    background: var(--bn-bg);
}
.bn-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.bn-logo {
    font-family: var(--bn-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900; color: var(--bn-text); text-decoration: none;
    letter-spacing: -0.02em;
}
.bn-logo:hover { color: var(--bn-primary); text-decoration: none; }
.bn-logo span { color: var(--bn-primary); }

.bn-search-form {
    display: flex; align-items: center;
    border: 1px solid var(--bn-border-strong); border-radius: var(--bn-radius);
    overflow: hidden; max-width: 320px; flex: 1; min-width: 200px;
    background: var(--bn-bg);
    transition: border-color var(--bn-transition), box-shadow var(--bn-transition);
}
.bn-search-form:focus-within {
    border-color: var(--bn-primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}
.bn-search-form input[type="search"] {
    flex: 1; padding: 8px 12px; border: 0; outline: 0;
    font-family: inherit; font-size: 14px;
    background: transparent; color: var(--bn-text);
}
.bn-search-form button {
    padding: 8px 14px; background: var(--bn-primary); color: #fff;
    border: 0; cursor: pointer; font-size: 14px;
    transition: background-color var(--bn-transition);
}
.bn-search-form button:hover { background: var(--bn-primary-dark); }

/* =========================================
   6. PRIMARY NAVIGATION
   ========================================= */
.bn-nav {
    background: var(--bn-nav-bg);
    color: var(--bn-nav-text);
    position: relative;
    box-shadow: var(--bn-shadow-sm);
}
.bn-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px;
}

/* Mobile menu toggle (hamburger) */
.bn-menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; border: 0; color: var(--bn-nav-text);
    padding: 12px 0; font-family: inherit; font-size: 14px;
    font-weight: 700; cursor: pointer; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bn-menu-toggle:focus-visible {
    outline: 2px solid var(--bn-primary);
    outline-offset: 4px;
    border-radius: 2px;
}
@media (min-width: 768px) { .bn-menu-toggle { display: none; } }

/* Premium hamburger - 3 lines that morph to X */
.bn-menu-toggle-bars {
    display: inline-block; width: 22px; height: 16px; position: relative;
}
.bn-menu-toggle-bars span,
.bn-menu-toggle-bars::before,
.bn-menu-toggle-bars::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--bn-nav-text); border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.3s ease;
}
.bn-menu-toggle-bars::before { top: 0; }
.bn-menu-toggle-bars span { top: 7px; }
.bn-menu-toggle-bars::after { top: 14px; }

/* Active state (X) */
body.bn-menu-open .bn-menu-toggle-bars::before { top: 7px; transform: rotate(45deg); }
body.bn-menu-open .bn-menu-toggle-bars span { opacity: 0; }
body.bn-menu-open .bn-menu-toggle-bars::after { top: 7px; transform: rotate(-45deg); }

/* Backdrop for mobile drawer */
.bn-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}
body.bn-menu-open .bn-menu-backdrop {
    opacity: 1; visibility: visible;
}
@media (min-width: 768px) {
    .bn-menu-backdrop { display: none; }
}

/* === Mobile drawer === */
@media (max-width: 767px) {
    .bn-primary-menu {
        list-style: none; margin: 0; padding: 16px 0 32px;
        position: fixed; top: 0; left: 0; bottom: 0;
        width: min(82vw, 340px);
        background: var(--bn-nav-bg);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: block;
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }
    .bn-primary-menu.is-open { transform: translateX(0); }

    /* Drawer header (logo area inside drawer) */
    .bn-primary-menu::before {
        content: 'Menu';
        display: block;
        font-family: var(--bn-font-heading);
        font-size: 1.25rem; font-weight: 900;
        color: var(--bn-nav-text);
        padding: 8px 24px 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        letter-spacing: 0.02em;
    }

    .bn-primary-menu li { position: relative; }
    .bn-primary-menu > li { border-bottom: 1px solid rgba(255,255,255,0.06); }

    .bn-primary-menu a {
        display: block; padding: 14px 24px;
        color: var(--bn-nav-text);
        font-weight: 600; font-size: 14px;
        text-transform: uppercase; letter-spacing: 0.05em;
        text-decoration: none;
        transition: background-color var(--bn-transition), color var(--bn-transition);
    }
    .bn-primary-menu a:hover,
    .bn-primary-menu .current-menu-item > a {
        background: var(--bn-primary); color: #fff;
    }

    /* Submenu (mobile - accordion) */
    .bn-primary-menu .sub-menu {
        list-style: none; margin: 0; padding: 0;
        max-height: 0; overflow: hidden;
        background: rgba(0,0,0,0.25);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .bn-primary-menu .menu-item-has-children.is-expanded > .sub-menu {
        max-height: 800px;
    }
    .bn-primary-menu .sub-menu a {
        padding: 12px 24px 12px 40px;
        font-size: 13px; text-transform: none;
        color: var(--bn-nav-text-muted);
        letter-spacing: 0.01em;
        font-weight: 500;
    }
    .bn-primary-menu .sub-menu a::before {
        content: '›'; margin-right: 8px; color: var(--bn-primary);
    }

    /* Submenu toggle button (chevron) */
    .bn-submenu-toggle {
        position: absolute; right: 0; top: 0;
        width: 48px; height: 48px;
        background: transparent; border: 0; color: var(--bn-nav-text);
        cursor: pointer; padding: 0;
        display: flex; align-items: center; justify-content: center;
        transition: transform 0.3s ease, background-color var(--bn-transition);
    }
    .bn-submenu-toggle:hover { background: rgba(255,255,255,0.06); }
    .bn-submenu-toggle::before {
        content: '';
        width: 8px; height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    .menu-item-has-children.is-expanded > .bn-submenu-toggle::before {
        transform: rotate(-135deg);
    }
}

/* === Desktop menu === */
@media (min-width: 768px) {
    .bn-primary-menu {
        list-style: none; margin: 0; padding: 0;
        display: flex !important; flex-wrap: wrap;
        position: static; transform: none;
        background: transparent; box-shadow: none;
        width: auto; height: auto;
    }
    .bn-primary-menu::before { display: none; }
    .bn-primary-menu a {
        display: block; padding: 14px 18px;
        color: var(--bn-nav-text);
        font-weight: 700; font-size: 13px;
        text-transform: uppercase; letter-spacing: 0.06em;
        text-decoration: none;
        position: relative;
        transition: color var(--bn-transition), background-color var(--bn-transition);
    }
    .bn-primary-menu a::after {
        content: ''; position: absolute;
        left: 18px; right: 18px; bottom: 8px;
        height: 2px; background: var(--bn-primary);
        transform: scaleX(0); transform-origin: center;
        transition: transform 0.25s ease;
    }
    .bn-primary-menu a:hover::after,
    .bn-primary-menu .current-menu-item > a::after {
        transform: scaleX(1);
    }
    .bn-primary-menu a:hover,
    .bn-primary-menu .current-menu-item > a {
        background: var(--bn-nav-bg-hover); color: #fff;
    }

    /* Submenu desktop dropdown */
    .bn-primary-menu .menu-item-has-children {
        position: relative;
    }
    .bn-primary-menu .menu-item-has-children > a::before {
        content: '▾'; margin-left: 6px; font-size: 10px;
        display: inline-block; opacity: 0.7;
        transition: transform 0.2s ease;
    }
    .bn-primary-menu .menu-item-has-children:hover > a::before {
        transform: rotate(180deg);
    }
    .bn-primary-menu .sub-menu {
        list-style: none; padding: 6px 0; margin: 0;
        background: var(--bn-nav-bg);
        position: absolute; top: 100%; left: 0; min-width: 220px;
        opacity: 0; visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        box-shadow: var(--bn-shadow-lg);
        z-index: 100;
        border-top: 2px solid var(--bn-primary);
        border-radius: 0 0 var(--bn-radius) var(--bn-radius);
    }
    .bn-primary-menu .menu-item-has-children:hover > .sub-menu,
    .bn-primary-menu .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    .bn-primary-menu .sub-menu a {
        padding: 10px 18px; text-transform: none;
        font-size: 13px; font-weight: 600;
        letter-spacing: 0.01em;
    }
    .bn-primary-menu .sub-menu a::after { display: none; }
    .bn-primary-menu .sub-menu a:hover {
        background: var(--bn-primary); color: #fff;
    }

    /* Nested submenu (3rd level) */
    .bn-primary-menu .sub-menu .sub-menu {
        top: -6px; left: 100%;
        margin-left: 0;
        border-top: 0;
        border-left: 2px solid var(--bn-primary);
        border-radius: 0 var(--bn-radius) var(--bn-radius) var(--bn-radius);
    }
}

/* =========================================
   7. BREAKING NEWS TICKER (PREMIUM, CONTAINED)
   ========================================= */
.bn-ticker-wrap {
    padding: 12px 0;
    background: transparent;
}
.bn-ticker {
    display: flex; align-items: stretch;
    background: var(--bn-bg-elevated);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    overflow: hidden;
    font-size: 14px;
    box-shadow: var(--bn-shadow-sm);
}
.bn-ticker-label {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-dark) 100%);
    color: #fff;
    padding: 10px 18px; font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.1em;
    display: inline-flex; align-items: center; gap: 8px;
    position: relative;
}
.bn-ticker-label::after {
    content: ''; position: absolute;
    right: -10px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bn-primary-dark);
}
.bn-ticker-label::before {
    content: ''; width: 8px; height: 8px; background: #fff;
    border-radius: 50%; animation: bn-pulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
}
@keyframes bn-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}
.bn-ticker-track-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Padding-left 32px memberi jarak aman setelah arrow-tail label (10px) + 22px breathing room.
       Pastikan teks slide TIDAK akan menyentuh kotak Breaking. */
    padding: 0 20px 0 32px;
    min-height: 42px;
    display: flex;
    align-items: center;
}
/* Track jadi container relative untuk items yang absolute */
.bn-ticker-track {
    position: relative;
    width: 100%;
    min-height: 22px;
}
/* Setiap item adalah "slide" — absolute, hanya satu yang aktif sekaligus */
.bn-ticker-item {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) translateX(24px);
    opacity: 0;
    color: var(--bn-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    will-change: opacity, transform;
}
.bn-ticker-item.is-active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}
.bn-ticker-item.is-leaving {
    opacity: 0;
    transform: translateY(-50%) translateX(-24px);
}
.bn-ticker-item a {
    color: var(--bn-text); font-weight: 600;
    transition: color var(--bn-transition);
}
.bn-ticker-item a:hover { color: var(--bn-primary); text-decoration: none; }

/* Respect prefers-reduced-motion: nonaktifkan transform animation,
   tetap fade halus agar transisi tidak abrupt */
@media (prefers-reduced-motion: reduce) {
    .bn-ticker-item {
        transition: opacity 0.2s ease;
        transform: translateY(-50%);
    }
    .bn-ticker-item.is-active { transform: translateY(-50%); }
    .bn-ticker-item.is-leaving { transform: translateY(-50%); }
}

/* =========================================
   8. HERO / FEATURED LAYOUT (PREMIUM)
   ========================================= */
.bn-hero {
    display: grid; gap: var(--bn-gap);
    margin: var(--bn-gap) 0;
}

/* Mobile: main card big, then 2x2 grid */
@media (max-width: 767px) {
    .bn-hero {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .bn-hero-main {
        grid-column: 1 / -1;
    }
    .bn-hero-main img { aspect-ratio: 16 / 11; }
}

@media (min-width: 768px) {
    .bn-hero {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, 1fr);
    }
    .bn-hero-main { grid-row: span 2; }
}

.bn-hero-card {
    position: relative; overflow: hidden;
    border-radius: var(--bn-radius);
    background: var(--bn-bg-alt);
    box-shadow: var(--bn-shadow-sm);
    transition: box-shadow var(--bn-transition), transform var(--bn-transition);
}
.bn-hero-card:hover {
    box-shadow: var(--bn-shadow-md);
    transform: translateY(-2px);
}
.bn-hero-card > a {
    display: block; height: 100%;
    color: inherit; text-decoration: none;
}
.bn-hero-card img {
    width: 100%; height: 100%; object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-hero-card:hover img { transform: scale(1.05); }
.bn-hero-main img { aspect-ratio: 16 / 11; }

.bn-hero-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
    pointer-events: none;
}
.bn-hero-card-overlay > * { pointer-events: auto; }

@media (min-width: 768px) {
    .bn-hero-main .bn-hero-card-overlay { padding: 28px; }
}

.bn-hero-card-cat {
    display: inline-block; align-self: flex-start;
    background: var(--bn-primary); color: #fff;
    padding: 4px 12px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 10px; border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.bn-hero-card-title {
    color: #fff; font-family: var(--bn-font-heading);
    font-size: 0.95rem; line-height: 1.3; margin: 0 0 6px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
@media (min-width: 480px) {
    .bn-hero-card-title { font-size: 1rem; }
}
.bn-hero-main .bn-hero-card-title {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.bn-hero-card-title a { color: #fff; text-decoration: none; }
.bn-hero-card-title a:hover { color: var(--bn-primary-light); text-decoration: none; }
.bn-hero-card-meta {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    display: flex; align-items: center; gap: 6px;
    font-weight: 500;
}
.bn-hero-main .bn-hero-card-meta { font-size: 13px; }

/* =========================================
   9. SECTION HEADERS
   ========================================= */
.bn-section-header {
    border-bottom: 2px solid var(--bn-primary);
    margin: 32px 0 20px; padding-bottom: 8px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.bn-section-header h2 {
    margin: 0; font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    text-transform: uppercase; letter-spacing: 0.02em;
    color: var(--bn-text);
    position: relative;
}
.bn-section-header h2::before {
    content: ''; display: inline-block;
    width: 4px; height: 1em;
    background: var(--bn-primary);
    margin-right: 10px;
    vertical-align: -3px;
    border-radius: 2px;
}
.bn-section-header a {
    font-size: 12px; font-weight: 700; color: var(--bn-primary);
    text-transform: uppercase; letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color var(--bn-transition);
}
.bn-section-header a:hover { color: var(--bn-primary-dark); text-decoration: none; }

/* =========================================
   10. POST GRID
   ========================================= */
.bn-post-grid {
    display: grid; gap: var(--bn-gap);
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .bn-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .bn-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.bn-post-card { background: var(--bn-bg); display: flex; flex-direction: column; }
.bn-post-card-thumb {
    position: relative; overflow: hidden;
    border-radius: var(--bn-radius);
    margin-bottom: 12px; background: var(--bn-bg-alt);
    box-shadow: var(--bn-shadow-sm);
}
.bn-post-card-thumb img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-post-card:hover .bn-post-card-thumb img { transform: scale(1.05); }
.bn-post-card-cat {
    display: inline-block; background: var(--bn-primary); color: #fff;
    padding: 3px 10px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    text-decoration: none; align-self: flex-start;
    margin-bottom: 8px; border-radius: 2px;
}
.bn-post-card-cat:hover { background: var(--bn-primary-dark); color: #fff; text-decoration: none; }
.bn-post-card-title {
    font-size: 1.1rem; line-height: 1.3; margin: 0 0 8px;
    font-family: var(--bn-font-heading); font-weight: 700;
}
.bn-post-card-title a { color: var(--bn-text); text-decoration: none; }
.bn-post-card-title a:hover { color: var(--bn-primary); text-decoration: none; }
.bn-post-card-excerpt {
    color: var(--bn-text-muted); font-size: 14px;
    line-height: 1.6; margin: 0 0 8px;
}
.bn-post-card-meta {
    font-size: 12px; color: var(--bn-text-light);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: auto; padding-top: 4px;
}
.bn-post-card-meta a { color: var(--bn-text-muted); }
.bn-post-card-meta-sep { color: var(--bn-border-strong); }

/* List variant for sidebar / "most read" */
.bn-post-list { list-style: none; margin: 0; padding: 0; }
.bn-post-list li {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--bn-border);
    align-items: flex-start;
}
.bn-post-list li:last-child { border-bottom: 0; }
.bn-post-list-rank {
    flex-shrink: 0; width: 32px; height: 32px;
    background: var(--bn-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--bn-font-heading); font-size: 1.1rem; font-weight: 900;
    border-radius: var(--bn-radius);
}
.bn-post-list-thumb {
    flex-shrink: 0; width: 80px; height: 60px;
    overflow: hidden; border-radius: var(--bn-radius);
    background: var(--bn-bg-alt);
}
.bn-post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bn-post-list-content { flex: 1; min-width: 0; }
.bn-post-list-title {
    font-size: 14px; line-height: 1.4; margin: 0 0 4px;
    font-family: var(--bn-font-heading); font-weight: 700;
}
.bn-post-list-title a { color: var(--bn-text); text-decoration: none; }
.bn-post-list-title a:hover { color: var(--bn-primary); text-decoration: none; }
.bn-post-list-meta { font-size: 11px; color: var(--bn-text-light); }
.bn-post-list-cat {
    display: inline-block;
    color: var(--bn-primary); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* =========================================
   11. SINGLE POST
   ========================================= */
.bn-single { background: var(--bn-bg); }
.bn-breadcrumb {
    font-size: 13px; color: var(--bn-text-muted);
    margin: 0 0 16px; padding: 12px 0 0;
}
.bn-breadcrumb a { color: var(--bn-text-muted); }
.bn-breadcrumb a:hover { color: var(--bn-primary); }
.bn-breadcrumb-sep { margin: 0 6px; color: var(--bn-border-strong); }

.bn-single-header { margin-bottom: 24px; }
.bn-single-cat {
    display: inline-block; background: var(--bn-primary); color: #fff;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 12px; border-radius: 2px; text-decoration: none;
}
.bn-single-cat:hover { background: var(--bn-primary-dark); color: #fff; text-decoration: none; }
.bn-single-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15; margin: 0 0 16px;
    color: var(--bn-text);
}
.bn-single-excerpt {
    font-size: 1.15rem; line-height: 1.6;
    color: var(--bn-text-muted); margin: 0 0 20px;
    font-style: italic; padding-left: 16px;
    border-left: 3px solid var(--bn-primary);
}
.bn-single-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 0; border-top: 1px solid var(--bn-border);
    border-bottom: 1px solid var(--bn-border);
    font-size: 13px; color: var(--bn-text-muted);
}
.bn-single-meta-author {
    display: flex; align-items: center; gap: 8px; font-weight: 600;
    color: var(--bn-text);
}
.bn-single-meta-author img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}

.bn-single-featured { margin: 24px 0; }
.bn-single-featured img { width: 100%; border-radius: var(--bn-radius); }
.bn-single-featured figcaption {
    font-size: 13px; color: var(--bn-text-light);
    padding: 8px 4px 0; font-style: italic;
}

.bn-single-content {
    font-size: 17px; line-height: 1.75; color: var(--bn-text);
}
.bn-single-content p { margin: 0 0 1.25em; }
.bn-single-content h2, .bn-single-content h3, .bn-single-content h4 {
    margin: 1.5em 0 0.5em;
}
.bn-single-content a { text-decoration: underline; text-underline-offset: 3px; }
.bn-single-content blockquote {
    margin: 1.5em 0; padding: 16px 22px;
    border-left: 4px solid var(--bn-primary);
    background: var(--bn-bg-alt); font-style: italic;
    font-family: var(--bn-font-heading); font-size: 1.1rem;
    border-radius: 0 var(--bn-radius) var(--bn-radius) 0;
}
.bn-single-content img, .bn-single-content figure { margin: 1.5em 0; border-radius: var(--bn-radius); }
.bn-single-content ul, .bn-single-content ol { margin: 0 0 1.25em; padding-left: 24px; }
.bn-single-content li { margin-bottom: 0.5em; }

/* Share buttons */
.bn-share {
    margin: 32px 0; padding: 16px 0;
    border-top: 1px solid var(--bn-border); border-bottom: 1px solid var(--bn-border);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.bn-share-label {
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--bn-text-muted);
}
.bn-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--bn-radius); font-size: 13px;
    font-weight: 600; color: #fff; text-decoration: none;
    transition: opacity var(--bn-transition), transform var(--bn-transition);
}
.bn-share-btn:hover { opacity: 0.88; color: #fff; text-decoration: none; transform: translateY(-1px); }
.bn-share-fb { background: #1877F2; }
.bn-share-tw { background: #000000; }
.bn-share-wa { background: #25D366; }
.bn-share-tg { background: #229ED9; }

/* Tags */
.bn-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bn-tags-label { font-size: 13px; font-weight: 700; color: var(--bn-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bn-tag {
    display: inline-block; padding: 4px 12px; background: var(--bn-bg-alt);
    border: 1px solid var(--bn-border); border-radius: 999px;
    font-size: 12px; color: var(--bn-text); text-decoration: none;
    transition: all var(--bn-transition);
}
.bn-tag:hover { background: var(--bn-primary); color: #fff; border-color: var(--bn-primary); text-decoration: none; }

/* Author box */
.bn-author-box {
    margin: 32px 0; padding: 20px;
    background: var(--bn-bg-alt); border-radius: var(--bn-radius);
    display: flex; gap: 16px; align-items: flex-start;
    border: 1px solid var(--bn-border);
}
.bn-author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.bn-author-box-name { font-size: 1.1rem; margin: 0 0 4px; font-family: var(--bn-font-heading); }
.bn-author-box-bio { font-size: 14px; color: var(--bn-text-muted); margin: 0; line-height: 1.6; }

/* =========================================
   12. SIDEBAR & WIDGETS
   ========================================= */
.bn-sidebar { display: flex; flex-direction: column; gap: 24px; }
.bn-widget {
    background: var(--bn-bg-elevated);
    padding: 18px;
    border-radius: var(--bn-radius);
    border: 1px solid var(--bn-border);
    box-shadow: var(--bn-shadow-sm);
}
.bn-widget--plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.bn-widget-title {
    font-size: 1rem; margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bn-primary);
    text-transform: uppercase; letter-spacing: 0.04em;
    font-weight: 800;
    color: var(--bn-text);
}
.bn-widget ul { list-style: none; margin: 0; padding: 0; }
.bn-widget ul li {
    padding: 8px 0; border-bottom: 1px solid var(--bn-border);
    font-size: 14px;
}
.bn-widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.bn-widget ul li a { color: var(--bn-text); }
.bn-widget ul li a:hover { color: var(--bn-primary); }

/* Custom News Widget (BN_Recent_News_Widget output) */
.bn-news-widget-list { list-style: none; margin: 0; padding: 0; }
.bn-news-widget-list > li {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bn-border);
    align-items: flex-start;
}
.bn-news-widget-list > li:first-child { padding-top: 0; }
.bn-news-widget-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.bn-news-widget-thumb {
    flex-shrink: 0;
    width: 90px; height: 68px;
    overflow: hidden;
    border-radius: var(--bn-radius);
    background: var(--bn-bg-alt);
    position: relative;
}
.bn-news-widget-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.bn-news-widget-list > li:hover .bn-news-widget-thumb img { transform: scale(1.06); }
.bn-news-widget-body { flex: 1; min-width: 0; }
.bn-news-widget-cat {
    display: inline-block;
    color: var(--bn-primary); font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-decoration: none;
}
.bn-news-widget-cat:hover { color: var(--bn-primary-dark); text-decoration: none; }
.bn-news-widget-title {
    font-size: 13px; line-height: 1.4; margin: 0 0 4px;
    font-family: var(--bn-font-heading); font-weight: 700;
}
.bn-news-widget-title a { color: var(--bn-text); text-decoration: none; }
.bn-news-widget-title a:hover { color: var(--bn-primary); text-decoration: none; }
.bn-news-widget-meta { font-size: 11px; color: var(--bn-text-light); }

/* =========================================
   13. AD SLOTS (sidebar, header, in-content, side-overlay)
   ========================================= */
.bn-ad-slot {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background: var(--bn-bg-alt); border: 1px dashed var(--bn-border-strong);
    color: var(--bn-text-light); font-size: 12px;
    margin: 16px 0; text-align: center;
    border-radius: var(--bn-radius);
    overflow: hidden;
}
.bn-ad-300x250 { min-height: 250px; max-width: 300px; margin-left: auto; margin-right: auto; }
.bn-ad-300x600 { min-height: 600px; max-width: 300px; margin-left: auto; margin-right: auto; }
.bn-ad-728x90 { min-height: 90px; max-width: 728px; margin-left: auto; margin-right: auto; }
.bn-ad-label {
    position: absolute; top: 0; left: 0;
    background: var(--bn-text); color: var(--bn-bg);
    font-size: 9px; padding: 2px 6px;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700;
    border-bottom-right-radius: 4px;
    z-index: 2;
}

/* Ad widget container (when used in widget areas) */
.bn-ad-widget {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.bn-ad-widget .bn-ad-slot { margin: 0; }

/* === Sidebar widget: Categories list === */
.bn-widget-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bn-widget-categories > li {
    border-bottom: 1px solid var(--bn-border);
}
.bn-widget-categories > li:last-child { border-bottom: 0; }
.bn-widget-categories > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--bn-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.bn-widget-categories > li > a:hover {
    color: var(--bn-primary);
    padding-left: 6px;
    text-decoration: none;
}
.bn-widget-cat-count {
    color: var(--bn-text-light);
    font-size: 12px;
    font-weight: 400;
}

/* === Side overlay ads (desktop only) === */
.bn-side-ad {
    position: fixed;
    top: 140px;
    width: 160px;
    z-index: 50;
    display: none;
}
.bn-side-ad--left { left: 16px; }
.bn-side-ad--right { right: 16px; }

.bn-side-ad-inner {
    position: relative;
    min-height: 600px;
    background: var(--bn-bg-alt);
    border: 1px dashed var(--bn-border-strong);
    border-radius: var(--bn-radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--bn-text-light); font-size: 12px;
    overflow: hidden;
}

.bn-side-ad-close {
    position: absolute; top: 4px; right: 4px;
    width: 24px; height: 24px;
    background: var(--bn-text);
    color: var(--bn-bg);
    border: 0; border-radius: 50%;
    cursor: pointer; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    transition: background-color var(--bn-transition);
}
.bn-side-ad-close:hover { background: var(--bn-primary); }

/* Show only when viewport is wide enough — ada ruang setelah container + sidebar */
@media (min-width: 1440px) {
    .bn-side-ad { display: block; }
}
@media (min-width: 1600px) {
    .bn-side-ad { width: 160px; }
    .bn-side-ad--left { left: 24px; }
    .bn-side-ad--right { right: 24px; }
}

/* === Category block ad (in-content, 728x90 atau responsive) === */
.bn-cat-block-ad {
    margin: 20px 0;
    text-align: center;
}
.bn-cat-block-ad .bn-ad-slot {
    margin: 0 auto;
    min-height: 90px;
    max-width: 728px;
    width: 100%;
}
.bn-cat-block-ad .bn-ad-widget {
    margin: 0;
}

/* =========================================
   14. PAGINATION
   ========================================= */
.bn-pagination {
    display: flex; justify-content: center; gap: 8px;
    margin: 32px 0; flex-wrap: wrap;
}
.bn-pagination a, .bn-pagination span {
    display: inline-block; padding: 8px 14px;
    border: 1px solid var(--bn-border); border-radius: var(--bn-radius);
    text-decoration: none; color: var(--bn-text); font-size: 14px;
    transition: all var(--bn-transition);
}
.bn-pagination a:hover { background: var(--bn-primary); color: #fff; border-color: var(--bn-primary); text-decoration: none; }
.bn-pagination .current { background: var(--bn-primary); color: #fff; border-color: var(--bn-primary); }

/* =========================================
   15. FOOTER
   ========================================= */
.bn-footer { background: var(--bn-nav-bg); color: #ccc; margin-top: 60px; padding: 48px 0 0; }
.bn-footer-grid {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bn-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bn-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.bn-footer-col h3 {
    color: #fff; font-size: 1rem; margin: 0 0 16px;
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.bn-footer-about p { color: #999; font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.bn-footer-logo {
    font-family: var(--bn-font-heading);
    font-size: 1.5rem; font-weight: 900; color: #fff;
    text-decoration: none; display: inline-block; margin-bottom: 12px;
}
.bn-footer-logo span { color: var(--bn-primary); }
.bn-footer-col ul { list-style: none; margin: 0; padding: 0; }
.bn-footer-col ul li { margin-bottom: 8px; font-size: 14px; }
.bn-footer-col ul li a { color: #ccc; text-decoration: none; }
.bn-footer-col ul li a:hover { color: var(--bn-primary); text-decoration: underline; }

.bn-footer-social { display: flex; gap: 12px; margin-top: 12px; }
.bn-footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background var(--bn-transition);
}
.bn-footer-social a:hover { background: var(--bn-primary); }

.bn-footer-bottom {
    margin-top: 40px; padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; color: #888;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* =========================================
   16. UTILITIES & MISC
   ========================================= */
.bn-no-results { padding: 48px 0; text-align: center; color: var(--bn-text-muted); }
.bn-no-results h2 { color: var(--bn-text); margin-bottom: 8px; }

/* WP Core compatibility */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--bn-text-light); text-align: center; padding: 8px 0; }
.gallery-caption { font-size: 12px; }
.bypostauthor { display: block; }
.sticky { display: block; }

/* Block editor support */
.has-large-font-size { font-size: 1.5rem; }
.has-small-font-size { font-size: 0.875rem; }

/* =========================================
   17. CATEGORY BLOCK — FEATURED LAYOUT
   ========================================= */
.bn-cat-featured {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .bn-cat-featured {
        grid-template-columns: 1.5fr 1fr;
        gap: 32px;
    }
}

.bn-cat-featured-main {
    display: flex;
    flex-direction: column;
}
.bn-cat-featured-main-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--bn-radius);
    margin-bottom: 14px;
    background: var(--bn-bg-alt);
    box-shadow: var(--bn-shadow-sm);
}
.bn-cat-featured-main-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bn-cat-featured-main:hover .bn-cat-featured-main-thumb img {
    transform: scale(1.04);
}
.bn-cat-featured-main-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    line-height: 1.25;
    margin: 0 0 8px;
    font-family: var(--bn-font-heading);
    font-weight: 700;
}
.bn-cat-featured-main-title a {
    color: var(--bn-text);
    text-decoration: none;
}
.bn-cat-featured-main-title a:hover {
    color: var(--bn-primary);
    text-decoration: none;
}
.bn-cat-featured-main-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bn-text-muted);
    margin: 0 0 12px;
}

.bn-cat-featured-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.bn-cat-featured-list-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bn-border);
}
.bn-cat-featured-list-item:first-child { padding-top: 0; }
.bn-cat-featured-list-item:last-child { border-bottom: 0; padding-bottom: 0; }

.bn-cat-featured-list-thumb {
    flex-shrink: 0;
    width: 100px;
    border-radius: var(--bn-radius);
    overflow: hidden;
    background: var(--bn-bg-alt);
}
.bn-cat-featured-list-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.bn-cat-featured-list-content { flex: 1; min-width: 0; }
.bn-cat-featured-list-title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-family: var(--bn-font-heading);
    font-weight: 700;
}
.bn-cat-featured-list-title a { color: var(--bn-text); text-decoration: none; }
.bn-cat-featured-list-title a:hover { color: var(--bn-primary); text-decoration: none; }
.bn-cat-featured-list-meta { font-size: 12px; color: var(--bn-text-light); }

/* Block layout differentiation */
.bn-cat-block--featured .bn-section-header { border-bottom-color: var(--bn-primary); }
.bn-cat-block--grid-6 .bn-post-grid { row-gap: 28px; }

/* =========================================
   18. CUSTOMIZER LIVE PREVIEW HELPERS
   ========================================= */
.bn-hero-card-cat,
.bn-post-card-cat,
.bn-single-cat,
.bn-ticker-label,
.bn-pagination .current,
.bn-share-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* =========================================
   19. PRINT STYLES
   ========================================= */
@media print {
    .bn-nav, .bn-topbar, .bn-ticker-wrap, .bn-footer,
    .bn-sidebar, .bn-side-ad, .bn-ad-slot, .bn-share, .bn-comment-respond,
    .bn-menu-backdrop { display: none !important; }
    .bn-main { grid-template-columns: 1fr; }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* =========================================
   20. KOMENTAR — PREMIUM
   ========================================= */
.bn-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 3px solid var(--bn-primary);
}

/* Header daftar komentar */
.bn-comments-header {
    margin-bottom: 28px;
}
.bn-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}
.bn-comments-title-icon {
    color: var(--bn-primary);
    flex: 0 0 auto;
}
.bn-comments-count {
    font-weight: 800;
    color: var(--bn-primary);
}

/* Daftar komentar */
.bn-comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.bn-comment-list .children {
    list-style: none;
    margin: 16px 0 0;
    padding: 0 0 0 28px;
    border-left: 2px solid var(--bn-border);
}

/* Satu komentar */
.bn-comment {
    margin: 0 0 16px;
}
.bn-comment-body {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bn-bg-elevated);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius-lg);
    box-shadow: var(--bn-shadow-sm);
    transition: box-shadow var(--bn-transition), border-color var(--bn-transition);
}
.bn-comment-body:hover {
    box-shadow: var(--bn-shadow-md);
    border-color: var(--bn-border-strong);
}

/* Komentar dari penulis artikel */
.bn-comment--by-author > .bn-comment-body {
    border-color: var(--bn-primary-light);
    background: linear-gradient(0deg, var(--bn-bg-elevated), var(--bn-bg-elevated)), var(--bn-bg-alt);
    box-shadow: inset 3px 0 0 var(--bn-primary), var(--bn-shadow-sm);
}

/* Avatar */
.bn-comment-avatar {
    flex: 0 0 auto;
}
.bn-comment-avatar-img,
.bn-comment-avatar img {
    border-radius: 50%;
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid var(--bn-border);
}

/* Konten komentar */
.bn-comment-content {
    flex: 1 1 auto;
    min-width: 0;
}
.bn-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 6px;
}
.bn-comment-author {
    font-weight: 700;
    font-size: 15px;
    color: var(--bn-text);
}
.bn-comment-author a {
    color: var(--bn-text);
}
.bn-comment-author a:hover {
    color: var(--bn-primary);
    text-decoration: none;
}
.bn-comment-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--bn-primary);
    border-radius: 999px;
    vertical-align: middle;
}
.bn-comment-date {
    font-size: 12.5px;
    color: var(--bn-text-light);
}
.bn-comment-date:hover {
    color: var(--bn-primary);
    text-decoration: none;
}
.bn-comment-awaiting {
    margin: 6px 0;
    padding: 6px 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--bn-text-muted);
    background: var(--bn-bg-alt);
    border-radius: var(--bn-radius);
}
.bn-comment-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bn-text);
    word-wrap: break-word;
}
.bn-comment-text p {
    margin: 0 0 10px;
}
.bn-comment-text p:last-child {
    margin-bottom: 0;
}

/* Aksi: balas / edit */
.bn-comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
}
.bn-comment-actions a {
    color: var(--bn-text-muted);
}
.bn-comment-actions a:hover {
    color: var(--bn-primary);
    text-decoration: none;
}

/* Navigasi komentar & status tutup */
.bn-comments .comment-navigation,
.bn-comments .comments-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 14px;
}
.bn-comments-closed {
    margin: 20px 0;
    padding: 12px 16px;
    font-style: italic;
    color: var(--bn-text-muted);
    background: var(--bn-bg-alt);
    border-radius: var(--bn-radius);
    text-align: center;
}

/* =========================================
   FORM KOMENTAR — PREMIUM
   ========================================= */
.bn-comment-respond {
    margin-top: 36px;
    padding: 28px;
    background: var(--bn-bg-elevated);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius-lg);
    box-shadow: var(--bn-shadow-sm);
}
.bn-comment-reply-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
}
.bn-comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
}
.bn-comment-reply-title small a {
    color: var(--bn-primary);
}
.bn-comment-notes {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--bn-text-muted);
}
.bn-required {
    color: var(--bn-primary);
}

/* Layout field */
.bn-comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.bn-form-field {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bn-form-field--half {
    flex: 1 1 calc(50% - 8px);
    min-width: 220px;
}
.bn-form-field--full {
    flex: 1 1 100%;
}
.bn-form-field label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bn-text);
}
.bn-form-optional {
    font-weight: 400;
    color: var(--bn-text-light);
}
.bn-form-hint {
    font-size: 12px;
    color: var(--bn-text-light);
}
.bn-comment-form input[type="text"],
.bn-comment-form input[type="email"],
.bn-comment-form input[type="url"],
.bn-comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--bn-text);
    background: var(--bn-bg);
    border: 1px solid var(--bn-border-strong);
    border-radius: var(--bn-radius);
    transition: border-color var(--bn-transition), box-shadow var(--bn-transition);
    box-sizing: border-box;
}
.bn-comment-form textarea {
    resize: vertical;
    min-height: 120px;
}
.bn-comment-form input:focus,
.bn-comment-form textarea:focus {
    outline: none;
    border-color: var(--bn-primary);
    box-shadow: 0 0 0 3px var(--bn-primary-light);
}
.bn-comment-form input::placeholder,
.bn-comment-form textarea::placeholder {
    color: var(--bn-text-light);
}

/* Tombol kirim */
.bn-comment-form .form-submit {
    flex: 1 1 100%;
    margin: 0;
}
.bn-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--bn-primary);
    border: none;
    border-radius: var(--bn-radius);
    cursor: pointer;
    transition: background-color var(--bn-transition), transform var(--bn-transition);
}
.bn-comment-submit:hover {
    background: var(--bn-primary-dark);
    transform: translateY(-1px);
}
.bn-comment-submit:active {
    transform: translateY(0);
}

/* Checkbox cookie consent bawaan WP */
.bn-comment-form .comment-form-cookies-consent {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bn-text-muted);
}
.bn-comment-form .comment-form-cookies-consent label {
    font-weight: 400;
}

/* Responsif */
@media (max-width: 600px) {
    .bn-comment-body {
        gap: 12px;
        padding: 14px;
    }
    .bn-comment-avatar-img,
    .bn-comment-avatar img {
        width: 44px;
        height: 44px;
    }
    .bn-comment-list .children {
        padding-left: 14px;
    }
    .bn-comment-respond {
        padding: 20px 16px;
    }
    .bn-form-field--half {
        flex: 1 1 100%;
    }
}
