/*
Theme Name: Astra Football
Template: astra
Description: Professional football news child theme — BBC Sport / Sky Sports inspired dark design.
Author: ExtraTimes
Version: 2.1.1
*/

/* ============================================================
   GOOGLE FONTS — loaded via <link> in header.php (non-blocking)
   @import removed: it created a blocking chain inside the CSS bundle
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:         #0c1a3a;
  --navy-mid:     #111827;
  --navy-light:   #1a2840;
  --card-bg:      #1a2332;
  --card-hover:   #1f2d40;
  --border:       #1e3050;
  --red:          #e8001c;
  --red-dark:     #b5001a;
  --red-glow:     rgba(232,0,28,0.18);
  --yellow:       #fbbf24;
  --white:        #ffffff;
  --text-main:    #d1dae6;
  --text-muted:   #c8d0e0;
  --text-dim:     #4a5c72;
  --font-head:    'Barlow Condensed', 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-score:   'Barlow Condensed', 'Oswald', sans-serif;
  --radius-sm:    4px;
  --radius-md:    8px;
  --ease:         0.2s ease;
}

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy-mid);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

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

a { color: var(--white); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Crisp rendering for small logos and crests */
img.team-logo,
img.team-logo-sm,
img.league-logo,
img.nav-league-logo {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.fg-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.fg-ticker {
  background: var(--red);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.fg-ticker__label {
  background: #9a0014;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  gap: 9px;
}

.fg-ticker__label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.7); }
}

.fg-ticker__track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.fg-ticker__inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
}

.fg-ticker__inner:hover { animation-play-state: paused; }

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

.fg-ticker__item { padding-right: 48px; }
.fg-ticker__item::after { content: '•'; margin-left: 48px; opacity: 0.5; }
.fg-ticker__item:last-child::after { display: none; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.fg-header {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.fg-header__inner {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 28px;
}

/* ── Logo ── */
.fg-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.fg-logo svg {
  display: block;
  height: 48px;
  width: auto;
  max-width: 260px;
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
  transition: opacity 0.2s ease;
}
.fg-logo:hover svg { opacity: 0.88; }

@media (max-width: 768px) {
  .fg-logo svg { height: 38px; max-width: 200px; }
}
@media (max-width: 480px) {
  .fg-logo svg { height: 32px; max-width: 170px; }
}

/* ── Primary Nav ── */
.fg-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.fg-nav-link {
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color var(--ease), background var(--ease);
}

.fg-nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--ease);
}

.fg-nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.fg-nav-link:hover::after,
.fg-nav-link.active::after { transform: scaleX(1); }

.fg-nav-link.active { color: var(--white); }

/* ── Header right ── */
.fg-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fg-search-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.fg-search-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Hamburger ── */
.fg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.fg-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ============================================================
   LIVE SCORES BAR
   ============================================================ */
.fg-scores-bar {
  background: #0a101b;
  border-bottom: 1px solid var(--border);
  height: 44px;
  overflow: hidden;
}

.fg-scores-bar__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.fg-scores-bar__label {
  background: var(--navy-light);
  border-right: 2px solid var(--red);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  gap: 7px;
}

/* LIVE badge only when actually live */
.fg-scores-bar__label--live {
  background: var(--red) !important;
  border-right-color: #8a0011 !important;
}
.fg-scores-bar__label--live::before {
  content: 'LIVE';
  background: var(--yellow);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 2px;
}

.fg-live-dot {
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.fg-scores-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  height: 100%;
  gap: 0;
}
.fg-scores-track::-webkit-scrollbar { display: none; }

.fg-match-score {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  height: 100%;
  border-right: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: background var(--ease);
}
.fg-match-score:hover { background: rgba(255,255,255,0.04); }
.fg-match-score--live { border-color: rgba(232,0,28,0.35) !important; }

.fg-match-score__team {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fg-match-score__result {
  font-family: var(--font-score);
  font-weight: 700;
  font-size: 18px;
  color: var(--yellow);
  min-width: 34px;
  text-align: center;
  letter-spacing: 0.04em;
}

.fg-match-score__status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--red-glow);
  padding: 2px 6px;
  border-radius: 2px;
}
.fg-match-score__status.ft { color: var(--text-muted); background: rgba(74,92,114,0.2); }

.fg-scores-bar__empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px;
}
.fg-scores-bar__empty a { color: rgba(255,255,255,0.5); }
.fg-scores-bar__empty a:hover { color: var(--red); }
.fg-scores-bar__empty strong { color: var(--text-main); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.fg-main { padding: 32px 0 52px; }

.fg-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  align-items: start;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.fg-section-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 0 12px 14px;
  border-bottom: 2px solid var(--border);
  border-left: 4px solid var(--red);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.fg-section-title::before { display: none; }

/* ============================================================
   HERO — BBC Sport style full-width
   ============================================================ */
.fg-hero {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--card-bg);
  min-height: 460px;
  display: block;
}
@supports (aspect-ratio: 16/7) {
  .fg-hero { aspect-ratio: 16/7; min-height: unset; }
}

.fg-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.fg-hero:hover .fg-hero__img { transform: scale(1.025); }

.fg-hero__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c1a3a 0%, #1a2332 50%, #0a0f1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

/* Cinematic gradient overlay */
.fg-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,8,16,0.97) 0%, rgba(5,8,16,0.7) 35%, rgba(5,8,16,0.1) 70%, transparent 100%),
    linear-gradient(to right, rgba(5,8,16,0.4) 0%, transparent 60%);
}

.fg-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 40px;
}

.fg-hero__category {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.fg-hero__title {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1.1;
}

.fg-hero__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fg-hero__meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.fg-hero-slider{position:relative;width:100%;height:520px;overflow:hidden;background:#0c1a3a;margin-bottom:30px;}
.fg-slide{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center;opacity:0;transition:opacity 0.3s ease;cursor:pointer;}
.fg-slide.active{opacity:1;}
.fg-slide__bg-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;}
.fg-slide-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,0.85) 0%,rgba(0,0,0,0.3) 50%,transparent 100%);}
.fg-slide-content{position:absolute;bottom:40px;left:40px;right:40px;color:#fff;}
.fg-hero__cat{background:#e8001c;color:#fff;padding:5px 14px;font-family:'Barlow Condensed','Oswald',sans-serif;font-size:11px;font-weight:700;text-transform:uppercase;text-decoration:none;letter-spacing:1.5px;margin-bottom:12px;display:inline-block;border-radius:3px;}
.fg-hero__title{font-family:'Barlow Condensed','Oswald',sans-serif;font-size:clamp(24px,3.8vw,48px);font-weight:800;color:#fff;text-transform:uppercase;line-height:1.05;letter-spacing:0.02em;margin:10px 0;text-decoration:none;text-shadow:0 2px 16px rgba(0,0,0,0.7);}
.fg-hero__title:hover{color:#e8001c;}
.fg-hero__meta{font-family:'Inter',sans-serif;font-size:12px;font-weight:500;opacity:0.7;display:flex;gap:16px;margin-top:10px;letter-spacing:0.02em;}
.fg-slider-prev,.fg-slider-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,0.5);color:#fff;border:none;font-size:3rem;cursor:pointer;padding:10px 18px;z-index:10;line-height:1;}
.fg-slider-prev{left:10px;}
.fg-slider-next{right:10px;}
.fg-slider-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:10;}
.fg-dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.5);cursor:pointer;}
.fg-dot.active{background:#e8001c;}
@media(max-width:768px){
  .fg-hero-slider{height:320px;}
  .fg-slide-content{bottom:20px;left:20px;right:20px;}
  .fg-hero__title{font-size:1.3rem;}
  .fg-slider-prev,.fg-slider-next{font-size:2rem;padding:6px 12px;}
}

/* ============================================================
   NEWS CARD GRID — 3-column
   ============================================================ */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.fg-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.fg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,0,28,0.3);
  border-color: var(--red);
}

.fg-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
  position: relative;
}
.fg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.fg-card:hover .fg-card__thumb img { transform: scale(1.06); }

.fg-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, #1a2840, #0c1a3a);
}

.fg-card__body {
  padding: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fg-card__category {
  display: inline-block;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(232,0,28,0.3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fg-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  flex: 1;
  transition: color var(--ease);
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}
.fg-card:hover .fg-card__title { color: var(--red); }

.fg-card__title a { color: inherit; }

.fg-card__meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #c8d0e0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

/* ============================================================
   TOP STORIES LIST
   ============================================================ */
.fg-top-stories { margin-bottom: 30px; }

.fg-story-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--ease);
  border-radius: 0;
}
.fg-story-item:last-child { border-bottom: none; }
.fg-story-item:hover { opacity: 0.88; }

.fg-story-item__num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  min-width: 38px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.fg-story-item__thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.fg-story-item__thumb-placeholder {
  width: 90px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1a2840, #0c1a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.fg-story-item__content { flex: 1; min-width: 0; }

.fg-story-item__category {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.fg-story-item__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fg-story-item:hover .fg-story-item__title { color: var(--red); }

.fg-story-item__date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.fg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 120px;
}

.fg-widget {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.fg-widget__header {
  background: var(--navy);
  border-bottom: 2px solid var(--red);
  padding: 13px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 9px;
}

.fg-widget__body { padding: 0; }

/* Results widget */
.fg-result {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.fg-result:last-child { border-bottom: none; }
.fg-result:hover { background: var(--card-hover); }

.fg-result__competition {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 7px;
}

.fg-result__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fg-result__team {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  flex: 1;
}
.fg-result__team.away { text-align: right; }

.fg-result__score {
  font-family: var(--font-score);
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  min-width: 52px;
  text-align: center;
  background: rgba(251,191,36,0.08);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.fg-result__date {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
}

/* Standings table */
.fg-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fg-standings-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.fg-standings-table th:not(:first-child):not(:nth-child(2)) { text-align: center; }

.fg-standings-table td {
  padding: 10px 12px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background var(--ease);
}
.fg-standings-table td:not(:first-child):not(:nth-child(2)) { text-align: center; }
.fg-standings-table tr:last-child td { border-bottom: none; }
.fg-standings-table tr:nth-child(odd) td  { background: rgba(255,255,255,0.02); }
.fg-standings-table tr:nth-child(even) td { background: rgba(255,255,255,0.04); }
.fg-standings-table tr:hover td { background: var(--card-hover) !important; }

.fg-standings-table .pos { color: var(--text-muted); font-weight: 600; font-size: 12px; font-family: var(--font-score); }
.fg-standings-table .club { font-weight: 600; color: var(--white); font-family: var(--font-head); font-size: 14px; letter-spacing: 0.03em; }
.fg-standings-table .pts { font-family: var(--font-score); font-weight: 700; font-size: 15px; color: var(--white); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.fg-article {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 30px;
}

.fg-article__hero {
  aspect-ratio: 16/8;
  background: var(--navy);
  overflow: hidden;
}
.fg-article__hero img { width: 100%; height: 100%; object-fit: cover; }

.fg-article__content { padding: 36px 40px; }

.fg-article__category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.fg-article__title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.fg-article__meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fg-article__meta a { color: var(--text-main); }
.fg-article__meta a:hover { color: var(--red); }

.fg-article__body {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.8;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.fg-article__body p { margin-bottom: 1.5em; }
.fg-article__body h2 {
  font-size: 22px;
  color: var(--white);
  margin: 2em 0 0.75em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.fg-article__body h3 { font-size: 18px; color: var(--white); margin: 1.6em 0 0.6em; }
.fg-article__body ul, .fg-article__body ol { margin: 0 0 1.5em 1.6em; }
.fg-article__body li { margin-bottom: 0.45em; }
.fg-article__body blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 22px;
  margin: 1.8em 0;
  background: rgba(232,0,28,0.05);
  color: var(--text-main);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   ARCHIVE / INDEX
   ============================================================ */
.fg-archive-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--red);
}
.fg-archive-header h1 { font-size: 28px; }
.fg-archive-header p { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.fg-pagination {
  margin-top: 36px;
}
.fg-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fg-pagination li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fg-pagination a,
.fg-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--ease);
}
.fg-pagination a:hover,
.fg-pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.fg-footer {
  background: #060f24;
  border-top: 3px solid var(--red);
  padding: 56px 0 0;
  margin-top: 60px;
}

.fg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Brand column */
.fg-footer__brand .fg-logo { margin-bottom: 18px; display: inline-flex; }

.fg-footer__brand p {
  font-size: 13px;
  color: #c8d0e0;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 290px;
}

.fg-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }

.fg-footer__social a {
  width: 38px;
  height: 38px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: all var(--ease);
}
.fg-footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer columns */
.fg-footer__col h4,
.fg-footer__col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.fg-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: #e8001c;
  border-radius: 2px;
}

.fg-footer__tagline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e8001c;
  margin-bottom: 10px !important;
}

.fg-footer__col ul { list-style: none; }
.fg-footer__col ul li { margin-bottom: 10px; }
.fg-footer__col ul li a {
  font-size: 13px;
  color: #c8d0e0;
  transition: color var(--ease);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.fg-footer__col ul li a::before { content: '›'; color: var(--red); font-size: 18px; line-height: 1; }
.fg-footer__col ul li a:hover { color: #e8001c; }

/* Footer bottom bar */
.fg-footer__bottom {
  background: rgba(0,0,0,0.35);
  margin-top: 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 100%;
}
.fg-footer__bottom a { color: var(--text-dim); }
.fg-footer__bottom a:hover { color: var(--red); }
.fg-footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   EMPTY / 404
   ============================================================ */
.fg-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.fg-empty h2 { font-size: 24px; color: var(--white); margin-bottom: 12px; }
.fg-empty p { font-size: 15px; }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.fg-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  height: 100vh;
  background: var(--navy);
  border-right: 1px solid var(--border);
  z-index: 9999;
  flex-direction: column;
  padding: 24px;
  box-shadow: 6px 0 40px rgba(0,0,0,0.7);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.fg-mobile-nav.open { transform: translateX(0); }

.fg-mobile-nav__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 24px;
  opacity: 0.7;
  transition: opacity var(--ease);
}
.fg-mobile-nav__close:hover { opacity: 1; }

.fg-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.fg-mobile-nav a:hover { color: var(--red); }

.fg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.fg-overlay.open { display: block; }

/* ============================================================
   ASTRA PARENT OVERRIDES
   ============================================================ */
#page, .ast-container, #content, .ast-article-post, .ast-blog-single-element {
  background: transparent !important;
}
.ast-container { max-width: 100% !important; padding: 0 !important; }
#content { padding-top: 0 !important; }

.ast-separate-container .ast-article-post,
.ast-separate-container #primary,
.ast-separate-container .site-main {
  padding: 0 !important; margin: 0 !important;
  background: transparent !important; box-shadow: none !important;
}

.ast-header-break-point .site-header,
.site-header, .ast-primary-header-bar,
.main-header-bar, .ast-above-header-bar,
.ast-below-header-bar { display: none !important; }

.ast-footer-area, .site-footer, .footer-widget-area { display: none !important; }

.ast-separate-container { background: var(--navy-mid) !important; }
body.ast-separate-container .entry-content { padding: 0 !important; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .fg-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-layout { grid-template-columns: 1fr; }
  .fg-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .fg-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ── Prevent horizontal overflow ──────────────────────────── */
  html, body { overflow-x: hidden; }
  * { box-sizing: border-box; }

  /* ── Container ────────────────────────────────────────────── */
  .fg-container { padding: 0 14px; }

  /* ── Breaking News Ticker ─────────────────────────────────── */
  .fg-ticker { font-size: 12px; padding: 6px 0; }
  .fg-ticker__label { font-size: 10px; padding: 3px 8px; white-space: nowrap; }
  .fg-ticker__item { font-size: 12px; }

  /* ── Header ───────────────────────────────────────────────── */
  .fg-header { position: sticky; top: 0; z-index: 1000; }
  .fg-header__inner {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 0;
  }
  /* Logo: shrink SVG to fit */
  .fg-logo svg { height: 42px; width: auto; }

  /* Hide desktop nav + search on mobile */
  .fg-nav { display: none !important; }
  .fg-header__right { display: none; }

  /* Show hamburger */
  .fg-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .fg-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
  }

  /* Mobile nav drawer — slides in from left */
  .fg-mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    z-index: 2000;
    padding: 70px 0 30px;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }
  .fg-mobile-nav.open { left: 0; }

  .fg-mobile-nav a {
    display: block;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 22px;
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .fg-mobile-nav a:hover,
  .fg-mobile-nav a:focus { background: var(--red); color: #fff; }

  .fg-mobile-nav__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  .fg-mobile-nav__close:hover { background: rgba(255,255,255,0.1); }

  /* Overlay */
  .fg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1500;
  }
  .fg-overlay.open { display: block; }

  /* ── Live Scores Bar ──────────────────────────────────────── */
  /* Reset fixed desktop height so bar auto-sizes to its content */
  .fg-scores-bar {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
  }
  .fg-scores-bar__inner {
    height: 44px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    align-items: center;
  }
  .fg-scores-bar__inner::-webkit-scrollbar { display: none; }

  .fg-scores-bar__label {
    flex-shrink: 0;
    font-size: 10px;
    padding: 4px 8px;
    height: 100%;
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .fg-scores-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 2px 4px;
    height: 100%;
  }
  .fg-scores-track::-webkit-scrollbar { display: none; }

  .fg-match-score {
    flex-shrink: 0;
    height: 100%;
    font-size: 11px;
    padding: 0 8px;
    gap: 4px;
    white-space: nowrap;
  }
  .fg-match-score__team { font-size: 11px; gap: 3px; }
  .fg-match-score__result { font-size: 12px; }
  .fg-match-score__status { font-size: 9px; padding: 1px 4px; }

  /* ── Hero Section ─────────────────────────────────────────── */
  .fg-hero {
    min-height: 280px;
    height: 280px;
    border-radius: 0;
  }
  .fg-hero__img { height: 280px; object-position: center top; }
  .fg-hero__placeholder { font-size: 64px; height: 280px; line-height: 280px; }
  .fg-hero__content {
    padding: 16px 16px 20px;
    justify-content: flex-end;
  }
  .fg-hero__category { font-size: 10px; padding: 3px 8px; margin-bottom: 8px; }
  .fg-hero__title { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
  .fg-hero__meta { font-size: 12px; gap: 12px; }

  /* ── Main content area ────────────────────────────────────── */
  .fg-main { padding: 18px 0 40px; }
  .fg-section-title { font-size: 16px; padding: 8px 12px; margin: 20px 0 14px; }
  .fg-section-title::before { width: 3px; }

  /* ── News Grid ────────────────────────────────────────────── */
  .fg-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Cards */
  .fg-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 6px;
    min-height: 90px;
  }
  .fg-card__thumb {
    width: 110px;
    min-width: 110px;
    height: auto;
    min-height: 90px;
    border-radius: 6px 0 0 6px;
    flex-shrink: 0;
  }
  .fg-card__thumb img { height: 100%; object-fit: cover; border-radius: 6px 0 0 6px; }
  .fg-card__thumb-placeholder {
    height: 100%;
    min-height: 90px;
    font-size: 30px;
    border-radius: 6px 0 0 6px;
  }
  .fg-card__body { padding: 10px 12px; justify-content: center; flex: 1; min-width: 0; overflow: hidden; }
  .fg-card__category { font-size: 9px; margin-bottom: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fg-card__title { font-size: 13px; line-height: 1.3; margin-bottom: 6px; overflow: hidden; word-break: break-word; white-space: normal; max-width: 100%; }
  .fg-card__meta { font-size: 10px; }

  /* ── Top Stories ──────────────────────────────────────────── */
  .fg-story-item {
    padding: 12px 14px;
    min-height: 44px;
  }
  .fg-story-item__num { font-size: 20px; min-width: 28px; }
  .fg-story-item__thumb { width: 54px; height: 54px; }
  .fg-story-item__thumb-placeholder { width: 54px; height: 54px; font-size: 22px; }
  .fg-story-item__title { font-size: 12px; }
  .fg-story-item__date { font-size: 10px; }

  /* ── Layout: stack sidebar below content ─────────────────── */
  .fg-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ── Sidebar ──────────────────────────────────────────────── */
  .fg-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .fg-widget { border-radius: 6px; }
  .fg-widget__header { font-size: 13px; padding: 10px 14px; }
  .fg-widget__body { padding: 10px 14px; }

  /* Standings table on mobile */
  .fg-standings-table { font-size: 12px; }
  .fg-standings-table th,
  .fg-standings-table td { padding: 6px 4px; }

  /* Result widget */
  .fg-result { padding: 10px 0; }
  .fg-result__team { font-size: 11px; }
  .fg-result__score { font-size: 14px; }

  /* ── Article single page ──────────────────────────────────── */
  .fg-article__header { padding: 20px 16px 16px; }
  .fg-article__title { font-size: 22px; line-height: 1.3; }
  .fg-article__meta { font-size: 12px; flex-wrap: wrap; gap: 8px; }
  .fg-article__content { padding: 18px 16px; font-size: 15px; }
  .fg-article__content h2 { font-size: 18px; }
  .fg-article__content h3 { font-size: 16px; }

  /* ── Footer ───────────────────────────────────────────────── */
  .fg-footer { padding: 40px 0 20px; }
  .fg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .fg-footer__bottom { flex-direction: column; text-align: center; gap: 10px; }
  .fg-footer__bottom-links { justify-content: center; flex-wrap: wrap; }
  .fg-footer__brand-name { font-size: 18px; }

  /* ── Touch targets: all interactive elements min 44px ─────── */
  .fg-nav-link,
  .fg-mobile-nav a,
  .fg-search-btn,
  .fg-hamburger { min-height: 44px; }

  button, [role="button"], a.fg-card, a.fg-story-item, a.fg-hero {
    -webkit-tap-highlight-color: rgba(232,0,28,0.2);
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .fg-container { padding: 0 12px; }
  .fg-main { padding: 16px 0 36px; }

  .fg-header__inner { height: 54px; }
  .fg-logo svg { height: 36px; }

  /* Hero even more compact on tiny screens */
  .fg-hero { min-height: 240px; height: 240px; }
  .fg-hero__img { height: 240px; }
  .fg-hero__placeholder { height: 240px; line-height: 240px; font-size: 54px; }
  .fg-hero__title { font-size: 19px; }

  /* Cards: slightly narrower thumb */
  .fg-card__thumb { width: 90px; min-width: 90px; }

  /* Ticker more compact */
  .fg-ticker { font-size: 11px; }

  /* Section titles */
  .fg-section-title { font-size: 14px; }

  /* Sidebar goes single column (already 1fr, just ensure no 2-col) */
  .fg-sidebar { grid-template-columns: 1fr !important; }
}

/* ============================================================
   TEAM LOGOS
   ============================================================ */
.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  /* Improve SVG rendering on dark background */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.team-logo-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.team-logo-fallback {
  font-size: 14px;
  flex-shrink: 0;
}

/* Wrapper: logo + name side by side */
.team-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.team-with-logo .team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scores bar logos — slightly smaller, no extra margin */
.fg-match-score__team .team-logo-sm {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.fg-match-score__team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Standings table club cell */
.fg-standings-table .club .team-with-logo {
  gap: 8px;
}

/* Results row adjustments for logo alignment */
.fg-result__team.team-with-logo {
  display: flex;
  align-items: center;
}

/* === HERO SLIDER FIX === */
.fg-hero-slider{position:relative!important;width:100%!important;height:520px!important;overflow:hidden!important;background:#0c1a3a!important;display:block!important;}
.fg-slide{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background-size:cover!important;background-position:center!important;opacity:0!important;transition:opacity 0.3s ease!important;display:block!important;}
.fg-slide.active{opacity:1!important;z-index:2!important;}
.fg-slide__bg-img{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;z-index:0!important;}
.fg-slide-overlay{position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(to top,rgba(0,0,0,0.85) 0%,rgba(0,0,0,0.2) 60%,transparent 100%)!important;}
.fg-slide-content{position:absolute!important;bottom:40px!important;left:40px!important;right:40px!important;color:#fff!important;z-index:3!important;}
@media(max-width:768px){.fg-hero-slider{height:280px!important;}.fg-slide-content{bottom:16px!important;left:16px!important;right:16px!important;}}

/* ============================================================
   LEAGUE LOGOS — white circle badge treatment
   ============================================================ */

/* Base: white circle background so dark logos pop on navy */
.league-logo {
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Hero banner logo — large white circle with depth */
.league-logo--hero {
  width: 52px;
  height: 52px;
  padding: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15);
}

/* Standings / widget header logo */
.league-logo--header {
  width: 30px;
  height: 30px;
  padding: 4px;
}

/* Sidebar widget header logo */
.league-logo--widget {
  width: 22px;
  height: 22px;
  padding: 3px;
}

/* Nav bar league logos — small white circle badge */
.nav-league-logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Ensure nav links flex-align when logo is present */
.fg-nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   PROFESSIONAL STANDINGS TABLE
   ============================================================ */

.standings-wrap {
  background: #0d1b2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}

.standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
}

.standings-table thead th {
  background: #1b2a3d;
  color: rgba(255,255,255,0.6);
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 12px;
  text-align: center;
  border-bottom: 2px solid #e10600;
  white-space: nowrap;
}
.standings-table thead th:nth-child(2) { text-align: left; padding-left: 8px; }

.standings-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.standings-table tbody tr:hover { background: rgba(255,255,255,0.06) !important; }

.standings-table tbody td {
  padding: 11px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Alternating rows */
.standings-table tbody tr:nth-child(odd)  td { background: rgba(255,255,255,0.015); }
.standings-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.035); }

/* Position number */
.standings-table td.position {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  width: 40px;
  padding-left: 16px;
}

/* Team name cell */
.standings-table td.team-name {
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  padding-left: 8px;
  white-space: nowrap;
}
.standings-table td.team-name .team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.standings-table td.team-name img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}

/* Points — bold prominent */
.standings-table td.points {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255,255,255,0.05) !important;
}

/* Goal difference */
.standings-table td.gd-positive { color: #4ade80; font-weight: 600; }
.standings-table td.gd-negative { color: #f87171; font-weight: 600; }
.standings-table td.gd-zero     { color: rgba(255,255,255,0.5); }

/* Zone left-border indicators */
.standings-table tr.zone-champions td:first-child { border-left: 3px solid #3b82f6; padding-left: 13px; }
.standings-table tr.zone-europa    td:first-child { border-left: 3px solid #f97316; padding-left: 13px; }
.standings-table tr.zone-conference td:first-child { border-left: 3px solid #22d3ee; padding-left: 13px; }
.standings-table tr.zone-relegation td:first-child { border-left: 3px solid #ef4444; padding-left: 13px; }

/* Form badges */
.form-col { white-space: nowrap; }
.form-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  margin: 0 1px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0;
}
.form-badge.win  { background: #22c55e; color: #fff; }
.form-badge.draw { background: #6b7280; color: #fff; }
.form-badge.loss { background: #ef4444; color: #fff; }

/* Zone legend */
.zone-legend {
  display: flex;
  gap: 20px;
  padding: 14px 20px;
  background: #0a1520;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.zone-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.zone-legend-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Standings table header row (above the table) */
.standings-header {
  background: #1b2a3d;
  padding: 14px 20px;
  border-bottom: 2px solid #e10600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.standings-header h2 {
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .standings-table thead th,
  .standings-table tbody td { padding: 9px 6px; font-size: 12px; }
  .standings-table td.team-name { font-size: 12px; }
  .standings-table td.team-name img { width: 18px; height: 18px; }
  .standings-table td.points { font-size: 14px; }
  .standings-table .col-d,
  .standings-table .col-gf,
  .standings-table .col-ga,
  .standings-table .col-form { display: none; }
  .zone-legend { gap: 12px; padding: 12px 16px; }
  .zone-legend-item { font-size: 10px; }
}

/* ============================================================
   DESKTOP NAV DROPDOWN ("More" menu)
   ============================================================ */
.fg-nav-dropdown {
  position: relative;
  display: inline-flex;
}
.fg-nav-dropdown__toggle {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.fg-nav-dropdown__toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.fg-nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  min-width: 200px;
  z-index: 1100;
  padding: 8px 0;
}
.fg-nav-dropdown:hover .fg-nav-dropdown__menu,
.fg-nav-dropdown__toggle[aria-expanded="true"] + .fg-nav-dropdown__menu {
  display: block;
}
.fg-nav-dropdown__item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  transition: background var(--ease), color var(--ease);
}
.fg-nav-dropdown__item:hover {
  background: rgba(232,0,28,0.1);
  color: var(--red);
}

/* ============================================================
   MOBILE NAV DRAWER — ENHANCED
   ============================================================ */
.fg-mobile-nav--active {
  border-left: 3px solid var(--red) !important;
  color: var(--red) !important;
}

/* Mobile dropdown */
.fg-mobile-dropdown {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fg-mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 22px;
  height: 50px;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.fg-mobile-dropdown-toggle:hover { background: rgba(255,255,255,0.05); }
.fg-mobile-dropdown-icon {
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fg-mobile-dropdown.open .fg-mobile-dropdown-icon {
  transform: rotate(45deg);
}
.fg-mobile-submenu {
  display: none;
  background: rgba(0,0,0,0.2);
}
.fg-mobile-dropdown.open .fg-mobile-submenu { display: block; }
.fg-mobile-submenu a {
  padding-left: 40px !important;
  font-size: 13px !important;
  height: 44px !important;
  line-height: 44px !important;
  color: var(--text-muted) !important;
}
.fg-mobile-submenu a:hover { color: var(--white) !important; }

/* ============================================================
   SCROLL PROGRESS BAR (single.php)
   ============================================================ */
.fg-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--red);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================================
   SOCIAL SHARE BUTTONS
   ============================================================ */
.fg-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.fg-share-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.fg-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform var(--ease), opacity var(--ease);
}
.fg-share-btn:hover { transform: scale(1.1); color: #fff; opacity: 0.85; }
.fg-share-btn--twitter { background: #000; }
.fg-share-btn--facebook { background: #1877F2; }
.fg-share-btn--whatsapp { background: #25D366; }

/* ============================================================
   ARTICLE TAGS (single.php)
   ============================================================ */
.fg-article__tags {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.fg-article__tags-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.fg-article__tag {
  background: var(--border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--ease);
}
.fg-article__tag:hover {
  background: var(--red);
  color: #fff;
}

/* ============================================================
   AUTHOR BIO BOX
   ============================================================ */
.fg-author-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--red);
}
.fg-author-bio__avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fg-author-bio__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 4px;
  display: block;
}
.fg-author-bio__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.fg-author-bio__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.fg-post-nav {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fg-post-nav__link {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--ease);
}
.fg-post-nav__link:hover { border-color: var(--red); }
.fg-post-nav__link--next { text-align: right; }
.fg-post-nav__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-head);
}
.fg-post-nav__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   RELATED STORIES SECTION
   ============================================================ */
.fg-related { margin-top: 32px; }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.fg-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,0,28,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.fg-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.fg-back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ============================================================
   FOLLOW US WIDGET
   ============================================================ */
.fg-follow-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fg-follow-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  transition: opacity var(--ease), transform var(--ease);
}
.fg-follow-btn:hover { opacity: 0.9; transform: translateX(3px); color: #fff; }
.fg-follow-btn--twitter { background: #000; }
.fg-follow-btn--facebook { background: #1877F2; }
.fg-follow-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fg-follow-btn--youtube { background: #FF0000; }
.fg-follow-btn--whatsapp { background: #25D366; }
.fg-follow-btn--telegram { background: #229ED9; }

/* ============================================================
   NEWSLETTER WIDGET
   ============================================================ */
.fg-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fg-newsletter-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color var(--ease);
}
.fg-newsletter-input:focus {
  outline: none;
  border-color: var(--red);
}
.fg-newsletter-input::placeholder { color: var(--text-muted); }
.fg-newsletter-btn {
  width: 100%;
  padding: 10px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--ease);
}
.fg-newsletter-btn:hover { background: var(--red-dark); }

/* ============================================================
   ARTICLE IMAGES STYLING
   ============================================================ */
.fg-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}
.fg-article__body figcaption {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* ============================================================
   ENHANCED MOBILE RESPONSIVE — ≤768px
   ============================================================ */
@media (max-width: 768px) {
  /* Hero: title clamp, hide nav arrows, shrink dots */
  .fg-hero__title { font-size: 20px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .fg-hero__cat { font-size: 10px !important; padding: 4px 8px !important; }
  .fg-slider-prev, .fg-slider-next { display: none !important; }
  .fg-dot { width: 8px; height: 8px; }

  /* Nav league logos smaller */
  .nav-league-logo { width: 20px !important; height: 20px !important; }

  /* Ticker mobile */
  .fg-ticker { height: 32px; }
  .fg-ticker__inner { font-size: 11px; }
  .fg-ticker__label { font-size: 8px; padding: 0 10px; }

  /* Standings table: hide D, GF, GA columns */
  .fg-standings-table .col-d,
  .fg-standings-table .col-gf,
  .fg-standings-table .col-ga { display: none; }
  .fg-standings-table .club {
    font-size: 12px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
  }
  .fg-widget__body { overflow-x: auto; }

  /* Footer mobile */
  .fg-footer__grid { text-align: center; }
  .fg-footer__brand { text-align: center; }
  .fg-footer__brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .fg-footer__social { justify-content: center; }
  .fg-footer__col ul li a { justify-content: center; }
  .fg-footer { padding: 20px 0 0; }

  /* Article page mobile */
  .fg-share-buttons { flex-wrap: wrap; gap: 8px; }
  .fg-author-bio { flex-direction: column; align-items: center; text-align: center; padding: 18px; }
  .fg-author-bio__avatar img { width: 60px; height: 60px; }
  .fg-post-nav { flex-direction: column; }
  .fg-post-nav__link { min-width: unset; }
  .fg-post-nav__link--next { text-align: left; }
  .fg-related .fg-grid { grid-template-columns: 1fr; }

  /* Back to top */
  .fg-back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

  /* Desktop dropdown hidden on mobile */
  .fg-nav-dropdown { display: none; }

  /* General mobile base */
  body { font-size: 14px; }

  /* ── Global overflow prevention ───────────────────────────── */
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }

  /* ── Card overflow safety net ─────────────────────────────── */
  .fg-card, .fg-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   ENHANCED MOBILE — ≤480px
   ============================================================ */
@media (max-width: 480px) {
  /* Hero slider even smaller */
  .fg-hero-slider { height: 220px !important; }
  .fg-hero__title { font-size: 18px !important; }

  /* Form badges hidden on very small */
  .form-badge { display: none; }
  .form-col { display: none; }
}

/* ============================================================
   CONTENT CARD — Unified card for homepage, archives, categories
   ============================================================ */

.content-card {
  background: #0f2347;
  border-radius: 8px;
  overflow: hidden;
  border-bottom: 1px solid #1e2d5a;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,0,28,0.3);
}

.content-card .card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0c1a3a;
  flex-shrink: 0;
}

.content-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.content-card:hover .card-thumb img {
  transform: scale(1.05);
}

.content-card .card-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, #1a2840, #0c1a3a);
}

.content-card .card-body {
  padding: 16px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.content-card .cat-badge {
  display: inline-block;
  background: #e8001c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: flex-start;
}

.content-card .cat-badge:hover {
  background: #c50018;
}

.content-card .entry-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 12px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  max-width: 100%;
  flex: 1;
}

.content-card .entry-title a {
  color: inherit;
  text-decoration: none;
}

.content-card .entry-title a:hover {
  color: #e8001c;
}

.content-card .byline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c8d0e0;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #1e2d5a;
}

.content-card .byline .byline-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

.content-card .byline .author-name {
  color: #e8001c;
  font-weight: 600;
  text-decoration: none;
}

.content-card .byline .author-name:hover {
  text-decoration: underline;
}

.content-card .byline .byline-sep {
  color: #555e7a;
}

/* ── Content Card — Mobile (≤768px) ─────────────────────── */
@media (max-width: 768px) {
  .content-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #0f2347 !important;
    border-bottom: 1px solid #1e2d5a !important;
  }
  .content-card .card-thumb {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    display: block !important;
  }
  .content-card .card-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
  }
  .content-card .card-body {
    padding: 12px !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .content-card .entry-title {
    font-size: clamp(16px, 4.5vw, 22px) !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }
  .content-card .cat-badge {
    display: inline-block !important;
    background: #e8001c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 3px 10px !important;
    border-radius: 3px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
  }
  .content-card .byline {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #c8d0e0 !important;
    flex-wrap: wrap !important;
  }
  .content-card .byline .author-name {
    color: #e8001c !important;
    font-weight: 600 !important;
  }
}

/* ── Interactive card (stats / team cards on About page) ── */
.fg-interactive-card {
    background: var(--fg-card);
    border: 1px solid var(--fg-border);
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color .2s;
    cursor: default;
}
.fg-interactive-card:hover,
.fg-interactive-card:focus {
    border-color: var(--fg-red);
    outline: 2px solid var(--fg-red);
}

/* Team card on About page — adds lift on hover */
.fg-team-card {
    background: var(--fg-card);
    border: 1px solid var(--fg-border);
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s, border-color .2s;
    cursor: default;
}
.fg-team-card:hover,
.fg-team-card:focus {
    transform: translateY(-4px);
    border-color: var(--fg-red);
    outline: 2px solid var(--fg-red);
}

/* CTA button-style link (red background, used on multiple pages) */
.fg-btn-red {
    display: inline-block;
    background: var(--fg-red);
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--fg-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s;
    margin-top: 20px;
}
.fg-btn-red:hover,
.fg-btn-red:focus {
    background: var(--fg-red-dark);
    color: #fff;
    outline: 2px solid var(--fg-red-dark);
}

/* Email / direct-contact link block */
.fg-link-block {
    display: block;
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--fg-white);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s;
    text-align: center;
}
.fg-link-block:hover,
.fg-link-block:focus {
    border-color: var(--fg-red);
    outline: 2px solid var(--fg-red);
}

/* Social link row (contact page) */
.fg-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 4px;
    padding: 12px 14px;
    transition: border-color .2s;
}
.fg-social-link:hover,
.fg-social-link:focus {
    outline: 2px solid var(--fg-border);
}

/* Submit / send button (contact & advertise forms) */
.fg-submit-btn {
    background: var(--fg-red);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--fg-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fg-submit-btn:hover,
.fg-submit-btn:focus {
    background: var(--fg-red-dark);
    outline: 2px solid var(--fg-red-dark);
}

/* Refresh button on league page */
.fg-refresh-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 3px;
    color: rgba(255,255,255,.4);
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.fg-refresh-btn:hover,
.fg-refresh-btn:focus {
    border-color: rgba(255,255,255,.4);
    color: rgba(255,255,255,.7);
    outline: 2px solid rgba(255,255,255,.2);
}

/* Sidebar CTA button — red background block link */
.fg-sidebar-cta {
    display: block;
    background: var(--fg-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--fg-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s;
}
.fg-sidebar-cta:hover,
.fg-sidebar-cta:focus {
    background: var(--fg-red-dark);
    color: #fff;
    outline: 2px solid var(--fg-red-dark);
}

/* Sidebar secondary CTA (grey background) */
.fg-sidebar-cta-sec {
    display: block;
    background: var(--fg-border);
    color: var(--fg-white);
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--fg-font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s;
}
.fg-sidebar-cta-sec:hover,
.fg-sidebar-cta-sec:focus {
    background: var(--fg-card-hover);
    color: var(--fg-white);
    outline: 2px solid var(--fg-card-hover);
}

/* League nav link row */
.fg-league-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fg-border);
    color: var(--fg-light);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.fg-league-nav-link:hover,
.fg-league-nav-link:focus {
    background: var(--fg-card-hover);
    color: var(--fg-red);
    outline: 2px solid var(--fg-red);
}

/* Form label accessibility styles */
.fg-form label,
.fg-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fg-white);
    margin-bottom: 6px;
    opacity: 0.7;
}

/* ============================================================
   LEAGUE PAGE — MOBILE LAYOUT
   page-league.php uses display:grid;grid-template-columns:1fr 340px
   as an inline style. On a 375px screen 1fr resolves to ~0px,
   collapsing the content column. Fix: class overrides to 1 column.
   ============================================================ */
@media (max-width: 768px) {
  .fg-league-layout {
    display: block !important;
  }
  .fg-league-layout > aside {
    margin-top: 24px;
  }
}

/* ============================================================
   STANDINGS WRAP — enable horizontal scroll on mobile
   .standings-wrap has overflow:hidden (needed to clip rounded
   corners on desktop). On mobile this blocks the inner
   overflow-x:auto div from scrolling. Override to allow scroll.
   ============================================================ */
@media (max-width: 768px) {
  .standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   TOP STORIES — allow title to wrap on mobile
   Base CSS: white-space:nowrap + overflow:hidden (single-line
   ellipsis on desktop). On mobile, allow full wrapping so the
   complete title is readable.
   ============================================================ */
@media (max-width: 768px) {
  .fg-story-item__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ============================================================
   ABOUT US PAGE — MOBILE LAYOUT
   page-about.php uses several inline grid layouts that collapse
   on narrow screens. Classes added to each grid container so we
   can override with !important without touching inline styles.
   ============================================================ */
@media (max-width: 768px) {
  /* Hero: reduce horizontal padding so text doesn't get squeezed */
  .fg-page-hero {
    padding: 32px 20px !important;
  }

  /* Stats row: 4 cols → 2 cols */
  .fg-about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Main 2-col layout (content + sidebar) → single column */
  .fg-about-layout {
    display: block !important;
  }
  .fg-about-layout > aside {
    margin-top: 24px;
  }

  /* Team cards: 3 cols → 1 col so bios are readable */
  .fg-about-team-grid {
    grid-template-columns: 1fr !important;
  }

  /* Reasons grid: 2 cols → 1 col */
  .fg-about-reasons-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   CONTACT US PAGE — MOBILE LAYOUT
   page-contact.php uses inline grids for the main layout, the
   name/email form row, and the social links grid.
   ============================================================ */
@media (max-width: 768px) {
  /* Contact hero: reduce padding to match About Us fix */
  .fg-contact-layout {
    display: block !important;
  }
  .fg-contact-layout > div:last-child {
    margin-top: 24px;
  }

  /* Name + Email side-by-side → stacked */
  .fg-contact-name-email {
    grid-template-columns: 1fr !important;
  }

  /* Social links: 2 cols → 1 col so handles don't clip */
  .fg-contact-social-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   LANGUAGE SWITCHER BAR — Footer GTranslate widget
   Sits between the footer grid and the bottom copyright bar.
   ============================================================ */
.fg-lang-bar {
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 0;
}
.fg-lang-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fg-lang-bar__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--fg-muted);
    margin-right: 6px;
    white-space: nowrap;
}
/* GTranslate wrapper — override any plugin positioning defaults */
.fg-lang-bar .gtranslate_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: static !important;
}
/* Language links */
.fg-lang-bar .gtranslate_wrapper a.notranslate,
.fg-lang-bar .gtranslate_wrapper a.gt-current-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.fg-lang-bar .gtranslate_wrapper a.notranslate:hover,
.fg-lang-bar .gtranslate_wrapper a.gt-current-wrapper:hover {
    background: rgba(255,255,255,.07);
    color: var(--fg-white);
}
.fg-lang-bar .gtranslate_wrapper a.gt-current-lang,
.fg-lang-bar .gtranslate_wrapper a.gt-current-wrapper {
    color: var(--fg-white);
    background: rgba(255,255,255,.06);
}
.fg-lang-bar .gtranslate_wrapper img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}
/* Hide plugin branding */
.fg-lang-bar .gt_logo,
.fg-lang-bar [class*="gt-logo"],
.fg-lang-bar [class*="gtranslate-logo"] { display: none !important; }

@media (max-width: 480px) {
    .fg-lang-bar__inner { gap: 4px; }
    .fg-lang-bar .gtranslate_wrapper a.notranslate,
    .fg-lang-bar .gtranslate_wrapper a.gt-current-wrapper { padding: 4px 7px; font-size: 11px; }
    .fg-lang-bar .gtranslate_wrapper img { width: 16px; height: 16px; }
}

/* ============================================================
   ARABIC RTL SUPPORT
   Google Translate sets dir="rtl" on <html> when Arabic is
   active. These rules flip layout-sensitive flex/grid rows.
   ============================================================ */
html[dir="rtl"] body,
html[dir="rtl"] .fg-main,
html[dir="rtl"] .fg-container { direction: rtl; text-align: right; }

html[dir="rtl"] .fg-header__inner,
html[dir="rtl"] .fg-layout,
html[dir="rtl"] .fg-footer__grid,
html[dir="rtl"] .fg-story-item,
html[dir="rtl"] .fg-result__row { flex-direction: row-reverse; }

html[dir="rtl"] .fg-nav,
html[dir="rtl"] .fg-footer__col ul { text-align: right; }

html[dir="rtl"] .fg-result__team.away { justify-content: flex-start; }
html[dir="rtl"] .fg-result__team.home { justify-content: flex-end; }

html[dir="rtl"] .fg-widget__header { text-align: right; }

/* Language bar stays centered in RTL */
html[dir="rtl"] .fg-lang-bar__inner { flex-direction: row; }

/* ── Site Logo — Desktop ────────────────────────────────────────────────────── */
.fg-logo__img,
.site-logo img,
.custom-logo,
.ast-site-identity img,
.site-branding img {
  height: 60px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

/* ── Site Logo — Mobile ─────────────────────────────────────────────────────── */
/* picture element itself must not introduce extra layout space */
.fg-logo picture { display: contents; }
@media (max-width: 768px) {
  .fg-logo__img,
  .site-logo img,
  .custom-logo,
  .ast-site-identity img,
  .site-branding img {
    height: auto !important;
    width: auto !important;
    max-width: 120px !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }
}

/* ── WhatsApp Link (contact/advertise pages) ─────────────────────────────────── */
.fg-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.fg-whatsapp-link:hover {
    opacity: 0.8;
}
.fg-whatsapp-link svg,
.fg-whatsapp-link i {
    font-size: 20px;
    color: #25D366;
}

/* ── WhatsApp Footer Social Icon ─────────────────────────────────────────────── */
.fg-whatsapp {
    color: #ffffff;
    transition: color 0.2s;
}
.fg-whatsapp:hover {
    color: #25D366;
}

/* ── Telegram Footer Social Icon ─────────────────────────────────────────────── */
.fg-telegram {
    color: #ffffff;
    transition: color 0.2s;
}
.fg-telegram:hover {
    color: #229ED9;
}

/* ============================================================
   MOBILE SOCIAL ICONS FIX
   Ensure footer social circles and Follow Us buttons are always
   visible on mobile. Overrides any plugin or inherited rules
   that may suppress display on narrow viewports.
   ============================================================ */
@media (max-width: 768px) {
  /* Footer social icon circles */
  .fg-footer__social {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
  }
  .fg-footer__social a {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    /* Larger tap target on mobile */
    min-width: 42px !important;
    min-height: 42px !important;
  }
  .fg-footer__social svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* Sidebar Follow Us buttons */
  .fg-follow-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .fg-follow-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    /* Proper tap target */
    padding: 10px 14px !important;
  }
  .fg-follow-btn svg {
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
  }
}
