/*
Theme Name: RMxtra
Theme URI: https://rmxtra.com
Author: RMxtra
Author URI: https://rmxtra.com
Description: A clean, premium Real Madrid fanbase news & updates theme. Built for passionate Madridistas.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rmxtra
Tags: news, magazine, real-madrid, football, sports, featured-images, custom-menu, widgets, sidebar
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  /* Real Madrid Brand Colors */
  --rm-white:       #FFFFFF;
  --rm-off-white:   #F8F8F6;
  --rm-cream:       #F2F0EB;
  --rm-gold:        #C9A84C;
  --rm-gold-light:  #E8C96A;
  --rm-gold-dark:   #A07830;
  --rm-navy:        #0A1628;
  --rm-navy-mid:    #1A2F52;
  --rm-navy-light:  #2A4070;
  --rm-gray-100:    #F5F5F5;
  --rm-gray-200:    #E8E8E8;
  --rm-gray-300:    #D0D0D0;
  --rm-gray-500:    #8A8A8A;
  --rm-gray-700:    #444444;
  --rm-gray-900:    #1A1A1A;

  /* Typography */
  --font-display:   'Playfair Display', 'Georgia', serif;
  --font-heading:   'Barlow Condensed', 'Impact', sans-serif;
  --font-body:      'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --container-max:  1280px;
  --content-max:    860px;
  --sidebar-width:  320px;
  --gap:            28px;

  /* Effects */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(10,22,40,0.08);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.12);
  --shadow-lg:  0 12px 40px rgba(10,22,40,0.16);
  --shadow-xl:  0 24px 64px rgba(10,22,40,0.20);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rm-gray-900);
  background: var(--rm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-inner {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--rm-white);
  border-bottom: 1px solid var(--rm-gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--rm-navy);
  padding: var(--space-xs) 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.header-top .live-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--rm-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.header-main {
  padding: var(--space-md) 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

/* Constrain uploaded custom logo image */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img,
.custom-logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; display: block; }

.site-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 44px; height: 44px;
  background: var(--rm-navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rm-navy) 50%, var(--rm-gold) 50%);
}

.logo-icon svg { position: relative; z-index: 1; }

.site-title-text { display: flex; flex-direction: column; line-height: 1; }
.site-title-text .rm { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--rm-navy); letter-spacing: -0.02em; text-transform: uppercase; }
.site-title-text .xtra { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--rm-gold); letter-spacing: -0.02em; text-transform: uppercase; }

.site-tagline { font-size: 0.68rem; color: var(--rm-gray-500); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

/* Search bar in header */
.header-search { flex: 1; max-width: 380px; }

.header-search form { position: relative; }

.header-search input {
  width: 100%;
  padding: 10px var(--space-md);
  padding-right: 44px;
  border: 1.5px solid var(--rm-gray-200);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--rm-gray-900);
  background: var(--rm-gray-100);
  transition: var(--transition);
  outline: none;
}

.header-search input:focus {
  border-color: var(--rm-gold);
  background: var(--rm-white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.header-search button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--rm-gray-500); transition: var(--transition);
}
.header-search button:hover { color: var(--rm-gold); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

.btn-subscribe {
  background: var(--rm-gold);
  color: var(--rm-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px var(--space-md);
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-subscribe:hover { background: var(--rm-gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Navigation */
.site-navigation { border-top: 1px solid var(--rm-gray-100); }

.nav-inner { display: flex; align-items: center; justify-content: flex-end; }
.nav-inner .menu-toggle { margin-right: var(--space-sm); }

.primary-menu { display: flex; align-items: center; }

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

.primary-menu > li > a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-gray-700);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
  color: var(--rm-navy);
  border-bottom-color: var(--rm-gold);
}

/* Dropdown */
.primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--rm-white);
  border: 1px solid var(--rm-gray-200);
  border-top: 2px solid var(--rm-gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 999;
}

.primary-menu > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.primary-menu .sub-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--rm-gray-700);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.primary-menu .sub-menu li a:hover {
  color: var(--rm-navy);
  background: var(--rm-gray-100);
  border-left-color: var(--rm-gold);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--rm-navy); border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   CATEGORY PILL LABELS
   ========================================================= */
.cat-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--rm-gold);
  color: var(--rm-navy);
}

.cat-label.transfers { background: #3B82F6; color: #fff; }
.cat-label.match-report { background: var(--rm-navy); color: var(--rm-gold); }
.cat-label.injury { background: #EF4444; color: #fff; }
.cat-label.tactical { background: #8B5CF6; color: #fff; }
.cat-label.official { background: #10B981; color: #fff; }

/* =========================================================
   BREAKING NEWS TICKER
   ========================================================= */
.news-ticker {
  background: var(--rm-navy);
  color: var(--rm-white);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner { display: flex; align-items: center; gap: var(--space-lg); }

.ticker-label {
  flex-shrink: 0;
  background: var(--rm-gold);
  color: var(--rm-navy);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 12px;
  border-radius: 100px;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track::before, .ticker-track::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1;
}
.ticker-track::before { left: 0; background: linear-gradient(to right, var(--rm-navy), transparent); }
.ticker-track::after { right: 0; background: linear-gradient(to left, var(--rm-navy), transparent); }

.ticker-items {
  display: flex; align-items: center; gap: var(--space-2xl);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

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

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

.ticker-item {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.ticker-item::before {
  content: '★';
  color: var(--rm-gold);
  font-size: 0.6rem;
}

/* =========================================================
   HERO — FEATURED POST
   ========================================================= */
.hero-section { background: var(--rm-off-white); padding: var(--space-xl) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap);
  align-items: start;
}

/* Main hero post */
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-main-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-main-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-main:hover .hero-main-image img { transform: scale(1.04); }

.hero-main-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.3) 50%, transparent 100%);
}

.hero-main-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-xl);
}

.hero-meta { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.hero-meta time { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--rm-white);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

.hero-main:hover .hero-main-title { color: var(--rm-gold-light); }

.hero-main-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-read-more {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rm-gold-light);
  transition: gap var(--transition);
}

.hero-read-more:hover { gap: var(--space-sm); }

/* Secondary hero posts */
.hero-secondary { display: flex; flex-direction: column; gap: var(--space-md); }

.hero-side-card {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--space-md);
  background: var(--rm-white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--rm-gray-200);
}

.hero-side-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.hero-side-image {
  position: relative; overflow: hidden;
}

.hero-side-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-side-card:hover .hero-side-image img { transform: scale(1.06); }

.hero-side-content {
  padding: var(--space-md);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-xs);
}

.hero-side-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rm-navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.hero-side-card:hover .hero-side-title { color: var(--rm-gold-dark); }

.hero-side-meta { font-size: 0.75rem; color: var(--rm-gray-500); }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--rm-gray-200);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--rm-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-navy);
  display: flex; align-items: center; gap: var(--space-sm);
}

.section-title-icon { color: var(--rm-gold); font-size: 1rem; }

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rm-gold-dark);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}

.view-all-link:hover { gap: 8px; }

/* =========================================================
   POST GRID
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.post-card {
  background: var(--rm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rm-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex; flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--rm-gray-300);
}

.post-card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img { transform: scale(1.06); }

.post-card-image .cat-label { position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: 1; }

.post-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }

.post-card-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.75rem; color: var(--rm-gray-500); }

.post-card-meta .author { font-weight: 600; color: var(--rm-gray-700); }
.post-card-meta .sep { color: var(--rm-gray-300); }

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rm-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
  flex: 1;
}

.post-card:hover .post-card-title { color: var(--rm-gold-dark); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--rm-gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--rm-gray-100);
  display: flex; align-items: center; justify-content: space-between;
}

.post-card-footer .read-time { font-size: 0.75rem; color: var(--rm-gray-500); }

.post-card-footer .read-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-navy);
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}

.post-card-footer .read-link:hover { color: var(--rm-gold-dark); gap: 8px; }

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.content-area { min-width: 0; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }

.widget-block {
  background: var(--rm-white);
  border: 1px solid var(--rm-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  background: var(--rm-navy);
  padding: var(--space-sm) var(--space-md);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rm-gold);
  display: flex; align-items: center; gap: var(--space-sm);
}

.widget-body { padding: var(--space-md); }

/* Sidebar: Recent Posts */
.sidebar-post-list { display: flex; flex-direction: column; gap: var(--space-md); }

.sidebar-post-item { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-sm); align-items: start; }

.sidebar-post-thumb {
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; width: 72px;
}

.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.sidebar-post-item:hover .sidebar-post-thumb img { transform: scale(1.1); }

.sidebar-post-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rm-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.sidebar-post-item:hover .sidebar-post-title { color: var(--rm-gold-dark); }
.sidebar-post-date { font-size: 0.72rem; color: var(--rm-gray-500); margin-top: 3px; }

/* Sidebar: Standings Table */
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.standings-table th { font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rm-gray-500); padding: 6px 4px; border-bottom: 1px solid var(--rm-gray-200); text-align: center; }
.standings-table th:first-child { text-align: left; padding-left: 0; }
.standings-table td { padding: 7px 4px; border-bottom: 1px solid var(--rm-gray-100); text-align: center; color: var(--rm-gray-700); }
.standings-table td:first-child { text-align: left; padding-left: 0; }
.standings-table .team-cell { display: flex; align-items: center; gap: var(--space-xs); }
.standings-table .team-pos { width: 18px; font-weight: 700; color: var(--rm-gray-500); }
.standings-table .team-name { font-weight: 600; color: var(--rm-navy); }
.standings-table tr.highlight-rm td { background: rgba(201,168,76,0.08); }
.standings-table tr.highlight-rm .team-name { color: var(--rm-gold-dark); font-weight: 800; }
.standings-table .pts { font-weight: 800; color: var(--rm-navy); }

/* Sidebar: Next Match */
.next-match-card {
  background: linear-gradient(135deg, var(--rm-navy), var(--rm-navy-light));
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--rm-white);
  text-align: center;
}

.next-match-competition { font-size: 0.72rem; font-weight: 600; color: var(--rm-gold-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.next-match-teams { display: flex; align-items: center; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.next-match-team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.next-match-badge { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.next-match-team-name { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.vs-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--rm-gold); }
.next-match-info { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.next-match-countdown { display: flex; gap: var(--space-sm); justify-content: center; margin-top: var(--space-sm); }
.countdown-unit { background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 6px 10px; text-align: center; }
.countdown-num { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--rm-gold); line-height: 1; }
.countdown-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Sidebar: Tags / Categories */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag-pill {
  display: inline-block; padding: 5px 12px;
  border: 1.5px solid var(--rm-gray-200); border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; color: var(--rm-gray-700);
  transition: var(--transition);
}
.tag-pill:hover { background: var(--rm-navy); color: var(--rm-white); border-color: var(--rm-navy); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-xs); margin-top: var(--space-2xl);
}

.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--rm-gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700;
  color: var(--rm-gray-700); transition: var(--transition);
}

.page-link:hover, .page-link.active {
  background: var(--rm-navy); color: var(--rm-white);
  border-color: var(--rm-navy);
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-header { padding: var(--space-xl) 0; background: var(--rm-off-white); }

.single-post-header .post-meta { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); font-size: 0.85rem; color: var(--rm-gray-500); }
.single-post-header .post-meta a { font-weight: 600; color: var(--rm-navy); }

.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--rm-navy);
  line-height: 1.2;
  max-width: var(--content-max);
  margin-bottom: var(--space-md);
}

.post-featured-image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); margin-bottom: var(--space-xl);
  aspect-ratio: 16/7;
}

.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--rm-gray-700);
  max-width: var(--content-max);
}

.post-content h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--rm-navy); margin: var(--space-xl) 0 var(--space-md); }
.post-content h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--rm-navy); text-transform: uppercase; letter-spacing: 0.04em; margin: var(--space-lg) 0 var(--space-sm); }
.post-content p { margin-bottom: var(--space-md); }
.post-content a { color: var(--rm-gold-dark); border-bottom: 1px solid var(--rm-gold-light); transition: var(--transition); }
.post-content a:hover { color: var(--rm-navy); border-bottom-color: var(--rm-navy); }
.post-content blockquote { border-left: 4px solid var(--rm-gold); padding: var(--space-md) var(--space-lg); background: var(--rm-cream); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--rm-navy); margin: var(--space-xl) 0; }

/* =========================================================
   AUTHOR BOX
   ========================================================= */
.author-box {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--space-md);
  background: var(--rm-off-white); border-radius: var(--radius-md);
  padding: var(--space-lg); margin-top: var(--space-2xl);
  border: 1px solid var(--rm-gray-200);
}

.author-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--rm-gold); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--rm-navy); text-transform: uppercase; letter-spacing: 0.04em; }
.author-role { font-size: 0.78rem; color: var(--rm-gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.author-bio { font-size: 0.9rem; color: var(--rm-gray-500); margin-top: var(--space-sm); line-height: 1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--rm-navy); color: var(--rm-white); }

.footer-main { padding: var(--space-3xl) 0 var(--space-2xl); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); }

.footer-brand .footer-logo-text { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: var(--space-sm); }
.footer-brand .footer-logo-text span { color: var(--rm-gold); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rm-gold); margin-bottom: var(--space-md); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul a:hover { color: var(--rm-white); padding-left: 4px; }

.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-icon:hover { background: var(--rm-gold); color: var(--rm-navy); transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: var(--space-lg) 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: var(--space-md); }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--rm-gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-secondary { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 900px) {
  .site-inner { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero-secondary { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .primary-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--rm-white); border-bottom: 2px solid var(--rm-gold); flex-direction: column; padding: var(--space-sm); box-shadow: var(--shadow-lg); }
  .primary-menu.open { display: flex; }
  .primary-menu > li > a { border-bottom: none; border-left: 2px solid transparent; padding: var(--space-sm) var(--space-md); }
  .primary-menu > li.current-menu-item > a, .primary-menu > li > a:hover { border-left-color: var(--rm-gold); }
  .author-box { grid-template-columns: 1fr; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .sidebar, .site-footer, .news-ticker { display: none; }
  .site-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER — SIMPLIFIED TWO-COLUMN LAYOUT
   ========================================================= */

/* Override the default 4-col grid with a clean 2-col layout */
.footer-grid--simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Quick Links column heading */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rm-gold);
    margin-bottom: var(--space-md);
}

/* Footer nav menu list — clean, no bullets */
.footer-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-menu li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-nav-menu li a:hover {
    color: var(--rm-gold);
}

/* Bottom bar — updated links match new pages */
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--rm-gold);
}

/* Mobile: stack to single column */
@media (max-width: 640px) {
    .footer-grid--simple {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FOOTER — THREE-COLUMN LAYOUT
   ========================================================= */

.footer-grid--three {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* --- Recent Posts column --- */
.footer-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-recent-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.footer-recent-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.footer-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.footer-recent-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.footer-recent-title:hover {
    color: var(--rm-gold);
}

.footer-recent-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.footer-no-posts {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive: 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
    .footer-grid--three {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid--three {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: auto;
    }
}

/* =========================================================
   FOOTER — FOUR-COLUMN LAYOUT
   ========================================================= */

.footer-grid--four {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1.4fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .footer-grid--four {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .footer-grid--four {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   COMMENTS — STYLED TO MATCH THEME
   ========================================================= */

.comments-area {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--rm-gray-100);
}

.comments-title,
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rm-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
}

.comment-list .comment {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--rm-gray-100);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--rm-navy);
    font-size: 0.9rem;
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--rm-gray-500);
    margin-top: 2px;
    margin-bottom: var(--space-sm);
}

.comment-content p {
    font-size: 0.9rem;
    color: var(--rm-gray-700, #374151);
    line-height: 1.65;
    margin: 0;
}

.reply a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rm-gold-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment form */
.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rm-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--rm-gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--rm-navy);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rm-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.comment-form p {
    margin-bottom: var(--space-md);
}

.comment-form .form-submit {
    margin-top: var(--space-md);
}

.comment-form input[type="submit"],
#submit {
    background: var(--rm-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.comment-form input[type="submit"]:hover,
#submit:hover {
    background: var(--rm-gold-dark, #a8893a);
    transform: translateY(-1px);
}

/* Logged-in notice */
.comment-notes,
.logged-in-as {
    font-size: 0.82rem;
    color: var(--rm-gray-500);
    margin-bottom: var(--space-md);
}

/* =========================================================
   SPORTSPRESS — HIDE sp_table DEBUG TEXT & STYLE WIDGETS
   ========================================================= */

/* Hide the raw "sp_table" debug text that leaks out */
.sp-template-event-blocks .sp-table-caption,
.sp-table-caption,
[class*="sp_table"],
.sp-template + p:empty {
    display: none !important;
}

/* Style the SportsPress event/fixture card to match theme */
.sp-event-blocks,
.sp-template-event-blocks {
    border: 1px solid var(--rm-gray-100) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: var(--rm-white) !important;
    box-shadow: var(--shadow-sm) !important;
    font-family: var(--font-body) !important;
}

.sp-event-blocks table,
.sp-template-event-blocks table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.sp-event-blocks td,
.sp-event-blocks th,
.sp-template-event-blocks td,
.sp-template-event-blocks th {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    color: var(--rm-navy) !important;
    border-bottom: 1px solid var(--rm-gray-100) !important;
    font-family: var(--font-body) !important;
}

.sp-event-blocks th,
.sp-template-event-blocks th {
    background: var(--rm-navy) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* The site logo/card block shown in the sidebar */
.sp-widget-style,
.widget_sportspress,
.widget_sp_event {
    border: 1px solid var(--rm-gray-100) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding: var(--space-md) !important;
    background: var(--rm-white) !important;
    text-align: center !important;
}

.sp-widget-style img,
.widget_sportspress img {
    max-width: 80px !important;
    border-radius: 50% !important;
    margin-bottom: var(--space-sm) !important;
}

.sp-widget-style p,
.widget_sportspress p {
    font-size: 0.85rem !important;
    color: var(--rm-gray-500) !important;
    line-height: 1.5 !important;
}

.sp-widget-style a,
.widget_sportspress a {
    color: var(--rm-navy) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.sp-widget-style a:hover,
.widget_sportspress a:hover {
    color: var(--rm-gold-dark) !important;
}

/* =========================================================
   COMMENTS — TARGETED STYLES (overrides browser defaults)
   ========================================================= */

.rmx-comments-wrap {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--rm-gray-100);
}

.rmx-comment-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rm-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 var(--space-md);
}

.rmx-comment-note,
.rmx-logged-in {
    font-size: 0.82rem;
    color: var(--rm-gray-500);
    margin-bottom: var(--space-lg);
}

.rmx-logged-in strong { color: var(--rm-navy); }
.rmx-logged-in a { color: var(--rm-gold-dark, #a8893a); }

/* Textarea and inputs */
.rmx-comment-input,
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--rm-gray-200) !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: var(--rm-navy) !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
}

.rmx-comment-input:focus,
.comment-form-comment textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    outline: none !important;
    border-color: var(--rm-gold) !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
}

.comment-form label {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--rm-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
}

/* Submit button */
.rmx-submit-btn,
#submit,
.comment-form input[type="submit"] {
    background: var(--rm-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    display: inline-block !important;
    margin-top: var(--space-sm) !important;
}

.rmx-submit-btn:hover,
#submit:hover,
.comment-form input[type="submit"]:hover {
    background: var(--rm-gold-dark, #a8893a) !important;
    transform: translateY(-1px) !important;
}

.comment-form p { margin-bottom: var(--space-md); }

/* =========================================================
   COMMENT FORM — FULL OVERRIDE (targets WP default IDs/classes)
   ========================================================= */

#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e8eaf0;
}

#comments h2,
#reply-title {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--rm-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 1.2rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--rm-gold) !important;
    display: inline-block !important;
}

/* Logged in / notes text */
#comments .logged-in-as,
#comments .comment-notes {
    font-size: 0.82rem !important;
    color: #6b7280 !important;
    margin-bottom: 1.2rem !important;
    background: #f4f6f9 !important;
    border-left: 3px solid var(--rm-gold) !important;
    padding: 8px 14px !important;
    border-radius: 0 6px 6px 0 !important;
}

#comments .logged-in-as a {
    color: var(--rm-navy) !important;
    font-weight: 600 !important;
}

/* Form field wrappers */
#commentform p {
    margin-bottom: 1rem !important;
}

/* All labels */
#commentform label {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--rm-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 5px !important;
}

/* Textarea */
#comment {
    display: block !important;
    width: 100% !important;
    min-height: 140px !important;
    padding: 12px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: var(--rm-navy) !important;
    background: #ffffff !important;
    resize: vertical !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#comment:focus {
    outline: none !important;
    border-color: var(--rm-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
}

/* Text / email / url inputs */
#author,
#email,
#url {
    display: block !important;
    width: 100% !important;
    padding: 11px 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: var(--rm-navy) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#author:focus,
#email:focus,
#url:focus {
    outline: none !important;
    border-color: var(--rm-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
}

/* Submit button */
#submit {
    background: var(--rm-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 36px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
}

#submit:hover {
    background: var(--rm-gold-dark, #a8893a) !important;
    transform: translateY(-2px) !important;
}

/* Existing comment list items */
.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem !important;
}

.comment-list article {
    background: #f4f6f9 !important;
    border-radius: 10px !important;
    padding: 1rem 1.2rem !important;
    margin-bottom: 1rem !important;
    border-left: 3px solid var(--rm-gold) !important;
}

.comment-author .fn {
    font-weight: 700 !important;
    color: var(--rm-navy) !important;
    font-size: 0.9rem !important;
}

.comment-metadata,
.comment-metadata a {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    text-decoration: none !important;
}

.comment-content p {
    font-size: 0.9rem !important;
    color: #374151 !important;
    line-height: 1.65 !important;
    margin: 0.5rem 0 0 !important;
}

.reply a {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--rm-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
}

.reply a:hover {
    color: var(--rm-gold-dark, #a8893a) !important;
}

/* =========================================================
   MOBILE — RELATED POSTS: 1 CARD PER ROW
   Only affects the inline style grid on single.php related section
   ========================================================= */
@media (max-width: 640px) {
    /* Related stories grid on single post */
    .posts-grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    /* Post card title — larger, more readable on mobile */
    .post-card-title {
        font-size: 1rem !important;
        -webkit-line-clamp: 2 !important;
    }

    /* Post card meta date — stop wrapping */
    .post-card-meta {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    /* Post card footer read time — clean layout */
    .post-card-footer {
        padding: var(--space-sm) var(--space-md) !important;
    }

    .post-card-footer .read-time {
        white-space: nowrap !important;
    }
}

/* =========================================================
   SIDEBAR WIDGET BODY — NEAT TYPOGRAPHY
   ========================================================= */

/* Widget body padding */
.widget-body {
    padding: var(--space-md) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    color: var(--rm-gray-700, #374151) !important;
}

/* Newsletter/subscribe text inside widget */
.widget-body p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: #374151 !important;
    margin-bottom: 0.6rem !important;
}

/* Subscribe link arrow */
.widget-body a[href*="newsletter"],
.widget-body a[href*="subscribe"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-family: var(--font-heading) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--rm-navy) !important;
    border-bottom: 2px solid var(--rm-gold) !important;
    padding-bottom: 1px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    margin-top: 4px !important;
}

.widget-body a[href*="newsletter"]:hover,
.widget-body a[href*="subscribe"]:hover {
    color: var(--rm-gold-dark, #a8893a) !important;
}

/* Most Read numbered list items */
.rmx-popular-item {
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--rm-gray-100) !important;
}

.rmx-popular-item:last-child {
    border-bottom: none !important;
}

.rmx-pop-num {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #d1d5db !important;
    min-width: 30px !important;
    flex-shrink: 0 !important;
}

.rmx-pop-title {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: var(--rm-navy) !important;
    line-height: 1.4 !important;
}

.rmx-pop-meta {
    font-size: 0.72rem !important;
    color: #9ca3af !important;
    margin-top: 3px !important;
}

.rmx-popular-item:hover .rmx-pop-title {
    color: var(--rm-gold-dark, #a8893a) !important;
}

/* =========================================================
   RELATED POSTS GRID — RESPONSIVE
   ========================================================= */
.posts-grid--related {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .posts-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .posts-grid--related {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RMxtra SIDEBAR WIDGETS — SHARED SHELL
   ========================================================= */
.rmx-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 0;
}

.rmx-widget-title {
    background: #1a1a2e;
    color: #c9a84c;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
    padding: 10px 16px;
}

.rmx-popular-list,
.rmx-fixture-list {
    padding: 4px 16px 8px;
}

/* ===== ABOUT WIDGET ===== */
.rmx-widget--about {
    text-align: center;
    padding: 20px 16px;
}

.rmx-about-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.rmx-widget--about p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
}

.rmx-about-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rmx-about-links a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6C1D9C;
    text-decoration: none;
    transition: color 0.2s;
}

.rmx-about-links a:hover {
    color: #a8893a;
}

/* =========================================================
   UPCOMING FIXTURES WIDGET HEADER — FIX DARK TEXT ON DARK BG
   ========================================================= */

/* SportsPress widget title override */
.widget h3,
.widget h2,
.widget-title,
#secondary h3,
#secondary h2 {
    background: #1a1a2e !important;
    color: #c9a84c !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    margin: 0 !important;
    padding: 10px 16px !important;
}

/* SportsPress fixture card rows */
.sp-event-blocks .sp-event,
.sp-template-event-blocks .sp-event {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    padding: 10px 14px !important;
}

.sp-event-blocks .col-event,
.sp-event-blocks .col-event a {
    font-weight: 700 !important;
    color: #1a1a2e !important;
    font-size: 0.86rem !important;
    text-decoration: none !important;
}

.sp-event-blocks .col-status {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

.sp-event-blocks .col-date,
.sp-event-blocks .col-time {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

/* =========================================================
   PAGINATION — FIXED
   ========================================================= */
.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 2rem 0 !important;
    flex-wrap: wrap !important;
}

.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: all 0.2s !important;
}

.pagination .page-numbers:hover {
    background: #1a1a2e !important;
    color: #ffffff !important;
    border-color: #1a1a2e !important;
}

.pagination .page-numbers.current {
    background: #1a1a2e !important;
    color: #ffffff !important;
    border-color: #1a1a2e !important;
}

.pagination .page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: #9ca3af !important;
}
