/* ==========================================================================
   UPULIMA.COM - IDENTITAS EDITORIAL BIRU SAMUDRA & MERAH KABARESI
   Native CSS3: Custom Properties, Flexbox, CSS Grid. Tanpa framework.
   Style ruang redaksi dipisah ke /static/css/admin.css
   ========================================================================== */

:root {
  /* Palet khas Upulima: Biru Samudra Banda/Seram + Merah Adat Kabaresi */
  --brand-primary: #1e3a8a;
  --brand-primary-dark: #172554;
  --brand-accent-soft: #eff6ff;
  --brand-secondary: #dc2626;
  --brand-orange: var(--brand-primary);
  --brand-orange-dark: var(--brand-primary-dark);
  --brand-orange-soft: var(--brand-accent-soft);
  --brand-blue: var(--brand-secondary);
  --brand-navy: #0f172a;
  --brand-navy-dark: #020617;

  /* Netral bernuansa slate sejuk & bersih agar sangat nyaman dibaca */
  --bg-main: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Variabel admin fallback */
  --primary-navy: #0f172a;
  --primary-navy-dark: #020617;
  --primary-navy-light: #2563eb;
  --accent-red: #dc2626;
  --accent-amber: #d97706;
  --accent-emerald: #059669;

  /* Tipografi editorial modern */
  --font-sans: Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout lapang & nyaman untuk tampilan laptop, tablet, & hp */
  --max-width: 1120px;
  --sidebar-width: 300px;
  --header-top-height: 66px;
  --nav-height: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --transition: all 0.2s ease;
}

/* ----------------------------- Reset & Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--base-font-size, 16px); scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-orange); }

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width, 1120px);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 2000;
  background: var(--brand-orange); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }

/* Thumbnail wrapper umum (rasio konsisten, zoom halus saat hover) */
.thumb {
  display: block;
  overflow: hidden;
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.thumb img { width: 100%; height: 100%; transition: transform 0.35s ease; }
.thumb:hover img { transform: scale(1.05); }
.thumb-16x9 { aspect-ratio: 16 / 9; }
.thumb-4x3 { aspect-ratio: 4 / 3; }

/* Label kategori khas Upulima */
.label-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
}
.label-cat:hover { color: var(--brand-orange-dark); }

.label-solid {
  background-color: var(--brand-orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.label-solid:hover { color: #fff; background-color: var(--brand-orange-dark); }

.meta-time { font-size: 0.74rem; color: var(--text-muted); }

/* ==========================================================================
   HEADER (aksen ungu gradien atas + logo emblem asimetris + bar kanal pill)
   ========================================================================== */
.site-header {
  position: sticky;
  top: calc((var(--header-top-height) + 3px) * -1);
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(23, 17, 36, 0.06);
}

.header-accent-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-primary) 55%, var(--brand-secondary) 100%);
}

.header-top { height: var(--header-top-height); border-bottom: 1px solid var(--border-light); }

.header-top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-soft, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-main, #0f172a);
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm, 8px);
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover {
  background-color: var(--brand-accent-soft, #eff6ff);
  border-color: var(--brand-primary, #1e3a8a);
  color: var(--brand-primary, #1e3a8a);
}
.toggle-menu-svg {
  display: block;
}
.toggle-bar {
  transition: width 0.22s ease, transform 0.22s ease;
}
.toggle-dot {
  transition: transform 0.22s ease, fill 0.22s ease;
  transform-origin: 18.5px 12px;
}
.icon-btn:hover .toggle-bar.bar-2 {
  width: 13.5px;
}
.icon-btn:hover .toggle-dot {
  transform: scale(1.25);
}

/* Wordmark & Emblem Asimetris Upulima */
.brand-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo-img { max-height: 42px; width: auto; object-fit: contain; }
.brand-badge {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-navy-dark) 100%);
  color: #fff; font-weight: 900; font-size: 1.15rem; letter-spacing: -0.04em;
  border-radius: 12px 5px 12px 5px;
  box-shadow: 0 3px 12px rgba(109, 40, 217, 0.28);
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-text {
  font-size: 1.68rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-blue);
  line-height: 1;
}
.brand-text em { font-style: normal; color: var(--brand-orange); }
.brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.brand-logo:hover .brand-text { color: var(--brand-orange-dark); }

/* Pencarian */
.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  transition: var(--transition);
}
.header-search:focus-within {
  background-color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-soft);
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}
.header-search button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0 16px;
  height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.header-search button:hover { color: var(--brand-orange); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-date { font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
}
.btn-login:hover { background-color: var(--brand-orange); color: #fff; }

/* Bar kanal (navigasi rubrik latar Biru Samudra khas Upulima) */
.channel-nav {
  height: var(--nav-height);
  background-color: var(--brand-primary, #1e3a8a);
  border-bottom: 2px solid var(--brand-primary-dark, #172554);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.channel-list {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-list::-webkit-scrollbar { display: none; }
.channel-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: var(--transition);
}
.channel-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
}
.channel-link.active {
  color: #ffffff;
  background-color: var(--brand-secondary, #dc2626);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Kategori Sorotan dengan Ikon Titik Berkedip di Kanan Atas Tulisan */
.channel-link-sorotan {
  position: relative;
  padding-right: 22px;
}
.channel-link-sorotan .blinking-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 5px #ef4444;
  pointer-events: none;
}
.channel-link-sorotan .blinking-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.55);
  animation: sorotan-pulse 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.channel-link-sorotan.active .blinking-dot {
  background-color: #fef08a;
  box-shadow: 0 0 5px #fef08a;
}
.channel-link-sorotan.active .blinking-dot::after {
  background-color: rgba(254, 240, 138, 0.6);
}

/* Titik berkedip pada menu seluler / drawer */
.drawer-link-sorotan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drawer-link-sorotan .blinking-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 5px #ef4444;
  display: inline-block;
}
.drawer-link-sorotan .blinking-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.55);
  animation: sorotan-pulse 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes sorotan-pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  65% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   IKON API BERKEDIP / MENYALA PADA KATEGORI INDEKS (Desktop & Drawer)
   ========================================================================== */
.channel-link-indeks {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.channel-link-indeks .blinking-fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #ff5722;
  filter: drop-shadow(0 0 3px rgba(255, 87, 34, 0.8)) drop-shadow(0 0 7px rgba(245, 158, 11, 0.6));
  animation: fire-flicker 1.35s ease-in-out infinite alternate;
  transform-origin: center bottom;
  pointer-events: none;
}

.channel-link-indeks.active .blinking-fire {
  filter: drop-shadow(0 0 4px #fef08a) drop-shadow(0 0 8px #f59e0b);
}

.drawer-link-indeks {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.drawer-link-indeks .blinking-fire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-left: 2px;
  color: #ff5722;
  filter: drop-shadow(0 0 3px rgba(255, 87, 34, 0.85)) drop-shadow(0 0 7px rgba(245, 158, 11, 0.6));
  animation: fire-flicker 1.35s ease-in-out infinite alternate;
  transform-origin: center bottom;
  pointer-events: none;
}

@keyframes fire-flicker {
  0% {
    transform: scale(0.92) rotate(-3deg);
    filter: drop-shadow(0 0 3px rgba(255, 87, 34, 0.7)) drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
    opacity: 0.86;
    color: #f97316;
  }
  20% {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
    opacity: 1;
    color: #ef4444;
  }
  45% {
    transform: scale(0.96) rotate(-1.5deg);
    filter: drop-shadow(0 0 4px rgba(255, 87, 34, 0.75)) drop-shadow(0 0 7px rgba(234, 88, 12, 0.5));
    opacity: 0.9;
    color: #f59e0b;
  }
  70% {
    transform: scale(1.16) rotate(2.5deg);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 1)) drop-shadow(0 0 13px rgba(251, 191, 36, 0.9));
    opacity: 1;
    color: #dc2626;
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(255, 87, 34, 0.8)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.65));
    opacity: 0.94;
    color: #ea580c;
  }
}

/* ==========================================================================
   TRENDING TAGS & BREAKING NEWS TICKER
   ========================================================================== */
.trending-bar { border-bottom: 1px solid var(--border-light); background: #fff; }
.trending-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
}
.trending-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-orange);
  flex-shrink: 0;
}
.trending-tags {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.trending-tags::-webkit-scrollbar { display: none; }
.trending-tag { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.trending-tag:hover { color: var(--brand-orange); }

.ticker-wrapper { background-color: var(--bg-soft); border-bottom: 1px solid var(--border-color); }
.ticker-inner { display: flex; align-items: center; height: 36px; }
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 11px;
  background-color: var(--brand-secondary, #dc2626);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-badge svg { color: #ffffff; }
.ticker-content { flex: 1; overflow: hidden; white-space: nowrap; margin-left: 12px; }
.ticker-track { display: inline-block; animation: tickerScroll 40s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; margin-right: 48px; font-size: 0.82rem; font-weight: 600; color: var(--text-body); }
.ticker-item:hover { color: var(--brand-orange); }
.ticker-bullet { color: var(--brand-orange); margin-right: 6px; font-size: 0.6rem; vertical-align: 2px; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   BERITA PILIHAN BERJALAN (POST CAROUSEL STRIP - HORIZONTAL SLIDER)
   ========================================================================== */
.post-carousel-section {
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  position: relative;
}

.post-carousel-container {
  position: relative;
  width: 100%;
}

.post-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch;
}

.post-carousel-track::-webkit-scrollbar {
  display: none;
}

.post-carousel-card {
  flex: 0 0 calc((100% - 4 * 12px) / 5);
  min-width: 0;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.post-carousel-card:hover {
  transform: translateY(-2px);
}

.carousel-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.carousel-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  background-color: var(--bg-soft, #f1f5f9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.carousel-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-carousel-card:hover .carousel-card-thumb img {
  transform: scale(1.05);
}

.carousel-card-title {
  margin: 7px 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.post-carousel-card:hover .carousel-card-title {
  color: var(--brand-primary, #1e3a8a);
}

/* Tombol Panah Melingkar Overlay */
.carousel-arrow {
  position: absolute;
  top: 68px; /* Pusat vertikal thumbnail ~135px */
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.carousel-arrow:hover {
  background: var(--brand-primary, #1e3a8a);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
  left: 8px;
}

.carousel-arrow-next {
  right: 8px;
}

/* ==========================================================================
   LAYOUT UTAMA (ramping desktop/laptop + sidebar 280px)
   ========================================================================== */
.page-main { padding-top: 14px; padding-bottom: 30px; }

.home-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 20px;
  align-items: start;
}

/* Judul seksi: aksen pil vertikal ungu khas Upulima */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.14rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-main);
}
.section-title::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-blue) 100%);
  flex-shrink: 0;
}
.section-title a:hover { color: var(--brand-orange); }
.section-more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-orange);
}
.section-more:hover { color: var(--brand-orange-dark); text-decoration: underline; }

/* ==========================================================================
   SOROTAN UTAMA UPULIMA (Split Editorial + Briefing 2x2 Bernomor)
   ========================================================================== */
.headline-section { margin-bottom: 16px; }

.headline-main.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  max-height: 380px;
}
.hero-media-col {
  position: relative;
  display: block;
  height: 100%;
  max-height: 380px;
  background-color: var(--bg-soft);
  overflow: hidden;
}
.hero-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-media-col:hover img { transform: scale(1.04); }
.hero-kicker-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-secondary, #dc2626);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.hero-panel-col {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  color: var(--text-main);
}
.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hero-panel-time {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.headline-title {
  font-size: 1.44rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-main);
}
.headline-title a { color: var(--text-main); }
.headline-title a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 4px;
}
.hero-summary {
  font-size: 0.90rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.headline-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot { width: 4px; height: 4px; border-radius: 50%; background-color: var(--brand-orange); display: inline-block; }

/* Grid Briefing 2x2 Bernomor (ciri khas subheadline Upulima) */
.subheadline-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.subheadline-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  transition: var(--transition);
}
.subheadline-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}
.subheadline-body { display: flex; flex-direction: column; gap: 4px; }
.subheadline-top { display: flex; align-items: center; gap: 8px; }
.briefing-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--brand-orange-soft);
  color: var(--brand-orange);
  font-size: 0.72rem;
  font-weight: 800;
}
.subheadline-title {
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   FEED "BERITA TERKINI" (daftar vertikal kartu editorial khas Upulima)
   ========================================================================== */
.editorial-surface {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.feed-section { margin-bottom: 16px; }
.feed { display: flex; flex-direction: column; }

.feed-item {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.feed-item:first-child { padding-top: 0; }
.feed-thumb { aspect-ratio: 16 / 10; }
.feed-body { display: flex; flex-direction: column; gap: 4px; }
.feed-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-meta .meta-time::before { content: "•"; margin-right: 8px; color: var(--text-light); }
.meta-read { font-size: 0.76rem; font-weight: 600; color: var(--brand-orange); }
.meta-read::before { content: "•"; margin-right: 8px; color: var(--text-light); }
.feed-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}
.feed-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-more {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 9px 16px;
  border: 1px solid var(--brand-orange);
  border-radius: 999px;
  color: var(--brand-orange);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-more:hover { background-color: var(--brand-orange); color: #fff; }

/* ==========================================================================
   BLOK RUBRIK (1 berita utama + daftar mini)
   ========================================================================== */
.channel-block { margin-bottom: 16px; }
.channel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}
.channel-grid.is-single { grid-template-columns: 1fr; }
.channel-lead { display: flex; flex-direction: column; gap: 6px; }
.channel-lead-title { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.channel-lead-summary { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

.channel-side { display: flex; flex-direction: column; gap: 8px; }
.mini-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-item .thumb { aspect-ratio: 3 / 2; }
.mini-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR: IKLAN, TERPOPULER (LENCANA UNGU), RUBRIK
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-height) + 12px); display: flex; flex-direction: column; gap: 14px; }

.sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   SISTEM IKLAN MULTI-SLOT (Desktop & Seluler, Zero-CLS)
   ========================================================================== */
.ad-zone {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-orange-soft) 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 9px 14px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.ad-zone:hover { border-color: var(--brand-orange); }
.ad-zone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ad-zone-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ad-zone-size {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.ad-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ad-zone-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ad-zone-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.ad-zone-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.ad-zone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background-color: var(--brand-orange);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
.ad-zone-cta:hover { background-color: var(--brand-orange-dark); color: #ffffff; }
.ad-banner-link {
  display: block;
  text-align: center;
}
.ad-banner-link img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* 1. Billboard Atas (Sejajar Penuh dengan Lebar Konten Utama) */
.ad-billboard {
  width: 100%;
  max-width: 100%;
  min-height: 84px;
  margin: 0 0 14px;
}
.ad-billboard .ad-zone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ad-billboard .ad-zone-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.ad-billboard .ad-zone-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.ad-billboard .ad-zone-cta {
  padding: 7px 16px;
  font-size: 0.80rem;
}

/* 2. In-Feed Beranda & Kategori (Desktop 728x90 / Mobile 300x250) */
.ad-infeed {
  width: 100%;
  min-height: 88px;
  margin: 0 0 16px;
}

/* 3. Sidebar MPU Atas (Desktop 280x250 / Mobile 300x250) */
.ad-mpu {
  width: 100%;
  min-height: 220px;
  text-align: center;
}
.ad-mpu .ad-zone-card,
.ad-skyscraper .ad-zone-card {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* 4. Sidebar Sticky Skyscraper (Khusus Desktop > 1024px) */
.ad-skyscraper {
  width: 100%;
  min-height: 340px;
  text-align: center;
}

/* 5. In-Article Ad (Tengah Postingan Berita) */
.in-article-ad-wrap {
  margin: 16px 0;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.ad-inarticle {
  min-height: 100px;
}
.ad-inarticle .ad-zone-desc {
  font-size: 0.78rem;
}

/* 6. Bawah Artikel (Post-Read Banner) */
.ad-article-bottom {
  margin-top: 16px;
  min-height: 98px;
}

/* 7. Sticky Mobile Anchor (Tampil hanya di <= 768px) */
.mobile-sticky-ad {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background-color: #ffffff;
  border-top: 2px solid var(--brand-orange);
  box-shadow: 0 -6px 20px rgba(22, 11, 46, 0.16);
  padding: 6px 34px 6px 10px;
}
.mobile-sticky-ad[hidden] { display: none !important; }
.ad-mobile-anchor {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.ad-mobile-anchor .ad-zone-meta { display: none; }
.ad-mobile-anchor .ad-zone-desc { display: none; }
.ad-mobile-anchor .ad-zone-title {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-mobile-anchor .ad-zone-cta {
  padding: 5px 10px;
  font-size: 0.7rem;
}
.ad-mobile-anchor .ad-banner-link img {
  max-height: 52px;
  width: auto;
}
.mobile-ad-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.popular-list { display: flex; flex-direction: column; }
.popular-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s ease;
}
.popular-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* Artikel Populer Nomor 1: Foto Hero Khas Upulima (#1 Inline + Judul & Waktu/Views Merah Kabaresi) */
.popular-item.popular-lead {
  display: block;
  padding: 0 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.popular-lead-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--brand-navy, #0f172a);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  isolation: isolate;
}
.popular-lead-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.popular-lead-card:hover .popular-lead-img {
  transform: scale(1.04);
}
.popular-lead-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary, #1e3a8a) 0%, var(--brand-navy, #0f172a) 100%);
}
.popular-lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.02) 0%,
    rgba(15, 23, 42, 0.25) 30%,
    rgba(15, 23, 42, 0.70) 55%,
    rgba(185, 28, 28, 0.90) 85%,
    rgba(220, 38, 38, 0.96) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.popular-lead-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 10px;
  z-index: 2;
}
.popular-lead-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.popular-lead-rank {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  margin-top: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.popular-lead-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.popular-lead-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-lead-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}
.popular-lead-pipe {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  padding: 0 1px;
  user-select: none;
}
.popular-lead-time,
.popular-lead-views {
  display: inline-block;
}

/* Nomor Urut Berbentuk Lingkaran Bersih & Tenang (Tanpa Efek Gerak Hover) */
.popular-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.80rem;
  font-weight: 900;
  background-color: var(--brand-orange);
  color: #ffffff;
  margin-top: 1px;
  flex-shrink: 0;
}
.popular-item:nth-child(n+4) .popular-number {
  background-color: var(--brand-orange-soft);
  color: var(--brand-orange);
}
.popular-body { display: flex; flex-direction: column; gap: 2px; }
.popular-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}
.popular-item:hover .popular-title {
  color: var(--brand-orange);
}

.rubrik-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-badge:hover { background-color: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }

.editorial-box {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-body);
  background-color: var(--brand-orange-soft);
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 10px 12px;
}
.editorial-box strong { color: var(--brand-blue); }
.editorial-box a { color: var(--brand-orange); font-weight: 700; }

/* ==========================================================================
   HALAMAN ARTIKEL (SINGLE POST)
   ========================================================================== */
.article-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.breadcrumbs a:hover { color: var(--brand-orange); }
.breadcrumbs-sep { color: var(--text-light); }
.breadcrumbs .current { color: var(--brand-orange); font-weight: 600; }

.article-header { margin-bottom: 12px; }
.article-headline {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 6px 0 10px;
  letter-spacing: -0.015em;
}
.article-subheadline { font-size: 1.05rem; color: #555; line-height: 1.45; margin-bottom: 12px; }

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.author-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.author-avatar img { width: 100%; height: 100%; }
.byline-author { font-size: 0.90rem; color: #444; }
.byline-author strong { color: var(--brand-blue); }
.byline-dates { font-size: 0.80rem; color: var(--text-muted); margin-top: 2px; }

/* Toolbar pemilihan font & ukuran tepat di atas paragraf pertama berita */
.reader-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.reader-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.reader-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reader-tool-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.reader-pill {
  border: 0;
  background: transparent;
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.reader-pill:hover {
  color: var(--brand-orange);
}
.reader-pill.active {
  background-color: var(--brand-orange);
  color: #ffffff;
}
.reader-btn-text {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-body);
  font-size: 0.72rem;
  font-weight: 800;
  width: 25px;
  height: 23px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.reader-btn-text:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Tombol share proporsional & badge kategori di samping kanan */
.share-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.share-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 2px;
}
.share-btn {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.share-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.share-btn[data-share="wa"] { background-color: #25d366; }
.share-btn[data-share="fb"] { background-color: #1877f2; }
.share-btn[data-share="x"] { background-color: #111111; }
.share-btn[data-share="copy"] { background-color: #64748b; }

.share-cat-badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary, #1e3a8a);
  background-color: var(--brand-accent-soft, #eff6ff);
  border: 1px solid rgba(30, 58, 138, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.share-cat-badge:hover {
  background-color: var(--brand-primary, #1e3a8a);
  color: #fff;
  border-color: var(--brand-primary, #1e3a8a);
}
.share-btn[data-share="copy"] svg { fill: none; stroke: currentColor; }

.article-figure { margin: 0 0 16px; }
.article-figure img { width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.article-figure figcaption {
  background-color: var(--bg-soft);
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Reader experience: ukuran font & tinggi baris mengikuti pengaturan template */
.article-body {
  font-family: var(--font-article, var(--font-sans));
  font-size: var(--article-font-size, 19px);
  line-height: var(--article-line-height, 1.65);
  color: var(--text-body);
}
.article-body p { margin-bottom: 1.05em; }
.article-body strong { color: var(--text-main); }
.article-body a { color: var(--brand-blue); text-decoration: underline; }
.article-body ul,
.article-body ol { margin: 0 0 1.15em 1.4em; padding-left: 0.3em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.35em; }
.article-body hr { border: 0; border-top: 1px solid var(--border-color); margin: 1.4em 0; }
.article-body figure { margin: 1.2em 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-sm); }
.article-body figcaption { font-size: 0.82rem; color: #666; margin-top: 5px; }
.article-body h2,
.article-body h3 { color: var(--text-main); line-height: 1.32; margin: 1.3em 0 0.5em; font-weight: 800; }
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body blockquote {
  border-left: 4px solid var(--brand-orange);
  background-color: var(--brand-orange-soft);
  padding: 12px 18px;
  margin: 1.2em 0;
  font-style: italic;
  color: #333;
}

/* Kotak "Baca Juga" di tengah artikel */
.baca-juga {
  border-left: 4px solid var(--brand-orange);
  background-color: var(--brand-orange-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 8px 14px 10px;
  margin: 0.5em 0 1em;
}
.article-body .baca-juga-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
  margin: 0 0 4px;
}
.baca-juga ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.article-body .baca-juga li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 0;
  line-height: 1.3;
}
.baca-juga li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brand-orange);
}
.article-body .baca-juga a {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  padding: 1px 0;
}
.article-body .baca-juga a:hover { color: var(--brand-orange); }

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.article-tags-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; color: var(--text-main); margin-right: 4px; }

.related-section { margin-top: 20px; }

/* ==========================================================================
   HALAMAN RUBRIK / INDEKS / PENCARIAN
   ========================================================================== */
.page-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  border-left: 5px solid var(--brand-orange);
  padding-left: 12px;
  line-height: 1.2;
}
.page-desc { font-size: 0.92rem; color: #666; margin-top: 8px; max-width: 680px; }

.search-page-form {
  display: flex;
  margin-top: 16px;
  max-width: 560px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-page-form input { flex: 1; border: 0; padding: 11px 14px; outline: none; font-size: 0.95rem; }
.search-page-form button {
  border: 0;
  background-color: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}
.search-page-form button:hover { background-color: var(--brand-orange-dark); }

.empty-state {
  text-align: center;
  padding: 56px 16px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
}
.empty-state h2 { font-size: 1.15rem; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   FOOTER (Obsidian-Plum Khas Upulima)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--brand-navy-dark) 0%, #0d061c 100%);
  color: #94a3b8;
  border-top: 4px solid var(--brand-orange);
  margin-top: 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 24px 0 18px;
}
.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 12px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.brand-logo-footer {
  max-height: 34px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-tagline { color: #93c5fd; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; margin-top: 8px; }
.footer-address { font-size: 0.75rem; line-height: 1.6; margin-top: 6px; color: #64748b; }
.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin: 0;
  padding: 0;
  line-height: 1.25;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #94a3b8;
  padding: 2px 0;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.footer-links a:hover .cat-icon {
  color: #38bdf8;
}
.cat-icon-sorotan { color: #f87171; }
.cat-icon-politik { color: #f87171; }
.cat-icon-ekonomi { color: #38bdf8; }
.cat-icon-pendidikan { color: #4ade80; }
.cat-icon-hukum { color: #c084fc; }
.cat-icon-gaya-hidup { color: #fb923c; }
.cat-icon-indeks { color: #f97316; }

.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px 3px 9px 3px;
  background-color: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.social-links a:hover { background-color: var(--brand-orange); color: #fff; }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

.footer-contacts {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.77rem;
  line-height: 1.45;
  color: #94a3b8;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.contact-icon svg {
  display: block;
}
.contact-icon-address { color: #f87171; }
.contact-icon-phone   { color: #4ade80; }
.contact-icon-email   { color: #38bdf8; }
.contact-item:hover .contact-icon {
  background-color: rgba(255, 255, 255, 0.16);
}
.contact-text {
  flex: 1;
  color: #94a3b8;
  word-break: break-word;
}
.contact-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
  word-break: break-word;
}
.contact-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 12px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.74rem;
  color: #64748b;
}
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a:hover { color: #38bdf8; }

/* ==========================================================================
   DRAWER MENU SELULER
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 8, 34, 0.55);
  z-index: 1500;
}
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 290px;
  max-width: 85vw;
  background-color: #fff;
  z-index: 1600;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 2.5px solid var(--brand-secondary, #dc2626);
  background: #ffffff;
}
.drawer-head .drawer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: calc(100% - 40px);
}
.drawer-head .drawer-logo-img {
  max-height: 30px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}
.drawer-head .brand-text { font-size: 1.25rem; }
.drawer-close { display: inline-flex; flex-shrink: 0; padding: 4px; }

/* Form Pencarian Seluler dengan Ikon Pencarian */
.drawer-search {
  padding: 10px 14px 4px;
  background: #ffffff;
}
.drawer-search-inner {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.drawer-search-inner:focus-within {
  background-color: #ffffff;
  border-color: var(--brand-secondary, #dc2626);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.drawer-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 10px 0 12px;
  font-size: 0.86rem;
  color: var(--text-main, #0f172a);
  outline: none;
}
.drawer-search-input::placeholder {
  color: #94a3b8;
  font-size: 0.83rem;
}
.drawer-search-btn {
  height: 100%;
  width: 40px;
  border: none;
  background-color: var(--brand-secondary, #dc2626);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.drawer-search-btn:hover {
  opacity: 0.92;
}
.drawer-search-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* Judul Kategori & Seksi Rapat */
.drawer-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 7px 14px 2px;
  margin: 0;
}

/* Baris Menu Rapat, Rapi, & Nyaman */
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 14px;
  font-weight: 650;
  font-size: 0.85rem;
  line-height: 1.25;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--text-main, #1e293b);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.drawer-links a .cat-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-links a .cat-icon svg {
  width: 14px;
  height: 14px;
}
.drawer-links a:hover {
  background-color: rgba(220, 38, 38, 0.05);
  color: var(--brand-secondary, #dc2626);
}
.drawer-links a.active {
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--brand-secondary, #dc2626);
  font-weight: 750;
}
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   LAMAN INFORMASI STATIS & DOKUMEN REGULASI PERS
   ========================================================================== */
.static-page-body h2 {
  font-size: 1.30rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1.3em 0 0.5em;
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--border-light);
}

.static-page-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 1.1em 0 0.35em;
}

.legal-callout {
  background-color: var(--brand-accent-soft, #eff6ff);
  border-left: 4px solid var(--brand-primary, #1e3a8a);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  margin: 1.1em 0 1.4em;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-badge {
  display: inline-block;
  background-color: var(--brand-secondary, #dc2626);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: 1px;
}

.redaksi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1em 0 1.6em;
  font-size: 0.92rem;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.redaksi-table th,
.redaksi-table td {
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  text-align: left;
  line-height: 1.45;
}

.redaksi-table tr:nth-child(even) td {
  background-color: var(--bg-soft);
}

/* ==========================================================================
   RESPONSIVE (Laptop, Tablet, & Seluler)
   ========================================================================== */
@media (max-width: 1024px) {
  .home-layout,
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sidebar-sticky { position: static; }
  .desktop-only { display: none !important; }
  .ad-mpu { max-width: 320px; margin: 0 auto; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 16px; }
  .header-date { display: none; }
  .post-carousel-card { flex: 0 0 calc((100% - 3 * 10px) / 4); }
  .post-carousel-track { gap: 10px; }
}

@media (max-width: 900px) {
  .headline-main.hero-split { grid-template-columns: 1fr; max-height: none; }
  .hero-media-col { min-height: 220px; max-height: 260px; }
}

@media (max-width: 768px) {
  :root { --header-top-height: 58px; }
  .page-main { padding-top: 10px; padding-bottom: 24px; }
  .icon-btn { width: 36px; height: 36px; }
  .header-top-inner { gap: 10px; }
  .brand-badge { width: 32px; height: 32px; font-size: 1rem; }
  .brand-text { font-size: 1.4rem; }
  .brand-tagline { display: none; }
  .header-search { max-width: none; }
  .header-search input { padding: 8px 12px; font-size: 0.90rem; }
  .btn-login span { display: none; }
  .btn-login { padding: 6px 9px; }

  .mobile-sticky-ad { display: block; }
  body.has-mobile-sticky-ad .site-footer { padding-bottom: 68px; }

  .post-carousel-section { margin: 0 0 12px; }
  .ad-billboard { min-height: 80px; margin-bottom: 12px; padding: 10px 12px; }
  .ad-billboard .ad-zone-card { gap: 10px; }
  .ad-infeed,
  .ad-inarticle,
  .ad-article-bottom { min-height: 120px; margin-bottom: 14px; }
  .ad-infeed .ad-zone-card,
  .ad-inarticle .ad-zone-card,
  .ad-article-bottom .ad-zone-card {
    flex-direction: column;
    text-align: center;
  }

  .headline-section { margin-bottom: 14px; }
  .hero-panel-col { padding: 16px 14px; }
  .headline-title { font-size: 1.28rem; line-height: 1.32; margin-bottom: 6px; }
  .hero-summary { margin-bottom: 8px; font-size: 0.88rem; }
  .subheadline-row { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .editorial-surface { padding: 14px; margin-bottom: 14px; }
  .feed-section { margin-bottom: 14px; }

  .feed-item { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  .feed-thumb { aspect-ratio: 4 / 3; }
  .feed-title { font-size: 1.02rem; line-height: 1.32; }
  .feed-summary { display: none; }

  .channel-block { margin-bottom: 14px; }
  .channel-grid { grid-template-columns: 1fr; gap: 10px; }

  .article-content { padding: 14px 16px; }
  .article-headline { font-size: 1.62rem; line-height: 1.25; margin: 4px 0 8px; }
  .article-body { font-size: 1.08rem; line-height: var(--article-line-height, 1.62); }
  .page-title { font-size: 1.4rem; }

  .footer-main { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 14px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .post-carousel-card { flex: 0 0 calc((100% - 2 * 8px) / 3); }
  .post-carousel-track { gap: 8px; }
  .carousel-arrow { width: 32px; height: 32px; top: 56px; }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
}

@media (max-width: 480px) {
  .header-search { display: none; }
  .header-tools { margin-left: auto; }
  .subheadline-card { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .subheadline-title { font-size: 0.88rem; }
  .headline-title { font-size: 1.18rem; }
  .article-headline { font-size: 1.45rem; }
  .feed-item { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .feed-title { font-size: 0.98rem; }
  .post-carousel-card { flex: 0 0 calc((100% - 8px) / 1.75); }
  .carousel-card-title { font-size: 0.82rem; -webkit-line-clamp: 2; margin-top: 6px; }
  .carousel-arrow { width: 28px; height: 28px; top: 46px; }
}
