/*
Theme Name: SUMEDANGONLINE
Theme URI: https://sumedangonline.local
Author: SUMEDANGONLINE
Description: Tema portal berita WordPress bergaya media online Indonesia untuk SUMEDANGONLINE.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sumedangonline
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images
*/

:root {
  --so-blue: #0b56a4;
  --so-blue-dark: #073e79;
  --so-red: #e22929;
  --so-orange: #f08a1f;
  --so-green: #0b8f6a;
  --so-ink: #172033;
  --so-muted: #647084;
  --so-border: #dde4ef;
  --so-soft: #f3f7fb;
  --so-white: #fff;
  --so-shadow: 0 10px 30px rgba(14, 35, 66, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--so-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--so-blue); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--so-blue-dark);
  color: #dcecff;
  font-size: 13px;
}

.topbar__inner,
.header__inner,
.nav__inner,
.ticker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__links,
.topbar__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 0;
}

.topbar__links ul,
.topbar__links li {
  display: contents;
  list-style: none;
}

.header { background: var(--so-white); border-bottom: 1px solid var(--so-border); }
.header__inner { min-height: 86px; }

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(360px, 45vw);
  min-width: 0;
}

.brand__name {
  color: var(--so-blue);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brand__name span { color: var(--so-orange); }

.brand__tagline {
  margin-top: 5px;
  color: var(--so-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.header-ad {
    min-height: 90px;
    max-width: 100%; 
    display: grid;
    place-items: center;
    padding-top: 15px;
    color: var(--so-muted);
    font-size: 13px;
}

.nav {
  position: relative;
  z-index: 50;
  background: var(--so-blue);
  color: var(--so-white);
  box-shadow: 0 4px 20px rgba(7, 62, 121, 0.16);
}

.nav.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.nav.is-stuck .nav__inner {
  min-height: 54px;
}

.admin-bar .nav.is-stuck {
  top: 32px;
}

.nav-spacer {
  display: none;
}

.nav-spacer.is-active {
  display: block;
}

.menu-toggle,
.search-toggle {
  display: none;
  border: 0;
  color: var(--so-white);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-menu a {
  display: block;
  padding: 15px 12px;
  color: var(--so-white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--so-blue-dark);
  color: var(--so-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  min-width: 0;
  height: 46px;
  margin-right: 0;
  padding: 0;
  color: var(--so-blue-dark);
  background: var(--so-white);
  border-radius: 0;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transition: width 180ms ease, min-width 180ms ease, margin-right 180ms ease, padding 180ms ease, opacity 180ms ease;
}

/* --- DURASI SCROLL TRANSITION NAVBAR --- */
.nav { transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.primary-menu a { transition: color 200ms ease, background-color 200ms ease; }

/* --- KONDISI NAVBAR SAAT DI-SCROLL (.is-stuck AKTIF) --- */
.nav.is-stuck {
    background: var(--so-white) !important;
    color: var(--so-blue-dark) !important;
    box-shadow: 0 4px 15px rgba(7, 62, 121, 0.08) !important;
    border-bottom: 1px solid var(--so-border);
}
.nav.is-stuck .primary-menu a { color: var(--so-blue-dark) !important; }
.nav.is-stuck .primary-menu a:hover,
.nav.is-stuck .primary-menu .current-menu-item > a {
    background: var(--so-soft) !important; 
    color: var(--so-blue) !important;      
}
.nav.is-stuck .menu-toggle,
.nav.is-stuck .search-toggle { color: var(--so-blue-dark) !important; }
.nav.is-stuck .search-form { border: 1px solid var(--so-border); }

@media (max-width: 720px) and (prefers-color-scheme: dark) {
    .nav.is-stuck {
        background: #091424 !important;
        color: var(--so-white) !important;
        border-color: #253348;
    }
    .nav.is-stuck .primary-menu a { color: var(--so-white) !important; }
    .nav.is-stuck .primary-menu a:hover,
    .nav.is-stuck .primary-menu .current-menu-item > a {
        background: var(--so-blue-dark) !important;
        color: var(--so-white) !important;
    }
}

.nav.is-stuck .nav-logo {
  width: auto;
  min-width: 150px;
  max-width: 180px;
  height: 46px;
  margin-right: 10px;
  padding: 7px 12px;
  opacity: 1;
  pointer-events: auto;
}
.nav-logo:hover { color: var(--so-blue); }
.nav-logo__text { font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.nav-logo__text span { color: var(--so-orange); }
.nav-logo__image { width: auto; max-width: 100%; height: auto; max-height: 32px; object-fit: contain; }

.nav-search { min-width: 240px; }
.search-form { display: flex; overflow: hidden; border-radius: 4px; background: var(--so-white); }
.search-form label { flex: 1; }
.search-field { width: 100%; border: 0; padding: 10px 11px; font-size: 14px; outline: none; }
.search-submit { border: 0; padding: 0 14px; color: var(--so-white); background: var(--so-orange); font-weight: 800; cursor: pointer; }

.ticker { background: var(--so-soft); border-bottom: 1px solid var(--so-border); }
.ticker__inner { min-height: 42px; justify-content: flex-start; }
.ticker__label { flex: 0 0 auto; color: var(--so-white); background: var(--so-red); padding: 6px 10px; border-radius: 3px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ticker__items { display: flex; gap: 18px; overflow: hidden; color: var(--so-muted); font-size: 14px; white-space: nowrap; }

.main { flex: 1; padding: 24px 0 40px; }

/* --- GRID BASE ASLI TEMA --- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr); gap: 18px; margin-bottom: 26px; }

.headline-card, .mini-card, .post-card { background: var(--so-white); border: 1px solid var(--so-border); border-radius: 6px; overflow: hidden; }
.headline-card { position: relative; box-shadow: var(--so-shadow); height: auto; min-height: auto; }
.headline-card__image { height: auto; }
.headline-card__image img { width: 100%; height: auto; min-height: auto; object-fit: cover; }

.headline-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 72px 22px 22px;
  color: var(--so-white);
  background: linear-gradient(180deg, rgba(7, 18, 39, 0), rgba(7, 18, 39, 0.88));
}

.so-headline-badge-top a {
    display: inline-block !important;
    background-color: #e60012 !important; 
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.so-headline-badge-top a:hover { background-color: #0056a3 !important; text-decoration: none !important; }

.kicker { display: inline-flex; width: fit-content; margin-bottom: 9px; padding: 4px 8px; color: var(--so-white); background: var(--so-red); border-radius: 3px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.headline-card h1, .headline-card h2, .post-card h2, .post-card h3, .mini-card h3 { margin: 0; line-height: 1.18; }
.headline-card h1, .headline-card h2 { font-size: 30px; }
.meta { margin-top: 10px; color: var(--so-muted); font-size: 13px; }
.headline-card .meta { color: #dbe6f5; }

.mini-stack { display: grid; gap: 14px; }
.mini-card { display: grid; grid-template-columns: 122px 1fr; min-height: 112px; }
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card__body { padding: 12px; }
.mini-card h3 { font-size: 16px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 16px; border-bottom: 3px solid var(--so-blue); }
.section-head h2 { margin: 0; padding: 8px 12px; color: var(--so-white); background: var(--so-blue); font-size: 18px; text-transform: uppercase; }

.post-list { display: grid; gap: 16px; }
.post-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.post-card__image img { width: 100%; height: 170px; object-fit: cover; }
.post-card__body { padding: 16px; }
.post-card h2, .post-card h3 { font-size: 22px; }
.excerpt { margin: 10px 0 0; color: var(--so-muted); font-size: 15px; }

.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.category-tile { padding: 16px; color: var(--so-white); background: var(--so-blue); border-radius: 6px; font-weight: 900; }
.category-tile:nth-child(2) { background: var(--so-green); }
.category-tile:nth-child(3) { background: var(--so-orange); }
.category-tile:nth-child(4) { background: var(--so-red); }

.sidebar { display: grid; gap: 18px; }
.widget { padding: 16px; background: var(--so-white); border: 1px solid var(--so-border); border-radius: 6px; }
.widget-title { margin: -16px -16px 14px; padding: 11px 14px; color: var(--so-white); background: var(--so-blue); font-size: 16px; text-transform: uppercase; }
.widget ul { margin: 0; padding-left: 18px; }

.ad-box {
  min-height: 250px; display: grid; place-items: center; color: var(--so-muted); background: repeating-linear-gradient(135deg, #f8fafc 0 14px, #eef4fa 14px 28px); border: 1px dashed #aab8ca; border-radius: 6px; font-size: 13px; text-align: center;
}

.single-article { background: var(--so-white); }
.single-article__title { margin: 0 0 10px; font-size: 38px; line-height: 1.16; }
.single-article__image { margin: 20px 0; }
.single-article__content { font-size: 18px; text-indent: 2em; }
.single-article__content p { margin: 0 0 18px; }
.page-title { margin: 0 0 20px; font-size: 30px; }
.pagination, .post-navigation { margin-top: 24px; }

.pagination .page-numbers { display: inline-block; margin-right: 6px; padding: 8px 11px; border: 1px solid var(--so-border); border-radius: 4px; }
.pagination .current { color: var(--so-white); background: var(--so-blue); }

.footer { color: #dcecff; background: #081b35; margin-top: auto; }
.footer__widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; }
.footer a:hover { color: var(--so-orange); }
.footer__bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #aebfda; font-size: 13px; }

@media (max-width: 980px) {
  .layout, .hero-grid { grid-template-columns: 1fr; }
  .header-ad { display: none !important; }
  .category-strip, .footer__widgets { grid-template-columns: repeat(2, 1fr); }
  .brand { max-width: min(300px, 58vw); }
  .custom-logo { max-height: 45px; }
}

@media (max-width: 720px) {
  :root {
    --so-mobile-header-height: 54px;
    --so-mobile-nav-height: 46px;
    --so-mobile-admin-offset: 0px;
  }
  .admin-bar { --so-mobile-admin-offset: 46px; }
  .container { width: min(100% - 22px, 1180px); }
  .site-header { padding-top: calc(var(--so-mobile-header-height) + var(--so-mobile-nav-height)); }
  .topbar { display: none; }
  .header {
    position: fixed; top: var(--so-mobile-admin-offset); left: 0; right: 0; z-index: 90; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid rgba(221, 228, 239, 0.92); transition: box-shadow 160ms ease, background-color 160ms ease; backdrop-filter: saturate(160%) blur(10px);
  }
  body.has-scrolled .header { box-shadow: 0 8px 22px rgba(14, 35, 66, 0.12); }
  .topbar__inner, .header__inner, .nav__inner { align-items: flex-start; }
  .header__inner { min-height: var(--so-mobile-header-height); padding-block: 7px; align-items: center; justify-content: center; }
  .brand { align-items: center; min-width: 0; max-width: min(220px, 70vw); }
  .brand__name { font-size: 23px; }
  .brand__tagline { display: none; }
  .header .custom-logo { width: auto; max-width: 190px; height: auto; max-height: 40px; object-fit: contain; }
  .menu-toggle, .search-toggle { display: none; }
  .nav {
    position: fixed; top: calc(var(--so-mobile-admin-offset) + var(--so-mobile-header-height)); left: 0; right: 0; z-index: 89; min-height: var(--so-mobile-nav-height); background: var(--so-blue); color: var(--so-white); border-bottom: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 4px 20px rgba(7, 62, 121, 0.16); transition: box-shadow 160ms ease;
  }
  body.has-scrolled .nav { box-shadow: 0 6px 16px rgba(14, 35, 66, 0.08); }
  .nav__inner { width: 100%; min-height: var(--so-mobile-nav-height); gap: 0; align-items: center; justify-content: flex-start; overflow: visible; }
  .nav-actions { display: none; }
  .nav-logo { display: none; }

  .primary-menu, .primary-menu.is-open {
    display: flex; width: 100%; flex: 1 1 auto; flex-direction: row; align-items: center; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 0; list-style: none; white-space: nowrap; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .primary-menu::-webkit-scrollbar { display: none; }
  .primary-menu > li { flex: 0 0 auto; }
  .primary-menu ul { display: none; }
  
  .primary-menu a {
    position: relative; display: flex; align-items: center; min-height: var(--so-mobile-nav-height); padding: 0 13px; color: var(--so-white); border-top: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; touch-action: manipulation;
  }
  .primary-menu a:hover,
  .primary-menu .current-menu-item > a,
  .primary-menu .current-menu-ancestor > a,
  .primary-menu .current_page_item > a,
  .primary-menu .current-cat > a { color: var(--so-white); background: var(--so-blue-dark); }

  .primary-menu .current-menu-item > a::after,
  .primary-menu .current-menu-ancestor > a::after,
  .primary-menu .current_page_item > a::after,
  .primary-menu .current-cat > a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--so-orange); border-radius: 999px 999px 0 0;
  }

  .nav-logo__text { font-size: 14px; }
  .nav-logo__text span { display: none; }
  .nav-logo__image { max-width: 40px; height: auto; max-height: 26px; }
  .nav-search { display: none; flex: 1; width: 190px; min-width: 0; }
  .nav-search.is-open { display: block; padding-bottom: 12px; }
  
  .headline-card h1, .headline-card h2 { font-size: 24px; }
  .post-card, .mini-card { grid-template-columns: 116px minmax(0, 1fr); }
  .post-card__image img { height: auto; }
  .post-card__body { padding: 12px; }
  .post-card h2, .post-card h3 { font-size: 17px; }
  .excerpt { display: none; }
  .category-strip, .footer__widgets { grid-template-columns: 1fr; }
  .single-article__title { font-size: 28px; }
}

@media (max-width: 720px) and (prefers-color-scheme: dark) {
  .header { color: #e8eef8; background: rgba(9, 20, 36, 0.96); border-color: #253348; }
  .nav { color: var(--so-white); background: var(--so-blue-dark); border-color: rgba(255, 255, 255, 0.12); }
  .primary-menu a { color: var(--so-white); }
  .primary-menu a:hover,
  .primary-menu .current-menu-item > a,
  .primary-menu .current-menu-ancestor > a,
  .primary-menu .current_page_item > a,
  .primary-menu .current-cat > a { color: var(--so-white); background: var(--so-blue); }
}

/* --- KREDIT & CAPTION MEDIA --- */
.so-media-meta-wrapper { margin-top: 6px; margin-bottom: 15px; width: 100%; display: block; clear: both; }
.so-foto-kredit { text-align: right; font-size: 10px; color: #767676; font-style: bold; line-height: 1.5; text-transform: uppercase; }
.so-foto-caption { text-align:justify; font-size: 12px; font-weight: 600; color: #444; line-height: 1.5; margin-top: 4px; padding-left: 5px; border-left: 2px solid #cbd5e1; }

/* --- AREA KOMENTAR MODERN --- */
.so-comments-area { margin: 40px 0; padding-top: 25px; border-top: 1px solid #eee; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.so-comments-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 25px; }
.so-comment-list, .so-comment-list .children { list-style: none; padding: 0; margin: 0; }
.so-comment-list .children { padding-left: 50px; border-left: 2px solid #edf2f7; }
.so-comment-list li.comment { background: #fff; padding: 20px; margin-bottom: 20px; border: 1px solid #edf2f7; border-radius: 8px; transition: all 0.2s ease-in-out; }
.so-comment-list li.comment:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.comment-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.fn { font-weight: 600; color: #1e293b; font-style: normal; }
.comment-metadata { font-size: 12px; color: #94a3b8; }
.comment-metadata a { color: #94a3b8; text-decoration: none; }
.comment-content { font-size: 14px; color: #334155; line-height: 1.6; margin-bottom: 10px; padding-left: 63px; }
.reply { padding-left: 63px; }
.comment-reply-link { font-size: 13px; font-weight: 600; color: #007cba; text-decoration: none; background: #f1f5f9; padding: 4px 12px; border-radius: 4px; display: inline-block; transition: background 0.2s; }
.comment-reply-link:hover { background: #e2e8f0; color: #005a87; }
.so-comment-disclaimer { background-color: #fff9e6; border-left: 4px solid #f08a1f; padding: 12px 16px; font-size: 12.5px; line-height: 1.5; color: #647084; border-radius: 0 6px 6px 0; margin-bottom: 20px; box-sizing: border-box; }
.so-comment-disclaimer strong { color: #172033; }

/* --- FORM BALASAN KOMENTAR --- */
#respond { background: #f8fafc; padding: 25px; border-radius: 8px; border: 1px solid #e2e8f0; margin-top: 35px; }
#reply-title { font-size: 18px; font-weight: 700; margin-top: 0; margin-bottom: 20px; color: #007cba; }
.so-form-group { margin-bottom: 15px; }
.so-comment-form label { font-weight: 600; font-size: 13px; color: #475569; display: block; margin-bottom: 6px; }
.so-comment-form textarea, .so-comment-form input[type="text"], .so-comment-form input[type="email"], .so-comment-form input[type="url"] { width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; box-sizing: border-box; transition: all 0.2s; }
.so-comment-form textarea:focus, .so-comment-form input:focus { border-color: #007cba; box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15); outline: none; }
.so-btn-submit-comment { background: #007cba !important; border: none !important; color: #fff !important; padding: 10px 24px !important; font-size: 14px !important; font-weight: 600 !important; border-radius: 6px !important; cursor: pointer !important; transition: background 0.2s !important; box-shadow: 0 2px 4px rgba(0,124,186,0.2) !important; }
.so-btn-submit-comment:hover { background: #005a87 !important; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0; font-size: 13px; color: #64748b; }
.comment-form-cookies-consent input { margin-top: 3px; }

/* --- BOX BERITA TERKAIT IN-POST --- */
.so-related-wrapper { margin: 35px 0; padding-top: 25px; border-top: 2px dashed #edf2f7; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.so-related-title { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.so-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.so-related-card { background: #fff; border: 1px solid #edf2f7; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.so-related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); }
.so-related-thumb { width: 100%; height: 140px; overflow: hidden; background: #edf2f7; }
.so-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.so-related-card:hover .so-related-thumb img { transform: scale(1.05); }
.so-related-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #94a3b8; background: #f1f5f9; }
.so-related-info { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.so-related-post-title { font-size: 14px; line-height: 1.4; font-weight: 600; margin: 0 0 8px 0; }
.so-related-post-title a { color: #334155; text-decoration: none; }
.so-related-post-title a:hover { color: #007cba; }
.so-related-date { font-size: 11px; color: #94a3b8; margin-top: auto; }

@media (max-width: 768px) {
    .so-related-grid { grid-template-columns: 1fr; }
    .so-related-thumb { height: 180px; }
}

/* --- REKAYASA BERITA DETIL SINGLE 16:9 ANTI GEPENG --- */
.gambar-penuh {
    width: 100% !important;
    height: auto !important; 
    aspect-ratio: 16 / 9 !important; 
    object-fit: cover !important; 
    object-position: center top !important; 
}

/* --- BARIS JURNALIS & EDITOR METADATA --- */
.so-post-meta-loop, .so-post-meta-single { font-size: 13px; color: #666; margin: 8px 0; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; }
.so-meta-cat { color: #e50914; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.so-meta-cat:hover { text-decoration: underline; }
.so-meta-sep { color: #ccc; margin: 0 8px; font-weight: 300; }
.so-meta-jurnalis, .so-meta-editor, .so-meta-jurnalis strong, .so-meta-editor strong { color: var(--so-red); font-weight: 600; text-transform: capitalize; }
.so-meta-jurnalis a { color: var(--so-red); text-decoration: none; transition: color 0.2s ease; }
.so-meta-jurnalis a:hover { color: var(--so-blue); text-decoration: underline; }
.so-meta-editor a { color: var(--so-red); text-decoration: none; transition: color 0.2s ease; }
.so-meta-editor a:hover { color: var(--so-orange); text-decoration: underline; }
.so-meta-date { color: var(--so-blue); font-weight: 600; }
.so-post-meta-single { border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 20px; font-size: 14px; }

/* --- SO FOOTER NEWS BLOK STYLING --- */
.so-footer-news.template-grid { display: flex; flex-direction: column; gap: 14px; }
.so-footer-news-card { display: flex; align-items: center; gap: 12px; }
.so-fn-thumb { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 4px; overflow: hidden; background: #102a4e; }
.so-fn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.so-footer-news-card:hover .so-fn-thumb img { transform: scale(1.08); }
.so-fn-body { flex: 1; min-width: 0; }
.so-fn-title { margin: 0 0 4px 0; font-size: 13.5px; line-height: 1.35; font-weight: 500; }
.so-fn-title a { color: #021a38; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.so-fn-title a:hover { color: var(--so-orange) !important; }
.so-fn-date { font-size: 11px; color: #aebfda; }

.so-footer-news.template-list { display: flex; flex-direction: column; gap: 12px; }
.so-footer-news-item { border-bottom: 1px dashed rgba(255, 255, 255, 0.08); padding-bottom: 10px; }
.so-footer-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.so-fn-title-list { margin: 0 0 3px 0; font-size: 14px; line-height: 1.4; font-weight: 500; }
.so-fn-title-list a { color: #010b18; transition: padding-left 0.2s ease; }
.so-fn-title-list a:hover { color: var(--so-orange) !important; padding-left: 4px; }
.so-fn-date-list { font-size: 11px; color: #102a4e; padding-left: 14px; }

/* --- FOOTER MENU SWIPE MOBILE --- */
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__menu-items { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.footer__menu-items li { display: inline-block; }
.footer__menu-items li a { color: #aebfda; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; transition: color 0.2s ease; }
.footer__menu-items li a:hover { color: var(--so-orange) !important; }

@media (max-width: 720px) {
    .footer__bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer__nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .footer__menu-items { justify-content: flex-start; padding: 0 10px; scrollbar-width: none; }
    .footer__menu-items::-webkit-scrollbar { display: none; }
}

/* --- WIDGET DEFAULT WORDPRESS --- */
.widget_recent_entries, .widget_recent_comments, .widget_meta { background: #ffffff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); margin-bottom: 30px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.widget_recent_entries .widget-title, .widget_recent_comments .widget-title, .widget_meta .widget-title { font-size: 1.1rem; font-weight: 700; color: #f0f0f0; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; position: relative; }
.widget_recent_entries .widget-title::after, .widget_recent_comments .widget-title::after, .widget_meta .widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background-color: #3b82f6; }
.widget_recent_entries ul, .widget_recent_comments ul, .widget_meta ul { list-style: none; padding: 0; margin: 0; }
.widget_recent_entries ul li, .widget_recent_comments ul li, .widget_meta ul li { padding: 12px 0; border-bottom: 1px dashed #f0f0f0; font-size: 0.95rem; line-height: 1.5; }
.widget_recent_entries ul li:last-child, .widget_recent_comments ul li:last-child, .widget_meta ul li:last-child { padding-bottom: 0; border-bottom: none; }
.widget_recent_entries ul li a, .widget_recent_comments ul li a, .widget_meta ul li a { color: #2d3748; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.widget_recent_entries ul li a:hover, .widget_recent_comments ul li a:hover, .widget_meta ul li a:hover { color: #3b82f6; }
.widget_recent_entries .post-date { display: block; font-size: 0.8rem; color: #a0aec0; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.widget_recent_comments ul li { color: #718096; }
.widget_recent_comments .comment-author-link { color: #1a1a1a; font-weight: 600; }
.widget_recent_comments .comment-author-link a { color: #1a1a1a; }
.widget_meta ul li a { display: inline-block; transition: transform 0.2s ease, color 0.2s ease; }
.widget_meta ul li a:hover { transform: translateX(5px); }

/* --- WPP SETTING --- */
.wpp-title-modern { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; padding-bottom: 8px; position: relative; text-transform: uppercase; letter-spacing: 0.5px; }
.wpp-title-modern::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: linear-gradient(135deg, #6e8efb, #a777e3); border-radius: 2px; }
.wpp-widget-box .wpp-list { list-style: none !important; padding: 0 !important; margin: 0 !important; counter-reset: wpp-counter-force; }
.wpp-widget-box .wpp-list li { position: relative !important; display: flex !important; align-items: center; padding: 12px 0 12px 50px !important; border-bottom: 1px solid #f0f0f0; margin: 0 !important; list-style-type: none !important; transition: all 0.3s ease; }
.wpp-widget-box .wpp-list li:hover { padding-left: 55px !important; }
.wpp-widget-box .wpp-list li::before { counter-increment: wpp-counter-force; content: counter(wpp-counter-force) !important; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: linear-gradient(135deg, #6e8efb, #a777e3); color: #ffffff !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3); }
.wpp-widget-box .wpp-list li a { font-size: 15px; font-weight: 600; color: #2c3e50; text-decoration: none; line-height: 1.4; transition: color 0.2s ease; }
.wpp-widget-box .wpp-list li a:hover { color: #6e8efb; }

/* --- STICKY SIDEBAR IMPLEMENTATION --- */
.layout { align-items: stretch !important; }
.sidebar { position: -webkit-sticky; position: sticky; top: 20px; z-index: 10; height: fit-content; }
.nav.is-stuck ~ .main .sidebar, .is-stuck + .main .sidebar, .main .sidebar { top: 80px; transition: top 0.3s ease; }
@media (max-width: 980px) { .sidebar { position: static; height: auto; } }

/* ==========================================================================
   STYLE MODUL WIDGET KATEGORI GLOBAL (FIX DETIL LIST SAMPING 16:9 ANTI GEPENG)
   ========================================================================== */
.so-category-block {
  --so-card-bg: #fff; --so-card-ink: #172033; --so-card-muted: #647084; --so-card-border: #dde4ef; --so-card-soft: #f3f7fb; --so-card-accent: #0b56a4; --so-card-hot: #e22929;
  margin: 22px 0; color: var(--so-card-ink); content-visibility: auto; contain-intrinsic-size: 1px 420px;
}
.post-list > .so-category-block { grid-column: 1 / -1; }
.so-category-block__head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; border-bottom: 3px solid var(--so-card-accent); }
.so-category-block__title { margin: 0; padding: 8px 12px; color: #fff; background: var(--so-card-accent); font-size: 18px; line-height: 1.2; text-transform: uppercase; }
.so-category-block__more { padding-bottom: 9px; color: var(--so-card-muted); font-size: 13px; font-weight: 800; }
.so-category-block__items { display: grid; gap: 14px; }
.so-news-card { min-width: 0; background: var(--so-card-bg); border: 1px solid var(--so-card-border); border-radius: 6px; overflow: hidden; }

.so-news-card__media { display: block !important; background: var(--so-card-soft); width: 100% !important; aspect-ratio: 16 / 9 !important; overflow: hidden !important; }
.so-news-card__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center top !important; display: block !important; }

.so-news-card__body { padding: 12px; }
.so-news-card__title { margin: 0; font-size: 18px; line-height: 1.22; }
.so-news-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--so-card-muted); font-size: 12px; }
.so-news-card__excerpt { margin: 9px 0 0; color: var(--so-card-muted); font-size: 14px; }

.so-template-grid_2 .so-category-block__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.so-template-grid_3 .so-category-block__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.so-template-list .so-news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.so-template-list .so-news-card__media { aspect-ratio: auto !important; height: 100% !important; min-height: 150px; }
.so-template-thumb_left .so-news-card, .so-template-minimal .so-news-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.so-template-thumb_left .so-news-card__media, .so-template-minimal .so-news-card__media { aspect-ratio: auto !important; min-height: 104px; }
.so-template-hero_list .so-category-block__items { grid-template-columns: 1.25fr 1fr; }
.so-template-hero_list .so-news-card.is-first { grid-row: span 4; }
.so-template-hero_list .so-news-card:not(.is-first) { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.so-template-hero_list .so-news-card:not(.is-first) .so-news-card__media { min-height: 96px; aspect-ratio: auto !important; }
.so-template-hero_list .so-news-card:not(.is-first) .so-news-card__excerpt { display: none; }
.so-category-block__slider-wrap { position: relative; }
.so-template-slider .so-category-block__items { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.so-template-slider .so-category-block__items::-webkit-scrollbar { display: none; }
.so-template-slider .so-news-card { flex: 0 0 min(82vw, 280px); scroll-snap-align: start; }
.so-slider-btn { position: absolute; top: 42%; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(11, 86, 164, 0.92); font-size: 26px; line-height: 1; cursor: pointer; }
.so-slider-prev { left: -10px; } .so-slider-next { right: -10px; }
.so-template-minimal .so-news-card { border: 0; border-bottom: 1px solid var(--so-card-border); border-radius: 0; }
.so-template-minimal .so-news-card__body { padding: 6px 0 10px 12px; }
.so-template-minimal .so-news-card__title { font-size: 16px; }
.so-template-minimal .so-news-card__meta { margin-top: 6px; }
.so-widget-admin { padding: 10px; background: #f6f8fb; border: 1px solid #dce4ef; border-radius: 4px; }
.so-widget-admin label { display: block; margin-bottom: 5px; font-weight: 700; }
.so-widget-admin select, .so-widget-admin input[type="text"], .so-widget-admin input[type="number"] { border-radius: 4px; }

@media (prefers-color-scheme: dark) {
  .so-category-block {
    --so-card-bg: #101827; --so-card-ink: #e8eef8; --so-card-muted: #a9b6ca; --so-card-border: #263348; --so-card-soft: #172033;
  }
}
@media (max-width: 860px) {
  .so-template-grid_3 .so-category-block__items, .so-template-hero_list .so-category-block__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- RESPONSIVE MOBILE UNTUK MODUL WIDGET KATEGORI --- */
@media (max-width: 640px) {
  .so-category-block { margin: 18px 0; }
  .so-category-block__head { align-items: start; }
  .so-category-block__title { font-size: 16px; }
  .so-category-block__more { white-space: nowrap; }
  .so-template-grid_2 .so-category-block__items, .so-template-grid_3 .so-category-block__items, .so-template-list .so-category-block__items, .so-template-hero_list .so-category-block__items { grid-template-columns: 1fr; }
  .so-template-list .so-news-card, .so-template-thumb_left .so-news-card, .so-template-hero_list .so-news-card:not(.is-first), .so-template-minimal .so-news-card { grid-template-columns: 112px minmax(0, 1fr) !important; }

  .so-template-list .so-news-card__media, .so-template-thumb_left .so-news-card__media, .so-template-hero_list .so-news-card:not(.is-first) .so-news-card__media, .so-template-minimal .so-news-card__media {
    height: auto !important; min-height: auto !important; aspect-ratio: 16 / 9 !important; width: 100% !important;
  }
  .so-template-list .so-news-card__media img, .so-template-thumb_left .so-news-card__media img, .so-template-hero_list .so-news-card:not(.is-first) .so-news-card__media img, .so-template-minimal .so-news-card__media img {
    width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center top !important;
  }
  .so-news-card__title { font-size: 15px; line-height: 1.3; } .so-news-card__excerpt { display: none; }
}

/* ==========================================================================
   KUNCI FINISH: MODUL HOME FOCUS BRANDING (DESKTOP & PANDUAN PANDANG HP SINGSET)
   ========================================================================== */
.so-home-focus-container { 
  width: 100% !important; 
  max-width: 100% !important; 
  min-width: 0 !important; 
  background: #fff; 
  border: 1px solid var(--so-border); 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: var(--so-shadow); 
  margin-bottom: 26px; 
  box-sizing: border-box; 
}

/* Tampilan Normal Desktop / Komputer */
.so-focus-headline-card { 
  position: relative; 
  width: 100% !important; 
  height: auto !important; 
  aspect-ratio: 16 / 9 !important; /* Standar tv layar lebar desktop */
  background: #000; 
  overflow: hidden; 
}
.so-focus-cover-link { display: block; width: 100%; height: 100%; }
.so-focus-image-wrapper { width: 100%; height: 100%; }
.so-focus-image-wrapper img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; transition: transform 0.3s ease; }
.so-focus-headline-card:hover .so-focus-image-wrapper img { transform: scale(1.02); }
.so-focus-headline-body { position: absolute; inset: auto 0 0; padding: 80px 24px 24px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%); color: #fff; }
.so-focus-kicker { display: block; font-size: 12px; font-weight: 700; color: #ffd15c; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.so-focus-headline-title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }

.so-focus-footer-bar { background: linear-gradient(90deg, #1e5bb0 0%, #15458a 100%); color: #fff; padding: 16px 20px; }
.so-focus-bar-label { margin: 0 0 10px 0; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #ffd15c; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 6px; }
.so-focus-bar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px; }
.so-focus-bar-item { min-width: 0; word-break: break-word; overflow: hidden; }
.so-focus-bar-item a { color: #ffffff; font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; text-decoration: none; transition: color 0.2s; white-space: normal !important; }
.so-focus-bar-item a:hover { color: #ffd15c !important; }

/* ➔ ATURAN KUNCI DI MOBILE HP (MENCEGAH GAMBAR LAYAR PENUH KEBANTING KE BAWAH) */
@media (max-width: 720px) {
    .so-focus-headline-card { 
        height: auto !important; 
        /* SOLUSI EMAS: Dipotong rasionya jadi 21:9 (Sangat pipih/panjang samping) 
           Biar di HP gambarnya tidak full memakan satu layar penuh ke bawah, singset! */
        aspect-ratio: 21 / 9 !important; 
    }
    .so-focus-headline-body {
        padding: 40px 15px 15px 15px !important; /* Kecilin padding biar teks ga luber */
    }
    .so-focus-headline-title { 
        font-size: 17px !important; /* Perkecil teks di HP biar pas rapi */
        line-height: 1.2 !important;
    }
    .so-focus-kicker {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    .so-focus-bar-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .so-focus-bar-item { border-bottom: 1px dashed rgba(255, 255, 255, 0.1); padding-bottom: 8px; }
    .so-focus-bar-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* --- FIX MUTLAK ANTI OVERFLOW GLOBAL --- */
@media (max-width: 980px) { .header-ad { display: none !important; } }
@media (max-width: 720px) {
    html, body { overflow-x: hidden !important; width: 100% !important; position: relative; }
    .container { width: calc(100% - 24px) !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }
    .so-comment-form textarea, .so-comment-form input[type="text"], .wpp-widget-box, .so-related-grid { max-width: 100% !important; box-sizing: border-box !important; }
}

/* --- TERAPI KEJUT LAYOUT BERANDA --- */
.main .container.layout { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: flex-start !important; flex-wrap: nowrap !important; width: 100% !important; max-width: 1200px; margin: 0 auto; gap: 28px !important; }
.main .container.layout .content-area { flex: 1 !important; min-width: 0 !important; width: calc(100% - 358px) !important; }
.main .container.layout aside, .main .container.layout .sidebar, .main .container.layout #sidebar-primary { width: 330px !important; min-width: 330px !important; max-width: 330px !important; flex-shrink: 0 !important; }

@media (max-width: 720px) {
    .main .container.layout { flex-direction: column !important; flex-wrap: wrap !important; }
    .main .container.layout .content-area { width: 100% !important; }
    .main .container.layout aside, .main .container.layout .sidebar { width: 100% !important; min-width: 100% !important; }
}

/* --- REKAYASA PASUKAN ARTIKEL FEED BAWAH --- */
.post-card__image img, .mini-card__image img, .gambar-penuh {
    width: 100% !important; height: auto !important; min-height: auto !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; object-position: center top !important;
}

/* ==========================================================================
   SUNTIKAN OTOMATIS: MODUL HOME FOCUS BRANDING (ANTI MENTOK & SINEMATIK)
   ========================================================================== */
.so-home-focus-container { 
  width: 100% !important; 
  max-width: 100% !important; 
  background: #fff; 
  border: 1px solid var(--so-border); 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: var(--so-shadow); 
  margin-bottom: 26px; 
  box-sizing: border-box; 
}

.so-focus-headline-card { 
  position: relative; 
  width: 100% !important; 
  height: auto !important; 
  aspect-ratio: 16 / 9 !important; /* Standar Layar Lebar Komputer */
  background: #000; 
  overflow: hidden; 
}

.so-focus-cover-link { display: block; width: 100%; height: 100%; }
.so-focus-image-wrapper { width: 100% !important; height: 100% !important; }

.so-focus-img-element,
.so-focus-image-wrapper img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important; 
  object-position: center top !important;
  display: block !important; 
}

.so-focus-headline-body { position: absolute; inset: auto 0 0; padding: 60px 20px 20px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%); color: #fff; }
.so-focus-kicker { display: block; font-size: 12px; font-weight: 700; color: #ffd15c; text-transform: uppercase; margin-bottom: 6px; }
.so-focus-headline-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; color: #fff; }

.so-focus-footer-bar { background: linear-gradient(90deg, #1e5bb0 0%, #15458a 100%); color: #fff; padding: 16px 20px; }
.so-focus-bar-label { margin: 0 0 10px 0; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #ffd15c; border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding-bottom: 6px; }
.so-focus-bar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px; }
.so-focus-bar-item { min-width: 0; }
.so-focus-bar-item a { color: #ffffff; font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; }

/* ➔ PENGATURAN KHUSUS LAYAR HP (MOBILE RESPONSIVE) */
@media (max-width: 720px) {
    .so-home-focus-container {
        /* Jarak Suci Kiri-Kanan: Biar boks mundur 12px dan sejajar rapi dengan boks bawahnya */
        width: calc(100% - 24px) !important; 
        margin-left: 12px !important;       
        margin-right: 12px !important;      
        margin-bottom: 20px !important;
    }
    .so-focus-headline-card { 
        height: auto !important; 
        /* Rasio Sinematik Pipih: Biar gambar memendek horizontal dan tidak memakan layar penuh */
        aspect-ratio: 21 / 9 !important; 
    }
    .so-focus-image-wrapper {
        height: 100% !important;
    }
    .so-focus-headline-body {
        padding: 35px 15px 12px 15px !important; 
    }
    .so-focus-headline-title { 
        font-size: 15px !important; 
        line-height: 1.25 !important;
    }
    .so-focus-kicker { font-size: 9px !important; margin-bottom: 2px !important; }
    .so-focus-bar-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .so-focus-bar-item { border-bottom: 1px dashed rgba(255, 255, 255, 0.1); padding-bottom: 8px; }
    .so-focus-bar-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ==========================================================================
   SUNTIKAN OTOMATIS: PENJINAK WIDGET KATEGORI BAWAH DI MOBILE HP
   ========================================================================== */
@media (max-width: 640px) {
    /* 1. Kunci Jarak Kiri-Kanan: Biar boks widget sejajar lurus dengan Home Focus */
    .so-category-block {
        width: calc(100% - 24px) !important; /* Kurangi lebar biar ga mentok layar */
        margin-left: 12px !important;       /* Jarak kiri seimbang */
        margin-right: 12px !important;      /* Jarak kanan seimbang */
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Tata Ulang Struktur Grid List Berita Cilik */
    .so-template-list .so-news-card,
    .so-template-thumb_left .so-news-card,
    .so-template-hero_list .so-news-card:not(.is-first),
    .so-template-minimal .so-news-card {
        grid-template-columns: 115px minmax(0, 1fr) !important; /* Kunci lebar kotak foto */
        gap: 12px !important;
        padding-right: 10px !important; /* Jarak teks di dalam boks agar tidak mentok */
    }

    /* 3. FIX MUTLAK ANTI GEPENG: Hancurkan min-height kaku, ganti Rasio Emas 16:9 */
    .so-news-card__media,
    .so-template-list .so-news-card__media,
    .so-template-thumb_left .so-news-card__media,
    .so-template-hero_list .so-news-card:not(.is-first) .so-news-card__media,
    .so-template-minimal .so-news-card__media {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important; /* Matikan paksa aturan 92px yang bikin mleyot */
        max-height: none !important;
        aspect-ratio: 16 / 9 !important; /* Kunci bentuk foto lanskap proporsional */
        overflow: hidden !important;
        display: block !important;
    }

    /* 4. Paksa Gambar thumbnail Mengikuti Cetakan Bingkai */
    .so-news-card__media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Potong otomatis kanan-kiri, anti gepeng/melar! */
        object-position: center top !important;
        display: block !important;
    }

    /* 5. Rapikan Spasi Teks Judul & Meta Kategori Bawah */
    .so-news-card__body {
        padding: 8px 4px 8px 0 !important; /* Seimbangkan ruang boks */
    }
    .so-news-card__title {
        font-size: 14.5px !important; /* Sesuaikan ukuran huruf di HP */
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }
    .so-news-card__meta {
        margin-top: 4px !important;
        gap: 6px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   SUNTIKAN OTOMATIS: PENJINAK STRIP KATEGORI MOBILE (ANTI MENTOK LAYAR)
   ========================================================================== */
@media (max-width: 720px) {
    /* 1. Paksa kontainer tombol mundur 12px seimbang kanan-kiri */
    .category-strip,
    div.category-strip {
        width: calc(100% - 24px) !important; /* Kurangi lebar biar lepas dari bibir layar */
        margin-left: 12px !important;       /* Jarak kiri suci */
        margin-right: 12px !important;      /* Jarak kanan suci */
        margin-top: 15px !important;
        margin-bottom: 20px !important;
        display: flex !important;           /* Ubah grid ke flex biar ga numpuk di HP */
        flex-direction: column !important;  /* Berbaris vertikal ke bawah */
        gap: 10px !important;               /* Jarak antar tombol atas bawah */
        box-sizing: border-box !important;
    }

    /* 2. Setel ulang boks tombol di dalam agar rapi dan teksnya di tengah */
    .category-tile,
    a.category-tile {
        width: 100% !important;
        display: block !important;
        text-align: center !important;     /* Teks otomatis ke tengah boks */
        padding: 14px 16px !important;     /* Kasih ruang boks yang tebal dan nyaman diklik */
        font-size: 15px !important;        /* Ukuran huruf yang proporsional di HP */
        font-weight: 800 !important;
        border-radius: 6px !important;     /* Bikin sudut melengkung estetik halus */
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   SUNTIKAN OTOMATIS: PENJINAK AREA BERITA TERBARU (ANTI MENTOK LAYAR HP)
   ========================================================================== */
@media (max-width: 720px) {
    /* 1. Beri jarak judul "Berita Terbaru" agar tidak mepet ke tepi layar */
    .section-head,
    div.section-head {
        width: calc(100% - 24px) !important; /* Kurangi lebar biar lepas dari bibir layar */
        margin-left: 12px !important;       /* Jarak kiri suci */
        margin-right: 12px !important;      /* Jarak kanan suci */
        margin-top: 25px !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Jinakkan boks pembungkus daftar berita terbaru loop */
    .post-list,
    div.post-list {
        width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        display: flex !important;           /* Amankan susunan ke bawah */
        flex-direction: column !important;
        gap: 16px !important;               /* Jarak antar boks berita */
        box-sizing: border-box !important;
    }

    /* 3. Amankan Zona Iklan & Widget Sela (Content Top/Middle/Bottom) agar ikut presisi */
    .post-list > div,
    .post-list > ins,
    .post-list > iframe,
    .portal-ads-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}