/* ================================================
   WARTA BANJAR - Custom Stylesheet
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary-navy: #1a2750;
  --primary-blue: #2c3e8c;
  --accent-red: #e53935;
  --accent-maroon: #8e1c1c;
  --accent-green: #2e7d32;
  --accent-teal: #00838f;
  --accent-lightblue: #1976d2;
  --accent-darkblue: #1a237e;
  --text-dark: #222222;
  --text-muted: #6c757d;
  --bg-light: #f5f6fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --footer-bg: #1a2750;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: all 0.25s ease;
}

/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* ---------- Global Container Width Cap ---------- */
.container {
  max-width: 1200px !important;
}

/* =====================
   Dropdown Submenu (Level 3)
   ===================== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
  margin-left: 0.1rem;
  border-radius: 0.5rem;
  min-width: 200px;
  display: none;
  position: absolute;
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus-within>.dropdown-menu {
  display: block;
}

/* Ensure submenu doesn't overflow right edge */
@media (min-width: 992px) {
  .dropdown-submenu>.dropdown-menu {
    right: auto;
    left: 100%;
    margin-left: 0.1rem;
  }

  .dropdown-submenu.dropdown-menu-end>.dropdown-menu {
    left: auto;
    right: 100%;
    margin-right: 0.1rem;
  }
}

/* =====================
   Mobile Menu 3 Level
   ===================== */
@media (max-width: 991.98px) {
  .mobile-nav-list.new-theme .has-children>a {
    position: relative;
    padding-right: 2em;
  }

  .mobile-nav-list.new-theme .has-children>a:after {
    content: "\F282";
    /* Bootstrap Icons chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
  }

  .mobile-nav-list.new-theme ul {
    display: none;
    padding-left: 1.2em;
    margin: 0;
    list-style: none;
    background: none;
    border: none;
  }

  .mobile-nav-list.new-theme li.open>ul {
    display: block;
  }

  .mobile-nav-list.new-theme li ul li a {
    font-size: 0.97em;
    padding-left: 1.2em;
  }
}

/* ================================================
   TOP BAR
   ================================================ */
.topbar {
  background: #ffffff;
  box-shadow: 0px 4px 11.8px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  font-size: 0.8rem;
  position: relative;
  z-index: 10;
}

.topbar-date {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

.topbar-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #8e9cc2;
  border-radius: 5px;
  overflow: hidden;
  height: 30px;
  width: 280px;
}

.topbar-search .form-control {
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 0.82rem;
  color: #8e9cc2;
  box-shadow: none;
  border-radius: 0;
  height: 100%;
}

.topbar-search .form-control:focus {
  outline: none;
  box-shadow: none;
}

.topbar-search .form-control::placeholder {
  color: #8e9cc2;
  /* Light blue placeholder */
  font-weight: 500;
}

.btn-search {
  background: transparent;
  border: none;
  color: #8e9cc2;
  padding: 0 10px;
  font-size: 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-search:hover {
  background: rgba(142, 156, 194, 0.1);
  color: var(--primary-navy);
}

.topbar-social {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.8rem;
  transition: var(--transition);
}

.social-icon:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: white;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.youtube {
  background: #ff0000;
}

.social-icon.instagram {
  background: linear-gradient(45deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
}

.social-icon.twitter {
  background: #000;
}

/* ================================================
   HEADER / LOGO
   ================================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

/* Topbar W icon */
.topbar-w-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* Desktop Logo */
.logo-img-desktop {
  width: 600px;
  height: 90px;
  object-fit: contain;
}

/* Mobile Logo */
.logo-img-mobile {
  max-height: 32px;
  width: auto;
}

/* ================================================
   MAIN NAVIGATION
   ================================================ */
.main-nav {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0.5px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav,
.main-nav .container,
.nav-list {
  overflow: visible !important;
}

.dropdown-menu {
  z-index: 2000 !important;
}

/* Dropdown item style agar konsisten dengan nav-item-link */
.dropdown-menu {
  min-width: 180px;
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
}

.dropdown-item {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 10px 24px 10px 24px;
  background: transparent;
  transition: var(--transition);
}

.dropdown-item::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 7px;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.07);
}

.dropdown-item:hover::after,
.dropdown-item:focus::after {
  background: #f39c12;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #e85070;
  background: rgba(232, 112, 96, 0.07);
}

.dropdown-item.active::after,
.dropdown-item:active::after {
  background: linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%);
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item-link {
  display: block;
  padding: 12px 18px;
  color: #595959;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
}

.nav-item-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  /* Raises the underline slightly */
  height: 2px;
  transition: var(--transition);
}

.nav-item-link:hover {
  color: #f39c12;
  /* Orange color on hover */
}

.nav-item-link:hover::after {
  background: #f39c12;
}

.nav-item-link.active {
  color: #000000;
  font-weight: 700;
}

.nav-item-link.active::after {
  background: #000000;
}

.dropdown-toggle {
  margin-left: 0px !important;
}

.dropdown-toggle:after {
  margin-left: 0px !important;
}

.nav-item-link.dropdown-toggle,
.dropdown-item.dropdown-toggle {
  margin-left: 0px !important;
  border-right: none !important;
  border-left: none !important;
  /* Untuk level 2 dan 3, biarkan icon/chevron tetap tampil */
}

.nav-item-link.dropdown-toggle:after,
.dropdown-item.dropdown-toggle:after {
  /* margin-left: 0.5em; */
  border: none !important;
  color: inherit !important;
  /* Untuk level 2 dan 3, biarkan icon/chevron tetap tampil */
}

.nav-item-link.active .nav-dropdown-icon,
.nav-item-link:active .nav-dropdown-icon {
  -webkit-text-fill-color: initial !important;
  background: none !important;
  color: #888 !important;
  filter: none !important;
}

/* Icon chevron untuk parent menu yang punya child (dropdown) */
.nav-dropdown-icon {
  font-size: 1em;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.2s;
  pointer-events: none;
  color: #888;
  position: relative;
  top: -1px;
}

.nav-dropdown-icon:active {
  color: #f39c12;
}

@media (min-width: 992px) {
  .main-nav .nav-item.dropdown {
    position: relative;
  }

  .main-nav .nav-item.dropdown>.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .main-nav .nav-item.dropdown:hover>.dropdown-menu,
  .main-nav .nav-item.dropdown:focus-within>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav .nav-item.dropdown:hover>.nav-item-link .nav-dropdown-icon,
  .main-nav .nav-item.dropdown:focus-within>.nav-item-link .nav-dropdown-icon {
    transform: rotate(180deg);
  }
}

/* ================================================
   SUB NAVIGATION (Region Tags)
   ================================================ */
.sub-nav {
  background: linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%);
  padding: 8px 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.sub-nav .container {
  position: relative;
}

.sub-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.sub-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scroll-snap-type: x proximity;
}

.sub-nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Scroll Arrow Buttons - Outside the gradient bar */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-arrow.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

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

.scroll-arrow-left {
  left: -60px;
}

.scroll-arrow-right {
  right: -60px;
}

.scroll-arrow i {
  color: #5068c0;
  font-size: 18px;
  font-weight: bold;
}

/* Fade indicators */
.sub-nav-scroll::before,
.sub-nav-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sub-nav-scroll.can-scroll-left::before {
  opacity: 1;
  left: 0;
  background: linear-gradient(to right,
      rgba(242, 196, 200, 0.9),
      transparent);
}

.sub-nav-scroll.can-scroll-right::after {
  opacity: 1;
  right: 0;
  background: linear-gradient(to left,
      rgba(40, 85, 200, 0.9),
      transparent);
}

/* Region item (wrapper for dropdown) */
.region-item {
  position: relative;
  display: inline-block;
}

.region-tag {
  display: inline-block;
  padding: 6px 10px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  scroll-snap-align: start;
  user-select: none;
}

.region-tag:hover {
  opacity: 0.85;
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.region-tag.has-children {
  display: flex;
  align-items: center;
  gap: 4px;
}

.region-tag.has-children i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* Region Dropdown */
.region-dropdown {
  display: block;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Hide by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  position: fixed;
  z-index: 1000;
}

.region-dropdown li {
  margin: 0;
}

.region-dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.region-dropdown li a:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-blue);
  color: var(--primary-blue);
  padding-left: 20px;
}

/* Desktop: Show dropdown on hover */
@media (min-width: 768px) {
  .region-item.dropdown {
    position: relative;
  }

  /* Invisible bridge to prevent dropdown closing when mouse moves down */
  .region-item.dropdown::after {
    content: '';
    position: fixed;
    top: var(--bridge-top, 0);
    left: var(--bridge-left, 0);
    width: var(--bridge-width, 100px);
    height: 8px;
    /* Bridge height - covers gap between trigger and dropdown */
    pointer-events: auto;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    /* Debug: uncomment to visualize bridge */
    /* background: rgba(255, 0, 0, 0.2); */
  }

  .region-item.dropdown:hover::after {
    opacity: 1;
    visibility: visible;
  }

  .region-item.dropdown:hover>.region-dropdown,
  .region-item.dropdown:focus-within>.region-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .region-item.dropdown:hover .region-tag.has-children i,
  .region-item.dropdown:focus-within .region-tag.has-children i {
    transform: rotate(180deg);
  }
}

/* Mobile: Show dropdown on active class (click toggle) */
@media (max-width: 767px) {
  .region-dropdown {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 90%;
    max-width: 320px;
    max-height: 60vh;
  }

  .region-item.dropdown.active .region-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .region-item.dropdown.active .region-tag.has-children i {
    transform: rotate(180deg);
  }
}

/* ================================================
   SUB NAVIGATION - RESPONSIVE
   ================================================ */
/* Hide scroll arrows on mobile, rely on touch scroll */
@media (max-width: 767px) {
  .scroll-arrow {
    display: none !important;
  }

  .region-tag {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Adjust arrow position on smaller desktop screens */
@media (min-width: 768px) and (max-width: 1279px) {
  .scroll-arrow-left {
    left: 8px;
  }

  .scroll-arrow-right {
    right: 8px;
  }
}

/* Full width layout for large screens */
@media (min-width: 1280px) {
  .sub-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ================================================
   MOBILE SEARCH & MENU
   ================================================ */
.animated-hamburger {
  width: 28px;
  height: 22px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

.animated-hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-dark);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.animated-hamburger span:nth-child(1) {
  top: 0px;
}

.animated-hamburger span:nth-child(2) {
  top: 9px;
}

.animated-hamburger span:nth-child(3) {
  top: 18px;
}

.animated-hamburger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.animated-hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.animated-hamburger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.mobile-search-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  display: none;
}

.mobile-search-bar.show {
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  height: 100vh;
  background: #1c4599;
  /* Primary blue to match new design */
  z-index: 2000;
  box-shadow: var(--shadow-md);
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.show {
  left: 0;
}

.mobile-menu-header {
  background: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-logo {
  max-height: 22px;
  width: auto;
}

.mobile-menu-body {
  padding: 20px;
  flex: 1;
}

.mobile-menu-search {
  display: flex;
  background: white;
  border-radius: 6px;
  padding: 2px 4px;
  margin-bottom: 24px;
}

.mobile-menu-search input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.95rem;
  color: #1c4599;
  box-shadow: none !important;
  font-weight: 500;
}

.mobile-menu-search input::placeholder {
  color: #1c4599;
  opacity: 0.8;
}

.mobile-menu-search .btn-search-mobile {
  background: transparent;
  border: none;
  color: #1c4599;
  font-size: 1.1rem;
  padding: 0 10px;
}

.mobile-nav-list.new-theme {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list.new-theme li a {
  display: flex;
  align-items: center;
  padding: 12px 2px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.mobile-nav-list.new-theme li:last-child a {
  /* keep same divider as other items so bottom border is visible */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-list.new-theme li a:hover,
.mobile-nav-list.new-theme li a.active {
  background: transparent;
  opacity: 0.8;
  color: #ffffff;
}

/* Menu backdrop */
.mobile-menu-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show::before {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
  padding: 20px 0;
}

/* Content Grid: mobile = flex column with order, desktop = CSS Grid */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-grid>.order-1 {
  order: 1;
}

.content-grid>.order-2 {
  order: 2;
}

.content-grid>.order-3 {
  order: 3;
}

.content-grid>.order-4 {
  order: 4;
}

/* Desktop: CSS Grid 3-column layout */
@media (min-width: 992px) {
  .content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 260px;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }

  .col-populer {
    grid-column: 1;
    grid-row: 1 / -1;
    order: unset;
  }

  .col-utama {
    grid-column: 2;
    grid-row: 1;
    order: unset;
  }

  .col-video {
    grid-column: 3;
    grid-row: 1 / -1;
    order: unset;
  }

  .col-populer,
  .col-video {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .col-populer:hover,
  .col-video:hover {
    overflow-y: auto;
  }

  .col-terkini {
    grid-column: 2;
    grid-row: 2;
    order: unset;
  }
}

/* Custom Scrollbar untuk Col Populer & Col Video */
.col-populer::-webkit-scrollbar,
.col-video::-webkit-scrollbar {
  width: 6px;
}

.col-populer::-webkit-scrollbar-track,
.col-video::-webkit-scrollbar-track {
  background: transparent;
}

.col-populer::-webkit-scrollbar-thumb,
.col-video::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.col-populer::-webkit-scrollbar-thumb:hover,
.col-video::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Section Box */
.section-box {
  margin-bottom: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-navy);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: none;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  border-radius: 1px;
  background: linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%);
}

.section-title-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.section-title-taxonomy-label,
.section-title-taxonomy-current {
  color: var(--primary-navy);
}

.section-title-taxonomy-separator {
  color: var(--text-muted);
  margin: 0 2px;
}

.section-title-crumb-link {
  position: relative;
  color: var(--primary-blue);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.section-title-crumb-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.section-title-crumb-link:hover,
.section-title-crumb-link:focus-visible {
  color: var(--accent-red);
  transform: translateY(-1px);
}

.section-title-crumb-link:hover::after,
.section-title-crumb-link:focus-visible::after {
  transform: scaleX(1);
}

/* ================================================
   WARTA POPULER
   ================================================ */
/* Scrollable wrapper - shows ~5 items */
.populer-outer-wrapper {
  position: relative;
}

.populer-scroll-wrapper {
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.populer-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* White fade overlay at bottom */
.populer-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 1) 10%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.populer-fade.hidden {
  opacity: 0;
}

/* Populer Lainnya link */
.populer-more {
  display: none;
  text-align: center;
  padding: 10px 0;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.populer-more.visible {
  display: block;
}

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

.populer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.populer-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.populer-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(180deg, #7b8db8 0%, #a8a0c0 60%, #c8b0cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.populer-link {
  flex-grow: 1;
  font-weight: 500;
  line-height: 16.2px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.col-populer .populer-link {
  font-size: 12px;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.article-sidebar .populer-link {
  font-size: 0.85rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.populer-link:hover {
  color: var(--accent-red);
}

.populer-img-wrapper {
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-light);
}

.col-populer .populer-img-wrapper {
  width: 80px;
  height: 55px;
}

.article-sidebar .populer-img-wrapper {
  width: 110px;
  height: 75px;
}

.populer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   WARTA UTAMA (Featured News)
   ================================================ */
.featured-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
}

.featured-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 20px;
  background: linear-gradient(to top,
      rgba(10, 30, 80, 0.92) 0%,
      rgba(10, 30, 80, 0.7) 40%,
      rgba(10, 30, 80, 0.25) 70%,
      transparent 100%);
  color: white;
}

.featured-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--accent-red);
  padding-left: 12px;
}

.featured-category-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.featured-info {
  display: flex;
  gap: 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.featured-author {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.featured-author span:first-child {
  font-weight: 700;
}

/* Sub-featured */
.sub-featured-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.sub-featured-card:hover {
  transform: translateY(-2px);
}

.sub-featured-img-wrapper {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.sub-featured-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sub-featured-card:hover .sub-featured-img {
  transform: scale(1.05);
}

/* Blue gradient overlay at bottom of image */
.sub-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(to top,
      rgba(10, 30, 100, 0.88) 0%,
      rgba(10, 30, 100, 0.55) 50%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-featured-category {
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.sub-featured-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
  font-weight: 400;
}

.sub-featured-title {
  margin: 10px 4px 6px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  height: calc(1.4em * 3);
  /* motong 3 baris */

  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.sub-featured-card:hover .sub-featured-title {
  color: var(--accent-red);
}

/* ================================================
   WARTA VIDEO
   ================================================ */
.video-outer-wrapper {
  position: relative;
}

.video-scroll-wrapper {
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.video-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 1) 10%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.video-fade.hidden {
  opacity: 0;
}

/* Video Lainnya link */
.video-more {
  display: none;
  text-align: center;
  padding: 10px 0;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.video-more.visible {
  display: block;
}

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-item {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.video-item:last-child {
  border-bottom: none;
}

.video-item:hover {
  opacity: 0.85;
}

.video-thumb-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.video-title {
  flex-grow: 1;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.2px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* ================================================
   AD SECTION (Sidebar Ads)
   ================================================ */
.sidebar-ad {
  margin-top: 16px;
  position: sticky;
  top: 60px;
}

.sidebar-ad-banner {
  background: var(--bg-white);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 16px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-ad-banner.has-ad {
  border-style: solid;
  padding: 8px;
  min-height: auto;
  margin-bottom: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.sidebar-ad-banner.has-ad:last-child {
  margin-bottom: 0;
}

.ad-item-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 4px);
}

.ad-item-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 4px);
  transition: transform 0.35s ease;
  transform-origin: center;
}

.sidebar-ad-banner.has-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 39, 80, 0.12);
}

.sidebar-ad-banner.has-ad:hover .ad-item-image {
  transform: scale(1.03);
}

.ad-slider {
  width: 100%;
}

.ad-slider .carousel,
.ad-slider .carousel-inner,
.ad-slider .carousel-item {
  width: 100%;
}

.ad-slider .carousel-item {
  transition: transform 0.45s ease;
}

.ad-carousel-control {
  width: 30px;
  height: 30px;
  top: 50%;
  border-radius: 50%;
  background: rgba(26, 39, 80, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.carousel-control-prev.ad-carousel-control {
  left: 8px;
  transform: translate(-10px, -50%);
}

.carousel-control-next.ad-carousel-control {
  right: 8px;
  transform: translate(10px, -50%);
}

.sidebar-ad-banner:hover .ad-carousel-control {
  opacity: 0.9;
  pointer-events: auto;
}

.sidebar-ad-banner:hover .carousel-control-prev.ad-carousel-control,
.sidebar-ad-banner:hover .carousel-control-next.ad-carousel-control {
  transform: translate(0, -50%);
}

.ad-carousel-control:hover {
  background: rgba(26, 39, 80, 0.85);
  opacity: 1 !important;
}

.ad-carousel-indicators {
  margin-bottom: 6px;
}

.ad-carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(26, 39, 80, 0.35);
}

.ad-carousel-indicators .active {
  background-color: rgba(26, 39, 80, 0.9);
}

.ad-vendor-code {
  display: block;
  overflow: hidden;
}

.ad-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ================================================
   WARTA TERKINI
   ================================================ */
.terkini-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terkini-item {
  display: block;
  /* padding: 16px 0; */
  /* border-bottom: 1px solid var(--border-color); */
  transition: var(--transition);
}

.terkini-item:first-child {
  padding-top: 0;
}

.terkini-item:hover {
  background: rgba(26, 39, 80, 0.02);
}

.terkini-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terkini-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.terkini-card:hover .terkini-img {
  transform: scale(1.05);
}

.terkini-topic {
  display: inline-block;
  color: var(--accent-maroon);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.terkini-topic:hover {
  text-decoration: underline;
}

.terkini-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-sidebar .terkini-title {
  font-size: 0.9rem;
}

.terkini-item:hover .terkini-title {
  color: var(--accent-red);
}

.terkini-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.terkini-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.cat {
  background: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.terkini-category.cat:hover {
  background: var(--primary-navy);
  border: 1px solid var(--primary-navy);
}

.terkini-region {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  border: 1px solid var(--primary-blue);
  background: transparent;
  transition: var(--transition);
}

.terkini-region:hover {
  background: var(--primary-blue);
  color: white;
}

.terkini-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terkini-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.terkini-fade {
  display: none;
}

/* Load More Link */
.terkini-more {
  display: block;
  text-align: center;
  padding: 10px 0;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

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

.terkini-more.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.terkini-more.is-disabled {
  color: var(--text-muted);
  pointer-events: none;
  cursor: default;
}

.terkini-card-skeleton {
  pointer-events: none;
}

.terkini-card-skeleton .skeleton-block {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f2f5 25%, #e2e7ef 37%, #f0f2f5 63%);
  background-size: 400% 100%;
  animation: terkiniShimmer 1.2s ease-in-out infinite;
}

.terkini-card-skeleton .skeleton-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.terkini-card-skeleton .skeleton-topic {
  width: 35%;
  height: 14px;
}

.terkini-card-skeleton .skeleton-title {
  width: 100%;
  height: 17px;
}

.terkini-card-skeleton .skeleton-title-short {
  width: 75%;
  height: 17px;
}

.terkini-card-skeleton .skeleton-meta {
  width: 45%;
  height: 12px;
}

@keyframes terkiniShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* ================================================
   ARTICLE PAGE
   ================================================ */

/* Article Page Container */
.article-page {
  padding: 16px 0 30px;
}

/* Breadcrumb */
.article-breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.article-breadcrumb ol li {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.article-breadcrumb ol li a {
  color: var(--primary-blue);
  font-weight: 500;
  transition: var(--transition);
}

.article-breadcrumb ol li a:hover {
  color: var(--accent-red);
}

.article-breadcrumb ol li::after {
  content: "›";
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.article-breadcrumb ol li:last-child::after {
  display: none;
}

.article-breadcrumb ol li.active {
  font-weight: 600;
  color: var(--text-dark);
}

/* Article Header */
.article-header {
  margin-bottom: 20px;
}

.article-category-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-category,
.badge-region {
  display: inline-block;
  padding: 5px 14px;
  background:
    linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
    linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%) border-box;
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.badge-category {
  text-transform: uppercase;
}

.badge-category:hover,
.badge-region:hover {
  background:
    linear-gradient(#9070b0, #9070b0) padding-box,
    linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%) border-box;
  color: white;
}

.article-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #222222;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.article-author {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.article-editor {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-date i {
  font-size: 0.9rem;
}

/* Social Share Bar */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 20px;
  position: relative;
}

.share-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #000000;
}

.share-whatsapp {
  background: #25d366;
}

.share-telegram {
  background: #0088cc;
}

.share-copy {
  background: var(--primary-navy);
}

.share-copy.copied {
  background: var(--accent-green);
}

/* Featured Image */
.article-featured-img {
  margin: 0 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.article-featured-img figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: normal;
  border-bottom: 1px solid var(--border-color);
}

.article-featured-img .caption-title {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.article-featured-img .caption-source {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Font Size Controls */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.font-size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 4px;
}

.btn-font-size {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-font-size:hover {
  background: var(--bg-light);
  border-color: var(--primary-navy);
}

/* Article Body */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 28px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid #e8609a;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 22px;
  margin-bottom: 10px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-dark);
}

.article-body blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary-blue);
  background: var(--bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 8px;
}

/* Single Post Pagination */
.article-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-post-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.article-post-nav-item {
  flex: 1;
  min-width: 0;
}

.article-post-nav-item-next {
  display: flex;
  justify-content: flex-end;
}

.article-page-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--primary-navy);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  width: min(100%, 420px);
  min-width: 0;
}

.article-page-btn i {
  flex: 0 0 auto;
}

.article-page-btn-text {
  flex: 1;
  min-width: 0;
}

.article-page-btn-title {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.article-post-nav-item-next .article-page-btn-text {
  text-align: right;
}

.article-page-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.article-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.article-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.article-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.article-page-number:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.article-page-number.is-active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

/* Inline Image within Article */
.article-inline-img {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-inline-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.article-inline-img figcaption {
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
  border-bottom: 1px solid var(--border-color);
}

/* Article Tags */
.article-tags {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 0;
  border-top: 2px solid var(--border-color);
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-top: 4px;
  white-space: nowrap;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-block;
  padding: 5px 14px;
  background:
    linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
    linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%) border-box;
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.tag-item:hover {
  background:
    linear-gradient(#9070b0, #9070b0) padding-box,
    linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%) border-box;
  color: white;
}

/* Related News */
.related-news {
  margin-top: 10px;
  padding-top: 10px;
}

.related-card {
  display: block;
  transition: var(--transition);
  height: 100%;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.related-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-img {
  transform: scale(1.05);
}

.related-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover .related-title {
  color: var(--accent-red);
}

.related-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 60px;
}

.article-sidebar .populer-number {
  font-size: 42px;
}

@media (max-width: 767.98px) {
  .article-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .article-post-nav {
    flex-direction: column;
  }

  .article-post-nav-item-next {
    justify-content: flex-start;
  }

  .article-page-btn {
    width: 100%;
  }

  .article-post-nav-item-next .article-page-btn-text {
    text-align: left;
  }

  .article-page-numbers {
    order: -1;
  }
}

/* ================================================
   POPUP
   ================================================ */

.popup-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-ad-overlay.show {
  opacity: 1;
}

.popup-ad-container {
  width: 90%;
  max-width: 570px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-ad-overlay.show .popup-ad-container {
  transform: scale(1);
}

.popup-ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.popup-ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #dc3545;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.popup-ad-close-btn {
  background: #212529;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: background 0.2s;
}

.popup-ad-close-btn:hover {
  background: #000;
}

.popup-ad-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Custom Scrollbar untuk Popup Ad Body */
.popup-ad-body::-webkit-scrollbar {
  width: 6px;
}

.popup-ad-body::-webkit-scrollbar-track {
  background: transparent;
}

.popup-ad-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.popup-ad-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.popup-ad-item {
  width: 100%;
}

.popup-ad-link {
  display: block;
  width: 100%;
}

.popup-ad-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.popup-ad-img:hover {
  transform: scale(1.015);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  margin-top: 40px;
}

.footer-main {
  position: relative;
  background: url("assets/img/hero-banner.png") center/cover no-repeat;
  padding: 40px 0 30px;
  border-top: 4px solid;
  border-image: linear-gradient(90deg,
      #f2c4c8 0%,
      #e8609a 12%,
      #e85070 22%,
      #e87060 35%,
      #d07080 45%,
      #9070b0 55%,
      #5068c0 70%,
      #3060d0 82%,
      #2855c8 100%) 1;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 55, 0.1);
  z-index: 0;
}

.footer-main .container {
  position: relative;
  z-index: 1;
}

.footer-content-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 18px;
  padding: 28px 32px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-full {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-centered {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-social-centered .footer-social a {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: white;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  color: white;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.footer-info-row {
  margin-top: 5px;
}

.footer-info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(26, 39, 80, 0.08);
  /* Primary navy with alpha */
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
}

.footer-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-info-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9);
}

.footer-info-link {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.6;
  transition: var(--transition);
  display: block;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9);
}

.footer-info-link:hover {
  color: var(--primary-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links li a {
  font-size: 0.82rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  background: var(--footer-bg);
  padding: 14px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */

/* Mobile (<= 767px) */
@media (max-width: 767.98px) {

  /* Hide main nav and sub nav on mobile */
  .main-nav,
  .sub-nav {
    display: none;
  }

  .main-content {
    padding: 12px 0;
  }

  .section-title {
    font-size: 0.9rem;
  }

  /* Warta Populer: mobile specifics */
  .col-populer .section-box {
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
  }

  .populer-item {
    padding-bottom: 10px;
  }

  .populer-number {
    min-width: 40px;
    font-size: 48px;
  }

  .populer-link {
    font-size: 12px;
    line-height: 16.2px;
  }

  .article-sidebar .populer-number {
    font-size: 28px;
    min-width: 30px;
  }

  /* Featured */
  .featured-title {
    font-size: 1.15rem;
    padding-left: 10px;
    margin-bottom: 5px;
  }

  .featured-info {
    font-size: 0.65rem;
    gap: 10px;
  }

  .featured-overlay {
    padding: 60px 15px 15px;
  }

  /* Sub-featured cards: consistent height and neat grid */
  .sub-featured-img-wrapper {
    padding-top: 56.25%;
    /* 16:9 ratio for mobile */
  }

  .sub-featured-title {
    font-size: 0.72rem;
    margin: 8px 4px;
    height: auto;
    /* Allow auto height for single line but keep clamp */
    min-height: calc(1.3em * 2);
    /* Reserve space for at least 2 lines for alignment */
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  .sub-featured-overlay {
    padding: 30px 8px 8px;
  }

  .row.g-3.mt-2>.col-6 {
    display: flex;
    margin-bottom: 10px;
  }

  .sub-featured-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Video section: 2-column vertical grid with limit */
  .video-outer-wrapper {
    position: relative;
  }

  .video-scroll-wrapper {
    max-height: 380px;
    /* Forces scroll for 3rd row */
    overflow-y: auto;
    padding-right: 4px;
  }

  .video-fade {
    display: block !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top,
        #ffffff 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
  }

  .video-fade.hidden {
    opacity: 0;
  }

  .video-more {
    display: none;
    text-align: center;
    margin-top: 5px;
    position: relative;
    z-index: 11;
  }

  .video-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 0;
    overflow-x: visible;
  }

  .video-item {
    display: flex;
    flex-direction: column;
    width: calc(50% - 8px);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
  }

  .video-thumb-wrapper {
    width: 100%;
    height: 100px;
  }

  .video-title {
    margin-top: 6px;
    font-size: 12px;
    /* Sync with popular */
    line-height: 16.2px;
    font-weight: 500;
  }

  /* Terkini */
  .terkini-outer-wrapper {
    position: relative;
  }

  .terkini-scroll-wrapper {
    max-height: 430px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .terkini-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .terkini-fade {
    /* override global none */
    display: block !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 1) 10%,
        rgba(255, 255, 255, 0.8) 40%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
  }

  .terkini-fade.hidden {
    opacity: 0;
  }

  /* hide button by default on mobile, show via class .visible */
  .terkini-more {
    display: none;
  }

  .terkini-more.visible {
    display: block !important;
  }

  .terkini-title {
    font-size: 0.95rem;
  }

  .terkini-category {
    font-size: 0.6rem;
  }

  .terkini-img-wrapper {
    padding-top: 85%;
  }

  /* Footer */
  .footer-main {
    padding: 24px 0 16px;
  }

  .footer-content-panel {
    padding: 20px 18px 16px;
    border-radius: 14px;
  }

  .footer-brand {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .footer-logo-full {
    max-height: 38px;
  }

  .footer-social {
    width: 100%;
    margin-top: 8px;
    /* Extra space between logos and social */
  }

  .footer-heading {
    margin-top: 8px;
  }

  /* Sidebar Ads: display on mobile */
  .sidebar-ad {
    display: block;
    margin-bottom: 24px;
  }

  /* Article Page: mobile */
  .article-page {
    padding: 10px 0 20px;
  }

  .article-breadcrumb ol {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }

  .article-title {
    font-size: 1.15rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-date {
    font-size: 0.72rem;
  }

  .article-body {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 1.1rem;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .article-sidebar {
    position: static;
  }

  .article-sidebar .populer-number {
    font-size: 28px;
  }

  .related-title {
    font-size: 0.75rem;
  }

  .tag-item {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .nav-item-link {
    padding: 10px 10px;
    font-size: 0.72rem;
  }

  .featured-title {
    font-size: 1.1rem;
  }

  .video-thumb-wrapper {
    width: 80px;
    height: 50px;
  }
}

/* Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .featured-title {
    font-size: 1.5rem;
  }

  .featured-overlay {
    padding: 80px 28px 24px;
  }
}

/* ================================================
   UTILITY CLASSES & ANIMATIONS
   ================================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

/* Selection */
::selection {
  background: var(--primary-navy);
  color: white;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 24px;
}

.pagination-wrapper ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}

.pagination-wrapper li a,
.pagination-wrapper li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pagination-wrapper li.active span,
.pagination-wrapper li.active a {
  background: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 8px rgba(26, 39, 80, 0.2);
}

.pagination-wrapper li a:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.pagination-wrapper li.disabled span {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f8f9fa;
  border-color: #eee;
}

@media (max-width: 576px) {
  .pagination-wrapper ul {
    gap: 6px;
  }

  .pagination-wrapper li a,
  .pagination-wrapper li span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ========================================
   Search Highlight Styling
======================================== */
.search-highlight {
  background-color: #ffeb3b;
  color: #000;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(255, 235, 59, 0.3);
}

/* Fallback logo — override cover agar tidak terpotong */
img[src*="logo-icon.png"] {
  object-fit: contain;
  background-color: #f5f5f5;
  padding: 22%;
  box-sizing: border-box;
}