/*
Theme Name: RMNEWS
Stylesheet: Main Frontend Styles
===================================================== */

:root {
  --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: 20px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #111;
  text-transform: uppercase;
}

.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: 2px;
}

.header-search {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
}

.search-pill-form {
  position: relative;
  width: 100%;
}

.search-pill-input {
  width: 100%;
  height: 42px;
  background: #f1f3f4;
  border: 1px solid transparent;
  border-radius: var(--rm-radius-full);
  padding: 0 44px 0 20px;
  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: 6px;
  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-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;
}

.main-column {
  min-width: 0;
}

.sidebar-column {
  min-width: 0;
}

/* =====================================================
   HERO HEADLINE & 4-SUB-FEATURED GRID
===================================================== */
.lead-hero-card {
  position: relative;
  border-radius: var(--rm-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1f2937;
  box-shadow: var(--rm-shadow-sm);
}

.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) 30%, rgba(0,0,0,0.85) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.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: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.lead-hero-title a:hover {
  color: #fca5a5;
}

.lead-hero-meta {
  font-size: 12px;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots-indicator {
  display: flex;
  gap: 4px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  background: #ffffff;
}

/* 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
===================================================== */
.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);
}

.rmnews-ad-box .ad-disclaimer {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9ca3af;
  text-transform: uppercase;
  background: #fdfdfd;
  padding: 2px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rmnews-ad-box .ad-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  overflow: hidden;
}

.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 {
  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-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 {
    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;
  }
}
