/*
Theme Name: Crownee FC
Theme URI: https://crowneefc.com
Author: Crownee FC
Author URI: https://crowneefc.com
Description: World-class professional football club website theme for Crownee FC. Features match schedules, player profiles, news, AdSense-ready ad zones, and full mobile responsiveness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crowneefc
Tags: football, sports, blog, responsive, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   CROWNEE FC — DESIGN SYSTEM
   ============================================================ */

/* Fonts loaded via <link> in header.php for better performance */

:root {
  /* Brand Colors */
  --cfc-navy:       #0a1628;
  --cfc-navy-mid:   #112240;
  --cfc-navy-light: #1a3460;
  --cfc-gold:       #e8a020;
  --cfc-gold-light: #f5c450;
  --cfc-gold-dark:  #b57d10;
  --cfc-white:      #ffffff;
  --cfc-off-white:  #f8f9fb;
  --cfc-gray-100:   #f1f3f7;
  --cfc-gray-200:   #e2e6ed;
  --cfc-gray-300:   #c8d0dc;
  --cfc-gray-400:   #8899b0;
  --cfc-gray-500:   #5a6b82;
  --cfc-gray-600:   #3d4f64;
  --cfc-text:       #1a2332;
  --cfc-text-muted: #5a6b82;
  --cfc-green:      #1a8c4e;
  --cfc-red:        #c0392b;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Barlow', sans-serif;

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

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(10,22,40,0.10);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.14);
  --shadow-lg:  0 8px 32px rgba(10,22,40,0.18);
  --shadow-xl:  0 16px 48px rgba(10,22,40,0.22);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ============================================================
   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-weight: 400;
  color: var(--cfc-text);
  background: var(--cfc-off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cfc-navy);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--space-md); line-height: 1.75; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ============================================================
   TOP BAR
   ============================================================ */
.site-topbar {
  background: var(--cfc-navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-family: var(--font-body);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.topbar-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  transition: var(--transition);
}
.topbar-social a:hover {
  background: var(--cfc-gold);
  color: var(--cfc-navy);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: var(--cfc-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img,
.site-logo .custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cfc-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-name span { color: var(--cfc-gold); }
.logo-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cfc-gray-400);
  font-weight: 500;
  margin-top: 2px;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--cfc-gold);
  background: rgba(255,255,255,0.06);
}
.nav-menu > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--cfc-gold);
  border-radius: 2px;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--cfc-navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}
.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
}
.nav-menu .sub-menu a:hover {
  background: rgba(232,160,32,0.12);
  color: var(--cfc-gold);
}

/* Search Button */
.header-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  margin-left: var(--space-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}
.header-search-btn:hover {
  background: var(--cfc-gold);
  color: var(--cfc-navy);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cfc-white);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO / BANNER SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--cfc-navy);
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #112240 40%, #0f2035 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,160,32,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,52,96,0.8) 0%, transparent 50%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0;
}
.hero-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--cfc-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cfc-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--cfc-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: var(--space-lg);
}
.hero-title .accent { color: var(--cfc-gold); display: block; }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cfc-gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 600;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  width: 100%;
}
.hero-match-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.match-label {
  font-size: 0.7rem;
  color: var(--cfc-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.match-team { text-align: center; flex: 1; }
.match-team-badge {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--cfc-gold);
}
.match-team-name { font-size: 0.8rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.match-vs {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
}
.match-score-live {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--cfc-gold);
  text-align: center;
  letter-spacing: 0.05em;
}
.match-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  border-color: var(--cfc-gold);
}
.btn-primary:hover {
  background: var(--cfc-gold-light);
  border-color: var(--cfc-gold-light);
  color: var(--cfc-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--cfc-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cfc-white);
  color: var(--cfc-white);
}
.btn-navy {
  background: var(--cfc-navy);
  color: var(--cfc-white);
  border-color: var(--cfc-navy);
}
.btn-navy:hover {
  background: var(--cfc-navy-light);
  border-color: var(--cfc-navy-light);
  color: var(--cfc-white);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cfc-gold);
  margin-bottom: var(--space-sm);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cfc-gold);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cfc-navy);
  font-weight: 700;
  line-height: 1.1;
}
.section-title.light { color: var(--cfc-white); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cfc-gold);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  white-space: nowrap;
}
.section-link:hover { gap: 10px; color: var(--cfc-gold); }

/* ============================================================
   ADSENSE AD ZONES
   ============================================================ */
.ad-zone {
  background: var(--cfc-gray-100);
  border: 1px dashed var(--cfc-gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ad-zone::before {
  content: 'Advertisement';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--cfc-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.ad-zone-leaderboard { width: 100%; height: 90px; margin: var(--space-lg) 0; }
.ad-zone-rectangle  { width: 100%; height: 250px; }
.ad-zone-inline     { width: 100%; min-height: 90px; margin: var(--space-xl) 0; }
.ad-zone-sidebar    { width: 100%; height: 600px; }

/* ============================================================
   TICKER / BREAKING NEWS
   ============================================================ */
.news-ticker {
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
  flex-shrink: 0;
  background: var(--cfc-navy);
  color: var(--cfc-gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  margin-right: var(--space-lg);
  border-radius: 3px;
}
.ticker-content {
  overflow: hidden;
  flex: 1;
}
.ticker-track {
  display: flex;
  gap: var(--space-2xl);
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
}
.ticker-dot {
  width: 4px; height: 4px;
  background: var(--cfc-navy);
  border-radius: 50%;
  opacity: 0.4;
}

/* ============================================================
   FEATURED NEWS — HERO LAYOUT
   ============================================================ */
.featured-news {
  padding: var(--space-2xl) 0;
  background: var(--cfc-white);
}
.featured-news-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
}
.featured-article {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cfc-navy);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.featured-article-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.featured-article:hover .featured-article-img { transform: scale(1.04); }
.featured-article-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.4) 50%, transparent 100%);
}
.featured-article-body {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
}
.featured-article-cat {
  display: inline-block;
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: var(--space-md);
}
.featured-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--cfc-white);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}
.featured-article-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.article-meta .meta-sep { opacity: 0.3; }

/* Side Articles */
.side-articles { display: flex; flex-direction: column; gap: var(--space-md); }
.side-article {
  display: flex;
  gap: var(--space-md);
  background: var(--cfc-white);
  border: 1px solid var(--cfc-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.side-article:hover {
  border-color: var(--cfc-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.side-article-img {
  width: 110px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--cfc-gray-100);
  min-height: 90px;
}
.side-article-body { padding: var(--space-md); flex: 1; min-width: 0; }
.side-article-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cfc-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.side-article-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cfc-navy);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-article-date { font-size: 0.75rem; color: var(--cfc-text-muted); }

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.article-grid-section {
  padding: var(--space-2xl) 0;
  background: var(--cfc-off-white);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.article-card {
  background: var(--cfc-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cfc-gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.article-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cfc-gray-100);
}
.article-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img { transform: scale(1.06); }
.article-card-cat {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.article-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cfc-navy);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.article-card:hover .article-card-title { color: var(--cfc-gold-dark); }
.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--cfc-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--cfc-gray-100);
  font-size: 0.78rem;
  color: var(--cfc-text-muted);
}
.read-more-link {
  color: var(--cfc-gold-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.read-more-link:hover { color: var(--cfc-gold); gap: 8px; }

/* ============================================================
   MATCH SECTION
   ============================================================ */
.match-section {
  padding: var(--space-2xl) 0;
  background: var(--cfc-navy);
  position: relative;
  overflow: hidden;
}
.match-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(232,160,32,0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(26,52,96,0.5) 0%, transparent 40%);
  pointer-events: none;
}
.match-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: var(--radius-lg);
  width: fit-content;
}
.match-tab {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.match-tab.active {
  background: var(--cfc-gold);
  color: var(--cfc-navy);
}
.match-tab:hover:not(.active) { color: rgba(255,255,255,0.85); }

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}
.match-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}
.match-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,160,32,0.3);
  transform: translateY(-3px);
}
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.match-status {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.match-status.live { background: rgba(192,57,43,0.25); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.match-status.upcoming { background: rgba(26,140,78,0.2); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.match-status.finished { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.match-fixture {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.match-team-block { flex: 1; text-align: center; }
.match-club-logo {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--cfc-gold);
  overflow: hidden;
}
.match-club-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-team-label { font-size: 0.82rem; color: rgba(255,255,255,0.8); font-weight: 600; }

.match-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.match-score-display {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--cfc-white);
  line-height: 1;
  letter-spacing: 0.05em;
}
.match-score-display.live-score { color: var(--cfc-gold); }
.match-time-display { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   PLAYERS SECTION
   ============================================================ */
.players-section {
  padding: var(--space-2xl) 0;
  background: var(--cfc-white);
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.player-card {
  background: var(--cfc-off-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--cfc-gray-200);
  transition: var(--transition);
  cursor: pointer;
}
.player-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--cfc-gold);
}
.player-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, var(--cfc-navy-light) 0%, var(--cfc-navy) 100%);
  overflow: hidden;
}
.player-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.player-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
}
.player-position-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.player-card-body { padding: var(--space-lg); }
.player-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cfc-navy);
  margin-bottom: 2px;
}
.player-nationality { font-size: 0.8rem; color: var(--cfc-text-muted); margin-bottom: var(--space-md); }
.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  border-top: 1px solid var(--cfc-gray-200);
  padding-top: var(--space-md);
}
.player-stat { text-align: center; }
.player-stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--cfc-gold-dark);
  line-height: 1;
}
.player-stat-label { font-size: 0.65rem; color: var(--cfc-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ============================================================
   STANDINGS TABLE
   ============================================================ */
.standings-section {
  padding: var(--space-2xl) 0;
  background: var(--cfc-off-white);
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cfc-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.standings-table thead {
  background: var(--cfc-navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.standings-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
}
.standings-table thead th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.standings-table tbody tr {
  border-bottom: 1px solid var(--cfc-gray-100);
  transition: var(--transition);
}
.standings-table tbody tr:hover { background: var(--cfc-gray-100); }
.standings-table tbody tr.highlight { background: rgba(232,160,32,0.06); }
.standings-table tbody tr.highlight td { font-weight: 600; }
.standings-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--cfc-text);
}
.standings-table td:not(:first-child):not(:nth-child(2)) { text-align: center; }
.position-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--cfc-gray-400);
}
.team-cell { display: flex; align-items: center; gap: var(--space-sm); }
.team-cell-logo {
  width: 28px; height: 28px;
  background: var(--cfc-gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--cfc-navy);
  overflow: hidden;
  flex-shrink: 0;
}
.team-cell-logo img { width: 100%; height: 100%; object-fit: cover; }
.pts-cell {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--cfc-navy);
}
.form-pills { display: flex; gap: 3px; justify-content: center; }
.form-pill {
  width: 18px; height: 18px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cfc-white);
}
.form-pill.w { background: var(--cfc-green); }
.form-pill.d { background: var(--cfc-gray-400); }
.form-pill.l { background: var(--cfc-red); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }
.sidebar-widget {
  background: var(--cfc-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cfc-gray-200);
}
.widget-title {
  background: var(--cfc-navy);
  color: var(--cfc-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
}
.widget-body { padding: var(--space-lg); }
.recent-post-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cfc-gray-100);
  cursor: pointer;
  transition: var(--transition);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:hover .recent-post-title { color: var(--cfc-gold-dark); }
.recent-post-thumb {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--cfc-gray-100);
  flex-shrink: 0;
}
.recent-post-info { flex: 1; min-width: 0; }
.recent-post-cat { font-size: 0.65rem; color: var(--cfc-gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.recent-post-title { font-size: 0.82rem; font-weight: 600; color: var(--cfc-navy); line-height: 1.35; transition: var(--transition); }
.recent-post-date { font-size: 0.72rem; color: var(--cfc-text-muted); margin-top: 3px; }
.category-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cfc-gray-100);
  transition: var(--transition);
  cursor: pointer;
}
.category-list-item:last-child { border-bottom: none; }
.category-list-item:hover span:first-child { color: var(--cfc-gold-dark); }
.category-list-item span:first-child { font-size: 0.875rem; font-weight: 500; transition: var(--transition); }
.category-count {
  background: var(--cfc-gray-100);
  color: var(--cfc-gray-500);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--cfc-gold);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px; height: 400px;
  background: rgba(10,22,40,0.08);
  border-radius: 50%;
}
.newsletter-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.newsletter-text .section-title { color: var(--cfc-navy); }
.newsletter-text p { color: rgba(10,22,40,0.7); margin-top: 8px; }
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex: 1;
  max-width: 500px;
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(10,22,40,0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: var(--transition);
}
.newsletter-input:focus {
  border-color: var(--cfc-navy);
  background: var(--cfc-white);
}
.newsletter-input::placeholder { color: var(--cfc-gray-400); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: var(--space-2xl) 0;
  background: var(--cfc-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-xl); }
.contact-item { display: flex; gap: var(--space-lg); align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(232,160,32,0.12);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--cfc-gold-dark);
}
.contact-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--cfc-navy); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item p { font-size: 0.9rem; color: var(--cfc-text-muted); }
.social-links-row { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid var(--cfc-gray-200);
  color: var(--cfc-gray-500);
}
.social-link:hover { background: var(--cfc-navy); border-color: var(--cfc-navy); color: var(--cfc-white); transform: translateY(-3px); }
.contact-form { background: var(--cfc-off-white); border-radius: var(--radius-xl); padding: var(--space-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--cfc-navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cfc-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--cfc-white);
  color: var(--cfc-text);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--cfc-gold); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
.form-control::placeholder { color: var(--cfc-gray-300); }
textarea.form-control { resize: vertical; min-height: 140px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cfc-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about { }
.footer-logo-wrap { margin-bottom: var(--space-md); }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cfc-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-logo-text span { color: var(--cfc-gold); }
.footer-desc { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--cfc-gold); color: var(--cfc-navy); transform: translateY(-3px); }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cfc-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--cfc-gold);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--cfc-gold); padding-left: 4px; }
.footer-links a::before { content: '›'; opacity: 0.4; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-legal a:hover { color: var(--cfc-gold); }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.post-hero {
  background: var(--cfc-navy);
  padding: var(--space-2xl) 0 0;
  position: relative;
  overflow: hidden;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}
.post-breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.post-breadcrumb a:hover { color: var(--cfc-gold); }
.post-breadcrumb span { opacity: 0.3; }
.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--cfc-white);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: var(--space-lg);
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-bottom: var(--space-xl);
}
.post-author { display: flex; align-items: center; gap: var(--space-sm); }
.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cfc-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--cfc-navy);
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.post-meta-item { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.post-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: var(--space-xl);
}

/* Post content */
.post-content-wrap {
  padding: var(--space-2xl) 0;
  background: var(--cfc-white);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cfc-text);
}
.post-content p { margin-bottom: 1.6em; }
.post-content h2 { font-size: 1.7rem; margin: 2em 0 0.8em; color: var(--cfc-navy); }
.post-content h3 { font-size: 1.35rem; margin: 1.8em 0 0.6em; color: var(--cfc-navy); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.6em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 4px solid var(--cfc-gold);
  padding: var(--space-lg) var(--space-xl);
  background: var(--cfc-gray-100);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2em 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cfc-gray-600);
}
.post-content img {
  border-radius: var(--radius-lg);
  margin: 2em 0;
  width: 100%;
}
.post-content a { color: var(--cfc-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--cfc-gold); }
.post-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.95rem; }
.post-content table th { background: var(--cfc-navy); color: var(--cfc-white); padding: 12px 16px; text-align: left; }
.post-content table td { padding: 10px 16px; border-bottom: 1px solid var(--cfc-gray-200); }
.post-content table tr:hover td { background: var(--cfc-gray-100); }

/* Post Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--cfc-gray-200); }
.post-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--cfc-gray-100);
  color: var(--cfc-gray-600);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.post-tag:hover { background: var(--cfc-gold); color: var(--cfc-navy); }

/* Related Posts */
.related-posts {
  background: var(--cfc-off-white);
  padding: var(--space-2xl) 0;
}

/* ============================================================
   PAGE HERO (Generic)
   ============================================================ */
.page-hero {
  background: var(--cfc-navy);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,160,32,0.07) 0%, transparent 70%);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--cfc-white);
  text-transform: uppercase;
  position: relative;
}
.page-hero-title span { color: var(--cfc-gold); }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-md);
  position: relative;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.95);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-form-wrap { width: 100%; max-width: 680px; padding: 0 var(--space-lg); }
.search-input-large {
  width: 100%;
  padding: 20px 24px;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  color: var(--cfc-white);
  outline: none;
}
.search-input-large::placeholder { color: rgba(255,255,255,0.35); }
.search-input-large:focus { border-color: var(--cfc-gold); }
.search-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.search-close:hover { color: var(--cfc-gold); transform: rotate(90deg); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px; height: 44px;
  background: var(--cfc-gold);
  color: var(--cfc-navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
  z-index: 500;
  border: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--cfc-gold-light); transform: translateY(-3px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1.5px solid var(--cfc-gray-200);
  color: var(--cfc-gray-600);
}
.pagination .current, .pagination a:hover {
  background: var(--cfc-gold);
  border-color: var(--cfc-gold);
  color: var(--cfc-navy);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold   { color: var(--cfc-gold); }
.text-navy   { color: var(--cfc-navy); }
.text-muted  { color: var(--cfc-text-muted); }
.text-white  { color: var(--cfc-white); }
.text-center { text-align: center; }
.bg-navy     { background: var(--cfc-navy); }
.bg-gold     { background: var(--cfc-gold); }
.bg-white    { background: var(--cfc-white); }
.mb-0  { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .featured-news-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .contact-grid  { grid-template-columns: 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; grid-template-columns: 1fr 1fr; display: grid; }
  .standings-table .hide-tablet { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-xl:  28px;
    --space-2xl: 48px;
  }
  .container, .container-wide, .container-narrow { padding: 0 var(--space-md); }

  /* Header */
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cfc-navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: var(--space-xl);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-menu { flex-direction: column; align-items: center; gap: var(--space-sm); }
  .nav-menu > li > a { font-size: 1.2rem; padding: var(--space-md) var(--space-xl); }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.05);
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
  }
  .site-topbar { display: none; }

  /* Hero */
  .hero-section { min-height: auto; padding: var(--space-2xl) 0; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .article-grid    { grid-template-columns: 1fr; }
  .players-grid    { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .matches-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .sidebar         { grid-template-columns: 1fr; display: flex; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* Newsletter */
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { flex-direction: column; max-width: 100%; width: 100%; }
  .newsletter-input, .newsletter-form .btn { width: 100%; }

  /* Match tabs */
  .match-tabs { width: 100%; }
  .match-tab { flex: 1; text-align: center; }

  /* Table */
  .standings-table .hide-mobile { display: none; }
  .standings-table td, .standings-table th { padding: 10px 8px; font-size: 0.8rem; }

  /* Topbar */
  .topbar-left .hide-mobile { display: none; }

  /* Back to top */
  .back-to-top { bottom: var(--space-lg); right: var(--space-md); }
}

@media (max-width: 480px) {
  .players-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat-num { font-size: 1.6rem; }
  .match-score-display { font-size: 1.8rem; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 var(--space-lg) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-lg); }
.aligncenter { display: block; margin: 0 auto var(--space-md); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--cfc-text-muted); margin-top: 6px; font-style: italic; }
.sticky {}
.bypostauthor {}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin: var(--space-xl) 0; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }

.wp-block-image { margin: 2em 0; }
.wp-block-quote { border-left: 4px solid var(--cfc-gold); padding: var(--space-lg) var(--space-xl); background: var(--cfc-gray-100); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: 2em 0; font-style: italic; }

/* Comment form */
.comments-area { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--cfc-gray-200); }
.comments-title { font-size: 1.4rem; margin-bottom: var(--space-xl); }
.comment-list { margin: 0; padding: 0; }
.comment { padding: var(--space-lg) 0; border-bottom: 1px solid var(--cfc-gray-100); }
.comment-author .avatar { border-radius: 50%; margin-right: var(--space-sm); }
.comment-metadata { font-size: 0.8rem; color: var(--cfc-text-muted); margin-top: 4px; }
.comment-content p { margin-bottom: var(--space-sm); }
.reply a { font-size: 0.8rem; color: var(--cfc-gold-dark); font-weight: 700; }
#respond { margin-top: var(--space-xl); }
.comment-form-cookies-consent { font-size: 0.85rem; }
.comment-form-cookies-consent input { margin-right: 8px; }

/* Print */
@media print {
  .site-topbar, .site-header, .news-ticker, .newsletter-section, .site-footer, .back-to-top, .ad-zone { display: none; }
  body { font-size: 12pt; }
}

/* ============================================================
   WORDPRESS: SUPPRESS PAGE TITLE ON FRONT PAGE
   ============================================================ */
.home .page-header,
.home .entry-header,
.home .page-title,
.home .entry-title,
.front-page .page-header,
.home h1.page-title,
.home .wp-block-post-title {
  display: none !important;
}

/* Fix: custom logo inside the constrained wrapper */
.site-logo .custom-logo-link {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.site-logo .custom-logo-link img,
.site-logo .custom-logo {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}

/* ============================================================
   TICKER LINKS — inherit nav gold on hover
   ============================================================ */
.ticker-item:hover { opacity: 0.85; }

/* ============================================================
   "HOME" PAGE TITLE — hide it (WordPress sometimes renders this)
   ============================================================ */
body.home main > .container > .page-header,
body.home .entry-header .entry-title,
body.home .page-header .page-title { display: none !important; }

/* ============================================================
   CRITICAL OVERRIDES — Fix WP Rocket / plugin conflicts
   ============================================================ */

/* Force hero dark background regardless of cache */
.hero-section,
.hero-section .hero-bg {
  background-color: #0a1628 !important;
}

/* Force hero title white text — overrides any theme conflicts */
.hero-title,
.hero-title *,
h1.hero-title {
  color: #ffffff !important;
  text-shadow: none !important;
}
.hero-title .accent { color: #e8a020 !important; }

/* Force hero subtitle visible */
.hero-subtitle { color: rgba(255,255,255,0.65) !important; }

/* Fix header always dark navy */
.site-header,
header.site-header {
  background-color: #0a1628 !important;
}

/* Fix logo — force small circular logo, no overflow */
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img,
a.site-logo img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
.site-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Footer logo — same constrained size */
.site-footer .custom-logo-link img,
.site-footer .custom-logo,
.footer-logo-wrap img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Fix WP Rocket stripping position:relative from hero content */
.hero-content { position: relative !important; z-index: 2 !important; }
.hero-bg, .hero-pattern, .hero-grid-lines { z-index: 0 !important; }

/* Ensure hero section stretches full width */
.hero-section { width: 100% !important; }

/* Fix "Best Gear Picks" button outline visibility on dark bg */
.btn-outline {
  border-color: rgba(255,255,255,0.5) !important;
  color: #ffffff !important;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #ffffff !important;
}

/* Fix matches section dark bg not showing */
.match-section {
  background-color: #0a1628 !important;
}

/* Fix newsletter gold bg */
.newsletter-section {
  background-color: #e8a020 !important;
}

/* Ensure page-hero dark bg shows on inner pages */
.page-hero {
  background-color: #0a1628 !important;
}

/* WP Rocket sometimes adds margin-top to main — reset */
main#content { margin-top: 0 !important; padding-top: 0 !important; }

/* Fix admin bar offset on sticky header */
.admin-bar .site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px !important; }
}

/* ============================================================
   CWV PERFORMANCE — LCP + CLS + INP OPTIMIZATIONS
   ============================================================ */

/* Prevent CLS: All images get explicit aspect-ratio containers */
img { height: auto; }
.article-card-img-wrap { aspect-ratio: 16/9; contain: layout style; }
.player-card-img-wrap  { aspect-ratio: 3/4;  contain: layout style; }
.featured-article      { aspect-ratio: auto;  contain: layout; }
.side-article-img      { width: 110px; min-height: 90px; aspect-ratio: 11/9; flex-shrink: 0; }
.recent-post-thumb     { width: 64px; height: 52px; aspect-ratio: 64/52; flex-shrink: 0; }

/* Prevent CLS: Reserve space for ad zones before they load */
.ad-zone-wrap,
.ad-zone-header-wrap { min-height: 90px; }
.ad-zone-sidebar-wrap { min-height: 250px; }
.ad-zone-leaderboard  { min-height: 90px; width: 100%; }
.ad-zone-rectangle    { min-height: 250px; width: 100%; }
.ad-zone-inline       { min-height: 90px; width: 100%; }

/* LCP: Hero section — force immediate paint, no transitions on hero-bg */
.hero-section { content-visibility: auto; contain-intrinsic-size: 0 85vh; }
.hero-bg { will-change: auto; }
.hero-title { text-rendering: optimizeSpeed; }

/* INP: Reduce input latency — offload non-critical transitions */
.article-card,
.player-card,
.side-article,
.match-card {
  will-change: transform;
  contain: layout style;
}

/* INP: Touch targets minimum 44x44px */
.btn,
.nav-menu > li > a,
.menu-toggle,
.header-search-btn,
.back-to-top,
.match-tab {
  min-height: 44px;
  touch-action: manipulation;
}

/* CLS: Font display swap fallback dimensions */
@font-face {
  font-family: 'Barlow Condensed';
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: 'Oswald';
  font-display: swap;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Barlow';
  font-display: swap;
}

/* Reduce layout shift from Font Awesome icons */
.fas, .fab, .far {
  display: inline-block;
  width: 1em;
  text-align: center;
}

/* Contact page responsive */
@media (max-width: 768px) {
  .contact-item { flex-direction: column; gap: var(--space-sm); }
  details { padding: var(--space-md) var(--space-lg); }
}

/* Hero grid — fix responsive */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-visual { display: none; }
}

/* Improve readability: line-height, paragraph spacing */
.post-content p,
.featured-article-excerpt,
.article-card-excerpt,
.hero-subtitle {
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* Better contrast for text on light backgrounds */
.side-article-title { color: var(--cfc-navy); font-weight: 600; }
.recent-post-title  { color: var(--cfc-navy); font-weight: 600; }
.article-card-title a { color: var(--cfc-navy); }
.article-card-title a:hover { color: var(--cfc-gold-dark); }

/* Ticker performance — GPU-composited animation */
.ticker-track {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Match tabs - improved touch targets */
.match-tabs { flex-wrap: wrap; }
.match-tab { min-width: 100px; min-height: 44px; }

/* Contact page grid responsive */
@media (max-width: 768px) {
  /* Contact info + form stack */
  .container > div[style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent overflow on hero title on very small screens */
@media (max-width: 360px) {
  .hero-title { font-size: 2.2rem; }
}

/* INP: Remove expensive CSS properties from interaction paths */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .hero-scroll-indicator,
  .hero-tag::before {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   TARGETED FIXES — All issues from screenshots
   ============================================================ */

/* FIX 1: Hero title — too large, accent stacking vertically */
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
  line-height: 1.1 !important;
}
.hero-title .accent {
  display: inline !important;
  color: #e8a020 !important;
}

/* FIX 2: Logo name visible on all bg */
.logo-name {
  color: #ffffff !important;
  font-size: 1.2rem !important;
}
.logo-tagline {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.58rem !important;
}

/* FIX 3: Benefits section — description text was missing */
.benefit-desc, .benefits-desc {
  color: rgba(255,255,255,0.55) !important;
  display: block !important;
  font-size: 0.875rem !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* FIX 4: Footer logo — constrain the blue crown icon */
.site-footer .custom-logo-link,
.site-footer .custom-logo-link img,
.footer-logo-wrap .custom-logo-link img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
.footer-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

/* FIX 5: Health & Wellness — hide from topics sidebar */
.category-list-item[href*="health"],
.category-list-item[href*="wellness"] {
  display: none !important;
}

/* FIX 6: Matches section — show both tabs properly */
.match-tabs {
  display: flex !important;
  gap: 6px !important;
}
.match-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* FIX 7: Hero scroll indicator — position fix */
.hero-scroll-indicator {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
}

/* FIX 8: Article grid images — proper aspect ratio */
.article-card-img-wrap {
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  background: var(--cfc-gray-100) !important;
}
.article-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* FIX 9: Contact CTA buttons — better contrast */
.contact-cta-section .btn-navy {
  background: var(--cfc-navy) !important;
  color: #fff !important;
  border: 2px solid var(--cfc-navy) !important;
}
.contact-cta-section .btn-primary {
  background: var(--cfc-gold) !important;
  color: var(--cfc-navy) !important;
}

/* FIX 10: Footer recent articles thumbnails */
.footer-about a img {
  width: 52px !important;
  height: 40px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

/* FIX 11: Header — sticky stays dark, no transparency issues */
.site-header {
  background: #0a1628 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* FIX 12: Featured article — image positioning */
.featured-article {
  min-height: 420px !important;
  overflow: hidden !important;
}
.featured-article-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* FIX 13: Side articles layout */
.side-article {
  display: flex !important;
  gap: 12px !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
.side-article-img {
  width: 100px !important;
  min-height: 80px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* FIX 14: Benefits section paragraph text — was hidden */
.benefits-section p,
section[style*="cfc-navy"] p {
  color: rgba(255,255,255,0.6) !important;
}

/* FIX 15: General readability improvements */
.article-card-title { font-size: 1rem !important; line-height: 1.4 !important; }
.article-card-excerpt { font-size: 0.875rem !important; line-height: 1.65 !important; }
.article-card-body { padding: 16px !important; }
.read-more-link { font-size: 0.78rem !important; white-space: nowrap !important; }

/* FIX 16: Hero grid layout on desktop */
@media (min-width: 1025px) {
  .hero-grid {
    grid-template-columns: 55% 42% !important;
    gap: 3% !important;
    align-items: center !important;
  }
  .hero-visual { display: flex !important; }
}

/* FIX 17: Sidebar width */
.content-sidebar-wrap {
  grid-template-columns: 1fr 300px !important;
}

/* FIX 18: Newsletter section text contrast */
.newsletter-section .section-title { color: #0a1628 !important; }
.newsletter-section p { color: rgba(10,22,40,0.75) !important; }

/* FIX 19: Footer grid proper columns */
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1.2fr !important;
}
.footer-desc { color: rgba(255,255,255,0.6) !important; line-height: 1.75 !important; }
.footer-heading { display: block !important; color: #ffffff !important; }
.footer-links a { color: rgba(255,255,255,0.6) !important; }

/* FIX 20: Match empty state */
.matches-grid [style*="grid-column:1/-1"],
.matches-grid > div:only-child {
  grid-column: 1 / -1 !important;
}

/* Mobile hero fix */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(1.9rem, 9vw, 3rem) !important; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3,1fr) !important; }
  .hero-actions { flex-direction: column !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; }
}

/* ============================================================
   FINAL TOUCH-UPS — All remaining issues
   ============================================================ */

/* FIX: Nav menu hover — clearly readable */
.nav-menu > li > a {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.82rem !important;
  padding: 8px 12px !important;
  min-height: 44px !important;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: #e8a020 !important;
  background: rgba(232,160,32,0.1) !important;
  border-radius: 6px !important;
}

/* FIX: Search button — visible */
.header-search-btn {
  color: rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.1) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.header-search-btn:hover {
  background: #e8a020 !important;
  color: #0a1628 !important;
}

/* FIX: Logo — bright, always visible */
.logo-name {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
}
.logo-name span { color: #e8a020 !important; }
.logo-tagline { color: rgba(255,255,255,0.5) !important; }

/* FIX: Archive/Category page hero — proper dark background, visible text */
.page-hero {
  background: #0a1628 !important;
  padding: 48px 0 !important;
  position: relative !important;
}
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  position: relative !important;
  z-index: 2 !important;
}
.page-hero-title span { color: #e8a020 !important; }
.page-hero-breadcrumb {
  color: rgba(255,255,255,0.5) !important;
  position: relative !important;
  z-index: 2 !important;
  margin-top: 8px !important;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.5) !important; }
.page-hero-breadcrumb a:hover { color: #e8a020 !important; }

/* FIX: Archive page — category title space issue (too close to top) */
body.category .page-hero,
body.archive .page-hero,
body.tag .page-hero {
  padding: 52px 0 40px !important;
}

/* FIX: Archive content area — proper top spacing */
body.category section,
body.archive section {
  padding-top: 40px !important;
}

/* FIX: Single post — post title alignment, remove left indent */
.post-hero .container-narrow {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.post-hero-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  max-width: 780px !important;
}

/* FIX: Remove author box from sidebar on single posts */
.sidebar-widget .widget-title:contains("About the Author"),
.sidebar .sidebar-widget:first-child { display: none !important; }

/* FIX: Pagination — horizontal, not vertical */
.pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 32px 0 !important;
}
.pagination a,
.pagination span,
.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  border: 1.5px solid #e2e6ed !important;
  color: #3d4f64 !important;
  text-decoration: none !important;
  transition: 0.2s !important;
  background: #fff !important;
}
.pagination .current,
.page-numbers.current,
.pagination a:hover,
.pagination span:hover {
  background: #e8a020 !important;
  border-color: #e8a020 !important;
  color: #0a1628 !important;
}
.pagination .dots,
.page-numbers.dots {
  border: none !important;
  background: transparent !important;
  color: #8899b0 !important;
  width: auto !important;
}

/* FIX: Related posts section — proper image size */
.related-posts .article-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
.related-posts .article-card-img-wrap {
  aspect-ratio: 16/9 !important;
}

/* FIX: Contact page — proper spacing, not congested */
.contact-grid {
  grid-template-columns: 1fr 1.8fr !important;
  gap: 56px !important;
}
.contact-form {
  background: #f8f9fb !important;
  border-radius: 16px !important;
  padding: 32px !important;
}
.contact-item {
  padding: 16px 0 !important;
  border-bottom: 1px solid #f1f3f7 !important;
}
.contact-item:last-child { border-bottom: none !important; }

/* FIX: Archive content - add top padding between hero and articles */
.archive-content-wrap {
  padding-top: 48px !important;
}

/* FIX: Article card category badge — show but don't overlap */
.article-card-cat {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  font-size: 0.62rem !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  background: #e8a020 !important;
  color: #0a1628 !important;
  font-weight: 700 !important;
  z-index: 2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* FIX: Section labels — more visible */
.section-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #e8a020 !important;
  letter-spacing: 0.15em !important;
  margin-bottom: 6px !important;
}
.section-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 20px !important;
  height: 2px !important;
  background: #e8a020 !important;
  border-radius: 2px !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

/* FIX: Archive page card category badge not overlapping image text */
body.category .article-card-cat,
body.archive .article-card-cat {
  font-size: 0.6rem !important;
}

/* FIX: Archive hero title — not faded, fully bright */
.page-hero h1,
.page-hero .page-hero-title {
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

/* FIX: Topbar social links — visible */
.topbar-social-link {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
.topbar-social-link:hover {
  color: #e8a020 !important;
}

/* FIX: Single post content container alignment */
.post-content-wrap .container {
  max-width: 1280px !important;
}
.post-content-wrap .content-sidebar-wrap {
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}

/* FIX: Search overlay input visible */
.search-input-large {
  background: rgba(255,255,255,0.1) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
}
.search-input-large:focus {
  border-color: #e8a020 !important;
  background: rgba(255,255,255,0.15) !important;
}
.search-input-large::placeholder { color: rgba(255,255,255,0.4) !important; }

/* FIX: Author box — hide the big blue crown icon sidebar widget */
.sidebar-widget .author-avatar img {
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover !important;
}

/* ============================================================
   PAGESPEED / CWV FINAL FIXES
   ============================================================ */

/* FIX: Contrast ratio — section labels need darker text on light bg */
/* "TOP STORIES", "LATEST CONTENT" on white = must be darker gold */
.section-label,
div[style*="font-size: 0.72rem"][style*="color:#e8a020"],
div[style*="0.72rem"][style*="e8a020"] {
    color: #8c6010 !important; /* Darker gold — passes WCAG AA 4.5:1 on white */
}
/* On dark navy backgrounds, gold is fine */
.hero-section .section-label,
section[style*="cfc-navy"] .section-label,
.match-section .section-label {
    color: #e8a020 !important;
}

/* FIX: "READ MORE" links — accessible contrast */
.read-more-link, a[style*="b57d10"] {
    color: #8c6010 !important; /* Darker for WCAG AA on white */
}
.read-more-link:hover { color: #6b4a0c !important; }

/* FIX: Side article category text contrast */
.side-article-cat,
div[style*="font-size: 0.65rem"][style*="e8a020"],
div[style*="0.65rem"][style*="e8a020"] {
    color: #8c6010 !important;
}

/* FIX: Date text contrast — #8899b0 on white fails WCAG */
time[style*="#8899b0"],
.recent-post-date,
.side-article-date,
.article-card-footer span,
.post-meta-item {
    color: #5a6b82 !important; /* Passes 4.5:1 on white */
}

/* FIX: Font Awesome icons — ensure they load with CSS fallback */
.fa, .fas, .fab, .far, .fal {
    font-display: swap;
}

/* FIX: Hero section — prevent font-swap CLS */
.hero-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif !important;
    /* Size-matched to system fallback to reduce layout shift */
    font-size: clamp(2.2rem, 4vw, 3.6rem) !important;
    line-height: 1.08 !important;
    contain: layout; /* Prevents the element from affecting surrounding layout */
}
.hero-subtitle {
    font-family: 'Barlow', Arial, sans-serif !important;
    contain: layout;
}

/* FIX: Hero section itself — explicit min-height reserves space */
section[aria-label="Hero"] {
    min-height: min(78vh, 700px) !important;
    contain: layout style !important;
}

/* FIX: Ticker — explicit height prevents CLS */
.news-ticker { height: 40px !important; overflow: hidden !important; }

/* FIX: Sr-only class for screen readers (used in Read More links) */
.sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border-width: 0 !important;
}

/* FIX: Image loading — explicit aspect-ratio on all card image wrappers */
.article-card-img-wrap,
div[style*="aspect-ratio:16/9"] {
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: #f1f3f7 !important;
    contain: layout !important;
}

/* FIX: Recent post thumbnails — explicit dimensions */
.recent-post-thumb,
img[style*="width:64px"] {
    width: 64px !important; height: 52px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 64/52 !important;
}

/* FIX: Footer article thumbnails */
img[style*="width:56px"] {
    width: 56px !important; height: 44px !important;
    aspect-ratio: 56/44 !important;
    object-fit: cover !important;
}

/* FIX: Mobile nav menu toggle — visible on mobile */
@media(max-width:768px) {
    .menu-toggle { display: flex !important; }
    .main-nav { display: flex !important; } /* needed for animation */
    .hide-mobile { display: none !important; }
}

/* FIX: Correct contrast for category badges on dark images */
.featured-article-cat,
.article-card-cat {
    background: #e8a020 !important;
    color: #0a1628 !important; /* Navy on gold = excellent contrast */
}
