:root {
  --blue: #0ea5e9;
  --red: #111111;
  --ink: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f5f7fa;
  --paper: #fff;
  --navy: #071b4b;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --container: 1240px;
  --gap-main: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  overflow-x: hidden;
  padding-top: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ================= Global Touch Feedback & Elements ================= */
a, button {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s ease;
  touch-action: manipulation;
}

a:active:not(.logo), button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  touch-action: manipulation;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.shell {
  max-width: var(--container);
  margin: auto;
  padding: 0 24px;
}

/* ================= Typography & Headers ================= */
h1, h2, h3, .side-title {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.hero h1 {
  font-size: 38px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.article-layout h1 {
  font-size: 44px;
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.section-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.side-title {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: block;
}

.side-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--blue);
}

.news-card h3, .result h3 {
  font-weight: 700;
  line-height: 1.35;
}

/* ================= Header Components ================= */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 12px;
}

.topin, .mainhead, .navin, .headline, .section-head, .footer-in {
  display: flex;
  align-items: center;
}

.topin {
  min-height: 32px;
  justify-content: space-between;
}

.utility, .socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.utility a {
  opacity: 0.92;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.utility a:hover {
  color: #fff;
  opacity: 1;
}

.socials {
  gap: 14px;
}

.mainhead {
  height: 84px;
  gap: 36px;
}

.logo {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -1.3px;
  white-space: nowrap;
  color: var(--ink);
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: 234px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.footer .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.mark {
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  box-shadow: inset -7px 0 var(--red);
}

.logo b {
  color: var(--blue);
}

.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  flex: 1;
  border: 1px solid transparent;
  background: var(--soft);
  padding: 0 16px;
  color: #98a2b3;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:hover {
  border-color: var(--line);
}

.search:focus-within {
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search input::placeholder {
  color: #98a2b3;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--blue);
  background: var(--soft);
}

/* ================= Navigation bar (Desktop & Tablet) ================= */
.nav {
  background: var(--blue);
  color: #fff;
  position: relative;
}

.navin {
  height: 48px;
  gap: 6px;
}

.nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav a:hover, .nav a.active {
  background: var(--red);
  color: #fff;
}

.hamburger {
  display: none;
}

/* ================= Ticker / Breaking News ================= */
.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.headline {
  height: 40px;
  gap: 16px;
  white-space: nowrap;
}

.breaking {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 6px 10px;
  border-radius: 3px;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-text {
  font-size: 13px;
  color: var(--muted);
  animation: slide 25s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}

.ticker-text a {
  color: inherit;
}

.ticker-text a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.ticker-text i {
  color: var(--red);
  font-style: normal;
  margin: 0 18px;
}

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

.header-ad-shell {
  margin: 16px auto 0;
}

/* ================= Main Layout Content ================= */
main.shell {
  padding-top: 18px;
  padding-bottom: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 300px);
  gap: 20px;
}

.hero {
  height: 430px;
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #1e293b;
  border-radius: var(--radius-md);
}

a.hero {
  color: inherit;
  text-decoration: none;
}

a.hero:hover img {
  transform: scale(1.02);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  opacity: 0.95;
  transition: transform 0.5s ease;
}

.hero-slide:hover img {
  transform: scale(1.02);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(3, 10, 25, 0.88) 0%, rgba(3, 10, 25, 0.34) 62%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Carousel dots navigation */
.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  background: var(--red);
  transform: scale(1.1);
  width: 18px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .hero-dots {
    bottom: 14px;
    right: 20px;
  }
}

.hero-copy {
  position: relative;
  z-index: 5;
  padding: 32px;
  color: #ffffff;
  max-width: 760px;
}

.hero-copy h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.45);
  max-width: 22ch;
}

.badge {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.hero .badge {
  color: #ffffff;
  background: var(--red);
  padding: 5px 9px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
  margin: 12px 0 16px;
  line-height: 1.55;
  color: #f1f5f9;
  font-size: 15px;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e2e8f0;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ================= Side Popular Widgets ================= */
.popular {
  display: flex;
  flex-direction: column;
}

.popular-item {
  display: grid;
  grid-template-columns: 24px 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start; /* Align elements beautifully at the top of each item */
}

.popular-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  padding-top: 2px; /* Precision vertical alignment with the first text line */
  text-align: left;
}

.popular-item img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.popular-item h3 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 11px;
  line-height: 1.42; /* Balanced line spacing for optimal dense text reading */
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
  letter-spacing: -0.015em;
}

.popular-item h3:hover {
  color: var(--blue);
}

.popular-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 3px;
}

/* ================= Ads Layout & Responsive Safety ================= */
.header-ad-shell {
  padding: 10px 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad {
  min-height: 70px;
  background: var(--soft);
  border: 1px dashed #b9c4d3;
  display: grid;
  place-items: center;
  text-align: center;
  color: #98a2b3;
  font-size: 10px;
  letter-spacing: 1.3px;
  margin: 16px auto;
  border-radius: 6px;
  padding: 6px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ad.ad-active {
  background: transparent;
  border: none;
  padding: 0;
  min-height: auto;
  margin: 14px auto;
}

.ad a,
.ad-active a {
  display: block;
  max-width: 100%;
  text-decoration: none;
}

.ad img,
.ad-active img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.ad-active iframe,
.ad-active video {
  max-width: 100%;
}

/* ================= Grids and News Cards ================= */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap-main);
  align-items: start;
  margin-top: 8px;
}

.hero-grid + * + .content-grid,
.hero-grid + .content-grid {
  margin-top: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 38px;
  position: sticky;
  top: 24px;
}

.category-block {
  margin-top: 38px;
}

.section-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0;
}

.section-head h2:before {
  content: "";
  display: inline-block;
  background: var(--red);
  width: 4px;
  height: 21px;
  margin-right: 11px;
  vertical-align: -3px;
  border-radius: 2px;
}

.more {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.more:hover {
  color: var(--red);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 22px;
}

.news-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 22px;
}

.news-card {
  cursor: pointer;
  min-width: 0;
}

.image-wrap {
  overflow: hidden;
  background: #e9eef5;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  border-radius: var(--radius);
}

.news-card:hover img {
  transform: scale(1.04);
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 10px 0 5px;
  transition: color 0.2s ease;
  letter-spacing: -0.2px;
}

.news-card:hover h3 {
  color: var(--blue);
}

.news-card .badge {
  font-size: 10.5px;
  letter-spacing: 0.7px;
  display: inline-block;
  margin-top: 12px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ================= Category Feature Section (home) ================= */
.cat-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: var(--gap-main);
  align-items: start;
}

.cat-feature-main {
  display: block;
  min-width: 0;
}

.cat-feature-main .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.35s ease;
}

.cat-feature-main:hover .image-wrap img {
  transform: scale(1.03);
}

.cat-feature-main .badge {
  font-size: 10.5px;
  letter-spacing: 0.7px;
  display: inline-block;
  margin-top: 14px;
}

.cat-feature-main h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 8px 0 6px;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.cat-feature-main:hover h3 {
  color: var(--blue);
}

.cat-feature-main .card-meta {
  font-size: 12.5px;
}

.cat-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}

.cat-mini-list li {
  border-bottom: 1px solid var(--line);
  padding: 13px 2px 15px;
}

.cat-mini-list li:last-child {
  border-bottom: 0;
}

.cat-mini-list a {
  display: block;
}

.cat-mini-title {
  display: block;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.2px;
  transition: color 0.15s ease;
}

.cat-mini-list a:hover .cat-mini-title {
  color: var(--blue);
}

.cat-mini-list small {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ================= Category Tags ================= */
.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cat {
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.cat:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--soft);
}

.cat span {
  font-size: 16px;
  margin-right: 8px;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.cat-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--paper);
}

.cat-chip span {
  font-size: 14px;
}

/* ================= Newsletter Widget ================= */
.newsletter {
  background: var(--navy);
  color: #fff;
  padding: 26px 24px;
  margin-top: 0;
  border-radius: var(--radius-md);
}

.newsletter h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #fff;
}

.newsletter p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.newsletter form {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #000;
}

.newsletter button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.newsletter button:hover {
  background: #000000;
}

/* ================= Footer Layout (selaras desktop / tablet / mobile) ================= */
.footer {
  background: #050d1a;
  color: #cbd5e1;
  border-top: 4px solid var(--blue);
}

.footer-in {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.2fr;
  align-items: start;
  gap: 32px;
  padding: 54px 24px 40px;
}

.footer .logo {
  color: #fff;
}

.footer h4 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Kolom accordion: selalu terbuka & terlihat di desktop/tablet.
   Atribut `open` di markup + aturan eksplisit ini mencegah konten
   hilang karena perilaku bawaan <details> yang tertutup. */
.fcol {
  min-width: 0;
}

.fcol summary {
  list-style: none;
  color: #fff;
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fcol summary::-webkit-details-marker {
  display: none;
}

.fcol summary::marker {
  content: "";
}

.fcol .fcol-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Paksa kolom footer selalu terlihat di tablet ke atas */
@media (min-width: 768px) {
  details.fcol:not([open]) > .fcol-body {
    display: flex;
  }

  .fcol summary {
    pointer-events: none;
  }
}

.follow-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
}

.follow-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0;
}

.follow-link small {
  font-size: 11.5px;
  color: #64748b;
}

.follow-tagline {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

.footer p, .footer a {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo img {
  width: 200px;
}

.footer-tagline {
  margin-top: 12px;
  color: #cbd5e1;
}

.footer-legal {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.footer-bottom {
  padding: 0 24px;
}

.copyright {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

/* ================= Article & Page Templates ================= */
.page-title {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.crumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumb a {
  color: var(--blue);
}

.crumb a:hover {
  text-decoration: underline;
}

.page-title h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  font-size: 36px;
  font-weight: 800;
}

.article-layout {
  max-width: 820px;
  margin: 0;
  width: 100%;
}

.article-layout h1 {
  margin-top: 6px;
}

.article-layout .hero {
  height: 420px;
  margin: 16px 0;
  border-radius: var(--radius-md);
}

.article-layout .hero-copy {
  background: transparent;
  position: absolute;
  inset: auto 0 0 0;
  max-width: 100%;
  width: 100%;
  padding: 48px 24px 18px;
  background: linear-gradient(to top, rgba(3, 10, 25, 0.66), rgba(3, 10, 25, 0) 78%);
  display: flex;
  align-items: flex-end;
}

.article-layout .hero-copy .meta {
  background: rgba(3, 10, 25, 0.72);
  padding: 4px 12px;
  border-radius: 4px;
  text-shadow: none;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.62;
  color: #334155;
  font-weight: 500;
  margin-bottom: 14px;
}

.byline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.byline b {
  color: var(--ink);
  font-size: 14.5px;
}

/* ================= Share Button Layout ================= */
.share {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.share .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  min-height: 36px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.share .share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.16);
  filter: brightness(1.07);
}

.share .share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #0f1419; }
.share-btn.tg { background: #229ed9; }
.share-btn.cp { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

/* ================= Long Form Article Body Typography ================= */
.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18.5px;
  line-height: 1.78;
  color: #1e293b;
  letter-spacing: -0.01ch;
  max-width: 68ch; /* Optimal readability width */
  margin: 0;
}

.article-body p {
  margin: 0 0 14px 0;
}

.article-body h2 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.3;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--ink);
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 10px 24px;
  margin: 16px 0;
  color: #334155;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  background: var(--soft);
  border-radius: 0 8px 8px 0;
}

.article-body figcaption {
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

/* ================= Search & Pagination ================= */
.result-search {
  display: flex;
  gap: 10px;
  margin: 20px 0 28px;
}

.result-search input {
  border: 1px solid var(--line);
  padding: 14px 18px;
  flex: 1;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.result-search button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 0 24px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.result-search button:hover {
  background: #0284c7;
}

.result {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.result img {
  width: 190px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.result h3 {
  margin: 6px 0;
  font-size: 19px;
  font-weight: 700;
}

.result h3:hover {
  color: var(--blue);
}

.result p {
  color: var(--muted);
  line-height: 1.45;
  margin: 7px 0;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pagination button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.pagination button:hover:not(.active) {
  border-color: var(--blue);
  background: var(--soft);
  color: var(--blue);
}

/* ================= Drawer Backdrop & Drawer ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 11, 22, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(84vw, 320px);
  background: var(--paper);
  padding: 24px;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: var(--shadow);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  transform: none;
  visibility: visible;
}

.mobile-drawer .icon-btn {
  align-self: flex-end;
  margin-bottom: 20px;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.mobile-drawer a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  transition: color 0.15s ease;
}

.mobile-drawer a:hover {
  color: var(--blue);
}

body.drawer-open {
  overflow: hidden;
}

/* ================= Comments Section ================= */
.comments {
  margin-top: 24px;
  border-top: 3px solid var(--blue);
  padding-top: 16px;
}

.comment {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.comment b {
  font-size: 15px;
  color: var(--ink);
}

.comment small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 8px;
}

.comment p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.comment-form input, .comment-form textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
  font: inherit;
  resize: vertical;
  width: 100%;
  border-radius: 4px;
  color: var(--ink);
}

.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.comment-form button {
  justify-self: start;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.comment-form button:hover:not(:disabled) {
  background: #0284c7;
}

.comment-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.comment-form small {
  color: var(--muted);
  font-size: 12px;
}


/* =========================================================================
   ================= RESPONSIVE DESIGN - DEEPLY OPTIMIZED ==================
   ========================================================================= */

/* ---- TABLET: 768px - 1023px ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .shell {
    padding: 0 20px;
  }

  .mainhead {
    height: 78px;
    gap: 24px;
  }

  /* Scrollable Category Navigation Strip with Gradient Fades */
  .nav {
    display: block !important;
    position: relative;
    overflow: hidden;
  }

  .navin {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 48px;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
  }

  .navin::-webkit-scrollbar {
    display: none;
  }

  .nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, var(--blue), transparent);
    pointer-events: none;
    z-index: 3;
  }

  .nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, var(--blue), transparent);
    pointer-events: none;
    z-index: 3;
  }

  .hero-grid {
    display: block;
  }

  .hero {
    height: 360px;
    margin-bottom: 24px;
  }

  .hero-grid > .popular {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border-top: 2px solid var(--blue);
    padding-top: 14px;
    margin-top: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .content-grid {
    display: block;
    margin-top: 24px;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
  }

  .news-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cat-mini-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    border-top: 0;
    border-left: 2px solid var(--navy);
  }

  .cat-mini-list li {
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    position: static;
  }

  .news-card h3 {
    font-size: 15.5px;
  }

  .page-title h1 {
    font-size: 32px;
  }

  .article-layout h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .article-layout .hero {
    height: 340px;
  }

  .article-body {
    font-size: 17.5px;
  }

  .footer-in {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 42px 20px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-bottom {
    padding: 0 20px;
  }
}

/* ---- MOBILE: <= 767px ---- */
@media (max-width: 767px) {
  .shell {
    padding: 0 16px;
  }

  /* Disable unneeded elements on mobile */
  .topbar, 
  .mainhead .search, 
  .head-actions .icon-btn:first-of-type,
  .hide-on-mobile {
    display: none !important;
  }

  /* Fixed Header Setup */
  .mainhead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    height: 60px;
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  }

  .logo img {
    width: 136px;
    max-height: 48px;
  }

  .hamburger {
    display: grid;
    place-items: center;
    width: 44px; /* Touch target size */
    height: 44px;
    font-size: 20px;
    border: 0;
    background: transparent;
  }

  /* Fixed Scrollable category list under main header */
  .nav {
    display: block !important;
    position: fixed;
    top: var(--kutipan-head-h, 60px);
    left: 0;
    right: 0;
    z-index: 68;
    background: var(--blue);
    height: 44px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navin {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 44px;
    align-items: center;
    gap: 2px;
    padding: 0 16px;
  }

  .navin::-webkit-scrollbar {
    display: none;
  }

  /* Fade gradient effects for the category list */
  .nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to left, var(--blue), transparent);
    pointer-events: none;
    z-index: 3;
  }

  .nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, var(--blue), transparent);
    pointer-events: none;
    z-index: 3;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
  }

  /* Correct dynamic body spacing */
  body {
    padding-top: var(--kutipan-body-pad, 104px) !important;
    max-width: 100%;
    overflow-x: clip;
  }

  html {
    max-width: 100%;
  }

  /* Touch-friendly inputs and buttons */
  .search input, 
  .newsletter input, 
  .result-search input, 
  .comment-form input, 
  .comment-form textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }

  .icon-btn, .pagination button {
    width: 44px;
    height: 44px;
  }

  /* News Ticker Mobile Layout */
  .ticker {
    border-bottom: 1px solid var(--line);
    background: var(--soft);
  }

  .headline {
    height: 32px;
    gap: 8px;
  }

  .breaking {
    font-size: 9.5px;
    padding: 4px 8px;
  }

  .ticker-text {
    font-size: 12px;
    animation-duration: 35s; /* Slower, comfortable speed on small screens */
  }

  /* Grid Conversions for Mobile */
  .hero-grid, .content-grid {
    display: block;
  }

  /* Hero Section */
  .hero {
    height: 320px;
    border-radius: 6px;
  }

  .hero h1 {
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 12px rgba(3, 10, 25, 0.7);
    margin: 8px 0;
  }

  .hero p {
    display: none; /* Hide description in mobile hero to maximize image visibility */
  }

  .hero-copy {
    padding: 20px;
  }

  .hero .meta {
    text-shadow: 0 1px 8px rgba(3, 10, 25, 0.8);
    font-size: 11px;
    gap: 8px;
  }

  /* Popular Side Column pushed below */
  .popular {
    margin-top: 20px;
  }

  .popular-item img {
    width: 68px;
    height: 52px;
  }

  .ad {
    min-height: 90px;
    margin: 12px 0;
    padding: 12px;
  }

  /* Mobile News Grid Layout: Side-by-side card pattern */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-grid-3 {
    grid-template-columns: 1fr;
  }

  .cat-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cat-feature-main h3 {
    font-size: 18px;
  }

  .cat-mini-list {
    grid-template-columns: 1fr;
    border-left: 0;
    border-top: 2px solid var(--navy);
  }

  .cat-mini-list li {
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar {
    position: static;
  }

  .article-layout .hero-copy {
    padding: 28px 16px 14px;
  }

  .content-grid section {
    margin-bottom: 28px;
  }

  .category-block {
    margin-top: 30px;
  }

  .content-grid section:last-child {
    margin-bottom: 0;
  }

  .section-head {
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }

  /* First section header in content-grid does not need extra top margin */
  .content-grid > section:first-child > .section-head:first-child,
  .content-grid > section:first-child > *:first-child.section-head {
    margin-top: 0;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .section-head h2:before {
    height: 18px;
    vertical-align: -2px;
  }

  .news-card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .news-card a {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
  }

  .news-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .news-card .image-wrap {
    height: 66px;
    width: 100px;
    border-radius: 6px;
    aspect-ratio: auto;
  }

  .news-card img {
    border-radius: 6px;
  }

  .news-card h3 {
    font-size: 14px;
    margin: 3px 0 2px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .news-card .badge {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .news-card .card-meta {
    font-size: 11px;
    margin-top: 2px;
  }

  .sidebar {
    margin-top: 20px;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .sidebar-widget {
    width: 100%;
    min-width: 0;
  }

  .category-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Comment form: comfortable full-width touch inputs */
  .comment-form {
    padding: 16px 14px;
    gap: 12px;
  }

  .comment-form input {
    min-height: 46px;
  }

  .comment-form textarea {
    min-height: 110px;
  }

  .comment-form button {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
  }

  /* Newsletter: compact vertical stack */
  .newsletter {
    padding: 22px 18px;
  }

  .newsletter h3 {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .newsletter p {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0 0 14px;
  }

  .newsletter form {
    flex-direction: column;
    gap: 8px;
    border-radius: 6px;
  }

  .newsletter input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 4px;
  }

  .newsletter button {
    width: 100%;
    min-height: 46px;
    border-radius: 4px;
    font-size: 13px;
  }

  /* Baca Juga: compact stacked box */
  .inline-suggest {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 14px;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .inline-suggest-label {
    margin-bottom: 2px;
  }

  /* Share buttons: wrapped rows with compact, uniform touch targets */
  .share {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    margin: 4px 0 12px;
  }

  .share::before {
    content: "Bagikan";
    flex: 0 0 100%;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    font-size: 12px;
    min-height: 40px;
    white-space: nowrap;
    border-radius: 999px;
  }

  .share .share-btn .share-label,
  .share .share-btn .bookmark-label {
    display: none;
  }

  .share > .share-btn.bookmark {
    padding: 8px 11px;
  }

  /* Article Detail View Optimization */
  .article-layout {
    max-width: 100%;
  }

  .article-layout .badge {
    font-size: 10.5px;
  }

  .crumb {
    font-size: 11.5px;
    margin-bottom: 10px;
  }

  .page-title h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  .article-layout h1 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
  }

  .article-layout .hero {
    height: auto;
    aspect-ratio: 16/9;
    width: 100%;
    margin: 14px 0 4px;
    border-radius: 10px;
  }

  .article-layout .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article-layout .hero-copy {
    padding: 28px 16px 10px;
  }

  .article-layout .hero-copy .meta {
    font-size: 10.5px;
    padding: 3px 10px;
  }

  .article-lead {
    font-size: 15.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 12px;
  }

  .byline {
    display: block;
    line-height: 1.7;
    padding: 8px 0;
    margin: 12px 0;
    font-size: 12px;
  }

  .byline span {
    display: block;
  }

  .byline b {
    font-size: 13.5px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-body p {
    margin: 0 0 20px;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 22px;
    margin-bottom: 10px;
  }

  .article-body blockquote {
    font-size: 16.5px;
    padding: 8px 16px;
    margin: 14px 0;
  }

  .article-body figcaption {
    font-size: 11px;
    margin-top: 5px;
  }

  .result {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .result img {
    width: 100px;
    height: 75px;
  }

  .result h3 {
    font-size: 15px;
    margin: 4px 0;
  }

  .result p {
    display: none; /* Hide excerpt on search results on mobile to stay compact */
  }

  .footer-in {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 16px 20px;
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 18px;
    margin-bottom: 6px;
  }

  .fcol summary {
    min-height: 48px;
    margin: 0;
    border-bottom: 1px solid #1e293b;
    cursor: pointer;
  }

  .fcol summary::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    color: #64748b;
  }

  .fcol[open] summary::after {
    content: "−";
  }

  .fcol .fcol-body {
    padding: 12px 0 16px;
  }

  /* Di ponsel, accordion boleh dilipat seperti semula */
  details.fcol:not([open]) > .fcol-body {
    display: none;
  }

  .footer-bottom {
    padding: 0 16px;
  }

  .copyright {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Responsive Ads on Mobile */
  .header-ad-shell {
    padding: 8px 0 12px;
  }

  .header-ad-shell .ad,
  .in-content-ad-wrap .ad {
    max-width: 100%;
  }

  .in-content-ad-wrap {
    margin: 20px 0;
    padding: 10px 8px;
  }

  .sticky-bottom-ad {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .sticky-ad-link img,
  .sticky-ad-code {
    max-height: 60px;
  }

  .sticky-ad-close {
    top: -12px;
    right: 0px;
    font-size: 10px;
    padding: 2px 8px;
  }

  .sticky-ad-label {
    top: -12px;
    left: 2px;
    font-size: 8.5px;
  }
}

/* ---- SMALL MOBILE: <= 430px ---- */
@media (max-width: 430px) {
  .logo img {
    width: 114px;
    max-height: 42px;
  }

  .mainhead {
    height: 56px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .nav {
    top: var(--kutipan-head-h, 56px);
  }

  .hero {
    height: 270px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .headline {
    height: 30px;
    gap: 6px;
  }

  .breaking {
    font-size: 9px;
    padding: 4px 6px;
  }

  .ticker-text {
    font-size: 11px;
  }

  .news-card a {
    grid-template-columns: 96px 1fr;
    gap: 10px;
  }

  .news-card .image-wrap {
    height: 64px;
    width: 96px;
  }

  .cat {
    font-size: 12px;
    padding: 10px;
  }

  .section-head h2, .side-title {
    font-size: 18px;
  }

  .article-layout h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .font-size-control .ctrl-label {
    display: none;
  }

  .font-size-control button {
    min-width: 38px;
    min-height: 42px;
    padding: 6px 8px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.75;
  }
}


/* =========================================================================
   ========================= SOPHISTICATED DARK MODE =======================
   ========================================================================= */
.dark {
  --paper: #0b0f19;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #1e293b;
  --soft: #111827;
  --navy: #030712;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dark .logo {
  color: #fff;
}

.dark .logo img {
  filter: brightness(1.05);
}

.dark .search, 
.dark .icon-btn, 
.dark .share button, 
.dark .pagination button {
  background: var(--soft);
  border-color: var(--line);
}

.dark .search input {
  color: #f8fafc;
}

.dark .hero-copy {
  color: #fff;
}

.dark .news-card img, 
.dark .popular-item img {
  opacity: 0.9;
}

.dark .topbar {
  background: #020617;
  border-bottom: 1px solid var(--line);
}

.dark .footer {
  background: #020617;
}

.dark .newsletter {
  background: #0f172a;
}

.dark .comment-form {
  background: var(--soft);
}

.dark .article-body {
  color: #cbd5e1;
}

.dark .article-lead {
  color: #94a3b8;
}

.dark .cat {
  background: var(--soft);
}

.dark .cat:hover {
  background: #1e293b;
}

.dark .comments {
  border-color: var(--blue);
}

.dark .cat-mini-list {
  border-color: var(--line);
}

.dark .cat-mini-list li {
  border-bottom-color: var(--line);
}

.dark .cat-mini-title {
  color: #f1f5f9;
}

.dark .cat-feature-main .badge {
  color: var(--blue);
}

/* ================= Inline Article Suggestion (Baca Juga) ================= */
.inline-suggest {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  margin: 24px 0;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 15.5px;
  background: var(--soft);
  border-left: 4px solid var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0 4px 4px 0;
}

.inline-suggest-label {
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.inline-suggest-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.inline-suggest-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.inline-suggest-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.dark .inline-suggest {
  background: #0f172a;
  border-top-color: #1e293b;
  border-bottom-color: #1e293b;
}

.dark .inline-suggest-link {
  color: #60a5fa;
}

.dark .inline-suggest-link:hover {
  color: #f87171;
}

/* ================= Information & Editorial Pages ================= */
.static-page-card {
  margin: 20px 0 28px;
}

.static-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.static-highlight-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.static-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 6px;
}

.static-highlight-box h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--ink);
}

.static-highlight-box p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.info-list {
  padding-left: 20px;
  margin: 14px 0 24px;
}

.info-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}

.principle-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.principle-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
}

.principle-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.principle-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Editorial Board Layout */
.editor-board-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.editorial-group-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.editorial-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.editorial-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.editorial-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editorial-card.highlight {
  border-left: 4px solid var(--blue);
  background: #f0f4ff;
}

.editorial-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.editorial-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.editorial-sub {
  font-size: 11.5px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 2px;
}

.editorial-notice-box {
  margin-top: 32px;
  background: #fff8e6;
  border: 1px solid #fde047;
  border-left: 4px solid #ca8a04;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice-icon {
  font-size: 20px;
  color: #ca8a04;
  font-weight: 800;
  line-height: 1;
}

.editorial-notice-box h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #854d0e;
}

.editorial-notice-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #713f12;
}

/* Contact Page Layout */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}

.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.contact-badge.red {
  background: #fee2e2;
  color: var(--red);
}

.contact-badge.blue {
  background: #e0e7ff;
  color: var(--blue);
}

.contact-info-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.contact-info-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.contact-details-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-details-list a:hover {
  text-decoration: underline;
}

.contact-office-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.office-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.office-icon {
  font-size: 24px;
}

.office-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.office-header p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.office-address {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.5;
}

.office-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.contact-form-section {
  margin-top: 24px;
}

.form-instruction {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.interactive-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.interactive-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.interactive-contact-form .req {
  color: var(--red);
  font-style: normal;
}

.interactive-contact-form input,
.interactive-contact-form select,
.interactive-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.interactive-contact-form input:focus,
.interactive-contact-form select:focus,
.interactive-contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #0d2ea3;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-success {
  color: #15803d;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
  padding: 6px 12px;
  background: #dcfce7;
  border-radius: 4px;
}

/* Privacy Page Extra */
.privacy-update-badge {
  display: flex;
  gap: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 6px;
  margin: 16px 0 24px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dpo-contact-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.guidelines-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.guidelines-body ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ================= Responsive Adjustments for Static Pages ================= */
@media (max-width: 767px) {
  .static-grid-2,
  .principles-grid,
  .editorial-grid,
  .editorial-grid-2,
  .editorial-grid-3,
  .contact-cards-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .interactive-contact-form {
    padding: 16px;
  }
}

/* ================= Dark Mode Overrides for Static Pages ================= */
.dark .static-highlight-box,
.dark .principle-card,
.dark .editorial-card,
.dark .contact-info-card,
.dark .contact-office-card,
.dark .interactive-contact-form,
.dark .privacy-update-badge,
.dark .dpo-contact-box {
  background: #0f172a;
  border-color: #1e293b;
}

.dark .editorial-card.highlight {
  background: #172554;
  border-left-color: #60a5fa;
}

.dark .editorial-group-title {
  color: #f1f5f9;
  border-bottom-color: #334155;
}

.dark .editorial-notice-box {
  background: #27210e;
  border-color: #713f12;
  border-left-color: #eab308;
}

.dark .editorial-notice-box h4 {
  color: #fef08a;
}

.dark .editorial-notice-box p {
  color: #fde047;
}

.dark .contact-badge.red {
  background: #450a0a;
  color: #f87171;
}

.dark .contact-badge.blue {
  background: #1e1b4b;
  color: #818cf8;
}

.dark .interactive-contact-form input,
.dark .interactive-contact-form select,
.dark .interactive-contact-form textarea {
  background: #0b0f19;
  border-color: #334155;
  color: #f8fafc;
}

.dark .interactive-contact-form input:focus,
.dark .interactive-contact-form select:focus,
.dark .interactive-contact-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.dark .status-success {
  background: #064e3b;
  color: #a7f3d0;
}

/* ================= Strategic Ad Enhancements ================= */
.in-content-ad-wrap {
  margin: 28px 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.in-content-ad-wrap::before {
  content: 'IKLAN / SPONSOR';
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.in-content-ad-wrap .ad {
  margin: 0 auto;
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
}

.widget-ad-large {
  margin-top: 24px;
}

.widget-ad-large .ad {
  min-height: 250px;
}

/* Floating Sticky Bottom / Mobile Anchor Ad */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUpSticky 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpSticky {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sticky-ad-container {
  position: relative;
  max-width: 970px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-ad-close {
  position: absolute;
  top: -14px;
  right: -6px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.1s ease;
  z-index: 10;
}

.sticky-ad-close:hover {
  background: #dc2626;
  border-color: #b91c1c;
  transform: scale(1.04);
}

.sticky-ad-label {
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.sticky-ad-link {
  display: block;
  max-height: 90px;
  text-align: center;
}

.sticky-ad-link img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.sticky-ad-code {
  max-height: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark Mode for Sticky Ad and In-Content */
.dark .sticky-bottom-ad {
  background: rgba(15, 23, 42, 0.95);
  border-top-color: #334155;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.dark .in-content-ad-wrap {
  background: #0f172a;
  border-color: #1e293b;
}

.dark .sticky-ad-label {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

@media (max-width: 767px) {
  .sticky-ad-link, .sticky-ad-link img, .sticky-ad-code {
    max-height: 60px;
  }
}

/* ================= Reading Progress Bar ================= */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #111111 100%);
  width: 0%;
  z-index: 999999;
  transition: width 0.1s ease-out;
  display: none;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

/* ================= Dark Mode Overrides & Polish ================= */
body.dark {
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #334155;
  --soft: #1e293b;
  --paper: #0f172a;
  --navy: #09132b;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background-color: #0b1120;
  color: #f1f5f9;
}

body.dark header {
  background-color: #0f172a;
  border-bottom-color: #1e293b;
}

body.dark .search {
  border-color: #334155;
  background-color: #1e293b;
  color: #f1f5f9;
}

body.dark .search input {
  color: #f1f5f9;
}

body.dark .search input::placeholder {
  color: #64748b;
}

body.dark .news-card, body.dark .popular-item, body.dark .widget-categories, body.dark .widget-newsletter {
  background-color: #1e293b;
  border-color: #334155;
}

body.dark .mobile-drawer {
  background-color: #0f172a;
  color: #f1f5f9;
  border-right-color: #1e293b;
}

body.dark .footer {
  background-color: #09132b;
  border-top-color: #1e293b;
}

body.dark .share-btn {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark .font-size-control button {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark .font-size-control button.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

/* ================= Article Font Size & Toolbar ================= */
.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.font-size-control .ctrl-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.font-size-control button {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}

.font-size-control button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.font-size-control button.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.share-btn.bookmark {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}

.share-btn.bookmark.saved {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

body.dark .share-btn.bookmark.saved {
  background: #78350f;
  border-color: #b45309;
  color: #fef3c7;
}

.article-body[data-font-size="sm"] p { font-size: 14.5px; line-height: 1.6; }
.article-body[data-font-size="md"] p { font-size: 16.5px; line-height: 1.7; }
.article-body[data-font-size="lg"] p { font-size: 19px; line-height: 1.75; }
.article-body[data-font-size="xl"] p { font-size: 22px; line-height: 1.8; }

/* ================= Bookmarks Empty State ================= */
.bookmarks-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 20px 0;
}

.bookmarks-empty .empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.bookmarks-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bookmarks-empty p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ================= Cookie Consent ================= */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  max-width: 560px;
  margin: 0 auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.4);
  font-size: 13.5px;
  line-height: 1.55;
  display: grid;
  gap: 14px;
}
.cookie-consent b { color: #ffffff; }
.cookie-consent a { color: #93c5fd; }
.cookie-consent .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-consent .cookie-btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent .cookie-btn.accept {
  background: var(--blue);
  color: #fff;
}
.cookie-consent .cookie-btn.dismiss {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.dark .cookie-consent {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.14);
}
@media (max-width: 480px) {
  .cookie-consent .cookie-btn { flex: 1; text-align: center; }
}





/* Boot loading skeleton */
.boot{max-width:1200px;margin:0 auto;padding:90px 20px 40px;display:grid;gap:24px}.boot-brand{height:44px;width:200px;border-radius:6px;background:linear-gradient(90deg,#eef1f6 25%,#e3e8f0 50%,#eef1f6 75%);background-size:200% 100%;animation:bootShimmer 1.2s infinite}.boot-line{height:16px;border-radius:6px;background:linear-gradient(90deg,#f1f3f7 25%,#e6eaf2 50%,#f1f3f7 75%);background-size:200% 100%;animation:bootShimmer 1.2s infinite}.boot-line.short{width:60%}@keyframes bootShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.boot *{animation:none}}
