/*
Theme Name: BanterSatu News
Theme URI: https://saetheme.com/
Author: SaeTheme
Author URI: https://saetheme.com/
Description: Theme portal berita WordPress responsif dengan tata letak editorial modern, headline, berita populer, ticker, dan slot iklan lengkap.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bantersatu-news
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bs-navy: #072569;
  --bs-navy-2: #031b54;
  --bs-red: #d01e27;
  --bs-gold: #fdb446;
  --bs-text: #171b24;
  --bs-muted: #6e7480;
  --bs-line: #e4e7eb;
  --bs-soft: #f4f5f7;
  --bs-white: #fff;
  --bs-radius: 10px;
  --bs-shadow: 0 8px 28px rgba(7, 37, 105, .09);
  --bs-wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bs-white); color: var(--bs-text); font: 400 14px/1.65 "Open Sans", Arial, sans-serif; }
body.dark-mode { --bs-text: #eef1f7; --bs-muted: #aeb5c2; --bs-line: #303744; --bs-soft: #202631; --bs-white: #171c24; background: #171c24; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bs-red); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 32px), var(--bs-wrap)); margin-inline: auto; }
.site-main { min-height: 55vh; }

/* Header */
.top-ad-wrap, .inline-ad-wrap { background: #f2f2f2; text-align: center; }
.ad-label { display: block; padding: 4px 0; color: #717171; font: 10px/1.2 Arial, sans-serif; letter-spacing: .04em; }
.ad-slot { display: flex; min-height: 90px; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot img { display: block; max-height: 250px; object-fit: contain; }
.ad-slot.is-empty { color: #9aa0a8; border: 1px dashed #cfd3d8; background: repeating-linear-gradient(-45deg,#f7f7f7,#f7f7f7 8px,#f1f1f1 8px,#f1f1f1 16px); }
.site-header { background: var(--bs-white); }
.header-main { display: grid; grid-template-columns: minmax(220px, 270px) 1fr auto; min-height: 74px; align-items: center; gap: 24px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 44px; }
.text-logo { display: inline-flex; align-items: baseline; font-size: 29px; font-weight: 900; line-height: 1; letter-spacing: -1.5px; color: var(--bs-navy); }
.text-logo span { color: var(--bs-red); }
.site-tagline { display: block; margin-top: 5px; color: var(--bs-muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.header-search form { position: relative; }
.header-search input { width: 100%; height: 40px; padding: 0 48px 0 18px; color: var(--bs-text); border: 1px solid var(--bs-line); border-radius: 999px; background: var(--bs-white); outline: none; }
.header-search input:focus { border-color: var(--bs-navy); box-shadow: 0 0 0 3px rgba(7,37,105,.09); }
.header-search button { position: absolute; right: 5px; top: 4px; width: 34px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--bs-navy); cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--bs-navy); border: 1px solid var(--bs-line); border-radius: 50%; background: var(--bs-white); }
.header-action:hover { color: #fff; background: var(--bs-red); border-color: var(--bs-red); }
.header-action.live { width: auto; padding: 0 14px; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bs-red); box-shadow: 0 0 0 4px rgba(208,30,39,.13); }
.nav-sticky { position: sticky; top: 0; z-index: 90; box-shadow: 0 2px 9px rgba(0,0,0,.14); }
.primary-nav { background: linear-gradient(90deg,var(--bs-navy) 0 82%,var(--bs-red) 82%); }
.nav-row { display: flex; min-height: 40px; align-items: stretch; }
.menu-toggle { display: none; border: 0; color: #fff; background: transparent; font-weight: 800; }
.primary-nav ul, .secondary-nav ul, .footer-menu { display: flex; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu { width: 100%; justify-content: space-between; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; min-height: 40px; padding: 0 12px; align-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--bs-gold); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 5; display: none; min-width: 210px; padding: 8px 0; background: var(--bs-navy); box-shadow: var(--bs-shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { min-height: 36px; font-weight: 600; }
.secondary-nav { overflow-x: auto; background: #f0f1f3; border-bottom: 1px solid var(--bs-line); scrollbar-width: none; }
.dark-mode .secondary-nav { background: #202631; }
.secondary-nav ul { gap: 26px; white-space: nowrap; }
.secondary-nav a { display: block; padding: 8px 0; color: var(--bs-navy); font-size: 12px; font-weight: 700; }
.dark-mode .secondary-nav a { color: #dbe4ff; }
.headline-ticker { height: 31px; overflow: hidden; color: #fff; background: #050505; border-radius: 0 0 7px 7px; box-shadow: 0 3px 12px rgba(0,0,0,.13); }
.ticker-inner { display: flex; height: 31px; align-items: center; overflow: hidden; }
.ticker-label { position: relative; z-index: 2; display: flex; height: 31px; padding: 0 22px 0 12px; align-items: center; flex: 0 0 auto; background: var(--bs-red); font-size: 11px; font-weight: 800; }
.ticker-label::after { content: ""; position: absolute; right: -13px; width: 26px; height: 31px; border-radius: 50%; background: #050505; }
.ticker-track { display: flex; width: max-content; padding-left: 22px; animation: ticker 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { margin-right: 34px; white-space: nowrap; color: #fff; font-size: 11px; }
.ticker-track a::before { content: "◆"; margin-right: 8px; color: var(--bs-red); font-size: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Shared editorial components */
.section-space { margin-top: 34px; }
.section-head { display: flex; margin-bottom: 16px; align-items: end; justify-content: space-between; gap: 20px; }
.section-title { margin: 0; padding: 1px 0 2px 10px; color: var(--bs-navy); border-left: 6px solid var(--bs-red); font-size: 20px; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.dark-mode .section-title { color: #dbe4ff; }
.section-more { color: var(--bs-muted); font-size: 12px; }
.section-more:hover { color: var(--bs-red); }
.category-pill { display: inline-block; padding: 2px 9px; color: var(--bs-red); border: 1px solid #efb6ba; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.6; text-transform: uppercase; }
.post-time { color: var(--bs-muted); font-size: 10px; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: var(--bs-radius); background: #e9edf2; aspect-ratio: 16/9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a:hover .thumb img, .thumb:hover img { transform: scale(1.055); }
.thumb-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--bs-navy),#244d9e); color: rgba(255,255,255,.92); font-weight: 900; letter-spacing: -.5px; }
.post-title { margin: 7px 0 5px; font-size: 16px; line-height: 1.35; font-weight: 800; }
.clamp-2, .clamp-3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 728px) 320px; gap: 32px; }

/* Home */
.home-top-ad { margin: 18px auto 22px; }
.hero-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); gap: 14px; }
.hero-main { position: relative; overflow: hidden; min-height: 392px; border-radius: 12px; background: #111; }
.hero-main .thumb { height: 100%; border-radius: 0; aspect-ratio: auto; }
.hero-main::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.92)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 22px; color: #fff; }
.hero-copy .post-title { margin: 8px 0 6px; font-size: 28px; line-height: 1.22; }
.hero-copy .post-time { color: #e2e2e2; }
.hero-label { position: absolute; z-index: 3; top: 16px; left: 16px; padding: 6px 12px; color: #fff; border-radius: 5px; background: var(--bs-red); font-size: 11px; font-weight: 900; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.hero-mini { position: relative; overflow: hidden; min-height: 189px; color: #fff; border-radius: 10px; background: #111; }
.hero-mini .thumb { height: 100%; border-radius: 0; aspect-ratio: auto; }
.hero-mini::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.9)); }
.hero-mini-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 14px; }
.hero-mini .post-title { margin: 4px 0; font-size: 15px; }
.recommend-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.category-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.lead-card .post-title { font-size: 21px; }
.story-list { display: grid; gap: 14px; }
.story-row { display: grid; grid-template-columns: 142px minmax(0,1fr); gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--bs-line); }
.story-row:last-child { border-bottom: 0; }
.story-row .post-title { margin: 2px 0 6px; font-size: 14px; }
.latest-list { display: grid; gap: 18px; }
.latest-card { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--bs-line); }
.latest-card .post-title { margin: 5px 0 7px; font-size: 19px; }
.post-excerpt { margin: 0; color: var(--bs-muted); font-size: 13px; line-height: 1.55; }

/* Sidebar */
.sidebar { min-width: 0; }
.sidebar-box { padding: 18px; border: 1px solid var(--bs-line); border-radius: var(--bs-radius); background: var(--bs-white); box-shadow: 0 5px 22px rgba(7,37,105,.05); }
.sidebar-box + .sidebar-box { margin-top: 22px; }
.popular-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--bs-line); }
.popular-item:last-child { padding-bottom: 0; border-bottom: 0; }
.popular-num { color: var(--bs-red); font: 900 28px/1.1 Arial,sans-serif; }
.popular-item .post-title { margin: 0 0 4px; font-size: 13px; }
.sticky-ad { position: sticky; top: 104px; margin-top: 22px; }
.widget { margin-bottom: 22px; }
.widget-title { margin: 0 0 12px; padding-bottom: 8px; color: var(--bs-navy); border-bottom: 2px solid var(--bs-red); font-size: 16px; }
.dark-mode .widget-title { color: #dbe4ff; }
.widget ul { margin: 0; padding-left: 18px; }

/* Archive, article, pagination */
.page-shell { padding-top: 32px; }
.breadcrumbs { margin-bottom: 18px; color: var(--bs-muted); font-size: 11px; }
.breadcrumbs a { color: var(--bs-navy); }
.dark-mode .breadcrumbs a { color: #b8c9ff; }
.archive-title { margin: 0 0 22px; font-size: 28px; line-height: 1.25; }
.pagination { display: flex; margin-top: 28px; gap: 7px; }
.pagination .page-numbers { display: inline-flex; min-width: 36px; height: 36px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--bs-line); border-radius: 5px; }
.pagination .current { color: #fff; border-color: var(--bs-red); background: var(--bs-red); }
.article-header h1 { margin: 5px 0 12px; font-size: clamp(28px,4vw,42px); line-height: 1.2; letter-spacing: -.025em; }
.article-deck { margin: 0 0 15px; color: var(--bs-muted); font-size: 16px; }
.article-meta { display: flex; margin-bottom: 18px; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--bs-muted); font-size: 11px; }
.article-meta strong { color: var(--bs-navy); }
.dark-mode .article-meta strong { color: #dbe4ff; }
.article-featured { margin: 0 0 24px; }
.article-featured img { display: block; width: 100%; border-radius: 10px; }
.featured-caption { margin-top: 6px; color: var(--bs-muted); font-size: 10px; }
.article-content { font-family: Georgia,"Times New Roman",serif; font-size: 18px; line-height: 1.82; }
.article-content > * { max-width: 100%; }
.article-content h2, .article-content h3 { font-family: "Open Sans",Arial,sans-serif; line-height: 1.35; }
.article-content a { color: var(--bs-red); text-decoration: underline; }
.article-content blockquote { margin: 24px 0; padding: 16px 20px; border-left: 5px solid var(--bs-red); background: var(--bs-soft); font-style: italic; }
.article-content .inline-ad-wrap { margin: 28px 0; font-family: Arial,sans-serif; }
.article-tags { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 7px; }
.article-tags a { padding: 5px 10px; border: 1px solid var(--bs-line); border-radius: 999px; font-size: 11px; }
.share-row { display: flex; margin: 14px 0 20px; gap: 8px; }
.share-row a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; background: var(--bs-navy); font-size: 12px; font-weight: 800; }
.share-row a:hover { background: var(--bs-red); }
.author-box { display: flex; margin-top: 28px; padding: 18px; gap: 15px; border-radius: var(--bs-radius); background: var(--bs-soft); }
.author-box img { width: 62px; height: 62px; border-radius: 50%; }
.author-box h3 { margin: 0 0 5px; font-size: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.related-grid .post-title { font-size: 14px; }
.comments-area { margin-top: 32px; }
.comments-area textarea, .comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url] { width: 100%; padding: 10px; border: 1px solid var(--bs-line); border-radius: 6px; background: var(--bs-white); color: var(--bs-text); }
.comments-area input[type=submit] { padding: 10px 16px; color: #fff; border: 0; border-radius: 5px; background: var(--bs-red); cursor: pointer; }
.not-found { padding: 80px 0; text-align: center; }
.not-found .code { color: var(--bs-red); font-size: 80px; font-weight: 900; line-height: 1; }

/* Footer and mobile popup */
.site-footer { margin-top: 52px; color: #dce4f5; background: #061e55; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 52px; padding: 38px 0 28px; }
.footer-brand .text-logo { color: #fff; }
.footer-brand p { max-width: 340px; color: #bdc9e1; }
.footer-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.footer-heading { margin: 0 0 12px; color: #fff; font-size: 14px; }
.footer-menu { flex-direction: column; gap: 7px; }
.footer-menu a { color: #bdc9e1; font-size: 12px; }
.footer-bottom { display: flex; padding: 16px 0; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.13); color: #aab8d3; font-size: 11px; }
.footer-bottom a { color: #fff; }
.mobile-ad-popup { position: fixed; z-index: 99; right: 8px; bottom: 8px; left: 8px; display: none; max-width: 420px; margin: auto; padding-top: 24px; background: #fff; box-shadow: 0 8px 35px rgba(0,0,0,.28); }
.mobile-ad-close { position: absolute; top: 0; right: 0; width: 26px; height: 24px; color: #fff; border: 0; background: #111; cursor: pointer; }

@media (max-width: 1100px) {
  :root { --bs-wrap: 960px; }
  .content-sidebar { grid-template-columns: minmax(0,1fr) 300px; gap: 24px; }
  .primary-nav a { padding-inline: 9px; font-size: 12px; }
}

@media (max-width: 860px) {
  .container { width: min(calc(100% - 24px), var(--bs-wrap)); }
  .top-ad-wrap { display: none; }
  .header-main { grid-template-columns: 1fr auto; min-height: 62px; gap: 10px; }
  .site-tagline, .header-search { display: none; }
  .text-logo { font-size: 24px; }
  .header-action.live { width: 40px; padding: 0; font-size: 0; }
  .menu-toggle { display: inline-flex; align-items: center; padding: 0 10px 0 0; }
  .primary-nav { background: var(--bs-navy); }
  .nav-row { min-height: 42px; align-items: center; }
  .primary-nav .menu { position: absolute; top: 42px; right: 0; left: 0; display: none; max-height: calc(100vh - 90px); padding: 8px 12px 18px; overflow-y: auto; background: var(--bs-navy); }
  .primary-nav .menu.is-open { display: block; }
  .primary-nav a { min-height: 42px; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-nav .sub-menu { position: static; display: block; padding: 0 0 0 16px; box-shadow: none; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { margin-top: 28px; }
  .sticky-ad { position: static; }
  .hero-main { min-height: 350px; }
  .mobile-ad-popup.has-ad { display: block; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }
  .container { width: min(calc(100% - 20px), var(--bs-wrap)); }
  .custom-logo { max-width: 190px; max-height: 38px; }
  .header-actions { gap: 5px; }
  .header-action { width: 38px; height: 38px; }
  .secondary-nav ul { gap: 20px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-main { min-height: 300px; }
  .hero-copy { padding: 16px; }
  .hero-copy .post-title { font-size: 22px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .hero-mini { min-height: 150px; }
  .hero-mini .post-title { font-size: 13px; }
  .hero-mini .post-time { display: none; }
  .recommend-grid, .related-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .recommend-grid > :last-child, .related-grid > :last-child { display: none; }
  .post-title { font-size: 14px; }
  .category-layout { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 120px minmax(0,1fr); }
  .latest-card { grid-template-columns: 128px minmax(0,1fr); gap: 12px; }
  .latest-card .post-title { margin-top: 2px; font-size: 14px; }
  .latest-card .post-excerpt { display: none; }
  .section-title { font-size: 18px; }
  .article-header h1 { font-size: 28px; }
  .article-content { font-size: 17px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-columns { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

