/*
Theme Name: Mata Bhayangkara
Theme URI: https://matabhayangkara.com/
Author: Bethesda Studio
Description: Tema portal berita responsif dengan identitas navy-merah, menu rubrik, running text, berita terbaru, dan footer Bethesda Studio.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mata-bhayangkara
*/
:root {
  --mb-navy: #08264d;
  --mb-navy-deep: #061d3d;
  --mb-red: #d00024;
  --mb-red-dark: #b60020;
  --mb-text: #14243b;
  --mb-muted: #687487;
  --mb-bg: #f3f5f8;
  --mb-white: #ffffff;
  --mb-border: #e2e6ec;
  --mb-radius: 9px;
  --mb-shadow: 0 4px 16px rgba(8, 38, 77, .08);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  color: var(--mb-text);
  background: var(--mb-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: var(--mb-navy); text-decoration: none; }
a:hover, a:focus { color: var(--mb-red); }
img { max-width: 100%; height: auto; }

/* Top information strip */
.top-bar, .topbar, .header-top, .top-header, .top-header-bar {
  min-height: 34px;
  background: var(--mb-navy-deep) !important;
  color: #fff !important;
  font-size: 12px;
}
.top-bar a, .topbar a, .header-top a, .top-header a { color: #fff !important; }

/* Main header: logo, site title and search stay in separate columns */
.site-header, header.site-header, .main-header, .header-main, .header-wrapper {
  background: var(--mb-white) !important;
  border-bottom: 1px solid var(--mb-border);
  position: relative;
  z-index: 20;
}
.site-header .container, .main-header .container, .header-main .container,
.header-wrapper .container, .site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 22px;
  box-sizing: border-box;
}
.site-branding, .site-logo, .custom-logo-link, .header-logo, .logo {
  flex: 0 1 31%;
  min-width: 180px;
  max-width: 360px;
}
.custom-logo, .site-logo img, .header-logo img, .logo img,
.site-branding img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
}
.site-title, .site-title a, .header-site-title {
  color: var(--mb-navy) !important;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.7px;
  overflow-wrap: normal;
  word-break: normal;
}
.site-title { flex: 1 1 auto; min-width: 230px; margin: 0; font-size: clamp(25px, 3vw, 39px); }
.site-description { color: var(--mb-muted); margin-top: 4px; }
.header-search, .search-form, .header-search-form, .search-box {
  flex: 0 1 300px;
  min-width: 190px;
  max-width: 330px;
}
.search-form { display: flex; align-items: stretch; }
.search-form input[type="search"], .search-form input[type="text"],
.header-search input, .search-box input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d7dce4;
  border-radius: 7px 0 0 7px;
  box-shadow: none;
}
.search-form button, .search-form input[type="submit"],
.header-search button, .search-box button {
  min-height: 44px;
  padding: 0 17px;
  color: #fff !important;
  background: var(--mb-red) !important;
  border: 1px solid var(--mb-red) !important;
  border-radius: 0 7px 7px 0;
}

/* Navigation / category menu */
.main-navigation, .primary-navigation, .primary-menu, nav.navigation,
.nav-primary, .main-menu, .header-menu {
  background: var(--mb-navy) !important;
  border-bottom: 4px solid var(--mb-red);
  position: relative;
  z-index: 15;
}
.main-navigation ul, .primary-navigation ul, .primary-menu ul,
.nav-primary ul, .main-menu ul, .header-menu ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0 14px;
  max-width: 1280px;
}
.main-navigation li, .primary-navigation li, .primary-menu li,
.nav-primary li, .main-menu li, .header-menu li {
  margin: 0;
  padding: 0;
}
.main-navigation a, .primary-navigation a, .primary-menu a,
.nav-primary a, .main-menu a, .header-menu a {
  display: block;
  padding: 15px 17px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: background .2s ease;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a,
.primary-navigation a:hover, .primary-navigation .current-menu-item > a,
.primary-menu a:hover, .primary-menu .current-menu-item > a,
.nav-primary a:hover, .main-menu a:hover, .header-menu a:hover {
  color: #fff !important;
  background: var(--mb-red) !important;
}

/* Breaking-news ticker */
.breaking-news, .news-ticker, .ticker, .breaking-ticker, .latest-news-ticker,
.ticker-wrap, .headline-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 20px;
  background: #fff !important;
  border-bottom: 1px solid var(--mb-border);
  color: var(--mb-text);
  overflow: hidden;
}
.breaking-news .label, .news-ticker .label, .ticker-label,
.breaking-label, .latest-news-label {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--mb-red) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.breaking-news a, .news-ticker a, .ticker a,
.breaking-ticker a, .latest-news-ticker a { color: var(--mb-navy); font-weight: 700; }

/* Page width and content background */
.site, .site-content, .content-wrapper, .page-wrapper, #content {
  background: var(--mb-bg);
}
.container, .site-content .container, .content-area .container {
  max-width: 1280px;
}
.site-content, #content, .content-wrapper {
  padding-top: 24px;
  padding-bottom: 30px;
}

/* Featured / hero news */
.featured-post, .featured-news, .hero-post, .hero-news,
.featured-area, .main-slider, .news-slider, .slider-area {
  border-radius: var(--mb-radius);
  overflow: hidden;
}
.featured-post img, .featured-news img, .hero-post img,
.hero-news img, .main-slider img, .news-slider img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.featured-post, .featured-news, .hero-post, .hero-news {
  box-shadow: var(--mb-shadow);
}
.featured-post .entry-title, .featured-news .entry-title,
.hero-post .entry-title, .hero-news .entry-title,
.featured-post h2, .featured-news h2, .hero-post h2, .hero-news h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.post-category, .cat-links, .entry-category, .category-label,
.post-categories a {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--mb-red);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Section headings */
.section-title, .widget-title, .archive-title, .page-title,
h2.widget-title, .content-area h2.section-heading {
  color: var(--mb-navy);
  font-weight: 800;
}
.section-title, .widget-title {
  border-left: 5px solid var(--mb-red);
  padding-left: 11px;
}

/* Latest-news cards and post listings */
.post, .article-card, .news-card, .post-item, .archive article,
.blog article, .search article {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  background: #fff;
  box-shadow: var(--mb-shadow);
  overflow: hidden;
}
.post-thumbnail img, .post-thumb img, .article-card img,
.news-card img, .post-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.entry-title, .entry-title a, .post-title, .post-title a,
.article-title, .article-title a {
  color: var(--mb-navy);
  font-weight: 800;
  line-height: 1.3;
}
.entry-title a:hover, .post-title a:hover, .article-title a:hover { color: var(--mb-red); }
.entry-meta, .post-meta, .byline, .posted-on, .entry-date {
  color: var(--mb-muted);
  font-size: 12px;
}

/* Sidebar widgets */
.widget, .sidebar .widget, .widget-area .widget {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  background: #fff;
  box-shadow: var(--mb-shadow);
}
.widget ul { margin: 0; padding-left: 18px; }
.widget li { padding: 7px 0; border-bottom: 1px solid #edf0f4; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--mb-text); }
.widget a:hover { color: var(--mb-red); }

/* Buttons and pagination */
button, input[type="button"], input[type="submit"], .button,
.wp-block-button__link, .pagination a, .page-numbers {
  border-radius: 5px;
}
button, input[type="button"], input[type="submit"], .button,
.wp-block-button__link {
  background: var(--mb-red);
  color: #fff;
  border-color: var(--mb-red);
  font-weight: 700;
}
.pagination .current, .page-numbers.current {
  background: var(--mb-navy);
  color: #fff;
  border-color: var(--mb-navy);
}

/* Footer: menu, logo, copyright and Bethesda Studio credit */
.site-footer, footer.site-footer, .footer, .footer-wrap, .footer-widgets,
#colophon {
  background: var(--mb-navy-deep) !important;
  color: #fff !important;
  border-top: 5px solid var(--mb-red);
}
.site-footer a, .footer a, .footer-wrap a, #colophon a { color: #fff !important; }
.site-footer a:hover, .footer a:hover, .footer-wrap a:hover, #colophon a:hover {
  color: #ffccd5 !important;
}
.site-footer .container, .footer .container, .footer-wrap .container,
#colophon .container {
  max-width: 1280px;
}
.site-footer .custom-logo, .footer .custom-logo, #colophon .custom-logo {
  max-height: 75px;
}
.footer-menu, .footer-navigation, .footer-nav, .site-footer nav ul,
#colophon nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 0;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.footer-menu li, .footer-navigation li, .footer-nav li,
.site-footer nav li, #colophon nav li { margin: 0; }
.footer-menu a, .footer-navigation a, .footer-nav a,
.site-footer nav a, #colophon nav a {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}
.site-info, .site-info a, .copyright, .copyright a,
.footer-copyright, .footer-bottom, .footer-credit {
  color: #fff !important;
  font-size: 12px;
}
.site-info::after, .copyright::after, .footer-copyright::after { content: none; }

/* Single article page */
.single .entry-content, .page .entry-content {
  color: #26364c;
  font-size: 16px;
  line-height: 1.85;
}
.single .entry-content img { border-radius: 7px; }
.single .entry-title { font-size: clamp(26px, 4vw, 40px); }

/* Responsive */
@media (max-width: 900px) {
  .site-header .container, .main-header .container, .header-main .container,
  .header-wrapper .container, .site-header .inside-header {
    gap: 14px;
    padding: 14px 16px;
  }
  .site-branding, .site-logo, .custom-logo-link, .header-logo, .logo {
    flex-basis: 28%;
    min-width: 130px;
  }
  .site-title { min-width: 180px; font-size: clamp(21px, 3vw, 30px); }
  .header-search, .search-form, .header-search-form, .search-box {
    flex-basis: 220px;
    min-width: 150px;
  }
  .main-navigation a, .primary-navigation a, .primary-menu a,
  .nav-primary a, .main-menu a, .header-menu a { padding: 12px 11px; }
}
@media (max-width: 640px) {
  .site-header .container, .main-header .container, .header-main .container,
  .header-wrapper .container, .site-header .inside-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
  }
  .site-branding, .site-logo, .custom-logo-link, .header-logo, .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 260px;
  }
  .custom-logo, .site-logo img, .header-logo img, .logo img,
  .site-branding img { max-height: 75px; margin: 0 auto; }
  .site-title { min-width: 0; width: 100%; font-size: 25px; }
  .header-search, .search-form, .header-search-form, .search-box {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .main-navigation ul, .primary-navigation ul, .primary-menu ul,
  .nav-primary ul, .main-menu ul, .header-menu ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .main-navigation a, .primary-navigation a, .primary-menu a,
  .nav-primary a, .main-menu a, .header-menu a {
    padding: 12px 13px;
    font-size: 13px;
  }
  .breaking-news, .news-ticker, .ticker, .breaking-ticker,
  .latest-news-ticker, .ticker-wrap, .headline-ticker {
    padding: 7px 10px;
    font-size: 12px;
  }
  .site-content, #content, .content-wrapper {
    padding-top: 14px;
    padding-bottom: 20px;
  }
  .widget, .sidebar .widget, .widget-area .widget { padding: 14px; }
  .footer-menu, .footer-navigation, .footer-nav, .site-footer nav ul,
  #colophon nav ul { justify-content: center; }
}


/* Mata Bhayangkara theme layout */
.mb-container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.mb-topbar .mb-container { display:flex; justify-content:space-between; align-items:center; min-height:34px; }
.mb-brand-row { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-top:18px; padding-bottom:18px; }
.mb-brand-row .site-branding { display:flex; align-items:center; gap:16px; flex:1; min-width:0; max-width:none; }
.mb-brand-row .custom-logo-link { flex:0 0 auto; min-width:0; max-width:240px; }
.mb-brand-row .custom-logo { max-height:90px; width:auto; }
.mb-brand-text { min-width:0; }
.mb-brand-text .site-title { margin:0; }
.mb-brand-text .site-description { margin:3px 0 0; }
.mb-brand-row .header-search { flex:0 1 310px; }
.main-navigation > .mb-container { padding-top:0; padding-bottom:0; }
.mb-primary-menu { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; list-style:none; padding:0; margin:0; }
.mb-primary-menu li { list-style:none; margin:0; }
.mb-primary-menu a { display:block; padding:14px 16px; color:#fff !important; font-weight:700; }
.mb-primary-menu a:hover, .mb-primary-menu .current-menu-item > a { background:var(--mb-red) !important; color:#fff !important; }
.mb-ticker { display:flex; max-width:100%; box-sizing:border-box; }
.mb-ticker-track { display:flex; align-items:center; gap:14px; overflow:hidden; white-space:nowrap; min-width:0; }
.mb-ticker-track a { flex:0 0 auto; }
.mb-ticker-separator { color:var(--mb-red); }
.mb-featured { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(260px, .85fr); background:#fff; border-radius:var(--mb-radius); overflow:hidden; box-shadow:var(--mb-shadow); margin:0 0 30px; }
.mb-featured-image { display:block; min-height:330px; background:#dce2e9; }
.mb-featured-image img { display:block; width:100%; height:100%; min-height:330px; object-fit:cover; }
.mb-featured-copy { padding:28px; align-self:center; }
.mb-featured-copy h2 { margin:12px 0; font-size:clamp(24px,3vw,36px); line-height:1.2; }
.mb-featured-copy h2 a { color:var(--mb-navy); }
.mb-featured-copy p { color:#536176; }
.mb-read-more,.mb-all-news a { display:inline-block; background:var(--mb-red); color:#fff !important; padding:10px 16px; border-radius:5px; font-weight:700; }
.mb-home-layout,.mb-single-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.mb-main-column { min-width:0; }
.mb-post-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.mb-news-card { min-width:0; margin:0; }
.mb-card-image { display:block; aspect-ratio:16/9; overflow:hidden; background:#e1e6ed; }
.mb-card-image img { display:block; width:100%; height:100%; object-fit:cover; }
.mb-image-placeholder { display:flex; align-items:center; justify-content:center; min-height:180px; height:100%; background:linear-gradient(135deg,var(--mb-navy),#174b7e); color:#fff; font-weight:800; letter-spacing:2px; }
.mb-card-body { padding:16px; }
.mb-card-body .entry-title { margin:7px 0 10px; font-size:19px; }
.mb-card-body p { color:#586579; font-size:14px; }
.mb-card-link { font-weight:700; color:var(--mb-red); }
.mb-all-news { margin:24px 0; text-align:center; }
.mb-footer-inner { padding-top:28px; padding-bottom:22px; text-align:center; }
.mb-footer-brand .custom-logo { margin:0 auto 12px; }
.mb-footer-brand strong { display:block; font-size:20px; }
.mb-footer-brand p { color:#d9e0eb; }
.mb-footer-inner .footer-menu { list-style:none; }
.mb-footer-inner .footer-menu li { display:inline-block; }
.mb-credit { display:block; margin-top:8px; font-style:italic; }
.mb-single-article,.mb-page-article { background:#fff; border:1px solid var(--mb-border); border-radius:var(--mb-radius); padding:28px; min-width:0; }
.mb-single-article > .entry-title,.mb-page-article > .entry-title { font-size:clamp(28px,4vw,42px); line-height:1.2; margin:12px 0; }
.mb-single-thumbnail { margin:22px 0; }
.mb-single-thumbnail img { display:block; width:100%; height:auto; }
.mb-single-article .entry-content { overflow-wrap:anywhere; }
.mb-single-article .entry-content img { max-width:100%; height:auto; }
.mb-pagination { margin:28px 0; }
.mb-404 { padding-top:50px; padding-bottom:60px; }
@media(max-width:900px) {
 .mb-home-layout,.mb-single-layout { grid-template-columns:minmax(0,1fr); }
 .mb-featured { grid-template-columns:1fr; }
 .mb-featured-image,.mb-featured-image img { min-height:260px; max-height:380px; }
 .mb-brand-row { flex-wrap:wrap; }
 .mb-brand-row .header-search { flex:1 1 100%; max-width:100%; }
}
@media(max-width:640px) {
 .mb-container { padding-left:13px; padding-right:13px; }
 .mb-topbar .mb-container { justify-content:center; }
 .mb-top-note { display:none; }
 .mb-brand-row .site-branding { flex-direction:column; text-align:center; }
 .mb-brand-row .custom-logo-link { margin:0 auto; }
 .mb-primary-menu { flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; }
 .mb-primary-menu a { padding:12px 13px; font-size:13px; }
 .mb-post-grid { grid-template-columns:1fr; }
 .mb-featured-copy { padding:20px; }
 .mb-single-article,.mb-page-article { padding:18px; }
 .mb-ticker-track { overflow:visible; }
}


/* === Mata Bhayangkara: modern newsroom update === */
:root { --mb-radius: 14px; --mb-shadow: 0 8px 28px rgba(8,38,77,.075); }
body { background:#f5f7fa; }
.mb-brand-row { gap:20px; }
.mb-brand-row .site-branding { flex:0 0 auto; max-width:340px; }
.mb-header-ad { flex:1 1 420px; min-width:220px; max-width:560px; }
.mb-header-ad-widget { margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; background:transparent!important; }
.mb-header-ad-widget img { display:block; width:100%; max-height:112px; object-fit:contain; }
.mb-header-ad-widget video, .mb-header-ad-widget iframe { display:block; width:100%; max-height:112px; aspect-ratio: 16/4; border:0; border-radius:8px; }
.mb-ad-placeholder { min-height:92px; padding:14px 18px; border:1px dashed #b8c4d4; border-radius:10px; background:linear-gradient(135deg,#f7f9fc,#edf2f8); display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; color:#718096; }
.mb-ad-placeholder span { color:#65748a; font-size:12px; font-weight:800; letter-spacing:1.5px; }
.mb-ad-placeholder small { margin-top:4px; font-size:11px; }
.mb-ticker { padding:0 20px; min-height:46px; gap:0; }
.mb-ticker .ticker-label { align-self:stretch; display:flex; align-items:center; padding:0 17px; border-radius:0; }
.mb-ticker-viewport { flex:1 1 auto; min-width:0; overflow:hidden; }
.mb-ticker-track { display:flex; width:max-content; align-items:center; overflow:visible; white-space:nowrap; animation:mbTickerScroll 48s linear infinite; }
.mb-ticker-track:hover { animation-play-state:paused; }
.mb-ticker-group { display:flex; flex:0 0 auto; align-items:center; gap:15px; padding:0 18px; }
.mb-ticker-group a { flex:0 0 auto; color:var(--mb-navy); font-size:13px; font-weight:700; }
.mb-ticker-group a:hover { color:var(--mb-red); }
.mb-ticker-separator { color:var(--mb-red); font-size:18px; }
@keyframes mbTickerScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mb-ticker-track { animation:none; } }
.main-navigation { box-shadow:0 4px 14px rgba(8,38,77,.12); }
.mb-primary-menu a { padding:15px 18px; font-size:13px; letter-spacing:.2px; }
.mb-featured { border:1px solid rgba(8,38,77,.06); }
.mb-featured-image img { transition:transform .5s ease; }
.mb-featured-image:hover img,.mb-card-image:hover img { transform:scale(1.035); }
.mb-card-image { position:relative; }
.mb-card-image img { transition:transform .45s ease; }
.mb-news-card { border:1px solid #e8edf3; border-radius:14px; box-shadow:0 5px 20px rgba(15,35,65,.045); transition:transform .2s ease,box-shadow .2s ease; }
.mb-news-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(15,35,65,.1); }
.mb-card-body .entry-title { font-size:18px; }
.mb-card-body p { line-height:1.65; }
.section-title { display:flex; align-items:center; gap:12px; margin:0 0 18px; font-size:21px; }
.section-title:after { content:""; height:2px; flex:1; background:linear-gradient(90deg,var(--mb-red),transparent); }
.mb-single-article,.mb-page-article { box-shadow:var(--mb-shadow); border-color:#e8edf3; }
.mb-share-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:28px; padding-top:18px; border-top:1px solid var(--mb-border); }
.mb-share-bar strong { margin-right:5px; }
.mb-share-bar a,.mb-share-bar button { display:inline-block; padding:7px 12px; border:1px solid #dce3ec; border-radius:7px; background:#f8fafc; color:var(--mb-navy)!important; font-size:12px; font-weight:700; cursor:pointer; }
.mb-share-bar a:hover,.mb-share-bar button:hover { background:var(--mb-navy); color:#fff!important; }
.mb-related { grid-column:1/-1; min-width:0; margin:10px 0 25px; }
.mb-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.mb-related-card { display:flex; flex-direction:column; gap:8px; padding:12px; background:#fff; border:1px solid var(--mb-border); border-radius:12px; }
.mb-related-card img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:7px; }
.mb-related-card strong { display:block; line-height:1.4; }
.mb-related-card small { color:var(--mb-muted); }
.site-footer { margin-top:28px; }
@media(max-width:900px) { .mb-brand-row .site-branding { flex:1 1 100%; } .mb-header-ad { flex:1 1 100%; max-width:none; } .mb-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .mb-brand-row { gap:12px; } .mb-header-ad { width:100%; min-width:0; } .mb-ad-placeholder { min-height:68px; } .mb-ticker { padding:0; } .mb-ticker .ticker-label { padding:0 10px; font-size:10px; } .mb-ticker-group { gap:10px; padding:0 12px; } .mb-ticker-group a { font-size:12px; } .mb-related-grid { grid-template-columns:1fr; } .mb-share-bar { gap:6px; } }

/* === Expanded widget system === */
.mb-topbar-widgets { display:flex; align-items:center; gap:12px; margin-left:auto; }
.mb-topbar-widgets .widget { margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.mb-topbar-widgets .widget-title { display:none; }
.mb-after-nav-widgets,.mb-widget-zone,.mb-before-footer-widgets { margin-top:20px; margin-bottom:20px; }
.mb-after-nav-widgets .widget,.mb-widget-zone .widget,.mb-before-footer-widgets .widget { margin:0 0 18px; }
.mb-after-nav-widgets .widget:last-child,.mb-widget-zone .widget:last-child,.mb-before-footer-widgets .widget:last-child { margin-bottom:0; }
.widget { min-width:0; padding:18px; margin:0 0 20px; background:#fff; border:1px solid #e7ecf2; border-radius:12px; box-shadow:0 5px 18px rgba(15,35,65,.04); overflow-wrap:anywhere; }
.widget .widget-title { margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid var(--mb-red); color:var(--mb-navy); font-size:17px; line-height:1.35; }
.widget ul { margin:0; padding-left:18px; }
.widget li { margin:0 0 9px; line-height:1.55; }
.widget img { max-width:100%; height:auto; border-radius:7px; }
.widget select,.widget input[type="text"],.widget input[type="email"],.widget input[type="search"],.widget textarea { max-width:100%; width:100%; padding:10px 12px; border:1px solid #dce3ec; border-radius:7px; }
.widget button,.widget input[type="submit"],.widget .wp-block-button__link { display:inline-block; padding:9px 14px; border:0; border-radius:7px; background:var(--mb-navy); color:#fff; font-weight:700; cursor:pointer; }
.widget-area .widget { margin-bottom:18px; }
.mb-footer-widgets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; width:100%; }
.mb-footer-widget-column { min-width:0; }
.mb-footer-widget-column .widget { height:100%; }
.mb-footer-inner { display:flex; flex-wrap:wrap; gap:20px; }
.mb-footer-brand,.footer-navigation,.site-info { flex:1 1 100%; }
.mb-footer-widgets:empty { display:none; }
.mb-header-ad .widget { padding:0; margin:0; border:0; background:transparent; box-shadow:none; }
.mb-header-ad .widget-title { display:none; }
.mb-header-ad .widget img { display:block; width:100%; max-height:112px; object-fit:contain; }
.mb-header-ad .widget iframe,.mb-header-ad .widget video { width:100%; max-height:112px; aspect-ratio:16/4; border:0; }
@media(max-width:760px) {
 .mb-topbar-widgets { display:none; }
 .mb-footer-widgets { grid-template-columns:1fr; }
 .mb-after-nav-widgets,.mb-widget-zone,.mb-before-footer-widgets { margin-top:14px; margin-bottom:14px; }
 .mb-ticker-track { overflow:visible!important; }
}

/* === 1.3.0: konsistensi tampilan desktop dan mobile + rubrik horizontal === */
/* Gunakan komposisi satu kolom di semua ukuran layar agar pengalaman desktop
   mengikuti susunan mobile, dengan lebar baca yang nyaman di layar besar. */
.mb-container { max-width: 980px; }
.mb-brand-row {
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:12px;
  padding-top:14px;
  padding-bottom:14px;
}
.mb-brand-row .site-branding {
  flex:0 1 auto;
  width:100%;
  max-width:none;
  justify-content:center;
  text-align:center;
}
.mb-brand-row .custom-logo-link { max-width:190px; }
.mb-brand-row .custom-logo { max-height:76px; }
.mb-brand-text .site-title { font-size:clamp(23px,3vw,32px); }
.mb-brand-row .mb-header-ad {
  flex:0 1 auto;
  width:100%;
  max-width:100%;
  min-width:0;
}
.mb-header-ad .widget img { max-height:100px; object-fit:contain; }
.mb-header-ad .widget iframe,.mb-header-ad .widget video { max-height:180px; aspect-ratio:16/5; }
.mb-brand-row .header-search { flex:0 1 auto; width:100%; max-width:100%; min-width:0; }

/* Rubrik/menu selalu satu baris dan dapat digeser horizontal pada desktop maupun HP. */
.main-navigation { overflow:hidden; }
.main-navigation > .mb-container { max-width:100%; padding-left:0; padding-right:0; }
.mb-primary-menu {
  display:flex;
  flex-wrap:nowrap !important;
  justify-content:flex-start;
  align-items:center;
  gap:2px;
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:0 14px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.45) transparent;
  -webkit-overflow-scrolling:touch;
}
.mb-primary-menu::-webkit-scrollbar { height:4px; }
.mb-primary-menu::-webkit-scrollbar-thumb { background:rgba(255,255,255,.4); border-radius:8px; }
.mb-primary-menu li { flex:0 0 auto; }
.mb-primary-menu a { padding:13px 16px; font-size:13px; white-space:nowrap; }

/* Susunan konten konsisten: berita utama menumpuk, daftar berita satu kolom,
   sidebar turun di bawah konten seperti alur baca pada perangkat mobile. */
.mb-home-layout,.mb-single-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.mb-featured { grid-template-columns:minmax(0,1fr); }
.mb-featured-image,.mb-featured-image img { min-height:0; max-height:none; aspect-ratio:16/9; }
.mb-post-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
.mb-news-card { display:grid; grid-template-columns:minmax(110px,34%) minmax(0,1fr); align-items:stretch; overflow:hidden; }
.mb-card-image { height:100%; min-height:120px; aspect-ratio:auto; }
.mb-card-image img { min-height:100%; }
.mb-card-body { padding:13px 15px; }
.mb-card-body .entry-title { font-size:17px; line-height:1.35; }
.mb-card-body p { margin:6px 0; font-size:13px; }
.mb-card-body .entry-meta { font-size:11px; }
.mb-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

@media(max-width:640px) {
  .mb-container { max-width:100%; }
  .mb-brand-row .site-branding { flex-direction:row; text-align:left; }
  .mb-brand-row .custom-logo-link { margin:0; }
  .mb-primary-menu { padding-left:8px; padding-right:8px; }
  .mb-primary-menu a { padding:12px 13px; font-size:12px; }
  .mb-news-card { grid-template-columns:minmax(100px,34%) minmax(0,1fr); }
  .mb-card-body { padding:10px 11px; }
  .mb-card-body .entry-title { font-size:15px; }
  .mb-card-body p { display:none; }
  .mb-related-grid { grid-template-columns:1fr; }
}
@media(max-width:380px) {
  .mb-news-card { grid-template-columns:100px minmax(0,1fr); }
  .mb-card-body .entry-title { font-size:14px; }
}


/* Mata Bhayangkara 1.4.0 — reference-inspired editorial layout */
:root { --mb-green:#078b61; --mb-green-dark:#056b4b; }
body { background:#f5f7f8; }
.mb-container { max-width:1200px; }
.mb-single-layout {
  display:grid; grid-template-columns:minmax(0, 2.15fr) minmax(245px, .85fr);
  gap:26px; align-items:start;
}
.mb-single-main-column { min-width:0; }
.mb-single-article { min-width:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.mb-single-article > .entry-title {
  display:block; width:100%; max-width:100%; box-sizing:border-box;
  margin:10px 0 8px; padding:0; color:#202a33;
  font-size:clamp(25px, 2.35vw, 34px); line-height:1.22;
  letter-spacing:-.55px; font-weight:800; overflow-wrap:break-word;
  word-break:normal; hyphens:auto;
}
.mb-single-category { margin-bottom:8px; }
.mb-single-category a {
  display:inline-block; margin:0 5px 4px 0; padding:4px 8px;
  background:#e8f5ef; color:#078b61; border-radius:3px;
  font-size:11px; font-weight:700; text-decoration:none;
}
.mb-single-article .entry-meta { margin:8px 0 14px; font-size:11px; color:#78828b; }
.mb-single-thumbnail { margin:14px 0 18px; }
.mb-single-thumbnail img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:7px; }
.mb-single-article .entry-content { font-size:15px; line-height:1.82; color:#303b45; }
.mb-single-article .entry-content p { margin:0 0 17px; }
.mb-single-article .entry-content h2,.mb-single-article .entry-content h3 { line-height:1.3; }
.mb-single-layout > .sidebar { min-width:0; }
.mb-single-layout .widget { padding:15px; border:0; border-radius:0; border-top:2px solid var(--mb-green); box-shadow:none; }
.mb-single-layout .widget-title { border:0; border-bottom:1px solid #dce5e1; padding:0 0 10px; font-size:16px; }
.mb-single-layout .widget li { font-size:13px; line-height:1.45; }
.mb-related { margin:24px 0; padding:18px; background:#fff; border:1px solid #e8ecef; border-radius:8px; }
.mb-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.mb-related-card { min-width:0; font-size:13px; }
.mb-related-card img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:5px; }
.mb-related-card a { display:grid; gap:7px; color:#26343d; text-decoration:none; }
.mb-related-card small { display:block; margin-top:5px; color:#87919a; }
.mb-share-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:20px 0; }
.mb-share-bar a,.mb-share-bar button {
  display:inline-flex; align-items:center; padding:7px 11px; border:0;
  border-radius:4px; background:var(--mb-green); color:white; font-size:12px;
  text-decoration:none; cursor:pointer;
}
.mb-share-bar a:hover,.mb-share-bar button:hover { background:var(--mb-green-dark); }
.site-footer, footer.site-footer, #colophon {
  background:#102c27 !important; border-top:4px solid var(--mb-green);
}
.mb-footer-inner { text-align:left; padding-top:38px; padding-bottom:18px; }
.mb-footer-widgets {
  display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:28px;
  padding:0 0 26px; border-bottom:1px solid rgba(255,255,255,.16);
}
.mb-footer-widget-column { min-width:0; }
.mb-footer-widget-column .widget { padding:0; border:0; background:transparent; box-shadow:none; color:#d5e2dd; }
.mb-footer-widget-column .widget-title { color:#fff; border:0; padding:0 0 10px; font-size:15px; }
.mb-footer-widget-column .widget li { border-color:rgba(255,255,255,.12); }
.mb-footer-widget-column .widget a { color:#d5e2dd; }
.mb-footer-brand { padding:23px 0 10px; }
.mb-footer-brand strong { color:#fff; }
.mb-footer-brand p { max-width:560px; color:#c3d2cc; }
.mb-footer-inner .footer-navigation { border-bottom:1px solid rgba(255,255,255,.16); }
.mb-footer-inner .footer-menu { justify-content:flex-start; gap:6px 12px; }
.mb-footer-inner .footer-menu a { padding:7px 0; color:#e3eee9 !important; }
.mb-footer-inner .site-info { padding-top:16px; color:#b8c9c2; text-align:left; }
.mb-credit { display:inline-block; margin:0 0 0 8px; color:#b8c9c2; }
@media(max-width:900px) {
  .mb-single-layout { grid-template-columns:minmax(0,1fr) 260px; gap:18px; }
  .mb-single-article > .entry-title { font-size:clamp(24px,3.2vw,30px); }
  .mb-footer-widgets { gap:18px; }
}
@media(max-width:680px) {
  .mb-single-layout { grid-template-columns:minmax(0,1fr); gap:10px; }
  .mb-single-article > .entry-title { font-size:clamp(23px,6.2vw,29px); line-height:1.2; letter-spacing:-.35px; }
  .mb-single-article .entry-content { font-size:15px; line-height:1.78; }
  .mb-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mb-footer-widgets { grid-template-columns:1fr; gap:12px; }
  .mb-footer-inner { text-align:left; }
  .mb-footer-inner .footer-menu { justify-content:flex-start; }
  .mb-footer-inner .site-info { text-align:left; line-height:1.7; }
}
