/*
Theme Name: Revisi News Theme
Author: Gerhana
Version: 1.0.0
Text Domain: revisinews
Description: Tema portal berita modern ala Bola.com dengan font Roboto & nuansa merah profesional.
*/

/* ==========================================
   1. IMPORT FONT ROBOTO & RESET DASAR
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #0f172a;
  background-color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #c81e1e !important;
}

.wp-block-post-title a {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  line-height: 1.25;
}

.wp-block-post-featured-image img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.rn-header-logo .wp-block-site-title {
  display: none !important;
}

/* ==========================================
   2. HEADER BOLA.COM STYLE (MERAH #c81e1e)
   ========================================== */
.rn-header-top ul,
.rn-nav-bar ul,
.rn-ticker-bar ul,
.rn-nav-container ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rn-header-top li,
.rn-nav-bar li,
.rn-ticker-bar li,
.rn-nav-container li {
  list-style: none !important;
  margin: 0 !important;
}

/* Baris 1: Top Bar Putih */
.rn-header-top {
  background-color: #ffffff;
  padding: 10px 20px;
  border-bottom: 2px solid #e2e8f0;
}

.rn-header-top-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.rn-logo-text {
  color: #c81e1e !important;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.rn-logo-text span {
  color: #0f172a;
}

.rn-header-search-desktop {
  flex: 1;
  max-width: 360px;
  margin-left: 20px;
}

.rn-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.rn-search-form input {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 40px 8px 16px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.rn-search-form input:focus {
  border-color: #c81e1e;
  background-color: #ffffff;
}

.rn-search-form button {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.rn-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rn-date-display {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.rn-icon-btn {
  background: transparent;
  border: none;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
}

.rn-mobile-only { display: none; }

.rn-mobile-search-container {
  display: none;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.rn-mobile-search-container.active { display: block; }

/* Baris 2: Navigasi Kategori Merah Solid */
.rn-nav-bar {
  background-color: #c81e1e;
  padding: 0 20px;
  box-shadow: 0 4px 12px rgba(200, 30, 30, 0.2);
}

.rn-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.rn-nav-container::-webkit-scrollbar { display: none; }

.rn-nav-container ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
}

.rn-nav-container li a {
  display: inline-block;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 13.5px;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.rn-nav-container li a:hover {
  background-color: #a71d1d;
  border-bottom-color: #ffffff;
}

/* Baris 3: Ticker Breaking News */
.rn-ticker-bar {
  background-color: #ffffff;
  padding: 6px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.rn-ticker-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.rn-ticker-label {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 900;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rn-ticker-content {
  overflow: hidden;
  flex: 1;
}

.rn-ticker-content ul {
  display: inline-flex !important;
  gap: 30px !important;
  white-space: nowrap;
  animation: rn-marquee 25s linear infinite;
}

.rn-ticker-content ul:hover { animation-play-state: paused; }

.rn-ticker-content li {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

@keyframes rn-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================
   3. HERO SECTION & LAYOUT GRID
   ========================================== */
.rn-main-container {
  max-width: 1240px;
  margin: 20px auto;
  padding: 0 20px;
}

.rn-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 25px;
}

/* Section Title dengan Bar Merah di Kiri khas Bola.com */
.rn-section-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
  padding-left: 12px;
  border-left: 5px solid #c81e1e;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.rn-hero-section { margin-bottom: 30px; }

.rn-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.rn-hero-card {
  position: relative !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  height: 384px !important;
  background-color: #0f172a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rn-hero-img-wrap,
.rn-hero-img-wrap figure,
.rn-hero-img-wrap a {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
}

.rn-hero-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s ease-in-out !important;
}

.rn-hero-card:hover .rn-hero-img-wrap img {
  transform: scale(1.05) !important;
}

.rn-hero-overlay-content {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.7) 45%, rgba(0, 0, 0, 0) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 20px !important;
  z-index: 10 !important;
}

.rn-hero-badge {
  margin-bottom: 8px !important;
}

.rn-hero-badge a {
  display: inline-block !important;
  background-color: #c81e1e !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px;
}

.rn-hero-overlay-content h3 {
  margin: 0 !important;
  padding: 0 !important;
}

.rn-hero-overlay-content h3 a {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4 Kartu Samping Hero */
.rn-hero-sub .rn-sub-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.rn-sub-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 184px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-sub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.rn-sub-img {
  height: 110px;
  width: 100%;
  overflow: hidden;
}

.rn-sub-img img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.rn-sub-card:hover .rn-sub-img img {
  transform: scale(1.06);
}

.rn-sub-content { padding: 10px; }

.rn-sub-content h4 { margin: 0 !important; }

.rn-sub-content h4 a {
  font-size: 12.5px !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================
   4. GRID BERITA TERBARU (3 KOLOM)
   ========================================== */
.rn-latest-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.rn-news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rn-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.rn-card-img {
  overflow: hidden;
  height: 155px;
}

.rn-card-img img {
  height: 155px !important;
  width: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.rn-news-card:hover .rn-card-img img {
  transform: scale(1.06);
}

.rn-card-body { padding: 14px; }

.rn-card-body h4 a {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

/* ==========================================
   5. POPULAR NEWS (#1 HERO RED & #2-#5 LIST)
   ========================================== */
.rn-sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rn-widget {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.rn-widget-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 4px solid #c81e1e;
  margin: 0 0 16px 0;
  color: #0f172a;
}

.rn-popular-custom-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.rn-popular-custom-list > li:first-child .rn-popular-list-body { display: none !important; }

.rn-popular-custom-list > li:first-child .rn-popular-hero-media {
  display: block !important;
  position: relative !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  height: 200px !important;
  background-color: #0f172a;
}

.rn-popular-custom-list > li:first-child .rn-popular-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.rn-popular-custom-list > li:first-child:hover .rn-popular-hero-media img {
  transform: scale(1.05);
}

.rn-popular-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(185, 28, 28, 0.98) 0%, rgba(200, 30, 30, 0.85) 50%, rgba(15, 23, 42, 0.4) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 14px !important;
  z-index: 5;
}

.rn-popular-hero-rank {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.rn-popular-hero-content h4 { margin: 0 !important; }

.rn-popular-hero-content h4 a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-popular-custom-list > li:not(:first-child) .rn-popular-hero-media { display: none !important; }

.rn-popular-custom-list > li:not(:first-child) {
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.rn-popular-custom-list > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rn-popular-custom-list > li:not(:first-child) .rn-popular-list-body {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.rn-popular-custom-list > li:not(:first-child) .rn-popular-num {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #94a3b8 !important;
  line-height: 1 !important;
  width: 28px !important;
  flex-shrink: 0;
  padding-top: 2px;
}

.rn-popular-custom-list > li:nth-child(2) .rn-popular-num::before { content: '#2'; }
.rn-popular-custom-list > li:nth-child(3) .rn-popular-num::before { content: '#3'; }
.rn-popular-custom-list > li:nth-child(4) .rn-popular-num::before { content: '#4'; }
.rn-popular-custom-list > li:nth-child(5) .rn-popular-num::before { content: '#5'; }

.rn-popular-text h4 { margin: 0 !important; }

.rn-popular-text h4 a {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-popular-meta {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
}

.rn-ad-placeholder {
  background: #e2e8f0;
  height: 250px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================
   6. BREADCRUMB 1 BARIS SEJAJAR
   ========================================== */
div.rn-breadcrumb-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 13px !important;
  margin-bottom: 15px !important;
  clear: both !important;
}

div.rn-breadcrumb-row a.rn-bc-home {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #475569 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

div.rn-breadcrumb-row .rn-home-icon {
  display: inline-flex !important;
  align-items: center !important;
  width: 14px !important;
  height: 14px !important;
}

div.rn-breadcrumb-row .rn-home-icon svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
}

div.rn-breadcrumb-row span.separator {
  flex-shrink: 0 !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  user-select: none !important;
}

div.rn-breadcrumb-row a.breadcrumb-category,
div.rn-breadcrumb-row .breadcrumb-category a {
  flex-shrink: 0 !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  text-decoration: none !important;
}

div.rn-breadcrumb-row a.breadcrumb-category:hover {
  text-decoration: underline !important;
}

div.rn-breadcrumb-row span.breadcrumb-title {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #64748b !important;
}

/* ==========================================
   7. COMPACT META HEADER SINGLE PAGE
   ========================================== */
.rn-single-meta-box {
  display: flex;
  flex-direction: column;
  gap: 6px !important;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px !important;
  margin-bottom: 16px !important;
}

.rn-meta-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rn-author-profile {
  display: flex;
  align-items: center;
  gap: 6px !important;
}

.rn-written-label {
  font-size: 12.5px !important;
  color: #64748b;
  font-weight: 600;
}

.rn-author-avatar-name {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.rn-author-avatar-name img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.rn-author-avatar-name a {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.rn-category-badge a {
  background-color: #c81e1e !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}

.rn-meta-row-2 {
  display: flex;
  align-items: center;
  gap: 6px !important;
  font-size: 12px !important;
  color: #64748b;
  font-weight: 600;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  padding: 5px 0 !important;
}

.rn-meta-date,
.rn-meta-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rn-meta-dot { color: #cbd5e1; }

.rn-meta-row-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.rn-share-group {
  display: flex;
  align-items: center;
  gap: 6px !important;
}

.rn-share-label {
  font-size: 12px !important;
  font-weight: 800;
  color: #0f172a;
  margin-right: 2px;
}

.rn-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.rn-share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.rn-btn-fb, .rn-btn-wa {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
}

.rn-btn-fb { background-color: #1877f2 !important; }
.rn-btn-wa { background-color: #25d366 !important; }

.rn-btn-copy {
  background-color: #0f172a !important;
  height: 28px !important;
  padding: 0 10px !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.rn-font-resizer-inline {
  display: flex;
  align-items: center;
  gap: 3px !important;
}

.rn-font-resizer-inline button {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  height: 28px;
  transition: all 0.2s ease !important;
}

.rn-font-resizer-inline button:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* ==========================================
   8. TAGS BERITA & LINK ARSIP
   ========================================== */
.rn-post-footer-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 14px 18px !important;
  margin-top: 30px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}

.rn-single-tags {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 0 !important;
}

.rn-tags-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: 0.5px !important;
}

.rn-wp-tags, 
.wp-block-post-terms {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  font-size: 0 !important;
}

.rn-wp-tags a,
.wp-block-post-terms a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e40af !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rn-wp-tags a:hover,
.wp-block-post-terms a:hover {
  background: #1e40af !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25) !important;
}

/* Layout Grid Halaman Tag Archives */
.rn-tag-archive-container .rn-latest-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
}

/* ==========================================
   9. FOOTER UTAMA
   ========================================== */
.rn-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 40px 20px 20px 20px;
  border-top: 4px solid #c81e1e;
  margin-top: 40px;
}

.rn-footer-inner { max-width: 1240px; margin: 0 auto; }

.rn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
  margin-bottom: 35px;
}

.rn-footer-logo-text { font-size: 24px; font-weight: 900; color: #ffffff !important; }
.rn-footer-logo-text span { color: #c81e1e; }

.rn-footer-desc { font-size: 13px; line-height: 1.6; margin: 12px 0 16px 0; color: #94a3b8; }

.rn-footer-title { font-size: 15px; font-weight: 800; color: #ffffff; margin: 0 0 15px 0; text-transform: uppercase; }

.rn-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rn-footer-links a { color: #cbd5e1 !important; font-size: 13px; }

.rn-newsletter-form { display: flex; flex-direction: column; gap: 8px; }

.rn-newsletter-form input {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 9px 12px;
  color: #ffffff;
}

.rn-newsletter-form button {
  background-color: #c81e1e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.rn-newsletter-form button:hover {
  background-color: #a71d1d;
}

.rn-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.rn-legal-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  gap: 15px;
}

/* ==========================================
   10. RESPONSIF MOBILE
   ========================================== */
@media screen and (max-width: 900px) {
  .rn-main-grid { grid-template-columns: 1fr; }
  .rn-hero-grid { grid-template-columns: 1fr; }
  .rn-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
  .rn-tag-archive-container .rn-latest-grid {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 640px) {
  .rn-header-search-desktop, .rn-date-display { display: none; }
  .rn-mobile-only { display: flex; }
  .rn-main-container { padding: 0 12px; }
  .rn-hero-card { height: 260px !important; }
  .rn-hero-overlay-content h3 a { font-size: 17px !important; }

  .rn-hero-sub .rn-sub-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .rn-sub-card {
    flex-direction: row !important;
    height: auto !important;
    align-items: center;
    padding: 8px;
  }
  .rn-sub-img {
    width: 110px !important;
    height: 80px !important;
    flex-shrink: 0;
    border-radius: 6px;
  }
  .rn-sub-content { padding: 0 0 0 12px !important; }

  .rn-latest-grid { grid-template-columns: 1fr !important; }
  .rn-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .rn-footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}

/* ==========================================
   11. DARK MODE
   ========================================== */
body.dark-mode {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode .rn-header-top,
body.dark-mode .rn-ticker-bar,
body.dark-mode .rn-sub-card,
body.dark-mode .rn-news-card,
body.dark-mode .rn-widget,
body.dark-mode .rn-post-footer-box {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .rn-logo-text span,
body.dark-mode .rn-section-title,
body.dark-mode .rn-widget-title,
body.dark-mode .rn-sub-content h4 a,
body.dark-mode .rn-card-body h4 a,
body.dark-mode .rn-popular-text h4 a,
body.dark-mode .rn-tags-title {
  color: #f8fafc !important;
}

body.dark-mode .rn-footer {
  background-color: #020617;
}