/* ==========================================================================
   Jadwal Bola PedangJP — Modern Football Portal Theme v2.0
   Dark Navy + Gold Professional Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:          #0D1B2A;
  --navy-light:    #162032;
  --navy-mid:      #1E2D3D;
  --gold:          #FFB800;
  --gold-light:    #FFD54F;
  --gold-pale:     #FFF8E1;
  --bg:            #F0F2F5;
  --card-bg:       #FFFFFF;
  --text:          #0D1B2A;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;
  --success:       #10B981;
  --success-bg:    #D1FAE5;
  --danger:        #EF4444;
  --danger-bg:     #FEE2E2;
  --warning:       #F59E0B;
  --info:          #3B82F6;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --transition:    .2s ease;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }

img { max-width: 100%; }

/* ── Bootstrap Overrides ─────────────────────── */
.btn { font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--info);
  border-color: var(--info);
  color: #fff;
}
.btn-primary:hover { background: #2563eb; border-color: #2563eb; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--navy);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-sm { font-size: .8125rem; padding: .35rem .85rem; }
.btn-xs { padding: .2rem .55rem; font-size: .75rem; border-radius: 4px; }

.badge { font-weight: 600; letter-spacing: .02em; }

/* ── Top Bar ─────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: #9CA3AF;
  font-size: .78rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.top-bar a { color: #9CA3AF; }
.top-bar a:hover { color: var(--gold); }

/* ── Site Header / Navbar ────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.site-header .navbar {
  background: var(--navy-light) !important;
  padding: .6rem 0;
}

.site-header .navbar-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.2;
}
.site-header .navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.site-header .navbar-brand .brand-name { color: #fff; }
.site-header .navbar-brand .brand-sub { color: var(--gold); font-size: .72rem; font-weight: 500; display: block; }

.site-header .nav-link {
  color: #CBD5E1 !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}
.site-header .nav-link.active { color: var(--gold) !important; }

.site-header .dropdown-menu {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  min-width: 210px;
  margin-top: .4rem;
}
.site-header .dropdown-item {
  color: #CBD5E1;
  font-size: .875rem;
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.site-header .dropdown-item:hover {
  background: rgba(255,184,0,.12);
  color: var(--gold);
}
.site-header .dropdown-divider { border-color: rgba(255,255,255,.08); margin: .3rem 0; }

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: .3rem .5rem !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,184,0,.3); }

/* ── Live Badge ──────────────────────────────── */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.35);
  color: #FCA5A5;
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
a.live-chip:hover,
a.live-chip:focus {
  background: rgba(239,68,68,.28);
  border-color: rgba(239,68,68,.6);
  color: #FCA5A5;
  transform: scale(1.04);
  text-decoration: none;
  outline: none;
}
.live-dot {
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,.6);
}
@keyframes livePulse {
  0%   { opacity: 1; transform: scale(1);    box-shadow: 0 0 0 0   rgba(239,68,68,.6); }
  50%  { opacity: .8; transform: scale(.85); box-shadow: 0 0 0 4px rgba(239,68,68,.0); }
  100% { opacity: 1; transform: scale(1);    box-shadow: 0 0 0 0   rgba(239,68,68,.6); }
}

/* ── Page Wrapper ────────────────────────────── */
.page-wrapper { padding: 1.25rem 0 2.5rem; }

/* ── Section Card ────────────────────────────── */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.section-card:hover { box-shadow: var(--shadow); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(to right, #FAFBFC, #FFFFFF);
}
.section-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title .title-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.section-body { padding: .85rem 1.1rem; }

/* ── Fixture Card ────────────────────────────── */
.fixture-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem 1rem;
  margin-bottom: .5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.fixture-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  transition: background var(--transition);
}
.fixture-card:hover {
  box-shadow: var(--shadow);
  border-color: #D1D5DB;
  transform: translateX(2px);
}
.fixture-card:hover::before { background: var(--info); }
.fixture-card.fixture-live { border-color: #FECACA; background: #FFF5F5; }
.fixture-card.fixture-live::before { background: var(--danger); }
.fixture-card.fixture-finished::before { background: var(--success); }

/* ══════════════════════════════════════════════════════════════
   FIXTURE CARD — Stacked Layout  (FlashScore style)
   One row per team → flags never overlap names or each other
   ══════════════════════════════════════════════════════════════ */

/* Clickable wrapper for the whole match row */
.fixture-main {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
}

/* ── Time / Status column ─────────────────────── */
.fixture-status {
  flex-shrink: 0;
  width: 52px;           /* fixed width so all cards align */
  text-align: center;
}
.fixture-time {
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.fixture-date {
  font-size: .67rem;
  color: #9CA3AF;
  margin-top: .1rem;
  white-space: nowrap;
  line-height: 1.1;
}
.fixture-minute {
  font-size: .75rem;
  font-weight: 700;
  color: var(--danger);
  line-height: 1.1;
}
.fx-badge-live {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  letter-spacing: .04em;
  animation: livePulse 1.2s ease-in-out infinite;
}
.fx-badge-ft {
  display: inline-block;
  background: #D1FAE5;
  color: #065F46;
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ── Teams column ─────────────────────────────── */
.fixture-teams {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fx-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

/* ── Team badge chip ──────────────────────────── */
/*
 * fx-flag-box = SQUARE fixed container — same size for every team
 *               (SportMonks logos are PNG badges/crests, usually square or
 *                portrait; a square container suits all aspect ratios better
 *                than a landscape "flag chip")
 * fx-flag     = img scaled with contain so the full badge is visible
 * fx-abbr     = text fallback, visually fills the same square
 */
.fx-flag-box {
  flex-shrink: 0;
  width: 28px;
  height: 28px;          /* SQUARE — works for shields, circles, crests */
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fx-flag {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full badge — no cropping */
  display: block;
}
.fx-abbr {
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--navy-mid);
  border-radius: 3px;
}

/* ── Team name ────────────────────────────────── */
.fx-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-row.winner .fx-name {
  font-weight: 800;
  color: var(--navy);
}

/* ── Score ────────────────────────────────────── */
.fx-score {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.fx-score.live   { color: var(--danger); }
.fx-row.winner .fx-score { color: #16a34a; }

/* ── Arrow ────────────────────────────────────── */
.fixture-arrow {
  flex-shrink: 0;
  width: 20px;
  color: #D1D5DB;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fixture-main:hover .fixture-arrow { color: var(--info); }
.fixture-main:hover .fx-name       { color: var(--info); }

@keyframes scorePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.fixture-venue {
  font-size: .72rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .3rem;
}

/* ── Affiliate button in fixture card ── */
.affiliate-fixture-btn {
  display: block;
  text-align: center;
  transition: filter .2s, transform .1s;
  text-decoration: none;
}
.affiliate-fixture-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff;
}
.affiliate-fixture-btn:active {
  transform: translateY(0);
}

/* ── Affiliate link/button in header ── */
.affiliate-header-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.5) !important;
  color: #fff;
}
.affiliate-header-link:hover {
  color: #FFD700 !important;
}

/* ── Team Logos ──────────────────────────────── */
.team-logo {
  width: 26px; height: 26px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.team-logo-sm { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.team-logo-md { width: 36px; height: 36px; object-fit: contain; }
.team-logo-lg { width: 60px; height: 60px; object-fit: contain; }
.team-logo-xl { width: 90px; height: 90px; object-fit: contain; }

.team-abbr {
  width: 26px; height: 26px;
  background: var(--border-light);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Team Card ───────────────────────────────── */
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: all var(--transition);
  overflow: hidden;
  color: var(--text) !important;
}
.team-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.team-card-body { padding: 1rem; text-align: center; }

/* ── Banner Slider ───────────────────────────── */
.hero-carousel .carousel-item img {
  max-height: 300px;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
}
@media (max-width: 767px) {
  .hero-carousel .carousel-item img { max-height: 180px; border-radius: var(--radius-sm); }
}

/* ── Stats Bar ───────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,184,0,.12);
  border: 1px solid rgba(255,184,0,.25);
  color: var(--navy);
  padding: .4rem .85rem;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 600;
}
.stat-chip .stat-num { color: var(--gold); font-weight: 800; }

/* ── Sidebar ─────────────────────────────────── */
.sidebar { font-size: .875rem; }

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.sidebar-widget-header {
  background: var(--navy);
  color: var(--gold);
  padding: .6rem .85rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sidebar-widget-body { padding: .5rem .15rem; }

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  color: var(--text);
  font-size: .8375rem;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: var(--gold-pale);
  color: var(--navy);
  border-left-color: var(--gold);
}
.sidebar-nav-link .nav-icon {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: color var(--transition);
}
.sidebar-nav-link:hover .nav-icon { color: var(--gold); }

/* ── Quick Match Widget ──────────────────────── */
.next-match-widget {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.next-match-widget .match-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.next-match-widget .match-teams {
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}
.next-match-widget .match-vs {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  margin: 0 .4rem;
}

/* ── Page Header ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,184,0,.08);
}
.page-hero .page-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .25rem;
  color: #fff;
}
.page-hero .page-subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.page-hero .page-tag {
  display: inline-block;
  background: rgba(255,184,0,.2);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}

/* ── Empty State ─────────────────────────────── */
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .75rem;
  opacity: .4;
}
.empty-state p { font-size: .9rem; margin: 0; }

/* ── Breadcrumbs ─────────────────────────────── */
.breadcrumb-wrap {
  margin-bottom: 1rem;
}
.breadcrumb {
  font-size: .8rem;
  background: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--navy); }
.breadcrumb-item.active { color: var(--text); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ── WC Sub Nav ──────────────────────────────── */
.wc-subnav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  margin-bottom: 1rem;
}
.wc-subnav::-webkit-scrollbar { display: none; }
.wc-subnav .nav-pills .nav-link {
  font-size: .8375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .9rem;
  margin-right: .4rem;
  transition: all var(--transition);
}
.wc-subnav .nav-pills .nav-link.active,
.wc-subnav .nav-pills .nav-link:hover {
  background: var(--navy);
  color: var(--gold) !important;
  border-color: var(--navy);
}

/* ── Standings Table ─────────────────────────── */
.standings-table {
  font-size: .8375rem;
  margin: 0;
}
.standings-table thead th {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
  padding: .5rem .5rem;
  background: var(--border-light);
}
.standings-table tbody tr { transition: background var(--transition); }
.standings-table tbody tr:hover { background: var(--gold-pale); }
.standings-table td { padding: .55rem .5rem; border-color: var(--border-light); vertical-align: middle; }
.standings-table .pos-badge {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  background: var(--border-light);
  color: var(--text-muted);
}
.standings-table .pos-badge.qualify { background: var(--success-bg); color: var(--success); }
.standings-table .pos-badge.top { background: rgba(255,184,0,.15); color: #B45309; }

/* ── Pagination ──────────────────────────────── */
.pagination { gap: .2rem; }
.pagination .page-link {
  color: var(--text);
  border-color: var(--border);
  border-radius: var(--radius-sm) !important;
  font-size: .8375rem;
  font-weight: 500;
  padding: .4rem .75rem;
  transition: all var(--transition);
}
.pagination .page-link:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--navy); }
.pagination .page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

/* ── Bottom Banner ───────────────────────────── */
.bottom-banner-wrap { background: var(--border-light); border-top: 1px solid var(--border); padding: .75rem 0; }
.bottom-banner-img { max-height: 90px; border-radius: var(--radius-sm); }

/* ── Popup Banner ────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.popup-inner {
  position: relative;
  max-width: 500px;
  width: 100%;
  animation: popupIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.popup-img { width: 100%; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-lg); }
.popup-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  z-index: 1;
  transition: all var(--transition);
}
.popup-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

/* ── Match Detail ────────────────────────────── */
.match-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
}
.match-score-display {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: .05em;
  color: #fff;
}
.match-team-name { font-weight: 700; font-size: 1.1rem; }
.event-icon { font-size: 1rem; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #9CA3AF;
  margin-top: 3rem;
}
.footer-top { padding: 3rem 0 2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1rem 0;
  font-size: .8rem;
  color: #6B7280;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-brand-icon {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.footer-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .75rem;
}
.footer-link {
  display: block;
  color: #9CA3AF;
  font-size: .8375rem;
  padding: .2rem 0;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-link:hover { color: var(--gold); }

/* ── Flash / Alert ───────────────────────────── */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: var(--success-bg); color: #065F46; }
.alert-danger  { background: var(--danger-bg);  color: #991B1B; }

/* ── Qual Badge ──────────────────────────────── */
.qual-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: var(--border-light);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Loading Spinner ─────────────────────────── */
.spinner-gold { color: var(--gold); }

/* ── Scroll Hint ─────────────────────────────── */
.scroll-hint {
  display: none;
  font-size: .72rem;
  color: var(--text-light);
  text-align: right;
  margin-top: .25rem;
}
@media (max-width: 575px) { .scroll-hint { display: block; } }

/* ── Utility ─────────────────────────────────── */
.font-mono { font-family: "SFMono-Regular", Consolas, monospace; }
.text-gold { color: var(--gold) !important; }
.bg-navy   { background: var(--navy) !important; }
.fw-800    { font-weight: 800 !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.gap-xs    { gap: .35rem; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet / Collapsed nav (≤991px) ─────────── */
@media (max-width: 991px) {
  .page-wrapper { padding: .85rem 0 2rem; }

  /* Hamburger panel */
  .site-header .navbar-collapse {
    margin-top: .65rem;
    max-height: 82vh;
    overflow-y: auto;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: .4rem;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .navbar-nav { width: 100%; }
  .site-header .navbar-nav > .nav-item + .nav-item {
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .site-header .navbar-nav > .nav-item > .nav-link {
    padding: .8rem .85rem !important;
    font-size: .93rem;
    display: flex;
    align-items: center;
  }
  .site-header .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
    margin-left: auto;
    transition: transform var(--transition);
  }
  .site-header .navbar-nav > .nav-item.show > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
  .site-header .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    transform: none !important;
    background: rgba(0,0,0,.18);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: .2rem 0;
    margin: .1rem 0 .2rem;
  }
  .site-header .dropdown-item {
    color: #CBD5E1;
    padding: .6rem 1rem;
    white-space: normal;
    border-radius: var(--radius-sm);
  }
  .site-header .dropdown-item:active { background: rgba(255,184,0,.15); }
  .site-header .navbar-collapse > .d-flex {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    justify-content: center;
  }
  .site-header .affiliate-header-btn { width: 100%; text-align: center; }

  /* Section body less padding on tablet too */
  .section-body { padding: .75rem .9rem; }
}

/* Hamburger toggler tap feedback */
.navbar-toggler { transition: background var(--transition); }
.navbar-toggler:active { background: rgba(255,255,255,.08); }

/* ── Mobile (≤767px) ──────────────────────────── */
@media (max-width: 767px) {
  .hero-carousel .carousel-item img { border-radius: 0; }

  /* Section header: wrap date labels so they never push badge off screen */
  .section-header {
    flex-wrap: wrap;
    gap: .3rem .5rem;
    padding: .65rem .85rem;
  }
  .section-title { min-width: 0; flex: 1 1 auto; font-size: .875rem; }
  .section-header > .badge, .section-header > a { flex-shrink: 0; }

  /* Reduce section-body padding so cards get full width */
  .section-body { padding: .6rem .65rem; }

  /* Fixture card */
  .fixture-card { padding: .6rem .7rem; margin-bottom: .4rem; }
  .fixture-main { gap: .55rem; }
  .fixture-status { width: 46px; }
  .fixture-time { font-size: .82rem; }
  .fixture-date { font-size: .64rem; }
  .fixture-teams { gap: .35rem; }
  .fx-row { gap: .5rem; }
  /* fx-flag-box: stays 28×28 square — inherited, no override needed here */
  .fx-name { font-size: .875rem; }
  .fx-score { font-size: 1rem; width: 20px; }
  .fixture-arrow { width: 16px; font-size: .78rem; }

  .page-hero { padding: 1rem; border-radius: var(--radius); }
  .page-hero .page-title { font-size: 1.15rem; }
}

/* ── Small phones (≤430px) ───────────────────── */
@media (max-width: 430px) {
  .section-body { padding: .5rem .5rem; }
  .fixture-card { padding: .55rem .6rem; }
  .fixture-main { gap: .45rem; }
  .fixture-status { width: 42px; }
  .fixture-time { font-size: .8rem; }
  .fixture-date { font-size: .6rem; }
  .fx-row { gap: .45rem; }
  .fx-name { font-size: .845rem; }
  .fx-score { font-size: .95rem; width: 18px; }
}

/* ── Very small phones (≤360px) ─────────────── */
@media (max-width: 360px) {
  .fixture-card { padding: .5rem .5rem; }
  .fixture-main { gap: .4rem; }
  .fixture-status { width: 40px; }
  .fx-flag-box { width: 24px; height: 24px; }   /* still square */
  .fx-name { font-size: .82rem; }
  .fx-score { width: 16px; font-size: .9rem; }
  .fixture-arrow { display: none; }
}

/* ==========================================================================
   HOME HERO — Extended Marketing Design
   ========================================================================== */

.home-hero {
  background: linear-gradient(140deg, #0D1B2A 0%, #1B2F48 50%, #162032 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  overflow: hidden;
  position: relative;
}

/* Decorative football field lines pattern */
.home-hero .hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(255,184,0,.07) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255,184,0,.04) 0%, transparent 40%);
  pointer-events: none;
}

.home-hero .hero-highlight {
  color: var(--gold);
  font-size: 1.1em;
  display: block;
  line-height: 1.2;
}

.home-hero .page-title {
  font-size: 1.6rem;
  line-height: 1.2;
}

.hero-venue-pill {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: 20px;
}

.hero-btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.18);
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

/* ── Hero Stats Bar ───────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.hero-stat-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .1rem;
}
.hero-stat-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.12);
}

/* ── Hero Trophy ─────────────────────────────── */
.hero-trophy {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(255,184,0,.35));
  animation: trophyFloat 3s ease-in-out infinite;
}
@keyframes trophyFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ── Promo Shortcuts ─────────────────────────── */
.promo-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem .75rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}
.promo-shortcut:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.promo-icon {
  font-size: 1.6rem;
  margin-bottom: .35rem;
  display: block;
}
.promo-label {
  font-size: .8125rem;
  font-weight: 700;
  display: block;
}
.promo-sub {
  font-size: .67rem;
  margin-top: .2rem;
  font-weight: 500;
}

/* ==========================================================================
   TEAM HERO HEADER
   ========================================================================== */

.team-hero-header {
  border: none;
  overflow: visible;
}
.team-hero-body {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
}
.team-hero-logo {
  flex-shrink: 0;
}
.team-logo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
}

.team-points-badge {
  background: rgba(255,184,0,.12);
  border: 1.5px solid rgba(255,184,0,.3);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  min-width: 90px;
}
.points-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.points-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}
.points-pos {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
}
.qualify-chip {
  background: var(--success-bg);
  color: var(--success);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 20px;
  display: inline-block;
}

/* ── Stat Mini Cards ─────────────────────────── */
.stat-mini-card {
  border-radius: var(--radius);
  padding: .85rem .5rem;
  text-align: center;
  transition: transform var(--transition);
}
.stat-mini-card:hover { transform: translateY(-2px); }
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin: .35rem 0 .15rem;
}
.stat-lbl {
  font-size: .67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE ADDITIONS
   ========================================================================== */

@media (max-width: 767px) {
  .home-hero { padding: 1.25rem 1.1rem 1rem; }
  .home-hero .page-title { font-size: 1.25rem; }
  .hero-stats { gap: .5rem; }
  .hero-stat-num { font-size: 1.05rem; }
  .team-hero-body { padding: 1.1rem; }
  .team-points-badge { display: none; }
}
@media (max-width: 575px) {
  .hero-stat-div { height: 20px; }
  .promo-shortcut { padding: .75rem .5rem; }
  .promo-icon { font-size: 1.3rem; }
}

/* ==========================================================================
   SCHEDULE — Grouped by Date
   ========================================================================== */

.schedule-day-group .section-header {
  padding-left: 1.1rem;
}
.today-group .section-header {
  background: linear-gradient(to right,#FFF8E1,#FFFDF5) !important;
}

/* ==========================================================================
   BRACKET — Tournament Knockout Tree
   ========================================================================== */

.bracket-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.25rem 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border-light);
}
.bracket-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.bracket-scroll-wrapper::-webkit-scrollbar-track { background: var(--border-light); border-radius: 3px; }
.bracket-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.bracket-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: max-content;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 180px;
}
.bracket-round-final { min-width: 210px; }

.bracket-round-label {
  text-align: center;
  margin-bottom: .5rem;
}
.bracket-stage-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 20px;
}
.bracket-stage-badge.final {
  background: linear-gradient(135deg, var(--gold) 0%, #FFD54F 100%);
  color: var(--navy);
  font-size: .8rem;
  padding: .35rem 1rem;
  box-shadow: 0 2px 8px rgba(255,184,0,.35);
}

.bracket-matches {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* ── Single match card ───────────────────────────── */
.bracket-match {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .75rem;
  transition: all var(--transition);
  display: block;
  color: var(--text) !important;
}
.bracket-match:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.bracket-match.live {
  border-color: var(--danger);
  background: #FFF5F5;
}
.bracket-match.final-match {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #FFFBEB, #FFF);
  box-shadow: 0 4px 16px rgba(255,184,0,.2);
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem 0;
  transition: opacity var(--transition);
}
.bracket-team.loser { opacity: .45; }
.bracket-team.winner .bracket-team-name { font-weight: 700; color: var(--navy); }

.bracket-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.bracket-logo-placeholder {
  width: 20px; height: 20px;
  background: var(--border-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bracket-team-name {
  font-size: .8rem;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.bracket-score {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 16px;
  text-align: right;
  margin-left: auto;
}
.bracket-score.score-win { color: var(--navy); }

.bracket-divider {
  text-align: center;
  padding: .15rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: .15rem 0;
}
.bracket-vs { font-size: .7rem; color: var(--text-light); font-weight: 600; }
.bracket-kickoff { font-size: .65rem; color: var(--text-muted); }
.bracket-live-dot {
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.2s ease-in-out infinite;
}

/* ── Coming soon skeleton ────────────────────────── */
.bracket-coming-soon {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}
.bracket-trophy {
  font-size: 4rem;
  animation: trophyFloat 3s ease-in-out infinite;
}
.bracket-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1.5rem auto;
  max-width: 700px;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.bracket-col-preview {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 100px;
}
.bracket-final-col { min-width: 120px; }
.bracket-stage-label-preview {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: .3rem;
}
.bracket-slot-skeleton {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: .4rem .5rem;
}
.bracket-final-slot-skeleton {
  background: rgba(255,184,0,.1);
  border: 1px dashed var(--gold);
}
.bracket-team-skeleton {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin: .2rem 0;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
.bracket-score-skeleton {
  height: 6px;
  width: 60%;
  background: var(--border-light);
  border-radius: 4px;
  margin: .25rem auto;
}
.bracket-final-vs {
  font-size: 1.2rem;
  text-align: center;
  margin: .3rem 0;
}
@keyframes skeletonPulse {
  0%,100% { opacity: .6; }
  50%      { opacity: .3; }
}

/* ==========================================================================
   MATCH DETAIL PAGE — Redesigned Header
   ========================================================================== */

.match-header-card { border: none; }
.match-header-body {
  background: linear-gradient(135deg, var(--navy) 0%, #1B2F48 60%, #162032 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  color: #fff;
  text-align: center;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.match-league-badge {
  display: inline-block;
  background: rgba(255,184,0,.2);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 20px;
}
.match-stage-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.match-team-name {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.3;
}
a.match-team-name:hover { color: var(--gold); }

.match-score-big {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .03em;
  line-height: 1;
}
.match-minute-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .4rem;
  animation: livePulse 1.2s ease-in-out infinite;
}
.match-status-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 20px;
}
.match-status-pill.live     { background:var(--danger); color:#fff; }
.match-status-pill.finished { background:var(--success-bg); color:var(--success); }
.match-status-pill.upcoming { background:rgba(255,255,255,.1); color:rgba(255,255,255,.75); }

.match-info-row {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: .5rem;
}

.event-minute {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-light);
  min-width: 26px;
  flex-shrink: 0;
}

/* ==========================================================================
   SOCIAL SHARE BAR
   ========================================================================== */

.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.share-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.share-wa  { background: #25D366; color: #fff; }
.share-wa:hover  { background: #1ebe5d; color: #fff; }
.share-tw  { background: #000; color: #fff; }
.share-tw:hover  { background: #222; color: #fff; }
.share-fb  { background: #1877F2; color: #fff; }
.share-fb:hover  { background: #0a6be0; color: #fff; }
.share-copy { background: var(--border-light); color: var(--text); }
.share-copy:hover { background: var(--border); color: var(--navy); }

/* ==========================================================================
   PREDICTION / VOTING WIDGET
   ========================================================================== */

.pred-btn-row {
  display: flex;
  gap: .6rem;
  justify-content: center;
}
.pred-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .75rem .5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  cursor: pointer;
  transition: all var(--transition);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}
.pred-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pred-btn.voted {
  border-color: var(--gold);
  background: #FFF8E1;
  color: var(--navy);
}
.pred-btn small { font-size: .67rem; color: var(--text-muted); font-weight: 400; }
.pred-team-logo { width: 28px; height: 28px; object-fit: contain; }

.pred-results { margin-top: .5rem; }
.pred-bar-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.pred-bar-label {
  font-size: .75rem;
  font-weight: 600;
  min-width: 90px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pred-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.pred-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.pred-bar-fill.home { background: linear-gradient(to right, #3B82F6, #60A5FA); }
.pred-bar-fill.draw { background: linear-gradient(to right, #9CA3AF, #D1D5DB); }
.pred-bar-fill.away { background: linear-gradient(to right, #EF4444, #FCA5A5); }
.pred-bar-pct {
  font-size: .72rem;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
  color: var(--text-muted);
}

/* ==========================================================================
   ARTICLE CARDS
   ========================================================================== */

.article-cat-pill {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-muted);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.article-cat-pill:hover, .article-cat-pill.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text);
  height: 100%;
}
.article-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--text);
}
.article-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-img-placeholder { }
.article-cat-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .5rem;
  border-radius: 10px;
}
.article-cat-badge-lg {
  display: inline-block;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-right: .3rem;
}
.article-card-body {
  padding: .85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title.small-title { font-size: .8rem; -webkit-line-clamp: 2; }
.article-card-excerpt {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Article Detail Page ──────────────────────────── */
.article-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin: .5rem 0;
}
@media (max-width: 767px) { .article-title { font-size: 1.25rem; } }

.article-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: .75rem 0;
}
.article-author-avatar {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.article-hero-img-wrap { }
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.article-content {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
}
.article-content p { margin-bottom: 1rem; }

/* ── Article Mini Card (related) ───────────────────── */
.article-card-mini {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text);
  background: var(--card-bg);
}
.article-card-mini:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.article-card-mini-img {
  height: 80px;
  background-size: cover;
  background-position: center;
  background-color: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-mini-body { padding: .5rem .6rem; }
.article-card-mini-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.article-card-mini-date { font-size: .68rem; color: var(--text-light); margin-top: .25rem; }

/* ==========================================================================
   IN-CONTENT BANNER (between sections)
   ========================================================================== */
.in-content-banner {
  margin: 1rem 0;
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.in-content-banner img {
  max-height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.in-content-banner-label {
  font-size: .65rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
