/*
Theme Name: Berita Modern Pro
Theme URI: https://bungko.id
Author: Bungko.id
Author URI: https://bungko.id
Description: Tema WordPress berita online profesional, modern, responsif, dan SEO-friendly untuk portal berita dengan performa tinggi dan struktur data lengkap.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berita-modern-pro
Tags: news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F8F9FA;
    color: #1a1a2e;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, textarea, select { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

/* ===== ACCESSIBILITY (Focus States) ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --primary-50: #fef2f2;
    --dark: #0f172a;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #F8F9FA;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 10px;
    --radius-lg: 16px;
    --max-w: 1280px;
    --serif: 'Merriweather', Georgia, serif;
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only,
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); line-height: 1.3; color: var(--dark); font-weight: 700; }
kbd { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 11px; border: 1px solid var(--border); font-family: inherit; color: var(--text-secondary); }

/* ===== LAYOUT ===== */
.main-layout { padding: 28px 0 60px; }
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative; }
.section-header::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--primary); }
.section-title { font-size: 18px; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.02em; font-family: 'Inter', sans-serif; }
.section-title .iconify { color: var(--primary); font-size: 20px; }
.section-link { font-size: 12.5px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.section-link:hover { gap: 8px; }
.section-link .iconify { font-size: 14px; }

/* ===== ARTICLE CARD ===== */
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); transition: all 0.3s ease; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.article-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.article-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-img { transform: scale(1.06); }
.article-card-cat { position: absolute; top: 12px; left: 12px; background: var(--primary); color: white; padding: 3px 10px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; z-index: 2; transition: background 0.2s; }
.article-card-cat:hover { background: var(--primary-dark); }
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--text); margin-bottom: 8px; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-body h3 a { color: inherit; }
.article-card:hover h3 { color: var(--primary); }
.article-card-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border-light); }
.article-card-meta .author { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-secondary); }
.article-card-meta .author-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.article-card-meta .date { display: flex; align-items: center; gap: 4px; }

/* ===== ARTICLE LIST ===== */
.article-list-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-light); transition: padding 0.2s; }
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { padding-left: 6px; }
.article-list-img { width: 140px; height: 95px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.article-list-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.article-list-cat { font-size: 10.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.article-list-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 6px; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-body h3 a { color: inherit; }
.article-list-item:hover h3 { color: var(--primary); }
.article-list-meta { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-list-meta span { display: flex; align-items: center; gap: 3px; }

/* ===== FEATURED GRID ===== */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }

/* ===== NUMBERED LIST ===== */
.numbered-list { counter-reset: article; }
.numbered-item { counter-increment: article; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.numbered-item:last-child { border-bottom: none; }
.numbered-item::before { content: counter(article); flex-shrink: 0; width: 30px; height: 30px; background: var(--primary-light); color: var(--primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 2px; font-family: 'Inter', sans-serif; }
.numbered-body h4 { font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text); transition: color 0.2s; }
.numbered-item:hover .numbered-body h4 { color: var(--primary); }
.numbered-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); overflow: hidden; }
.widget-header { padding: 14px 18px; background: var(--dark); color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; }
.widget-header .iconify { color: var(--primary); font-size: 16px; }
.widget-body { padding: 4px 18px 18px; }

/* Tab Widget */
.tab-nav { display: flex; border-bottom: 2px solid var(--border-light); margin: 0 -18px; padding: 0 18px; }
.tab-btn { padding: 12px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Social Widget */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px; }
.social-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: white; font-size: 12px; font-weight: 600; transition: transform 0.2s; }
.social-item:hover { transform: scale(1.03); }
.social-item .iconify { font-size: 20px; }
.social-item.fb { background: #1877F2; }
.social-item.tw { background: #0f1419; }
.social-item.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-item.yt { background: #FF0000; }
.social-count { font-size: 13px; font-weight: 700; display: block; }
.social-label { font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.04em; }

/* Newsletter Widget */
.newsletter-widget { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; padding: 24px; text-align: center; }
.newsletter-widget .widget-header { background: rgba(255,255,255,0.15); justify-content: center; margin: -24px -24px 16px; }
.newsletter-widget p { font-size: 13px; opacity: 0.9; margin-bottom: 14px; line-height: 1.5; }
.newsletter-input { display: flex; gap: 8px; }
.newsletter-input input { flex: 1; padding: 10px 14px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.15); color: white; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.newsletter-input input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input input:focus { border-color: rgba(255,255,255,0.6); }
.newsletter-input button { padding: 10px 16px; background: white; color: var(--primary); border-radius: 8px; font-size: 13px; font-weight: 700; transition: all 0.2s; white-space: nowrap; }
.newsletter-input button:hover { background: #fef2f2; transform: scale(1.03); }

/* Category List Widget */
.cat-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--text); font-weight: 500; transition: color 0.2s; }
.cat-list a:hover { color: var(--primary); }
.cat-list .count { color: var(--text-muted); font-size: 12px; }

/* Tag Cloud Widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.tag-item { padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; font-size: 12px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.tag-item:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 36px; background: var(--white); border: 2px solid var(--border); border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--text); transition: all 0.3s; font-family: 'Inter', sans-serif; }
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(220,38,38,0.06); }
.load-more-btn .iconify { font-size: 18px; transition: transform 0.3s; }
.load-more-btn:hover .iconify { transform: translateY(2px); }

/* ===== SINGLE ARTICLE ===== */
.single-article { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); }
.single-header { padding: 28px 32px 0; }
.single-cat { display: inline-block; background: var(--primary); color: white; padding: 4px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-family: 'Inter', sans-serif; transition: background 0.2s; }
.single-cat:hover { background: var(--primary-dark); }
.single-title { font-size: 30px; font-weight: 900; line-height: 1.3; margin-bottom: 16px; color: var(--dark); }
.single-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text-secondary); }
.single-meta .author-info { display: flex; align-items: center; gap: 10px; }
.single-meta .author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.single-meta .author-name { font-weight: 600; color: var(--text); display: block; }
.single-meta .author-role { font-size: 11px; color: var(--text-muted); }
.single-meta-item { display: flex; align-items: center; gap: 4px; }
.single-featured-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-img-caption { padding: 10px 32px; font-size: 12px; color: var(--text-muted); text-align: center; font-style: italic; }

/* ===== SINGLE CONTENT (termasuk Gutenberg blocks) ===== */
.single-content { padding: 28px 32px 32px; font-size: 16.5px; line-height: 1.85; color: var(--text); }
.single-content p { margin-bottom: 20px; }
.single-content h2 { font-size: 24px; margin: 32px 0 16px; }
.single-content h3 { font-size: 20px; margin: 28px 0 14px; }
.single-content h4 { font-size: 18px; margin: 24px 0 12px; font-family: 'Inter', sans-serif; font-weight: 600; }
.single-content h5 { font-size: 16px; margin: 20px 0 10px; font-family: 'Inter', sans-serif; font-weight: 600; }
.single-content h6 { font-size: 14px; margin: 18px 0 8px; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text-secondary); }
.single-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-50); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-secondary); }
.single-content img { border-radius: var(--radius); margin: 20px 0; }
.single-content ul, .single-content ol { margin: 16px 0; padding-left: 24px; }
.single-content li { margin-bottom: 8px; }
.single-content ul { list-style-type: disc; }
.single-content ol { list-style-type: decimal; }
.single-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.single-content a:hover { color: var(--primary-dark); }
.single-content pre { background: var(--dark); color: #e2e8f0; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; margin: 20px 0; line-height: 1.6; }
.single-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--primary-dark); }
.single-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.single-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.single-content th, .single-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.single-content th { background: var(--bg); font-weight: 600; font-family: 'Inter', sans-serif; color: var(--dark); }
.single-content iframe { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.single-content .wp-block-separator { border: none; height: 1px; background: var(--border); margin: 28px 0; }
.single-content .alignleft { float: left; margin: 4px 20px 16px 0; }
.single-content .alignright { float: right; margin: 4px 0 16px 20px; }
.single-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.single-content .wp-block-image figcaption, .single-content figure figcaption { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.single-content .wp-block-pullquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-50); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.single-content .wp-block-quote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-50); border-radius: 0 var(--radius) var(--radius) 0; }
.single-content .wp-block-quote cite { font-style: normal; font-weight: 600; font-family: 'Inter', sans-serif; color: var(--text); }
.single-content .wp-block-quote p { font-style: italic; }
.single-content .wp-block-quote.is-style-large { padding: 24px 32px; }
.single-content .wp-block-quote.is-style-large p { font-size: 20px; line-height: 1.5; }

/* ===== PAGE BREAK NAVIGATION ===== */
.page-break-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px 0;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.pb-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 4px;
    font-family: 'Inter', sans-serif;
    display: inline-block !important;
}
.page-break-nav .page-links {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}
.page-break-nav .page-links a,
.page-break-nav .page-links > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    background: var(--white);
    transition: all 0.2s;
    text-decoration: none;
    padding: 0 !important;
    margin: 0 !important;
}
.page-break-nav .page-links a span {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.page-break-nav .page-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.page-break-nav .page-links > span.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    cursor: default;
}

/* ===== SINGLE TAGS ===== */
.single-tags { padding: 0 32px 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.single-tags-label { font-size: 13px; font-weight: 700; color: var(--text); font-family: 'Inter', sans-serif; }
.single-tags a { padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; font-size: 12px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.single-tags a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== SINGLE SHARE ===== */
.single-share { padding: 20px 32px; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 12px; }
.single-share-label { font-size: 13px; font-weight: 700; color: var(--text); font-family: 'Inter', sans-serif; }
.share-btn { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; transition: transform 0.2s; }
.share-btn:hover { transform: scale(1.1); }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #0f1419; }
.share-btn.wa { background: #25D366; }
.share-btn.tel { background: #0088cc; }

/* ===== AUTHOR BOX ===== */
.author-box { margin: 28px 32px; padding: 24px; background: var(--bg); border-radius: var(--radius); display: flex; gap: 20px; align-items: center; }
.author-box-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-name { font-size: 16px; font-weight: 700; color: var(--dark); font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.author-box-role { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.author-box-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== POST NAVIGATION ===== */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.post-navigation .nav-links { display: contents; }
.nav-previous, .nav-next { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; transition: all 0.2s; }
.nav-previous:hover, .nav-next:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.nav-previous { text-align: left; }
.nav-next { text-align: right; }
.post-navigation .nav-subtitle { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-family: 'Inter', sans-serif; display: flex; align-items: center; gap: 4px; }
.nav-next .post-navigation .nav-subtitle { justify-content: flex-end; }
.post-navigation .nav-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== PAGE TEMPLATE ===== */
.page-content { background: var(--white); border-radius: var(--radius-lg); padding: 36px 40px; border: 1px solid var(--border-light); }
.page-content h1 { font-size: 32px; margin-bottom: 20px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; }

/* ===== 404 PAGE ===== */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404-code { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; font-family: 'Inter', sans-serif; opacity: 0.15; }
.error-404-title { font-size: 28px; font-weight: 800; color: var(--dark); margin: -20px 0 12px; font-family: 'Inter', sans-serif; }
.error-404-desc { font-size: 15px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.error-404-search { max-width: 480px; margin: 0 auto 20px; position: relative; }
.error-404-search input { width: 100%; padding: 14px 20px 14px 48px; border: 2px solid var(--border); border-radius: 50px; font-size: 15px; background: var(--white); outline: none; transition: border-color 0.2s; }
.error-404-search input:focus { border-color: var(--primary); }
.error-404-search .iconify { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; pointer-events: none; }
.error-404-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--primary); color: white; border-radius: 50px; font-size: 14px; font-weight: 600; transition: background 0.2s; font-family: 'Inter', sans-serif; }
.error-404-btn:hover { background: var(--primary-dark); }

/* ===== SEARCH RESULTS ===== */
.search-header { padding: 20px 0; margin-bottom: 20px; }
.search-header h1 { font-size: 22px; font-family: 'Inter', sans-serif; font-weight: 800; }
.search-header span { color: var(--primary); }
.search-count { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border); transition: all 0.2s; }
.page-numbers:hover, .page-numbers.current { background: var(--primary); color: white; border-color: var(--primary); }
.page-numbers.dots { border: none; color: var(--text-muted); }
.page-numbers .iconify { font-size: 18px; }

/* ===== COMMENTS ===== */
.comments-area { padding: 0; }
.comments-title { font-size: 20px; margin-bottom: 24px; font-family: 'Inter', sans-serif; font-weight: 700; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.comment:first-child { padding-top: 0; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.comment-author .fn { font-weight: 700; font-size: 14px; color: var(--text); font-family: 'Inter', sans-serif; }
.comment-author .says { color: var(--text-muted); font-size: 13px; }
.comment-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.comment-content { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.comment-content p { margin-bottom: 12px; }
.comment-reply-link { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }
.comment-reply-link:hover { color: var(--primary-dark); }
.children .comment { padding-left: 44px; border-left: 2px solid var(--border-light); }
#respond { margin-top: 24px; }
#respond .comment-reply-title { font-size: 18px; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 700; }
#respond .comment-form input[type="text"],
#respond .comment-form input[type="email"],
#respond .comment-form input[type="url"],
#respond .comment-form textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 14px; background: var(--white); outline: none; transition: border-color 0.2s;
}
#respond .comment-form input:focus, #respond .comment-form textarea:focus { border-color: var(--primary); }
#respond .comment-form textarea { min-height: 140px; resize: vertical; }
#respond .comment-form .submit { padding: 12px 28px; background: var(--primary); color: white; border-radius: 8px; font-size: 14px; font-weight: 700; transition: background 0.2s; font-family: 'Inter', sans-serif; }
#respond .comment-form .submit:hover { background: var(--primary-dark); }
.logged-in-as { margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }
.reply { display: none; }
.comment .children { list-style: none; }

/* ===== READING PROGRESS ===== */
.reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--primary); z-index: 9999; transition: width 0.1s; }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 80px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--dark); color: white; padding: 14px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: 340px; }
.toast.show { transform: translateX(0); }
.toast .iconify { font-size: 20px; flex-shrink: 0; }
.toast.success .iconify { color: #4ade80; }
.toast.error .iconify { color: #f87171; }

/* ===== SKELETON LOADING ===== */
.skeleton { background: linear-gradient(90deg, var(--border-light) 25%, #e8ecf0 50%, var(--border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; transition: opacity 0.3s; }
.mobile-menu-overlay.active { opacity: 1; }
.mobile-menu { position: fixed; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100vh; background: var(--white); z-index: 2001; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.mobile-menu-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-secondary); border-radius: 8px; transition: all 0.2s; }
.mobile-menu-close:hover { background: var(--bg); color: var(--primary); }
.mobile-nav { padding: 12px 0; }
.mobile-nav li a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text); transition: all 0.2s; }
.mobile-nav li a:hover, .mobile-nav li a.current-menu-item { background: var(--primary-light); color: var(--primary); }
.mobile-nav li a .iconify { font-size: 18px; color: var(--text-muted); }
.mobile-nav li a:hover .iconify, .mobile-nav li a.current-menu-item .iconify { color: var(--primary); }
.mobile-search { padding: 0 20px 20px; }
.mobile-search input { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; }
.mobile-search input:focus { border-color: var(--primary); }

/* ===== CHEAT CARD ===== */
.cheat-card { background: linear-gradient(135deg, #1a0507, #3b0000 50%, #1a0507 100%); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 30px rgba(0,0,0,0.35); position: relative; }
.cheat-card::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; background: linear-gradient(135deg, rgba(220,38,38,0.3), rgba(220,38,38,0) 50%); border-radius: var(--radius-lg); z-index: 0; pointer-events: none; }
.cheat-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px 20px 28px; flex-wrap: wrap; }
.cheat-header-left { flex: 1; min-width: 0; }
.cheat-label { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-family: 'Inter', sans-serif; }
.cheat-title { font-size: 26px; font-weight: 900; color: white; line-height: 1.15; margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.cheat-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.cheat-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: #FACC15; color: #000; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s ease; font-family: 'Inter', sans-serif; box-shadow: 0 0 0 rgba(250,204,21,0); }
.cheat-btn:hover { background: #eab308; transform: scale(1.05); box-shadow: 0 4px 15px rgba(250,204,21,0.35); }
.cheat-table { background: rgba(0,0,0,0.2); border-radius: 0 0 12px 12px; overflow: hidden; }
.cheat-table-header { display: flex; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.05); gap: 8px; }
.cth-no { width: 42px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.35); text-align: center; font-family: 'Inter', sans-serif; }
.cth-label { flex: 1; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Inter', sans-serif; }
.cth-desc { flex: 3; font-size: 11.5px; color: rgba(255,255,255,0.45); font-family: 'Inter', sans-serif; }
.cth-icon { width: 30px; text-align: center; font-size: 16px; color: rgba(255,255,255,0.25); flex-shrink: 0; }
.cheat-table-body { max-height: 500px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
.cheat-table-body::-webkit-scrollbar { width: 5px; }
.cheat-table-body::-webkit-scrollbar-track { background: transparent; }
.cheat-table-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.cheat-table-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
.cheat-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cheat-row:last-child { border-bottom: none; }
.cheat-row:hover { background: rgba(255,255,255,0.06); padding-left: 20px; }
.cheat-row:hover .ctr-label { color: white; }
.cheat-row:hover .ctr-desc { color: rgba(255,255,255,0.7); }
.cheat-row:hover .ctr-icon { color: rgba(255,255,255,0.7); }
.ctr-no { width: 42px; font-size: 15px; font-weight: 800; color: var(--primary); text-align: center; font-family: 'Inter', sans-serif; background: rgba(220,38,38,0.15); border-radius: 6px; padding: 2px 0; flex-shrink: 0; }
.ctr-label { flex: 1; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); font-family: 'Inter', sans-serif; line-height: 1.35; }
.ctr-desc { flex: 3; font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.4; font-family: 'Inter', sans-serif; }
.ctr-icon { width: 30px; text-align: center; font-size: 16px; color: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ===== SEARCH MODAL ===== */
.search-modal { display: none !important; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 3000; align-items: flex-start; justify-content: center; padding-top: 12vh; backdrop-filter: blur(4px); }
.search-modal.active { display: flex !important; }
.search-modal-inner { background: var(--white); border-radius: var(--radius-lg); width: 90%; max-width: 640px; overflow: hidden; box-shadow: var(--shadow-xl); transform: scale(0.95) translateY(-10px); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.search-modal.active .search-modal-inner { transform: scale(1) translateY(0); opacity: 1; }
.search-modal-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-modal-input .iconify { font-size: 24px; color: var(--text-muted); flex-shrink: 0; }
.search-modal-input input { flex: 1; border: none; font-size: 17px; font-family: inherit; outline: none; color: var(--text); background: transparent; }
.search-modal-input input::placeholder { color: var(--text-muted); }
.search-modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted); border-radius: 8px; transition: all 0.2s; flex-shrink: 0; }
.search-modal-close:hover { background: var(--bg); color: var(--text); }
.search-modal-hint { padding: 14px 20px; font-size: 12.5px; color: var(--text-muted); border-bottom: 1px solid var(--border-light); }

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .main-layout, .container, .main-grid { overflow-x: hidden !important; max-width: 100vw !important; }
    .featured-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-list-img { width: 110px; height: 80px; }
    .section-title { font-size: 15px; }
    .single-header { padding: 20px 20px 0; }
    .single-title { font-size: 22px; }
    .single-content { padding: 20px; font-size: 15.5px; }
    .single-img-caption { padding: 10px 20px; }
    .single-tags { padding: 0 20px 20px; }
    .single-share { padding: 16px 20px; }
    .author-box { margin: 20px; flex-direction: column; text-align: center; }
    .sidebar { grid-template-columns: 1fr; }
    .page-content { padding: 24px 20px; }
    .error-404 { padding: 40px 20px; }
    .error-404-code { font-size: 80px; }
    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
    .nav-next .post-navigation .nav-subtitle { justify-content: flex-start; }
    .pagination { flex-wrap: wrap; }
    .single-content table, .single-content pre { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .single-content pre { white-space: pre-wrap; word-wrap: break-word; }
    .single-content iframe { max-width: 100% !important; }
    .page-break-nav { padding: 16px; gap: 8px; flex-wrap: wrap; }
    .page-break-nav .page-links a, .page-break-nav .page-links > span { width: 36px; height: 36px; font-size: 14px; }
    .cheat-header { padding: 18px 20px 16px 20px; gap: 12px; }
    .cheat-title { font-size: 22px; }
    .cheat-subtitle { font-size: 12px; }
    .cheat-btn { padding: 8px 18px; font-size: 12px; }
    .cheat-table-header { padding: 8px 12px; }
    .cth-desc { flex: 2; font-size: 10.5px; }
    .cth-icon { width: 24px; font-size: 14px; }
    .ctr-no { width: 34px; font-size: 13px; }
    .ctr-label { font-size: 13px; }
    .ctr-desc { flex: 2; font-size: 11.5px; }
}
@media (max-width: 480px) {
    .social-grid { grid-template-columns: 1fr; }
    .newsletter-input { flex-direction: column; }
    .single-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .error-404-btn { width: 100%; justify-content: center; }
    .load-more-btn { width: 100%; justify-content: center; }
    .post-navigation .nav-title { font-size: 13px; }
    .author-box { gap: 16px; }
    .author-box-avatar { width: 60px; height: 60px; }
    .single-content h2 { font-size: 20px; }
    .single-content h3 { font-size: 17px; }
    .share-btn { width: 36px; height: 36px; font-size: 16px; }
    .cheat-card { border-radius: var(--radius); }
    .cheat-header { padding: 16px 16px 14px 16px; }
    .cheat-title { font-size: 19px; }
    .cheat-subtitle { display: none; }
    .cheat-table-body { max-height: 400px; }
    .cheat-table-header { display: none; }
    .ctr-icon { display: none; }
    .ctr-desc { flex: 1; font-size: 12.5px; }
    .cheat-row { padding: 10px 12px; }
    .cheat-row:hover { padding-left: 14px; }
    .ctr-no { width: 30px; font-size: 12px; }
}

/* ===== PRINT ===== */
@media print {
    .top-bar, .header, .nav-bar, .breaking-news, .breadcrumb-wrap, .sidebar, .back-to-top, .footer, .load-more-wrap, .toast-container, .reading-progress, .single-share, .mobile-menu, .mobile-menu-overlay, .search-modal, .post-navigation, .error-404-search, .page-break-nav { display: none !important; }
    body { background: white; font-size: 12pt; color: black; }
    .main-grid { grid-template-columns: 1fr; }
    .single-article { border: none; box-shadow: none; }
    .single-content { padding: 0; }
    .single-title { font-size: 20pt; }
    a { color: inherit; text-decoration: none; }
    a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
    .article-card, .article-list-item { break-inside: avoid; page-break-inside: avoid; }
    .cheat-card { break-inside: avoid; margin-bottom: 20px; box-shadow: none; border: 2px solid #000; }
    .cheat-card::before { display: none; }
    .cheat-table-body { max-height: none; overflow: visible; }
    .cheat-header { padding: 12px 16px; }
    .cheat-btn { display: none; }
    .cheat-subtitle { display: block; color: #444; font-size: 11px; }
    .ctr-desc { color: #333; }
    .ctr-label { color: #000; font-weight: 700; }
    .ctr-no { color: #000; background: #f0f0f0; }
    .cheat-row:hover { background: none; padding-left: 12px; }
}

/* ===== REDUCED MOTION ===== */
@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; }
}

/* === FIX LAYOUT SIDEBAR DI HALAMAN ARTIKEL === */
body.single .main-grid { display: flex !important; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
body.single .content-area { flex: 0 0 calc(66.666% - 15px); max-width: calc(66.666% - 15px); }
body.single .sidebar { flex: 0 0 calc(33.333% - 15px); max-width: calc(33.333% - 15px); display: flex !important; flex-direction: column !important; gap: 28px !important; }
@media (max-width: 1024px) {
    body.single .content-area, body.single .sidebar { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 768px) {
    body.single .content-area, body.single .sidebar { flex: 0 0 100%; max-width: 100%; }
    .main-grid { grid-template-columns: 1fr !important; }
    .sidebar { display: block !important; }
}