/* ============================================================
   VFG CHILD THEME — main.css
   Vegas Fight Guide · Dark Combat Sports Design System
   Matches Figma: EugYi6Z8wSzMJ68cgPlVcw
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ──────────────────────────────── */
:root {
  /* Brand Colours */
  --vfg-red:          #E8333A;
  --vfg-red-dark:     #C42830;
  --vfg-red-glow:     rgba(232, 51, 58, 0.25);

  /* Backgrounds */
  --vfg-bg-base:      #0A0A0A;
  --vfg-bg-surface:   #111111;
  --vfg-bg-raised:    #1A1A1A;
  --vfg-bg-card:      #161616;
  --vfg-bg-overlay:   rgba(0,0,0,0.7);

  /* Text */
  --vfg-text-primary: #FFFFFF;
  --vfg-text-muted:   #9A9A9A;
  --vfg-text-faint:   #555555;

  /* Borders */
  --vfg-border:       #2A2A2A;
  --vfg-border-light: #333333;

  /* Typography */
  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py:   80px;
  --container-w:  1200px;
  --container-px: 24px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-med:  0.3s ease;
}

/* ── 2. RESET / BASE ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body.vfg-dark-theme {
  background-color: var(--vfg-bg-base);
  color: var(--vfg-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Override Divi's default light background */
body.vfg-dark-theme,
.vfg-dark-theme #page-container,
.vfg-dark-theme #main-content,
.vfg-dark-theme .vfg-main-content {
  background-color: var(--vfg-bg-base) !important;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--vfg-red); text-decoration: none; transition: color var(--trans-fast); }
a:hover { color: var(--vfg-text-primary); }

/* ── 3. LAYOUT UTILITIES ───────────────────────────────────── */
.vfg-container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.vfg-section {
  padding: var(--section-py) 0;
}

.vfg-site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vfg-main-content {
  flex: 1;
}

/* ── 4. BUTTONS ────────────────────────────────────────────── */
.vfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans-med);
  white-space: nowrap;
  text-decoration: none;
}

.vfg-btn-primary {
  background: var(--vfg-red);
  border-color: var(--vfg-red);
  color: #fff;
}
.vfg-btn-primary:hover {
  background: var(--vfg-red-dark);
  border-color: var(--vfg-red-dark);
  color: #fff;
}

.vfg-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--vfg-text-primary);
}
.vfg-btn-outline:hover {
  border-color: var(--vfg-red);
  color: var(--vfg-red);
}

.vfg-btn-sm {
  padding: 10px 20px;
  font-size: 11px;
}

/* ── 5. SECTION HEADERS ─────────────────────────────────────── */
.vfg-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.vfg-section-header--centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--vfg-red);
  text-transform: uppercase;
  margin-bottom: 12px;
  width: 100%;
}

.section-label-line {
  flex: 1;
  height: 1px;
  background: var(--vfg-border);
  max-width: 60px;
}

.vfg-section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vfg-text-primary);
  line-height: 1.2;
}

.vfg-section-desc {
  color: var(--vfg-text-muted);
  max-width: 520px;
  margin-top: 12px;
}

.section-title-accent {
  width: 48px;
  height: 3px;
  background: var(--vfg-red);
  margin: 12px auto 0;
}

.section-header-link {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--vfg-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
}
.section-header-link:hover { color: var(--vfg-red); }

.section-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ── 6. HEADER ──────────────────────────────────────────────── */
.vfg-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: transparent;
}

/* Topbar */
.vfg-header-topbar {
  background: var(--vfg-red);
  padding: 6px 0;
}
.vfg-header-topbar .vfg-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-tagline {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.topbar-cta {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.topbar-cta:hover { color: rgba(255,255,255,0.7); }

/* Main navbar */
.vfg-navbar {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vfg-border);
  transition: background var(--trans-med), box-shadow var(--trans-med);
}
.vfg-navbar.scrolled {
  background: rgba(8,8,8,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.vfg-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.vfg-logo-wrap { flex-shrink: 0; }
.vfg-text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  font-family: var(--font-heading);
}
.logo-vegas { font-size: 10px; letter-spacing: 0.3em; color: var(--vfg-red); text-transform: uppercase; }
.logo-fight { font-size: 16px; font-weight: 700; color: var(--vfg-text-primary); text-transform: uppercase; letter-spacing: 0.1em; }
.logo-guide { font-size: 10px; letter-spacing: 0.25em; color: var(--vfg-text-muted); text-transform: uppercase; }
.vfg-text-logo:hover .logo-fight { color: var(--vfg-red); }

/* Override Divi custom logo sizing */
.vfg-logo-wrap .custom-logo { max-height: 50px; width: auto; }

/* Primary nav */
.vfg-primary-nav { flex: 1; display: flex; justify-content: center; }
.vfg-nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.vfg-nav-menu li a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vfg-text-muted);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color var(--trans-fast), background var(--trans-fast);
  text-decoration: none;
}
.vfg-nav-menu li a:hover,
.vfg-nav-menu li.current-menu-item > a,
.vfg-nav-menu li.current-page-ancestor > a {
  color: var(--vfg-text-primary);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.vfg-nav-menu li { position: relative; }
.vfg-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--vfg-bg-surface);
  border: 1px solid var(--vfg-border);
  border-top: 2px solid var(--vfg-red);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--trans-med);
  z-index: 100;
  flex-direction: column;
  list-style: none;
  padding: 8px 0;
}
.vfg-nav-menu li:hover > .sub-menu,
.vfg-nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vfg-nav-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  background: transparent;
  border-radius: 0;
}

/* Header actions */
.vfg-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.vfg-search-toggle {
  background: none;
  border: none;
  color: var(--vfg-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color var(--trans-fast);
}
.vfg-search-toggle:hover { color: var(--vfg-text-primary); }

/* Mobile hamburger */
.vfg-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  padding: 8px 10px;
  cursor: pointer;
}
.vfg-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vfg-text-muted);
  transition: all var(--trans-fast);
}
.vfg-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vfg-menu-toggle.active span:nth-child(2) { opacity: 0; }
.vfg-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search Overlay */
.vfg-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(16px);
  padding: 32px 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all var(--trans-med);
}
.vfg-search-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vfg-search-overlay .vfg-container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vfg-search-form { flex: 1; display: flex; gap: 0; }
.vfg-search-input {
  flex: 1;
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-right: none;
  color: var(--vfg-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 20px;
  outline: none;
}
.vfg-search-input::placeholder { color: var(--vfg-text-faint); }
.vfg-search-submit {
  background: var(--vfg-red);
  border: 1px solid var(--vfg-red);
  color: #fff;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.vfg-search-close {
  background: none;
  border: 1px solid var(--vfg-border);
  color: var(--vfg-text-muted);
  font-size: 24px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--trans-fast);
}
.vfg-search-close:hover { color: var(--vfg-text-primary); border-color: var(--vfg-text-muted); }

/* ── 7. HERO SECTION ────────────────────────────────────────── */
.vfg-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--vfg-bg-base);
}

.vfg-hero-bg {
  position: absolute;
  inset: 0;
}

.vfg-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}

.vfg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

.vfg-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 100px;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vfg-text-muted);
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--vfg-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--vfg-text-primary);
  margin-bottom: 28px;
}
.hero-headline-accent { color: var(--vfg-red); }

.hero-subline {
  font-size: 17px;
  line-height: 1.65;
  color: var(--vfg-text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ticker tape */
.vfg-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vfg-red);
  overflow: hidden;
  padding: 10px 0;
  z-index: 3;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 24px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 8. EVENTS SECTION ──────────────────────────────────────── */
.vfg-events-section {
  background: var(--vfg-bg-surface);
}

.vfg-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.vfg-event-card {
  background: var(--vfg-bg-card);
  border: 1px solid var(--vfg-border);
  border-radius: 3px;
  overflow: hidden;
  transition: transform var(--trans-med), border-color var(--trans-med);
}
.vfg-event-card:hover {
  transform: translateY(-4px);
  border-color: var(--vfg-red);
}

.event-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vfg-bg-raised);
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.vfg-event-card:hover .event-card-img img { transform: scale(1.05); }
.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.event-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}
.event-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--vfg-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 1px;
}

.event-card-body { padding: 20px; }
.event-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vfg-text-faint);
  margin-bottom: 10px;
}
.event-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.event-card-title a { color: var(--vfg-text-primary); }
.event-card-title a:hover { color: var(--vfg-red); }
.event-card-excerpt {
  font-size: 14px;
  color: var(--vfg-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.event-card-cta {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vfg-red);
}
.event-card-cta:hover { color: var(--vfg-text-primary); }

/* ── 9. COURSE / PROMO SECTION ──────────────────────────────── */
.vfg-course-section {
  background: var(--vfg-bg-base);
  border-top: 1px solid var(--vfg-border);
  border-bottom: 1px solid var(--vfg-border);
  overflow: hidden;
  position: relative;
}
.vfg-course-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right center, rgba(232,51,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.course-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

/* Emblem */
.course-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.emblem-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid var(--vfg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--vfg-bg-raised);
}
.emblem-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--vfg-border-light);
}
.emblem-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--vfg-bg-base);
  border: 1px solid var(--vfg-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--vfg-red);
}
.course-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-radius: 30px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vfg-text-muted);
}
.badge-dots { display: flex; gap: 4px; }
.badge-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vfg-red);
}
.badge-dots span:nth-child(2) { background: rgba(232,51,58,0.5); }
.badge-dots span:nth-child(3) { background: rgba(232,51,58,0.25); }

/* Course copy */
.course-eyebrow {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vfg-red);
  margin-bottom: 12px;
}
.course-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--vfg-text-primary);
  margin-bottom: 20px;
}
.course-desc {
  font-size: 15px;
  color: var(--vfg-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.course-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--vfg-text-muted);
}
.feature-icon { color: var(--vfg-red); font-size: 8px; flex-shrink: 0; }

/* ── 10. SPOTLIGHTS SECTION ─────────────────────────────────── */
.vfg-spotlights-section { background: var(--vfg-bg-surface); }

.vfg-spotlights-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.spotlight-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
  background: var(--vfg-bg-raised);
}
.spotlight-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }

/* Image wrapper — the <a> tag containing the photo */
.spotlight-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.spotlight-card--large .spotlight-img-wrap { aspect-ratio: 3 / 4; }

.spotlight-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.spotlight-card:hover .spotlight-img-photo { transform: scale(1.05); }

/* Gradient overlay on the image */
.spotlight-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* Placeholder fallback */
.spotlight-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #2a1010 100%);
}

/* Text body overlaid at the bottom of the card */
.spotlight-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 20px;
  pointer-events: none;
}
.spotlight-body a { pointer-events: auto; }

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vfg-text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
}
.spotlight-title a { color: inherit; text-decoration: none; }
.spotlight-title a:hover { color: var(--vfg-red); }

.spotlight-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── 11. WARRIOR PROFILES ───────────────────────────────────── */
.vfg-warriors-section { background: var(--vfg-bg-base); }

.vfg-warriors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.warrior-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
  background: var(--vfg-bg-raised);
}
.warrior-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }

/* Image wrapper — <a> tag */
.warrior-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--vfg-bg-raised);
}

/* Real photo from WP */
.warrior-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.warrior-card:hover .warrior-img-photo { transform: scale(1.05); }

/* Placeholder fallback (no featured image) */
.warrior-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.warrior-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.0) 100%);
  pointer-events: none;
}

/* Text overlaid at the bottom */
.warrior-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 16px 16px;
  border-bottom: 3px solid var(--vfg-red);
  pointer-events: none;
}
.warrior-info a { pointer-events: auto; }

.warrior-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vfg-text-primary);
  margin-bottom: 4px;
  line-height: 1.25;
}
.warrior-name a { color: inherit; text-decoration: none; }
.warrior-name a:hover { color: var(--vfg-red); }

.warrior-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vfg-red);
}

/* ── 12. BLOG GRID ──────────────────────────────────────────── */
.vfg-blog-section { background: var(--vfg-bg-surface); }

.vfg-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.vfg-blog-card {
  background: var(--vfg-bg-card);
  border: 1px solid var(--vfg-border);
  border-radius: 3px;
  overflow: hidden;
  transition: transform var(--trans-med), border-color var(--trans-med);
}
.vfg-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,51,58,0.5);
}

.blog-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vfg-bg-raised);
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vfg-blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.blog-card-body { padding: 20px; }
.blog-card-cats { margin-bottom: 10px; }
.blog-card-cat {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vfg-red);
  border-bottom: 1px solid var(--vfg-red);
  padding-bottom: 1px;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-card-title a { color: var(--vfg-text-primary); }
.blog-card-title a:hover { color: var(--vfg-red); }
.blog-card-excerpt { font-size: 14px; color: var(--vfg-text-muted); line-height: 1.55; margin-bottom: 16px; }
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vfg-text-faint);
  border-top: 1px solid var(--vfg-border);
  padding-top: 12px;
}

/* ── 13. SINGLE POST ────────────────────────────────────────── */
.vfg-post-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--vfg-bg-surface);
}
.vfg-post-hero.no-featured-img { min-height: 220px; padding-top: 80px; }
.post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}
.post-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  padding-top: 48px;
}
.post-cats { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-cat-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--vfg-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 1px;
}
.post-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--vfg-text-primary);
  margin-bottom: 16px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vfg-text-muted);
}
.post-sep { color: var(--vfg-border); }

/* Post content */
.vfg-single-layout {
  padding-top: 60px;
  padding-bottom: 80px;
}
.vfg-post-content { max-width: 800px; }
.post-body.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--vfg-text-muted);
}
.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vfg-text-primary);
  margin: 2em 0 0.75em;
}
.post-body h2 { font-size: 28px; }
.post-body h3 { font-size: 22px; }
.post-body p  { margin-bottom: 1.5em; }
.post-body a  { color: var(--vfg-red); border-bottom: 1px solid rgba(232,51,58,0.4); }
.post-body a:hover { border-color: var(--vfg-red); }
.post-body blockquote {
  border-left: 3px solid var(--vfg-red);
  margin: 2em 0;
  padding: 20px 28px;
  background: var(--vfg-bg-raised);
  color: var(--vfg-text-primary);
  font-style: normal;
  font-size: 18px;
}
.post-body ul, .post-body ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-body li { margin-bottom: 0.5em; }
.post-body img { border-radius: 3px; margin: 2em 0; }

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--vfg-border);
}
.post-tags, .post-tags a {
  font-size: 12px;
  color: var(--vfg-text-muted);
  letter-spacing: 0.05em;
}
.post-share { display: flex; align-items: center; gap: 10px; }
.share-label { font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.15em; color: var(--vfg-text-faint); }
.share-link {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  color: var(--vfg-text-muted);
  transition: all var(--trans-fast);
}
.share-link:hover { border-color: var(--vfg-red); color: var(--vfg-red); }

/* Post navigation */
.vfg-post-navigation {
  margin-top: 48px;
  padding: 0;
}
.vfg-post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vfg-post-navigation .nav-previous,
.vfg-post-navigation .nav-next {
  padding: 20px;
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  transition: border-color var(--trans-fast);
}
.vfg-post-navigation a:hover > div { border-color: var(--vfg-red); }
.nav-dir {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vfg-red);
  margin-bottom: 6px;
}
.nav-post-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vfg-text-primary);
}

/* Related posts */
.vfg-related-posts { background: var(--vfg-bg-surface); border-top: 1px solid var(--vfg-border); }
.related-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  color: var(--vfg-text-primary);
}

/* ── 14. FOOTER ─────────────────────────────────────────────── */
.vfg-footer { background: var(--vfg-bg-base); border-top: 1px solid var(--vfg-border); }

/* Newsletter */
.vfg-footer-newsletter {
  background: var(--vfg-bg-surface);
  padding: 56px 0;
  border-bottom: 1px solid var(--vfg-border);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-copy h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vfg-text-primary);
  margin-bottom: 8px;
}
.newsletter-copy p { font-size: 14px; color: var(--vfg-text-muted); max-width: 360px; }
.newsletter-form { flex: 1; min-width: 280px; max-width: 480px; }
.newsletter-fields { display: flex; gap: 0; }
.newsletter-input {
  flex: 1;
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-right: none;
  color: var(--vfg-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 18px;
  outline: none;
}
.newsletter-input::placeholder { color: var(--vfg-text-faint); }
.newsletter-input:focus { border-color: var(--vfg-red); }
.newsletter-disclaimer { font-size: 12px; color: var(--vfg-text-faint); margin-top: 8px; }

/* Footer grid */
.vfg-footer-main { padding: 64px 0; }
.vfg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--vfg-text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--vfg-border);
}

.footer-logo { margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--vfg-text-muted); line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--vfg-text-muted);
  transition: all var(--trans-fast);
}
.footer-social a:hover { color: var(--vfg-red); border-color: var(--vfg-red); }

.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-menu li a {
  font-size: 14px;
  color: var(--vfg-text-muted);
  transition: color var(--trans-fast);
}
.footer-menu li a:hover { color: var(--vfg-red); }

.footer-contact-text { font-size: 14px; color: var(--vfg-text-muted); margin-bottom: 12px; }
.footer-email {
  display: block;
  font-size: 13px;
  color: var(--vfg-red);
  margin-bottom: 20px;
  word-break: break-all;
}
.footer-cta-btn { margin-top: 4px; }

/* Footer bottom */
.vfg-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--vfg-border);
}
.vfg-footer-bottom .vfg-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copyright { font-size: 12px; color: var(--vfg-text-faint); }
.footer-copyright a { color: var(--vfg-text-muted); }
.footer-copyright a:hover { color: var(--vfg-red); }
.footer-disclaimer { font-size: 11px; color: var(--vfg-text-faint); }

/* ── 15. ARCHIVE / INDEX ────────────────────────────────────── */
.vfg-archive-hero {
  background: var(--vfg-bg-surface);
  border-bottom: 1px solid var(--vfg-border);
  padding: 60px 0 40px;
}
.archive-label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vfg-red);
  display: block;
  margin-bottom: 8px;
}
.archive-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vfg-text-primary);
}
.archive-desc { color: var(--vfg-text-muted); margin-top: 12px; }

.vfg-archive-wrap { padding: 60px 0; }
.vfg-content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0;
}

/* Sidebar */
.vfg-sidebar {
  position: sticky;
  top: 80px;
}
.vfg-sidebar .widget {
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vfg-text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vfg-border);
}

/* Pagination */
.vfg-pagination { margin-top: 48px; }
.vfg-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vfg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--vfg-border);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--vfg-text-muted);
  transition: all var(--trans-fast);
}
.vfg-pagination .page-numbers.current,
.vfg-pagination .page-numbers:hover {
  background: var(--vfg-red);
  border-color: var(--vfg-red);
  color: #fff;
}

/* ── 16. 404 PAGE ───────────────────────────────────────────── */
.vfg-404-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--vfg-bg-base);
}
.vfg-404-inner { text-align: center; padding: 80px 0; }
.error-404-badge {
  font-family: var(--font-heading);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--vfg-border);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vfg-text-primary);
  margin-bottom: 16px;
}
.error-404-desc { font-size: 16px; color: var(--vfg-text-muted); margin-bottom: 40px; }
.error-404-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-404-search .search-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.error-404-search input[type="search"] {
  flex: 1;
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-right: none;
  color: var(--vfg-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 18px;
  outline: none;
}
.error-404-search button[type="submit"] {
  background: var(--vfg-red);
  border: 1px solid var(--vfg-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
}

/* ── 17. DIVI OVERRIDES ─────────────────────────────────────── */
/* Reset Divi's colours for dark theme compatibility */
#page-container.et-no-post-thumbnail .entry-header,
#main-footer { background: none !important; }

.et_pb_section { background-color: transparent; }

.et-search-form,
.et_search_form_container { background: var(--vfg-bg-raised) !important; }

/* Divi page builder full-width fix */
.et_full_width_page #main-content .container { padding: 0 !important; }

/* ── 18. FORMS / SEARCH ─────────────────────────────────────── */
.search-form { display: flex; gap: 0; }
.search-field {
  background: var(--vfg-bg-raised);
  border: 1px solid var(--vfg-border);
  border-right: none;
  color: var(--vfg-text-primary);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  flex: 1;
  outline: none;
}
.search-field:focus { border-color: var(--vfg-red); }
.search-submit {
  background: var(--vfg-red);
  border: 1px solid var(--vfg-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}

.vfg-no-results, .no-posts-notice {
  text-align: center;
  padding: 60px 20px;
  color: var(--vfg-text-muted);
}
.vfg-no-results h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--vfg-text-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── 19. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vfg-footer-grid   { grid-template-columns: 1fr 1fr; }
  .vfg-warriors-grid { grid-template-columns: repeat(2, 1fr); }
  .course-inner      { grid-template-columns: 1fr; gap: 48px; }
  .course-emblem     { order: -1; }
  .vfg-spotlights-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-card--large { grid-column: 1 / -1; }
  .spotlight-card--large .spotlight-img { aspect-ratio: 16 / 7; }
  .vfg-content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  /* Header */
  .vfg-primary-nav { display: none; }
  .vfg-menu-toggle { display: flex; }
  .vfg-header-actions .vfg-btn { display: none; }

  /* Mobile nav open state */
  .vfg-primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--vfg-bg-surface);
    border-bottom: 1px solid var(--vfg-border);
    padding: 20px 0;
    z-index: 100;
  }
  .vfg-primary-nav.is-open .vfg-nav-menu {
    flex-direction: column;
    padding: 0 var(--container-px);
    gap: 0;
  }
  .vfg-primary-nav.is-open .vfg-nav-menu li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--vfg-border);
    font-size: 15px;
  }
  .topbar-tagline { display: none; }

  /* Hero */
  .hero-headline { font-size: clamp(42px, 12vw, 72px); }

  /* Grids */
  .vfg-events-grid    { grid-template-columns: 1fr; }
  .vfg-warriors-grid  { grid-template-columns: repeat(2, 1fr); }
  .vfg-spotlights-grid { grid-template-columns: 1fr; }
  .vfg-footer-grid    { grid-template-columns: 1fr; }
  .vfg-blog-grid      { grid-template-columns: 1fr; }
  .newsletter-inner   { flex-direction: column; }
  .vfg-post-navigation .nav-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 40px; }
  .hero-actions  { flex-direction: column; }
  .vfg-warriors-grid { grid-template-columns: 1fr; }
  .emblem-ring  { width: 180px; height: 180px; }
}

/* ── 20. ACCESSIBILITY ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--vfg-red);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
