/*
Theme Name: WAFAPRO
Stylesheet: Main Frontend Styles
===================================================== */

:root {
  --wafa-primary: #a6192e;
  --wafa-primary-dark: #821020;
  --wafa-primary-light: #fef2f2;
  --wafa-accent: #d32f2f;
  --wafa-dark: #12141a;
  --wafa-dark-surface: #1e222b;
  --wafa-text-main: #111827;
  --wafa-text-body: #374151;
  --wafa-text-muted: #6b7280;
  --wafa-border: #e5e7eb;
  --wafa-border-light: #f3f4f6;
  --wafa-bg: #f9fafb;
  --wafa-surface: #ffffff;
  --wafa-radius-sm: 4px;
  --wafa-radius: 8px;
  --wafa-radius-lg: 12px;
  --wafa-radius-full: 9999px;
  --wafa-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --wafa-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --wafa-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --wafa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wafa-container-max: 1200px;

  /* Compatibility Aliases */
  --rm-primary: #a6192e;         /* Crimson Red (RMNEWS Brand) */
  --rm-primary-dark: #821020;    /* Dark Crimson */
  --rm-primary-light: #fef2f2;   /* Soft red background */
  --rm-accent: #d32f2f;          /* Bright Red */
  --rm-dark: #12141a;            /* Black / Header / Footer */
  --rm-dark-surface: #1e222b;    /* Dark Card */
  --rm-text-main: #111827;       /* Headline text */
  --rm-text-body: #374151;       /* Body paragraph */
  --rm-text-muted: #6b7280;      /* Muted / Date / Meta */
  --rm-border: #e5e7eb;          /* Card borders */
  --rm-border-light: #f3f4f6;
  --rm-bg: #f9fafb;              /* Background canvas */
  --rm-surface: #ffffff;         /* Pure white container */
  --rm-radius-sm: 4px;
  --rm-radius: 8px;
  --rm-radius-lg: 12px;
  --rm-radius-full: 9999px;
  --rm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --rm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --rm-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --rm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rm-container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--rm-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rm-text-body);
  background-color: var(--rm-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--rm-primary);
}

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

.container {
  width: 100%;
  max-width: var(--rm-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* =====================================================
   HEADER SECTION (BRANDING, SEARCH, SOCIAL)
===================================================== */
.site-header {
  background: var(--rm-surface);
  border-bottom: 1px solid var(--rm-border-light);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #111;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-logo-text .logo-red {
  color: var(--rm-primary);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--rm-text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}

.search-pill-form {
  position: relative;
  width: 100%;
}

.search-pill-input {
  width: 100%;
  height: 44px;
  background: #f1f3f4;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0 46px 0 22px;
  font-size: 14px;
  color: var(--rm-text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-pill-input:focus {
  background: #fff;
  border-color: var(--rm-primary);
  box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.12);
}

.search-pill-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.search-pill-btn:hover {
  color: var(--rm-primary);
}

.header-desktop-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.desktop-dark-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.desktop-dark-btn:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #f9fafb;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--rm-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* =====================================================
   MAIN CRIMSON NAVIGATION
===================================================== */
.primary-nav-bar {
  background-color: var(--rm-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.primary-menu-list::-webkit-scrollbar {
  display: none;
}

.primary-menu-list > li {
  position: relative;
}

.primary-menu-list > li > a {
  display: block;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.primary-menu-list > li > a:hover,
.primary-menu-list > li.current-menu-item > a {
  background-color: var(--rm-primary-dark);
  color: #ffffff;
}

/* Dropdown */
.primary-menu-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  list-style: none;
  box-shadow: var(--rm-shadow-md);
  border-radius: 0 0 var(--rm-radius) var(--rm-radius);
  z-index: 1000;
  padding: 6px 0;
  border-top: 3px solid var(--rm-primary);
}

.primary-menu-list li:hover > .sub-menu {
  display: block;
}

.primary-menu-list .sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-text-main);
  text-transform: none;
  transition: background-color 0.2s ease;
}

.primary-menu-list .sub-menu li a:hover {
  background: var(--rm-primary-light);
  color: var(--rm-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
}

/* =====================================================
   BREAKING NEWS TICKER
===================================================== */
.ticker-strip {
  background-color: #0d0f12;
  color: #e5e7eb;
  border-bottom: 1px solid #1f242d;
  font-size: 13px;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 38px;
}

.ticker-label {
  background: var(--rm-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rm-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 14px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 35s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-entry {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
  color: #f3f4f6;
  font-weight: 500;
}

.ticker-entry .ticker-num {
  color: #ef4444;
  font-weight: 700;
  margin-right: 6px;
}

.ticker-entry:hover {
  color: #f87171;
}

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

/* =====================================================
   MAIN TWO-COLUMN LAYOUT
===================================================== */
.site-main-layout {
  padding-top: 20px;
  padding-bottom: 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

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

.sidebar-column {
  min-width: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 75px;
  align-self: start;
  z-index: 20;
}

body.admin-bar .sidebar-column {
  top: 107px;
}

body.admin-bar .primary-nav-bar {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .primary-nav-bar {
    top: 46px;
  }
}

/* =====================================================
   HERO HEADLINE CAROUSEL (7-8 SLIDES)
===================================================== */
.lead-hero-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  background-color: #111827;
}

.lead-hero-viewport {
  overflow: hidden;
  width: 100%;
}

.lead-hero-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.lead-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.lead-hero-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1f2937;
}

.lead-hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-hero-card:hover .lead-hero-thumb {
  transform: scale(1.03);
}

.lead-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.88) 92%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px;
  color: #fff;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.badge-slide-number {
  background: rgba(0, 0, 0, 0.65) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  font-weight: 800;
}

.badge-tag {
  background-color: var(--rm-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--rm-radius-sm);
  display: inline-block;
  line-height: 1.3;
}

.badge-tag.badge-alt {
  background-color: #d32f2f;
}

.lead-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.lead-hero-title a {
  color: #ffffff;
}

.lead-hero-title a:hover {
  color: #fca5a5;
}

.lead-hero-meta {
  font-size: 12px;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Carousel Prev/Next Buttons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  padding: 0;
  outline: none;
}

.hero-nav-btn svg {
  display: block;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.hero-nav-btn:hover {
  background: var(--rm-primary);
  border-color: var(--rm-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(166, 25, 46, 0.6);
}

.hero-nav-prev {
  left: 14px;
}

.hero-nav-next {
  right: 14px;
}

/* Hero Carousel Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 14px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 15;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  outline: none;
}

.hero-slider-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--rm-primary);
  box-shadow: 0 0 8px rgba(166, 25, 46, 0.7);
}

@media (max-width: 768px) {
  .hero-nav-btn {
    width: 36px;
    height: 36px;
  }
  .hero-nav-prev { left: 8px; }
  .hero-nav-next { right: 8px; }
  .lead-hero-title { font-size: 20px; }
  .lead-hero-overlay { padding: 16px; }
  .hero-slider-dots { bottom: 10px; right: 14px; }
}

/* Sub-Featured Moving Slider with Navigation */
.sub-featured-slider-wrap {
  position: relative;
  margin-top: 14px;
  width: 100%;
}

.sub-featured-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--rm-radius);
  padding: 4px 2px;
}

.sub-featured-track {
  display: flex;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.sub-featured-card {
  flex: 0 0 calc(25% - 10.5px);
  min-width: 175px;
  background: var(--rm-surface);
  border-radius: var(--rm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rm-border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

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

.sub-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  user-select: none;
  padding: 0;
  outline: none;
}

.sub-slider-btn svg {
  display: block;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.sub-slider-btn:hover {
  background: var(--rm-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(166, 25, 46, 0.5);
  border-color: var(--rm-primary);
}

.sub-slider-prev {
  left: 6px;
}

.sub-slider-next {
  right: 6px;
}

@media (max-width: 1024px) {
  .sub-featured-card {
    flex: 0 0 calc(33.333% - 9.5px);
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .sub-featured-card {
    flex: 0 0 calc(50% - 7px);
    min-width: 140px;
  }
  .sub-slider-btn {
    width: 34px;
    height: 34px;
  }
  .sub-slider-prev { left: 4px; }
  .sub-slider-next { right: 4px; }
}

@media (max-width: 480px) {
  .sub-featured-card {
    flex: 0 0 calc(80% - 7px);
  }
}

.sub-featured-thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.sub-featured-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.sub-featured-body {
  padding: 10px 10px 12px;
}

.sub-featured-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-featured-title a:hover {
  color: var(--rm-primary);
}

/* =====================================================
   ADVERTISEMENT SLOTS SYSTEM
===================================================== */
.wafapro-ad-box,
.rmnews-ad-box {
  margin: 20px 0;
  text-align: center;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
}

.wafapro-ad-box .ad-disclaimer,
.rmnews-ad-box .ad-disclaimer {
  display: none !important;
}

.wafapro-ad-box .ad-content,
.rmnews-ad-box .ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  overflow: hidden;
}

.wafapro-ad-box img,
.rmnews-ad-box img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder banner default */
.ad-placeholder-creative {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  color: #486581;
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
}

.ad-placeholder-creative.tall {
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.ad-placeholder-creative.skyscraper {
  min-height: 480px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.ad-ph-title {
  font-weight: 800;
  font-size: 16px;
  color: #102a43;
  text-transform: uppercase;
}

.ad-ph-sub {
  font-size: 12px;
  color: #627d98;
}

.ad-ph-cta {
  background: var(--rm-primary);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--rm-radius-sm);
  display: inline-block;
}

/* Specific Sizes */
.ad-slot-leaderboard {
  max-width: 100%;
}

.ad-slot-sidebar-300,
.ad-sidebar-300 {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   SPOTLIGHT SECTION ("KEPULAUAN RIAU")
===================================================== */
.section-spotlight {
  margin-top: 24px;
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.section-head-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rm-text-main);
  position: relative;
  letter-spacing: 0.5px;
}

.section-head-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--rm-primary);
}

.spotlight-controls {
  display: flex;
  gap: 6px;
}

.spotlight-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rm-border);
  background: var(--rm-surface);
  color: var(--rm-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.spotlight-nav-btn:hover {
  background: var(--rm-primary);
  color: #ffffff;
  border-color: var(--rm-primary);
}

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

.spotlight-card {
  background: var(--rm-surface);
  border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border-light);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow);
}

.spotlight-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.spotlight-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spotlight-card:hover .spotlight-thumb-wrap img {
  transform: scale(1.04);
}

.spotlight-badges-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.spotlight-body {
  padding: 12px 14px;
}

.spotlight-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-title a:hover {
  color: var(--rm-primary);
}

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

/* =====================================================
   LATEST NEWS LIST ("BERITA TERBARU")
===================================================== */
.section-latest-news {
  margin-top: 24px;
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-feed-item {
  display: flex;
  gap: 18px;
  background: var(--rm-surface);
  border-radius: var(--rm-radius);
  border: 1px solid var(--rm-border-light);
  padding: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-feed-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--rm-shadow-sm);
}

.news-feed-thumb {
  width: 210px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  background: #e2e8f0;
}

.news-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-feed-item:hover .news-feed-thumb img {
  transform: scale(1.05);
}

.news-feed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.feed-category-link {
  color: var(--rm-primary);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-category-link:hover {
  text-decoration: underline;
}

.meta-bullet {
  color: #9ca3af;
  font-size: 10px;
}

.feed-date {
  font-size: 12px;
  color: var(--rm-text-muted);
}

.news-feed-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--rm-text-main);
  margin-bottom: 6px;
}

.news-feed-title a:hover {
  color: var(--rm-primary);
}

.news-feed-excerpt {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: var(--rm-primary);
}

.btn-load-more.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* =====================================================
   SIDEBAR WIDGETS
===================================================== */
.sidebar-widget {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--rm-shadow-sm);
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rm-text-main);
  border-bottom: 2px solid var(--rm-primary);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

/* Sticky sidebar ad */
.sticky-sidebar-ad {
  position: sticky;
  top: 70px;
}

/* =====================================================
   FOOTER (DARK #12141a)
===================================================== */
.site-footer {
  background-color: var(--rm-dark);
  color: #9ca3af;
  padding-top: 48px;
  font-size: 14px;
  border-top: 4px solid var(--rm-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-col-about .footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col-about .footer-logo span {
  color: var(--rm-primary);
}

.footer-col-about p {
  line-height: 1.6;
  font-size: 13px;
  color: #9ca3af;
}

.footer-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  position: relative;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 13px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-recent-item a {
  font-size: 13px;
  color: #d1d5db;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-recent-item a:hover {
  color: var(--rm-primary);
}

.footer-bottom-bar {
  border-top: 1px solid #1f242e;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* =====================================================
   SINGLE POST & ARTICLE STYLING
===================================================== */
.article-header {
  margin-bottom: 20px;
}

.article-breadcrumbs {
  font-size: 12px;
  color: var(--rm-text-muted);
  margin-bottom: 12px;
}

.article-breadcrumbs a:hover {
  color: var(--rm-primary);
}

.article-headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--rm-text-main);
  margin-bottom: 14px;
}

/* =====================================================
   ARTICLE COMPACT 1-LINE META & SHARE POPOVER
   Urutan 1 Baris: 1. Penulis | 2. View | 3. Icon Share Saja
===================================================== */
.article-compact-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 13.5px;
  color: var(--rm-text-muted);
  border-bottom: 1px solid var(--rm-border);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

/* 1. PENULIS */
.meta-item-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rm-text-main);
}

.author-avatar-wrap {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.meta-author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-name-text {
  font-size: 13.5px;
  color: var(--rm-text-muted);
}

.author-name-text a {
  color: var(--rm-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.author-name-text a:hover {
  text-decoration: underline;
}

/* 2. VIEW */
.meta-item-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rm-text-muted);
  font-size: 13px;
  padding: 3px 8px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
}

.meta-view-icon {
  stroke: var(--rm-text-muted);
  flex-shrink: 0;
}

.views-count-text {
  font-weight: 600;
  font-size: 12.5px;
}

/* 3. ICON SHARE SAJA (POPUP TRIGGER) */
.meta-item-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.meta-share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--rm-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.meta-share-icon-btn:hover,
.meta-share-icon-btn.active {
  background: var(--rm-primary);
  color: #ffffff;
  border-color: var(--rm-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(166, 25, 46, 0.25);
}

/* Popover Floating Share Menu */
.meta-share-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  z-index: 1050;
  min-width: 230px;
  display: none;
  transform-origin: top right;
  animation: wafaPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.meta-share-popover.open {
  display: block;
}

@keyframes wafaPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.share-popover-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.share-popover-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-pop-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.share-pop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.08);
}

.pop-wa { background: #25d366; }
.pop-fb { background: #1877f2; }
.pop-x  { background: #000000; }
.pop-tg { background: #229ed9; }
.pop-copy { background: #475569; }

.share-copy-toast {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 6px;
}

/* SUB-ROW: DATE & READING TIME */
.article-sub-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
}

/* Dark mode overrides for Article Meta */
.dark-mode .article-compact-meta-row {
  border-color: #334155;
}
.dark-mode .meta-item-views {
  background: rgba(255, 255, 255, 0.08);
}
.dark-mode .meta-share-icon-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.dark-mode .meta-share-popover {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.dark-mode .share-popover-title {
  color: #94a3b8;
}
.dark-mode .share-copy-toast {
  background: #14532d;
  border-color: #166534;
  color: #bbf7d0;
}
.dark-mode .article-sub-date-row {
  color: #64748b;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--rm-text-muted);
  border-bottom: 1px solid var(--rm-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.article-featured-media {
  margin-bottom: 24px;
  border-radius: var(--rm-radius);
  overflow: hidden;
}

.article-featured-media img {
  width: 100%;
  height: auto;
}

.article-caption {
  font-size: 12px;
  color: var(--rm-text-muted);
  margin-top: 6px;
  font-style: italic;
}

.article-share-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-tg { background: #229ed9; }
.share-copy { background: #475569; }

.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--rm-text-body);
}

.article-content p {
  margin-bottom: 1.4em;
}

.article-content h2, 
.article-content h3 {
  color: var(--rm-text-main);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  font-weight: 800;
}

.article-tags-wrap {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag-item {
  background: #f3f4f6;
  color: #4b5563;
  padding: 4px 10px;
  border-radius: var(--rm-radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.post-tag-item:hover {
  background: var(--rm-primary);
  color: #ffffff;
}

/* =====================================================
   STICKY BOTTOM & FLOATING ADVERTS
===================================================== */
.floating-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 20, 26, 0.95);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-bottom-ad-inner {
  position: relative;
  max-width: 728px;
  width: 100%;
}

.floating-bottom-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #e11d48;
  color: #ffffff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--rm-shadow);
}

/* Floating side skin banners (desktop only) */
.side-skin-banner {
  position: fixed;
  top: 120px;
  width: 140px;
  height: 600px;
  z-index: 90;
  display: none;
}

.side-skin-left {
  left: calc(50% - 600px - 150px);
}

.side-skin-right {
  right: calc(50% - 600px - 150px);
}

@media (min-width: 1540px) {
  .side-skin-banner {
    display: block;
  }
}

/* =====================================================
   MOBILE OFFCANVAS DRAWER
===================================================== */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: var(--rm-shadow-md);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(280px);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--rm-primary);
  color: #ffffff;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
  padding: 12px 0;
  overflow-y: auto;
}

.mobile-menu-list li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rm-text-main);
  border-bottom: 1px solid var(--rm-border-light);
}

.mobile-menu-list li a:hover {
  background: var(--rm-primary-light);
  color: var(--rm-primary);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */
@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-column {
    position: static !important;
    top: auto !important;
    max-width: 480px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-social {
    display: none !important;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .primary-menu-list {
    display: none;
  }
  .sub-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .news-feed-item {
    flex-direction: column;
  }
  .news-feed-thumb {
    width: 100%;
    height: 180px;
  }
  .lead-hero-title {
    font-size: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =====================================================
   ADDITIONAL MODULES (POPULAR, EDITORS PICK, VIDEO, OPINION, TABS)
===================================================== */
.section-module {
  margin: 32px 0;
}

.section-badge-icon {
  margin-right: 6px;
}

/* Modul Pilihan Redaksi */
.editors-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.editors-pick-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editors-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow);
}

.editors-pick-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #cbd5e1;
}

.editors-pick-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.editors-pick-card:hover .editors-pick-thumb-wrap img {
  transform: scale(1.04);
}

.badge-editors {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--rm-radius-sm);
  letter-spacing: 0.5px;
}

.editors-pick-body {
  padding: 10px 12px 14px;
}

.editors-pick-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editors-pick-title a:hover {
  color: var(--rm-primary);
}

/* Modul Berita Populer Modern (2026 Sleek Style) */
.popular-modern-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-modern-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius-lg);
  padding: 12px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.25s ease;
}

.popular-modern-card:hover {
  transform: translateX(4px);
  border-color: rgba(166, 25, 46, 0.2);
  border-left: 4px solid var(--rm-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.popular-number-display {
  font-size: 32px;
  font-weight: 900;
  color: #cbd5e1;
  font-family: var(--rm-font);
  letter-spacing: -1.5px;
  min-width: 42px;
  line-height: 1;
  transition: all 0.2s ease;
  user-select: none;
}

.popular-modern-card:hover .popular-number-display,
.popular-lead-card .popular-number-display {
  color: var(--rm-primary);
  transform: scale(1.05);
}

.popular-modern-thumb {
  width: 125px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  background: #cbd5e1;
}

.popular-modern-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-modern-card:hover .popular-modern-thumb img {
  transform: scale(1.08);
}

.popular-modern-content {
  flex: 1;
  min-width: 0;
}

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

.popular-views-badge {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: var(--rm-radius-full);
}

.popular-modern-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--rm-text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-modern-title a:hover {
  color: var(--rm-primary);
}

@media (max-width: 640px) {
  .popular-modern-thumb {
    width: 90px;
    height: 65px;
  }
  .popular-number-display {
    font-size: 24px;
    min-width: 32px;
  }
}

/* Modul Video & Multimedia (Dark Theme Section) */
.section-multimedia-dark {
  background: #0f1218;
  border-radius: var(--rm-radius-lg);
  padding: 24px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid #1f293d;
}

.multimedia-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #232c3d;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.multimedia-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-play-icon {
  color: #ef4444;
  margin-right: 6px;
}

.multimedia-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.multimedia-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.multimedia-lead {
  display: flex;
  flex-direction: column;
}

.multimedia-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--rm-radius);
  overflow: hidden;
  background: #1e293b;
}

.multimedia-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.multimedia-thumb-wrap:hover img {
  transform: scale(1.04);
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.video-play-badge svg {
  width: 50px;
  height: 50px;
  padding: 12px;
  background: rgba(225, 29, 72, 0.9);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.multimedia-thumb-wrap:hover .video-play-badge svg {
  transform: scale(1.15);
  background: #e11d48;
}

.multimedia-lead-body {
  padding-top: 12px;
}

.multimedia-lead-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin: 6px 0;
}

.multimedia-lead-title a:hover {
  color: #f87171;
}

.multimedia-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.multimedia-item {
  display: flex;
  gap: 12px;
  background: #171d27;
  border: 1px solid #232c3d;
  border-radius: var(--rm-radius-sm);
  padding: 8px;
  transition: background 0.2s ease;
}

.multimedia-item:hover {
  background: #202836;
}

.multimedia-item-thumb {
  width: 110px;
  aspect-ratio: 16 / 10;
  position: relative;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #334155;
}

.multimedia-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-play-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
}

.multimedia-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.multimedia-item-title a:hover {
  color: #f87171;
}

/* Modul Opini & Kolom */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.opinion-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-top: 3px solid var(--rm-primary);
  border-radius: var(--rm-radius);
  padding: 16px;
  box-shadow: var(--rm-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opinion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow);
}

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

.opinion-avatar img,
.opinion-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rm-border);
}

.opinion-avatar-placeholder {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.opinion-author-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--rm-text-main);
}

.opinion-label {
  font-size: 11px;
  color: var(--rm-text-muted);
}

.opinion-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-text-main);
  margin-bottom: 8px;
}

.opinion-title a:hover {
  color: var(--rm-primary);
}

.opinion-excerpt {
  font-size: 12px;
  color: var(--rm-text-body);
  line-height: 1.5;
  font-style: italic;
}

/* Ranked Popular List (Sidebar & Widgets) */
.popular-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-ranked-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rm-border-light);
}

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

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: var(--rm-radius-sm);
  background: #64748b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rank-badge.rank-1 { background: #e11d48; }
.rank-badge.rank-2 { background: #ea580c; }
.rank-badge.rank-3 { background: #d97706; }

.popular-ranked-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rm-text-main);
  margin-bottom: 3px;
}

.popular-ranked-title a:hover {
  color: var(--rm-primary);
}

/* Sidebar Tabbed Module */
.sidebar-tab-module {
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  overflow: hidden;
  background: var(--rm-surface);
}

.sidebar-tab-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 2px solid var(--rm-border);
}

.tab-btn {
  flex: 1;
  padding: 10px 4px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tab-btn:hover {
  color: var(--rm-primary);
}

.tab-btn.active {
  background: var(--rm-surface);
  color: var(--rm-primary);
  border-bottom: 3px solid var(--rm-primary);
}

.tab-pane {
  display: none;
  padding: 14px;
}

.tab-pane.active {
  display: block;
}

.tab-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-recent-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tab-recent-thumb {
  width: 60px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.tab-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-recent-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--rm-text-main);
  line-height: 1.3;
  margin-bottom: 2px;
}

.tab-recent-title a:hover {
  color: var(--rm-primary);
}

.tab-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-comment-item {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rm-border-light);
  font-size: 12px;
}

.comment-author-name {
  color: var(--rm-text-main);
  margin-bottom: 2px;
}

.comment-snippet a {
  color: #64748b;
  font-style: italic;
}

.comment-snippet a:hover {
  color: var(--rm-primary);
}

@media (max-width: 768px) {
  .editors-pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .multimedia-grid {
    grid-template-columns: 1fr;
  }
  .opinion-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ADDITIONAL NEWS MODULES (10 HOME MODULES)
===================================================== */
.feed-inline-module {
  margin: 24px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rm-border-light);
}

/* MODUL 3: TRENDING */
.trending-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trending-card-item {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-shadow-md);
}

.trending-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #334155;
}

.trending-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trending-card-item:hover .trending-thumb-wrap img {
  transform: scale(1.04);
}

.badge-trending-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.trending-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.trending-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.trending-card-title a {
  color: var(--rm-text-main);
}

.trending-card-title a:hover {
  color: var(--rm-primary);
}

/* MODUL 4: NASIONAL */
.nasional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.nasional-card {
  display: flex;
  gap: 12px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nasional-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow-sm);
}

.nasional-thumb {
  width: 120px;
  height: 85px;
  flex-shrink: 0;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  background: #cbd5e1;
}

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

.nasional-content {
  flex: 1;
  min-width: 0;
}

.nasional-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 6px;
}

.nasional-title a {
  color: var(--rm-text-main);
}

.nasional-title a:hover {
  color: var(--rm-primary);
}

.nasional-excerpt {
  font-size: 12px;
  color: var(--rm-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* MODUL 5: BISNIS & MODUL 7: TEKNO & MODUL 9: LIFESTYLE */
.bisnis-grid,
.tekno-grid,
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bisnis-card,
.tekno-card,
.lifestyle-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bisnis-card:hover,
.tekno-card:hover,
.lifestyle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow-md);
}

.bisnis-thumb,
.tekno-thumb,
.lifestyle-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.bisnis-thumb img,
.tekno-thumb img,
.lifestyle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bisnis-card:hover .bisnis-thumb img,
.tekno-card:hover .tekno-thumb img,
.lifestyle-card:hover .lifestyle-thumb img {
  transform: scale(1.04);
}

.bisnis-body,
.tekno-body,
.lifestyle-body {
  padding: 12px;
}

.bisnis-title,
.tekno-title,
.lifestyle-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 0;
}

.bisnis-title a,
.tekno-title a,
.lifestyle-title a {
  color: var(--rm-text-main);
}

.bisnis-title a:hover,
.tekno-title a:hover,
.lifestyle-title a:hover {
  color: var(--rm-primary);
}

/* MODUL 8: SPORT */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sport-card {
  display: flex;
  gap: 12px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-border-light);
  border-radius: var(--rm-radius);
  padding: 12px;
}

.sport-thumb {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--rm-radius-sm);
  overflow: hidden;
  background: #15803d;
}

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

.sport-body {
  flex: 1;
}

.sport-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0;
}

.sport-title a {
  color: var(--rm-text-main);
}

.sport-title a:hover {
  color: var(--rm-primary);
}

.sport-excerpt {
  font-size: 12px;
  color: var(--rm-text-muted);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1024px) {
  .trending-cards-grid,
  .bisnis-grid,
  .tekno-grid,
  .lifestyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trending-cards-grid,
  .bisnis-grid,
  .tekno-grid,
  .lifestyle-grid,
  .nasional-grid,
  .sport-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   MOBILE HEADER WITH LOGO, DARK ICON, SEARCH ICON, & CATEGORY MENU
===================================================== */
.mobile-only-el,
.mobile-header-bar,
.mobile-category-bar,
.mobile-search-drawer,
#wafa-mobile-search-drawer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

@media (min-width: 992px) {
  .mobile-only-el,
  .mobile-header-bar,
  .mobile-category-bar,
  .mobile-search-drawer,
  #wafa-mobile-search-drawer,
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }

  .desktop-only-el,
  .desktop-header-wrap {
    display: block !important;
    visibility: visible !important;
  }

  .desktop-nav-bar {
    display: block !important;
    visibility: visible !important;
  }
}

@media (max-width: 991px) {
  .desktop-only-el,
  .desktop-header-wrap,
  .desktop-nav-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }

  .mobile-only-el,
  .mobile-header-bar {
    display: flex !important;
    visibility: visible !important;
    position: sticky !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 16px !important;
    overflow: visible !important;
    left: auto !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--wafa-border-light, #f1f5f9);
    top: 0;
    z-index: 120;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  body.admin-bar .mobile-header-bar {
    top: 46px;
  }

  .mobile-header-branding {
    display: flex;
    align-items: center;
  }

  .mobile-header-branding .brand-logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--wafa-primary, #a6192e);
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  .mobile-header-branding .brand-logo-text .logo-red {
    color: #ef4444;
  }

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

  .mobile-action-btn {
    background: transparent;
    border: none;
    padding: 6px;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s, color 0.2s;
  }

  .mobile-action-btn:hover {
    background: #f1f5f9;
    color: var(--wafa-primary, #a6192e);
  }

  .mobile-action-btn:active {
    transform: scale(0.92);
  }

  /* Expandable Mobile Search Drawer */
  .mobile-search-drawer {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    background: #f8fafc;
    border-bottom: 1px solid var(--wafa-border, #e2e8f0);
    padding: 0 16px;
  }

  .mobile-search-drawer.open {
    max-height: 70px;
    opacity: 1;
    padding: 10px 16px;
  }

  .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .mobile-search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--wafa-border, #cbd5e1);
    border-radius: 6px;
    font-size: 13.5px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
  }

  .mobile-search-input:focus {
    border-color: var(--wafa-primary, #a6192e);
    box-shadow: 0 0 0 2px rgba(166, 25, 46, 0.15);
  }

  .mobile-search-submit-btn {
    padding: 9px 18px;
    background: var(--wafa-primary, #a6192e);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Mobile Horizontal Category Menu ("di bawahnya Tampinan Menu") */
  .mobile-category-bar {
    display: flex !important;
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    padding: 10px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 57px;
    z-index: 115;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  body.admin-bar .mobile-category-bar {
    top: 103px;
  }

  .mobile-category-bar::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
  }

  .mobile-cat-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    position: relative;
    white-space: nowrap;
    padding: 2px 0;
    transition: color 0.18s;
  }

  .mobile-cat-link:hover,
  .mobile-cat-link.active {
    color: var(--wafa-primary, #a6192e);
  }

  .badge-hot {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 900;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }
}

/* =====================================================
   MODERN FOOTER (DESKTOP 4-COLUMNS & RESPONSIVE MOBILE)
===================================================== */
.site-footer-modern {
  width: 100%;
  margin-top: 40px;
  font-family: inherit;
}

.footer-top-modern {
  background: #f0f4fc;
  padding: 48px 0 42px;
  border-top: 1px solid #e2e8f0;
}

.footer-modern-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid-modern {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

/* Kolom 1: About / Brand & Contacts */
.footer-col-about {
  display: flex;
  flex-direction: column;
}

.footer-brand-wrap .brand-logo-text {
  font-size: 26px;
  font-weight: 900;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.footer-brand-wrap .brand-logo-text .logo-red {
  color: #ef4444;
}

.footer-tagline-text {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-top: 3px;
  margin-bottom: 12px;
}

.footer-desc-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 16px;
  max-width: 440px;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item svg {
  color: #1e293b;
  flex-shrink: 0;
}

.footer-contact-item:hover {
  color: var(--wafa-primary, #a6192e);
}

.footer-apps-block {
  margin-top: 4px;
}

.footer-apps-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.footer-app-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #000000;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #111827;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.app-badge-labels {
  text-align: left;
}

.app-badge-labels small {
  display: block;
  font-size: 8.5px;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.8;
  font-weight: 500;
}

.app-badge-labels strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

/* Kolom 2, 3, 4: Titles & Accent Bars */
.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.footer-title-accent {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}

.footer-title-accent .bar-long {
  width: 28px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

.footer-title-accent .bar-dot {
  width: 10px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

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

.footer-links-list li a {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
  display: block;
}

.footer-links-list li a:hover {
  color: var(--wafa-primary, #a6192e);
}

/* Kolom 4: Kategori dengan Badge Merah */
.footer-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-cat-list li a:hover {
  color: var(--wafa-primary, #a6192e);
}

.cat-count-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  line-height: 1.4;
}

/* LOWER SECTION (WHITE BACKGROUND) */
.footer-bottom-modern {
  background: #ffffff;
  padding: 22px 0 24px;
  border-top: 1px solid #e2e8f0;
}

.footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-policy-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-policy-row a {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-policy-row a:hover {
  color: var(--wafa-primary, #a6192e);
}

.footer-copyright-row p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-circles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-soc-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  transition: transform 0.2s;
}

.footer-soc-circle:hover {
  transform: scale(1.12);
}

.soc-fb {
  background-color: #3b5998;
}

.soc-x {
  background-color: #000000;
}

.soc-yt {
  background-color: #cd201f;
}

.footer-scroll-to-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.2px solid #16a34a;
  background: #ffffff;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.footer-scroll-to-top-btn:hover {
  background: #16a34a;
  color: #ffffff;
}

.footer-scroll-to-top-btn:hover svg {
  stroke: #ffffff;
}

/* RESPONSIVE MOBILE FOOTER (< 992px) */
@media (max-width: 991px) {
  .footer-grid-modern {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col-about {
    text-align: center;
    align-items: center;
  }

  .footer-desc-text {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contacts-list {
    align-items: center;
  }

  .footer-apps-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-app-badges {
    justify-content: center;
  }

  .footer-col-custom,
  .footer-col-network,
  .footer-col-category {
    text-align: center;
  }

  .footer-title-accent {
    justify-content: center;
  }

  .footer-cat-list li a {
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    align-items: center;
  }

  .footer-policy-row {
    justify-content: center;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   DARK MODE COMPREHENSIVE STYLING
===================================================== */
html.dark-mode,
body.dark-mode {
  --wafa-bg: #0b0f19;
  --wafa-surface: #1e293b;
  --wafa-text-main: #f8fafc;
  --wafa-text-body: #cbd5e1;
  --wafa-text-muted: #94a3b8;
  --wafa-border: #334155;
  --wafa-border-light: #1e293b;
  --wafa-dark: #090d16;
  --wafa-dark-surface: #111827;
  background-color: #0b0f19;
  color: #cbd5e1;
}

body.dark-mode .site-header,
body.dark-mode .mobile-header-bar,
body.dark-mode .mobile-category-bar,
body.dark-mode .single-article-wrap,
body.dark-mode .comments-area,
body.dark-mode .sidebar-widget,
body.dark-mode .news-feed-item,
body.dark-mode .spotlight-card,
body.dark-mode .editors-pick-card,
body.dark-mode .nasional-card,
body.dark-mode .bisnis-card,
body.dark-mode .tekno-card,
body.dark-mode .sport-card,
body.dark-mode .lifestyle-card,
body.dark-mode .opinion-card,
body.dark-mode .popular-modern-card,
body.dark-mode .trending-card-item {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .mobile-header-bar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .mobile-action-btn {
  color: #f1f5f9;
}

body.dark-mode .mobile-action-btn:hover {
  background: #334155;
}

body.dark-mode .mobile-category-bar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .mobile-cat-link {
  color: #f1f5f9;
}

body.dark-mode .mobile-cat-link:hover,
body.dark-mode .mobile-cat-link.active {
  color: #38bdf8;
}

body.dark-mode .mobile-search-drawer {
  background-color: #141e30 !important;
  border-color: #334155 !important;
}

body.dark-mode .mobile-search-input {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

body.dark-mode .news-feed-title a,
body.dark-mode .spotlight-title a,
body.dark-mode .lead-hero-title a,
body.dark-mode .article-headline,
body.dark-mode .section-head-title,
body.dark-mode .sidebar-widget-title,
body.dark-mode .popular-modern-title a,
body.dark-mode .trending-card-title a,
body.dark-mode .nasional-title a,
body.dark-mode .bisnis-title a,
body.dark-mode .tekno-title a,
body.dark-mode .sport-title a,
body.dark-mode .lifestyle-title a,
body.dark-mode .opinion-title a,
body.dark-mode .sub-featured-title a {
  color: #f8fafc !important;
}

body.dark-mode .news-feed-excerpt,
body.dark-mode .nasional-excerpt,
body.dark-mode .sport-excerpt,
body.dark-mode .opinion-excerpt,
body.dark-mode .article-content {
  color: #cbd5e1 !important;
}

body.dark-mode .footer-top-centered,
body.dark-mode .footer-top-modern {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-mode .footer-center-desc,
body.dark-mode .footer-desc-text {
  color: #94a3b8 !important;
}

body.dark-mode .footer-contact-link,
body.dark-mode .footer-contact-link svg,
body.dark-mode .footer-contact-item,
body.dark-mode .footer-contact-item svg,
body.dark-mode .footer-links-list li a,
body.dark-mode .footer-cat-list li a {
  color: #cbd5e1 !important;
}

body.dark-mode .footer-links-list li a:hover,
body.dark-mode .footer-cat-list li a:hover {
  color: #38bdf8 !important;
}

body.dark-mode .footer-apps-heading,
body.dark-mode .footer-col-title,
body.dark-mode .footer-apps-title {
  color: #f8fafc !important;
}

body.dark-mode .footer-bottom-centered,
body.dark-mode .footer-bottom-modern {
  background-color: #090d16 !important;
  border-color: #334155 !important;
}

body.dark-mode .footer-center-policy-links a,
body.dark-mode .footer-policy-row a {
  color: #e2e8f0 !important;
}

body.dark-mode .footer-center-copyright,
body.dark-mode .footer-copyright-row p {
  color: #94a3b8 !important;
}

body.dark-mode .footer-scroll-to-top,
body.dark-mode .footer-scroll-to-top-btn {
  background-color: #1e293b !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
}

body.dark-mode .footer-scroll-to-top:hover,
body.dark-mode .footer-scroll-to-top-btn:hover {
  background-color: #22c55e !important;
  color: #ffffff !important;
}

body.dark-mode .ticker-strip {
  background-color: #070a10 !important;
}

body.dark-mode .ticker-entry {
  color: #e2e8f0 !important;
}

body.dark-mode .social-icon-btn {
  background: #1e293b;
  color: #cbd5e1;
}

body.dark-mode .dark-icon-moon {
  display: none !important;
}

body.dark-mode .dark-icon-sun {
  display: block !important;
  color: #fbbf24;
}


/* ==========================================================================
   DETIK.COM STYLE MOBILE HEADER, CATEGORIES, DRAWER & FOOTER (< 992px)
   ========================================================================== */

/* Strict Isolation for Desktop */
@media (min-width: 992px) {
  .detik-mobile-header,
  .detik-mobile-cats,
  .detik-mobile-search,
  .detik-mobile-footer,
  .detik-indeks-btn-wrap,
  .detik-drawer-overlay,
  .detik-mobile-drawer,
  #wafa-detik-drawer,
  #wafa-detik-overlay,
  #wafa-detik-search-drawer {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 991px) {
  /* Detik Mobile Header Top Bar */
  .detik-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .detik-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .detik-hamburger-btn {
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    touch-action: manipulation;
  }
  .detik-hamburger-btn:active {
    background: #f1f5f9;
  }

  .detik-mobile-logo {
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .detik-mobile-logo img {
    max-height: 34px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
  }
  .detik-mobile-logo .detik-logo-link {
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: baseline;
    white-space: nowrap;
  }

  .detik-logo-wafa {
    color: #004b90; /* Detik Blue */
  }

  .detik-logo-pro {
    color: #e11d48; /* Red/Crimson Detik accent */
  }

  .detik-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .detik-action-btn {
    background: none;
    border: none;
    padding: 6px;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    touch-action: manipulation;
  }
  .detik-action-btn:active {
    background: #f1f5f9;
  }

  /* Detik Live Pill Button */
  .detik-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1.5px solid #004b90;
    border-radius: 9999px;
    color: #004b90;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  .detik-live-pill svg {
    color: #004b90;
  }
  .detik-live-pill:hover,
  .detik-live-pill:active {
    background: #004b90;
    color: #ffffff;
  }
  .detik-live-pill:hover svg,
  .detik-live-pill:active svg {
    color: #ffffff;
  }

  .detik-dark-toggle-btn {
    background: none;
    border: none;
    padding: 6px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    touch-action: manipulation;
  }

  /* Detik Collapsible Search Drawer - ABSOLUTELY HIDDEN BY DEFAULT */
  .detik-mobile-search,
  #wafa-detik-search-drawer {
    display: none !important;
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #ffffff;
    padding: 10px 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border-bottom: 1px solid #e2e8f0;
  }
  .detik-mobile-search.open,
  #wafa-detik-search-drawer.open {
    display: block !important;
  }
  .detik-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #004b90;
    border-radius: 8px;
    padding: 4px 8px 4px 14px;
  }
  .detik-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    background: transparent;
    padding: 6px 0;
  }
  .detik-search-submit {
    background: #004b90;
    border: none;
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Detik Mobile Category Scroll Track */
  .detik-mobile-cats {
    display: block !important;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .detik-mobile-cats::-webkit-scrollbar {
    display: none;
  }
  .detik-cats-track {
    display: inline-flex;
    padding: 0 14px;
    gap: 16px;
    align-items: center;
    height: 42px;
  }
  .detik-cat-item {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }
  .detik-cat-item.active {
    color: #004b90;
  }
  .detik-red-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    top: -5px;
    right: -1px;
  }

  /* ==========================================================================
     DETIK.COM STYLE MOBILE MENU DRAWER (OFF-CANVAS SLIDE)
     ========================================================================== */
  /* Overlay - HIDDEN BY DEFAULT */
  .detik-drawer-overlay,
  #wafa-detik-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 999998 !important;
    display: none !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }
  .detik-drawer-overlay.open,
  #wafa-detik-overlay.open {
    display: block !important;
  }

  /* Drawer Container - 100% HIDDEN OFF-SCREEN ON LOAD */
  .detik-mobile-drawer,
  #wafa-detik-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 86vw !important;
    max-width: 360px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(-110%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .detik-mobile-drawer.open,
  #wafa-detik-drawer.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25) !important;
  }

  .detik-drawer-inner {
    padding: 16px 16px 40px;
  }

  /* Top Bar */
  .detik-drawer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
  }
  .detik-drawer-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .detik-drawer-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .detik-drawer-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
  }
  .detik-drawer-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* User Profile Box */
  .detik-drawer-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 14px;
    margin-bottom: 14px;
  }
  .user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  .user-avatar-circle .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .user-meta-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .user-greeting-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-auth-links-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
  }
  .user-auth-action {
    color: #004b90;
    text-decoration: none;
  }
  .user-logout-action {
    color: #ef4444;
    text-decoration: none;
  }

  /* Quick Navigation Strip (4 items) */
  .detik-drawer-quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
  }
  .quick-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 6px;
  }
  .quick-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
  }
  .quick-strip-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
  }

  .bg-detik-main { background: #004b90; }
  .bg-detik-pop  { background: #0284c7; }
  .bg-detik-write{ background: #8b5cf6; }
  .bg-detik-tv   { background: #ef4444; }

  /* Sections in Drawer */
  .detik-drawer-section {
    padding-top: 16px;
  }
  .detik-drawer-section-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Dynamic WP Nav Menu inside Drawer */
  .detik-drawer-wp-menu {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 6px;
  }
  .detik-drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .detik-drawer-nav-list > li {
    border-bottom: 1px solid #f8fafc;
  }
  .detik-drawer-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .detik-drawer-nav-list > li > a:hover,
  .detik-drawer-nav-list > li > a:active {
    background: #f1f5f9;
    color: #004b90;
  }
  .detik-drawer-nav-list .sub-menu {
    list-style: none;
    padding-left: 14px;
    margin: 0 0 6px;
    background: #f8fafc;
    border-radius: 6px;
  }
  .detik-drawer-nav-list .sub-menu li a {
    display: block;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
  }

  /* Dynamic Categories 2-Column Grid */
  .detik-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 6px;
    padding-bottom: 12px;
  }
  .detik-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.15s ease;
    min-width: 0;
  }
  .detik-grid-item:hover,
  .detik-grid-item:active {
    background: #eef2ff;
    border-color: #cbd5e1;
  }
  .grid-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    text-transform: uppercase;
  }
  .grid-item-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }
  .grid-item-count {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: #ffffff;
    padding: 1px 5px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
  }

  /* ==========================================================================
     DETIK.COM STYLE MOBILE FOOTER
     ========================================================================== */
  /* Indeks Berita Button */
  .detik-indeks-btn-wrap {
    display: block !important;
    text-align: center;
    padding: 20px 16px;
  }
  .detik-indeks-btn {
    display: inline-block;
    background: #ff5722; /* Detik Orange */
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 36px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .detik-indeks-btn:active {
    transform: scale(0.97);
    background: #e64a19;
  }

  /* Mobile Footer */
  .detik-mobile-footer {
    display: block !important;
    background: #eef2f6;
    border-top: 3px solid #004b90; /* Detik Blue Top Border */
    padding: 30px 16px 24px;
    text-align: center;
  }
  .detik-footer-strip {
    height: 0;
  }
  .detik-mf-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .detik-mf-brand .detik-mf-logo-link {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-block;
  }
  .detik-mf-brand .logo-wafa {
    color: #004b90;
  }
  .detik-mf-brand .logo-pro {
    color: #e11d48;
  }

  .detik-mf-subbrand {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .wafanetwork-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #004b90;
  }

  /* Policy Links */
  .detik-mf-links {
    margin: 22px 0 20px;
    font-size: 13px;
    line-height: 1.8;
  }
  .detik-mf-links-row {
    color: #475569;
  }
  .detik-mf-links-row a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
  }
  .detik-mf-links-row a:hover {
    color: #004b90;
  }
  .dot-sep {
    margin: 0 4px;
    color: #94a3b8;
  }

  /* 7 Social Media Round Icons */
  .detik-mf-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 24px;
  }
  .detik-soc-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
  }
  .detik-soc-btn:active {
    transform: scale(0.92);
  }
  .soc-wa { background: #25d366; }
  .soc-fb { background: #1877f2; }
  .soc-x  { background: #000000; }
  .soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
  .soc-in { background: #0a66c2; }
  .soc-yt { background: #ff0000; }
  .soc-tt { background: #000000; }

  /* App Download Label & Badges */
  .detik-mf-app-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
  }
  .detik-mf-app-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .detik-store-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
    text-align: left;
    border: 1px solid #1e293b;
    min-width: 110px;
  }
  .store-pill-labels {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .store-pill-labels small {
    font-size: 8px;
    text-transform: uppercase;
    color: #cbd5e1;
    letter-spacing: 0.3px;
  }
  .store-pill-labels strong {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
  }

  /* Copyright */
  .detik-mf-copyright {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 14px;
  }
}

/* ==========================================================================
   WAFAPRO MODERN COMMENTS STYLES
   ========================================================================== */
.wafapro-modern-comments-area {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.comments-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.comments-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #004b90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.comments-count-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

/* Comment List */
.wafapro-modern-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.wafapro-comment-item {
  margin-bottom: 20px;
}

.wafapro-comment-body {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wafapro-comment-body:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.wafapro-comment-avatar {
  flex-shrink: 0;
}

.comment-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wafapro-comment-content-wrap {
  flex: 1;
  min-width: 0;
}

.wafapro-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-author-name,
.comment-author-name a {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.badge-post-author {
  background: #004b90;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.comment-date-time {
  font-size: 12.5px;
  color: #94a3b8;
}

.comment-text-content {
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 12px;
}

.comment-action-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.comment-action-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #004b90;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.comment-action-links a:hover {
  background: #004b90;
  color: #ffffff;
  border-color: #004b90;
}

/* Nested Replies */
.wafapro-modern-comment-list .children {
  list-style: none;
  padding-left: 36px;
  margin-top: 16px;
  border-left: 2px solid #e2e8f0;
}

/* Comment Form */
#respond {
  margin-top: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.comment-reply-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cancel-comment-reply-link {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fee2e2;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.comment-field-item {
  margin-bottom: 16px;
}

.comment-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.field-required {
  color: #ef4444;
}

.comment-input-wrap input[type="text"],
.comment-input-wrap input[type="email"],
.comment-input-wrap input[type="url"],
.comment-input-wrap textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.comment-input-wrap input:focus,
.comment-input-wrap textarea:focus {
  outline: none;
  border-color: #004b90;
  box-shadow: 0 0 0 3px rgba(0, 75, 144, 0.12);
}

.comment-form-cookies-consent {
  margin-bottom: 18px;
}

.comment-form-cookies-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

.btn-modern-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #004b90 0%, #003366 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 75, 144, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-modern-comment-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 75, 144, 0.35);
}

.btn-modern-comment-submit:active {
  transform: translateY(0);
}

/* Dark mode adjustments for comments & Detik drawer/mobile */
body.dark-mode .detik-mobile-header {
  background: #0f172a;
  border-color: #1e293b;
}
body.dark-mode .detik-hamburger-btn,
body.dark-mode .detik-action-btn {
  color: #f1f5f9;
}
body.dark-mode .detik-mobile-cats {
  background: #0f172a;
  border-color: #1e293b;
}
body.dark-mode .detik-cat-item {
  color: #cbd5e1;
}
body.dark-mode .detik-cat-item.active {
  color: #38bdf8;
}
body.dark-mode .detik-mobile-drawer {
  background: #090d16;
  color: #f1f5f9;
}
body.dark-mode .detik-drawer-user-box {
  background: #111827;
  border-color: #1f2937;
}
body.dark-mode .user-greeting-title,
body.dark-mode .detik-drawer-section-title,
body.dark-mode .grid-item-text {
  color: #f1f5f9;
}
body.dark-mode .quick-strip-label {
  color: #94a3b8;
}
body.dark-mode .detik-mobile-footer {
  background: #090d16;
  border-top-color: #004b90;
}
body.dark-mode .detik-mf-links-row,
body.dark-mode .detik-mf-links-row a,
body.dark-mode .detik-mf-subbrand,
body.dark-mode .detik-mf-app-label,
body.dark-mode .detik-mf-copyright {
  color: #94a3b8 !important;
}
body.dark-mode .wafapro-modern-comments-area,
body.dark-mode #respond {
  background: #090d16;
  border-color: #1e293b;
}
body.dark-mode .comments-header-title,
body.dark-mode .comment-reply-title,
body.dark-mode .comment-author-name,
body.dark-mode .comment-field-label {
  color: #f1f5f9;
}
body.dark-mode .wafapro-comment-body {
  background: #111827;
  border-color: #1f2937;
}
body.dark-mode .comment-text-content {
  color: #cbd5e1;
}
body.dark-mode .comment-input-wrap input,
body.dark-mode .comment-input-wrap textarea {
  background: #111827;
  border-color: #374151;
  color: #f1f5f9;
}

@media (max-width: 640px) {
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
  .wafapro-modern-comment-list .children {
    padding-left: 18px;
  }
}
