@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --red: #d71920;
  --red-dark: #a90f16;
  --ink: #17191d;
  --muted: #6f747d;
  --line: #e9eaed;
  --soft: #f6f6f7;
  --white: #fff;
  --container: 1180px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--red);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  z-index: 9999;
}

.skip-link:focus {
  top: 12px;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  font: 800 64px/1 Manrope, sans-serif;
  color: var(--ink);
  letter-spacing: -7px;
}

.loader-mark span {
  color: var(--red);
}

.loader-line {
  width: 150px;
  height: 3px;
  background: #f0d9da;
  margin-top: 22px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--red);
  animation: loaderMove 1.1s ease-in-out infinite alternate;
}

.site-loader p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 12px;
}

@keyframes loaderMove {
  from { transform: translateX(0); }
  to { transform: translateX(190%); }
}

.top-strip {
  background: #f7f7f8;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #646872;
}

.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top-tagline {
  font-weight: 600;
}

.site-header {
  background: #fff;
  position: relative;
  z-index: 30;
}

.masthead {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo {
  font: 800 34px/.95 Manrope, Arial, sans-serif;
  letter-spacing: -2px;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.site-logo span {
  color: var(--red);
}

.site-logo i {
  font-style: normal;
  color: var(--red);
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.custom-logo {
  max-height: 66px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle {
  height: 42px;
  width: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.search-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  transform: scale(1.05);
}

.search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: block;
  position: relative;
}

.search-icon:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  right: -5px;
  bottom: -3px;
  transform: rotate(48deg);
}

.header-search {
  display: none;
  gap: 8px;
}

.header-search.is-open {
  display: flex;
}

.header-search input {
  width: 200px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 7px;
  outline-color: var(--red);
}

.header-search button, .search-form button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.header-search button:hover, .search-form button:hover {
  transform: scale(1.05);
  background: var(--red-dark);
}

.nav-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  gap: 20px;
}

.primary-navigation {
  min-width: 0;
}

.primary-navigation .menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation .menu > li > a {
  display: block;
  padding: 16px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.primary-navigation .menu > li > a:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.primary-navigation .menu > li > a:hover:after,
.primary-navigation .current-menu-item > a:after {
  transform: scaleX(1);
}

.nav-latest {
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.3s ease;
}
.nav-latest:hover {
  transform: translateX(3px);
}

.nav-latest span {
  font-size: 16px;
  margin-left: 4px;
}

.mobile-menu-toggle {
  display: none;
}

.ticker-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.ticker {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.ticker-label {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 3px;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* ========================================================
   ANIMASI BERJALAN BREAKING NEWS (TICKER)
======================================================== */
.ticker-items {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  font-size: 13px;
  font-weight: 600;
}

.ticker-dot {
  color: var(--red);
}

.ticker-animated {
  animation: tickerScroll 20s linear infinite;
}

.ticker-track:hover .ticker-animated,
.ticker-track:active .ticker-animated {
  animation-play-state: paused;
}

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

/* ========================================================
   ANIMASI HALUS SETIAP HALAMAN
======================================================== */
@keyframes pageFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main#content {
  animation: pageFadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.homepage {
  padding-top: 32px;
  padding-bottom: 60px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
  gap: 34px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  min-width: 0;
}

.hero-image {
  display: block;
  height: clamp(260px, 36vw, 440px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.image-link:hover img {
  transform: scale(1.05);
}

.image-placeholder {
  height: 100%;
  min-height: 140px;
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fce7e7, #f4f4f4);
  color: var(--red);
  font: 800 20px Manrope, sans-serif;
  letter-spacing: .08em;
}

.hero-copy {
  padding: 20px 2px 0;
}

.category-label {
  display: inline-block;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-copy h1 {
  font: 800 clamp(27px, 3.3vw, 42px)/1.17 Manrope, sans-serif;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
  max-width: 800px;
}

.hero-copy > p {
  font-size: 15px;
  color: #626772;
  max-width: 700px;
  margin: 0 0 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.post-meta > * + * {
  position: relative;
}

.post-meta > * + *:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #b9bbc0;
  border-radius: 50%;
  margin: 0 12px 3px 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}

.read-more span {
  font-size: 18px;
  transition: transform .2s;
}

.read-more:hover span {
  transform: translate(3px, -3px);
}

.hero-side {
  padding-top: 2px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h1, .section-heading h2 {
  font: 800 27px/1.2 Manrope, sans-serif;
  letter-spacing: -.7px;
  margin: 3px 0 0;
}

.eyebrow {
  display: block;
  color: var(--red);
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .13em;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading.compact h2 {
  font-size: 22px;
}

.side-story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.side-story:hover {
  transform: translateX(4px);
}

.side-story:first-of-type {
  padding-top: 4px;
}

.side-thumb {
  display: block;
  height: 91px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.side-story h3 {
  font: 700 14px/1.4 Manrope, sans-serif;
  margin: 0 0 7px;
}

.side-story .category-label {
  font-size: 9px;
  margin-bottom: 5px;
}

.meta-date {
  font-size: 10px;
  color: var(--muted);
}

.content-section {
  padding-top: 42px;
}

.section-link {
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.3s ease;
}
.section-link:hover {
  transform: translateX(3px);
}

.section-link span {
  font-size: 17px;
  margin-left: 5px;
}

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

/* KARTU BERITA & EFEK HOVER */
.news-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  padding-bottom: 12px;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-image {
  height: 195px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}

.news-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.card-body {
  padding: 14px 10px 0;
}

.card-body .category-label {
  margin-bottom: 7px;
}

.card-body h2 {
  font: 750 18px/1.35 Manrope, sans-serif;
  letter-spacing: -.35px;
  margin: 0 0 8px;
}

.card-body > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

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

.category-section {
  padding-bottom: 6px;
}

.newsletter-band {
  margin-top: 52px;
  background: var(--red);
  color: #fff;
  border-radius: 14px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-band .eyebrow {
  color: #ffd6d7;
}

.newsletter-band h2 {
  font: 800 25px/1.25 Manrope, sans-serif;
  margin: 6px 0;
}

.newsletter-band p {
  font-size: 13px;
  margin: 0;
  color: #ffe7e7;
}

/* TOMBOL */
.button-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  background: #fff;
  color: var(--red);
  padding: 12px 17px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.3s ease;
}

.button-light:hover {
  background: #ffe9e9;
  color: var(--red-dark);
  transform: scale(1.05);
}

.button-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 17px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  margin: 10px;
  transition: all 0.3s ease;
}

.button-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
}

.page-content {
  padding-top: 36px;
  padding-bottom: 65px;
  min-height: 50vh;
}

.page-content > .section-heading {
  margin-top: 12px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 22px;
}

.breadcrumbs span:last-child {
  color: var(--ink);
}

.news-pagination {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-pagination .page-numbers {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.news-pagination .current, .news-pagination a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  padding-top: 35px;
  padding-bottom: 70px;
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font: 800 clamp(30px, 4.3vw, 48px)/1.16 Manrope, sans-serif;
  letter-spacing: -1.5px;
  margin: 4px 0 14px;
}

.article-deck {
  font-size: 18px;
  color: #686d76;
  line-height: 1.55;
  margin: 0 0 20px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.author-avatar img {
  border-radius: 50%;
}

.article-byline strong {
  display: block;
  font-size: 12px;
}

.article-byline small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.reading-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.article-featured-image {
  margin: 0 0 25px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.article-featured-image figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: #30333a;
  overflow-wrap: anywhere;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2 {
  font: 800 27px/1.3 Manrope, sans-serif;
  letter-spacing: -.6px;
  margin: 1.6em 0 .6em;
  color: var(--ink);
}

.article-content h3 {
  font: 750 21px/1.35 Manrope, sans-serif;
  margin: 1.5em 0 .5em;
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  margin: 25px 0;
  padding: 12px 22px;
  border-left: 4px solid var(--red);
  background: #faf4f4;
  font-size: 19px;
  font-weight: 600;
}

.article-content img {
  border-radius: 8px;
}

.article-content figure {
  max-width: 100%;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-content td, .article-content th {
  border: 1px solid var(--line);
  padding: 9px;
  text-align: left;
}

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}

.share-row strong {
  font-size: 12px;
  margin-right: 6px;
}

.share-row a, .share-row button {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  transition: all 0.2s;
}

.share-row a:hover, .share-row button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  font-size: 13px;
  font-weight: 700;
}

.nav-subtitle {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

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

.related-section .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.related-section .card-image {
  height: 130px;
}

.related-section .card-body h2 {
  font-size: 14px;
}

.related-section .card-body > p {
  display: none;
}

.sidebar {
  min-width: 0;
}

.widget {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
  background: #fff;
}

.widget-title {
  font: 800 17px/1.3 Manrope, sans-serif;
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--red);
}

.sidebar-latest {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-latest li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-latest li:last-child {
  border-bottom: 0;
}

.sidebar-latest a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s;
}

.sidebar-latest small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

.static-page {
  max-width: 850px;
  margin: auto;
}

.static-page .section-heading {
  margin-bottom: 30px;
}

.archive-description {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.empty-state {
  text-align: center;
  padding: 55px 20px;
  background: var(--soft);
  border-radius: 12px;
}

.empty-state h1, .empty-state h2 {
  font: 800 26px Manrope, sans-serif;
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px auto;
  max-width: 500px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.not-found {
  text-align: center;
  padding: 55px 10px;
}

.not-found-code {
  font: 800 clamp(80px, 15vw, 150px)/1 Manrope, sans-serif;
  color: #f8dada;
  letter-spacing: -8px;
}

.not-found h1 {
  font: 800 30px Manrope, sans-serif;
  margin: 15px 0 8px;
}

.not-found p {
  color: var(--muted);
}

.comments-area {
  margin-top: 40px;
}

.comments-title {
  font: 800 23px Manrope, sans-serif;
}

.comment-list {
  padding-left: 20px;
}

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

.comment-author {
  font-weight: 700;
}

.comment-meta {
  font-size: 11px;
  color: var(--muted);
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 5px;
}

.comment-form input:not([type=checkbox]), .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.comment-form input[type=submit] {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 700;
  transition: background 0.3s;
}

.comment-form input[type=submit]:hover {
  background: var(--red-dark);
}

.site-footer {
  background: #17191d;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 55px;
  padding-top: 48px;
  padding-bottom: 42px;
}

.footer-logo {
  color: #fff;
  font-size: 30px;
}

.footer-about p {
  max-width: 330px;
  font-size: 13px;
  color: #b7bac1;
  line-height: 1.8;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  font-size: 11px;
  border: 1px solid #42454b;
  padding: 5px 9px;
  border-radius: 5px;
  color: #e8e8e8;
  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.footer-column h2 {
  font: 800 14px Manrope, sans-serif;
  margin: 4px 0 17px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 9px 0;
}

.footer-menu a {
  font-size: 12px;
  color: #c4c6cb;
  transition: color 0.3s;
}

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

.footer-email {
  font-size: 12px;
  color: #c4c6cb;
}

.footer-bottom {
  border-top: 1px solid #34363b;
}

.footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #a7aab1;
  font-size: 10px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 18px #0002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ANIMASI SCROLL REVEAL (HALUS) */
.will-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================
   RESPONSIVE LAYOUT (MEDIA QUERIES)
====================================== */

@media (max-width: 1050px) {
  .primary-navigation .menu > li > a {
    padding-inline: 8px;
    font-size: 11px;
  }
  .nav-latest {
    display: none;
  }
  .hero-section {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
    gap: 24px;
  }
  .card-image {
    height: 170px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, var(--container));
  }
  .masthead {
    min-height: 82px;
  }
  .brand {
    gap: 10px;
  }
  .site-logo {
    font-size: 26px;
  }
  .brand-tagline {
    font-size: 10px;
    padding-left: 10px;
  }
  .nav-inner {
    min-height: 50px;
    justify-content: flex-start;
  }

  /* Animasi Tombol Menu Mobile */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    flex: 0 0 auto;
    z-index: 1000;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menu Mobile Diubah Jadi Sidebar (Laci) */
  .primary-navigation {
    display: block !important;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding-top: 80px;
  }
  .primary-navigation.is-open {
    left: 0;
  }
  .primary-navigation .menu {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
  }
  .primary-navigation .menu > li > a {
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid #f1f1f1;
    display: block;
  }
  .primary-navigation .menu > li > a:after {
    display: none;
  }

  .nav-latest {
    display: block;
    margin-left: auto;
  }
  .ticker {
    height: 42px;
  }
  .ticker-label {
    font-size: 9px;
  }
  
  /* Layout Beranda Mobile */
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-image {
    height: clamp(230px, 58vw, 390px);
  }
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  .hero-side .section-heading {
    grid-column: 1/-1;
  }
  .side-story {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
  }
  .side-thumb {
    height: 80px;
  }
  .side-story h3 {
    font-size: 12px;
  }
  .news-grid, .category-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .card-image {
    height: clamp(130px, 26vw, 210px);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .footer-main {
    gap: 30px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .related-section .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }
  .top-strip-inner {
    min-height: 30px;
    font-size: 10px;
  }
  .top-tagline {
    display: none;
  }
  .masthead {
    min-height: 72px;
  }
  .site-logo {
    font-size: 27px;
  }
  .brand-tagline {
    display: none;
  }
  .header-actions {
    gap: 0;
  }
  .search-toggle {
    height: 38px;
    width: 38px;
  }
  .header-search {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 20px #00000012;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .header-search input {
    width: 100%;
    min-width: 0;
  }
  .ticker {
    gap: 8px;
  }
  .ticker-label {
    padding: 5px 7px;
    font-size: 8px;
  }
  .ticker-items {
    font-size: 11px;
    gap: 12px;
  }
  .homepage {
    padding-top: 22px;
  }
  .hero-section {
    gap: 22px;
    padding-bottom: 30px;
  }
  .hero-image {
    height: 235px;
  }
  .hero-copy {
    padding-top: 15px;
  }
  .hero-copy h1 {
    font-size: 28px;
    letter-spacing: -.8px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .hero-side {
    display: block;
  }
  .side-story {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .side-thumb {
    height: 78px;
  }
  .section-heading h1, .section-heading h2 {
    font-size: 23px;
  }
  .content-section {
    padding-top: 32px;
  }
  
  /* Kartu Grid 1 Kolom Mobile */
  .news-grid, .category-news-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .card-image {
    height: 220px;
  }
  .card-body h2 {
    font-size: 18px;
  }
  .card-body > p {
    font-size: 13px;
  }
  
  .newsletter-band {
    margin-top: 35px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .newsletter-band h2 {
    font-size: 22px;
  }
  .button-light {
    margin-top: 10px;
  }
  
  .page-content {
    padding-top: 25px;
    padding-bottom: 45px;
  }
  .article-layout {
    padding-top: 24px;
    padding-bottom: 45px;
  }
  .article-header h1 {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -.9px;
  }
  .article-deck {
    font-size: 16px;
  }
  .article-byline {
    gap: 8px;
  }
  .reading-time {
    font-size: 10px;
  }
  .article-content {
    font-size: 15px;
    line-height: 1.8;
  }
  .article-content h2 {
    font-size: 24px;
  }
  .share-row {
    gap: 6px;
  }
  .share-row strong {
    width: 100%;
  }
  .related-section .news-grid {
    grid-template-columns: 1fr;
  }
  .related-section .card-image {
    height: 180px;
  }
  .related-section .card-body h2 {
    font-size: 16px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px 18px;
    padding-top: 35px;
    padding-bottom: 30px;
  }
  .footer-about {
    grid-column: 1/-1;
  }
  .footer-about p {
    max-width: 100%;
  }
  .footer-bottom-inner {
    padding: 13px 0;
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }
  .not-found h1 {
    font-size: 24px;
  }
  .not-found-code {
    letter-spacing: -4px;
  }
}

@media print {
  .site-header, .top-strip, .ticker-wrap, .site-footer, .sidebar, .share-row, .post-navigation, .comments-area, .back-to-top, .site-loader {
    display: none !important;
  }
  .article-layout {
    display: block;
    width: 100%;
    padding: 0;
  }
  .article-content {
    font-size: 12pt;
  }
  .article-content a {
    text-decoration: none;
    color: #000;
  }
}

/* =======================================================
   STYLING POPUP IKLAN MELAYANG (FIX)
======================================================= */
.ad-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(23, 25, 29, 0.75); backdrop-filter: blur(5px); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.ad-popup-overlay.show { opacity: 1; visibility: visible; }
.ad-popup-box { background: #fff; width: 90%; max-width: 420px; border-radius: 20px; padding: 35px 25px; text-align: center; position: relative; transform: translateY(30px); transition: all 0.3s ease; box-shadow: 0 25px 50px rgba(0,0,0,0.3); border: 3px solid var(--red); margin: auto; }
.ad-popup-overlay.show .ad-popup-box { transform: translateY(0); }
.ad-popup-close { position: absolute; top: -15px; right: -15px; background: var(--red); color: #fff; border: 2px solid #fff; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(215, 25, 32, 0.4); padding: 0; line-height: 1; }
.ad-popup-close:hover { transform: scale(1.1) rotate(90deg); background: var(--red-dark); }
.ad-popup-content h3 { color: var(--ink); font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; }
.ad-popup-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
.ad-popup-btn { display: inline-block; background: #25D366; color: #fff !important; padding: 12px 25px; border-radius: 50px; font-size: 0.95rem; font-weight: 700; text-decoration: none; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); transition: all 0.3s ease; }
.ad-popup-btn:hover { background: #1ebd5a; transform: translateY(-4px); }