/* ═══════════════════════════════════════════════════════════════════
   BFL — home.css
   Phase 1: Homepage Migration
   Scoped entirely to body.page-home — zero leakage to other pages.

   Font stack : Barlow Condensed (display) + Barlow (body)
   Theme      : Deep black #0D0D0F / BFL orange #E8620A
   Architecture: CSS custom properties → mobile-first → layer up
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,900;1,700&family=Barlow:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────────
   TOKENS — override global CSS vars + define h-prefixed locals
   Scoped to body.page-home so other pages are 100% unaffected
───────────────────────────────────────────────────────────────── */
body.page-home {
  /* Palette */
  --h-bg: #090c15;
  --h-surface: #0f1523;
  --h-card: #1A1A1E;
  --h-card-hover: #212128;
  --h-border: rgba(255, 255, 255, 0.07);
  --h-border-soft: rgba(255, 255, 255, 0.04);
  --h-border-str: rgba(255, 255, 255, 0.12);

  /* Brand */
  --h-orange: #E8620A;
  --h-orange-dark: #c9520a;
  --h-orange-glow: rgba(232, 98, 10, 0.14);
  --h-orange-ring: rgba(232, 98, 10, 0.28);
  --h-green: #1D9E75;
  --h-green-glow: rgba(29, 158, 117, 0.14);
  --h-purple: #9B6CD8;
  --h-purple-glow: rgba(155, 108, 216, 0.14);

  /* Text */
  --h-text: #F0EDE8;
  --h-text-2: rgba(240, 237, 232, 0.65);
  --h-text-3: rgba(240, 237, 232, 0.50);
  --h-text-4: rgba(240, 237, 232, 0.30);

  /* Fonts */
  --h-fd: 'Barlow Condensed', 'Bebas Neue', condensed, sans-serif;
  --h-fb: 'Barlow', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shape */
  --h-r: 10px;
  --h-r-sm: 6px;
  --h-r-lg: 14px;

  /* Motion */
  --h-t: 0.18s ease;
  --h-t-lg: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Override global battle.css tokens for this page */
  --bg: #0D0D0F;
  --surface: #111114;
  --card: #1A1A1E;
  --orange: #E8620A;
  --border: rgba(255, 255, 255, 0.07);

  /* Apply */
  background: var(--h-bg);
  color: var(--h-text);
  font-family: var(--h-fb);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.page-home *,
body.page-home *::before,
body.page-home *::after {
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────
   NAV OVERRIDES — dark theme for homepage
   The nav HTML/JS structure is unchanged; only visuals shift
───────────────────────────────────────────────────────────────── */
body.page-home .nav {
  background: rgba(13, 13, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--h-border);
}

body.page-home .nav-logo-text {
  font-family: var(--h-fd);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--h-text);
}

body.page-home .nav-logo-text span,
body.page-home .nav-logo-mark {
  color: var(--h-orange);
}

body.page-home .nav-logo-sub {
  color: var(--h-text-4);
  font-family: var(--h-fb);
  font-size: 10px;
  letter-spacing: 0.07em;
}

body.page-home .nav-link {
  font-family: var(--h-fb);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-text-2);
  border-radius: var(--h-r-sm);
  transition: color var(--h-t), background var(--h-t);
}

body.page-home .nav-link:hover,
body.page-home .nav-link.active {
  color: var(--h-text);
  background: rgba(255, 255, 255, 0.06);
}

body.page-home .league-pill {
  background: rgba(232, 98, 10, 0.10);
  border: 1px solid var(--h-orange-ring);
  color: var(--h-text-2);
  font-family: var(--h-fb);
  font-size: 12px;
}

body.page-home .league-pill-dot {
  background: var(--h-orange);
}

body.page-home .league-dropdown-menu {
  background: #1A1A1E;
  border: 1px solid var(--h-border-str);
}

body.page-home .nav-toggle span {
  background: var(--h-text-2);
}

/* ─────────────────────────────────────────────────────────────────
   HERO SLIDER
───────────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────
   HERO — Contained, left-aligned, matches section rhythm
   NOT full-viewport: hero lives inside the same container grid
   as every other section on the homepage.
───────────────────────────────────────────────────────────────── */
.bfl-hero {
  /* Section-level padding mirrors .h-section */
  /* Section-level padding matches premium homepage rhythm */
  padding: clamp(28px, 4vw, 48px) 0;
}

/* The slider itself: contained box, not full-screen */
.hero-track {
  position: relative;
  width: 100%;
  height: clamp(260px, 40vw, 400px);
  overflow: hidden;
  border-radius: var(--h-r-lg);
  background: #1a1a1e;
  /* Visual separation from dark page background */
  border: 1px solid rgba(232, 98, 10, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(232, 98, 10, 0.04);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  /* content anchored to bottom-left */
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  border-radius: var(--h-r-lg);
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 5s ease;
  will-change: transform;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  /* Desktop overlay — bottom-heavy, image breathes at the top */
  background: linear-gradient(to top,
      rgba(13, 13, 15, 0.96) 0%,
      rgba(13, 13, 15, 0.60) 40%,
      rgba(13, 13, 15, 0.20) 70%,
      transparent 100%);
}

/* Mobile overlay — lifted stops protect text in the compressed height */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-slide-overlay {
    background: linear-gradient(to top,
        rgba(13, 13, 15, 0.97) 0%,
        rgba(13, 13, 15, 0.72) 38%,
        rgba(13, 13, 15, 0.30) 68%,
        rgba(13, 13, 15, 0.08) 100%);
  }
}

@media (max-width: 479px) {
  .hero-slide-overlay {
    background: linear-gradient(to top,
        rgba(13, 13, 15, 0.97) 0%,
        rgba(13, 13, 15, 0.80) 35%,
        rgba(13, 13, 15, 0.45) 65%,
        rgba(13, 13, 15, 0.10) 100%);
  }
}

/* Decorative ring (desktop only) */
.hero-slide-deco {
  display: none;
  position: absolute;
  right: clamp(32px, 6vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  border: 1px solid rgba(232, 98, 10, 0.10);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-slide-deco::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 98, 10, 0.06);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .hero-slide-deco {
    display: block;
  }
}

/* Content: left-aligned, matches site padding rhythm */
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 36px) clamp(24px, 4vw, 40px);
  max-width: 560px;
  /* Left-aligned — no centering */
  text-align: left;
}

/*
 * FIX: hero-slide-content uses .container class in HTML which has
 * body.page-home .container { padding-left/right } rules that conflict
 * with and can double-up horizontal padding. We reset auto-margins here
 * and cap to content width — horizontal padding comes from this element only.
 */
.hero-slide .hero-slide-content {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 560px !important;
  /* horizontal padding applied once — no doubling */
  padding-left: clamp(18px, 3vw, 28px) !important;
  padding-right: clamp(18px, 3vw, 28px) !important;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(232 98 10 / 67%);
  border: 1px solid rgb(232 98 10 / 85%);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--h-fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--h-white);
  margin-bottom: 14px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--h-orange);
  border-radius: 50%;
  animation: heroPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes heroPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* Hero title */
.hero-title {
  font-family: var(--h-fd);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--h-text);
  margin-bottom: 10px;
}

.hero-title em {
  color: var(--h-orange);
  font-style: normal;
}

/* Hero subtitle */
.hero-subtitle {
  font-family: var(--h-fb);
  font-size: clamp(13px, 2vw, 15px);
  color: var(--h-text-2);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 440px;
}

/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h-fb);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--h-r-sm);
  padding: 10px 20px;
  text-decoration: none;
  transition: background var(--h-t), border-color var(--h-t), transform var(--h-t);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-hero-primary {
  background: var(--h-orange);
  color: #fff;
  border-color: var(--h-orange);
}

.btn-hero-primary:hover {
  background: var(--h-orange-dark);
  border-color: var(--h-orange-dark);
  transform: translateY(-1px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.09);
  color: var(--h-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.40);
  transform: translateY(-1px);
}

/* Slider controls — bottom-right inside the contained hero-track */
.hero-controls {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--h-orange);
  width: 22px;
}

.hero-arrow {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--h-text-2);
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--h-t);
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 768px) {
  .hero-arrow {
    display: flex;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SECTION SHARED SCAFFOLDING
───────────────────────────────────────────────────────────────── */
.h-section {
  padding: clamp(40px, 5.5vw, 80px) 0;
}

.h-section--alt {
  background: var(--h-surface);
  border-top: 1px solid var(--h-border-soft);
  border-bottom: 1px solid var(--h-border-soft);
}

.h-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(14px, 3vw, 20px);
  flex-wrap: wrap;
  gap: 8px;
}

.h-section-label {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-orange);
}

.h-section-title {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--h-text);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

.h-section-desc {
  font-family: var(--h-fb);
  font-size: 13px;
  color: var(--h-text-3);
  margin: 6px 0 0;
  line-height: 1.5;
}

.h-view-all {
  font-family: var(--h-fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--h-text-3);
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-sm);
  padding: 4px 10px;
  transition: color var(--h-t), border-color var(--h-t);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   BRAND IDENTITY — Basketball For Living
   Design philosophy:
   · Editorial surface — top + bottom border rules only, no card frame.
     Reads as "information zone", not a second hero.
   · Text ALWAYS on solid #111317. Zero layering over images.
   · Skyline = inline SVG strip after the content, never behind it.
   · Spacing matches .h-section rhythm — consistent page breathing.
   ─────────────────────────────────────────────────────────────────
   CMS-ready keys:
     bfl_intro_label    → .h-section-label text
     bfl_intro_title    → .h-brand-intro-title (H1)
     bfl_intro_tagline  → .h-brand-intro-tagline
     bfl_intro_lead     → .h-brand-intro-lead (desktop)
     bfl_intro_body     → .h-brand-intro-body (desktop)
     bfl_intro_mobile   → .h-brand-intro-mobile (mobile only)
     bfl_cover_tags     → .h-brand-cover-tag items
   ─────────────────────────────────────────────────────────────────
*/

/* Section wrapper — editorial surface, not a card.
   Top + bottom rules create clean separation without hero-like framing. */
.h-brand-intro {
  background: var(--h-surface);
  border-top: 1px solid rgba(232, 98, 10, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(40px, 5.5vw, 72px) 0;
}

/* Two-column grid: copy (wider) + stats/tags (narrower) */
.h-brand-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

/* Section label ("About BFL") */
.h-brand-intro-label {
  margin-bottom: 8px;
}

/* H1 — always visible, never in h-reveal */
.h-brand-intro-title {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.06;
  margin: 0 0 6px;
}

/* Tagline — one-liner immediately below the H1 */
.h-brand-intro-tagline {
  font-family: var(--h-fb);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 20px;
}

/* Desktop lead — prominent opener */
.h-brand-intro-lead {
  font-family: var(--h-fb);
  font-size: clamp(17px, 2vw, 20px);
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Desktop body — supporting context */
.h-brand-intro-body {
  font-family: var(--h-fb);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin: 0 0 28px;
}

/* Mobile short copy — hidden on desktop */
.h-brand-intro-mobile {
  display: none;
  font-family: var(--h-fb);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* CTA row */
.h-brand-intro-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right column wrapper — holds stat cards only */
.h-brand-intro-right {
  display: flex;
  flex-direction: column;
}

/* Stat cards row — sits in the right column */
.h-brand-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Individual stat card */
.h-brand-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--h-r-lg);
  padding: 18px 10px 16px;
  text-align: center;
  transition: border-color var(--h-t), background var(--h-t);
}

.h-brand-stat:hover {
  border-color: rgba(232, 98, 10, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.h-brand-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-orange);
  margin-bottom: 8px;
}

.h-brand-stat-num {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--h-orange);
  line-height: 1.1;
}

.h-brand-stat-label {
  font-family: var(--h-fb);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 5px;
}

/* ── Tablet (721px – 1023px) ──────────────────────────────────── */
@media (max-width: 1023px) {
  .h-brand-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }
}

/* ── Mobile (≤ 720px) ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .h-brand-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .h-brand-intro-lead,
  .h-brand-intro-body {
    display: none;
  }

  .h-brand-intro-mobile {
    display: block;
  }

  .h-brand-intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}


.h-view-all:hover {
  color: var(--h-orange);
  border-color: var(--h-orange-ring);
}

/* ─────────────────────────────────────────────────────────────────
   TAGS / BADGES
───────────────────────────────────────────────────────────────── */
.h-tag {
  display: inline-block;
  font-family: var(--h-fb);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.h-tag--lg {
  background: var(--h-orange-glow);
  color: var(--h-orange);
}

.h-tag--3x3 {
  background: var(--h-green-glow);
  color: var(--h-green);
}

.h-tag--1v1 {
  background: var(--h-purple-glow);
  color: var(--h-purple);
}

.h-tag--new {
  background: rgba(29, 158, 117, 0.14);
  color: var(--h-green);
}

/* ─────────────────────────────────────────────────────────────────
   FEATURED MATCHUPS — "What's Happening"
───────────────────────────────────────────────────────────────── */
.h-happening-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .h-happening-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .h-happening-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .h-happening-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.h-hap-card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  padding: clamp(14px, 2.5vw, 18px);
  cursor: pointer;
  transition: border-color var(--h-t), transform var(--h-t-lg);
  text-decoration: none;
  display: block;
  color: inherit;
}

.h-hap-card:hover {
  border-color: var(--h-orange-ring);
  transform: translateY(-2px);
}

.h-hap-label {
  font-family: var(--h-fb);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--h-text-4);
  margin-bottom: 12px;
}

.h-hap-vs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.h-hap-side {
  text-align: center;
  flex: 1;
}

.h-hap-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 6px;
}

.h-hap-logo--orange {
  background: var(--h-orange-glow);
  border: 1px solid var(--h-orange-ring);
}

.h-hap-logo--green {
  background: var(--h-green-glow);
  border: 1px solid rgba(29, 158, 117, 0.25);
}

.h-hap-logo--purple {
  background: var(--h-purple-glow);
  border: 1px solid rgba(155, 108, 216, 0.25);
}

.h-hap-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--h-border);
}

.h-hap-team-name {
  font-family: var(--h-fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--h-text);
  line-height: 1.25;
}

.h-hap-vs-lbl {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 13px;
  color: var(--h-text-4);
  flex-shrink: 0;
}

.h-hap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--h-text-3);
  border-top: 1px solid var(--h-border-soft);
  padding-top: 10px;
  gap: 8px;
}

/* Story card inside happening */
.h-story-sm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.h-story-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--h-r-sm);
  flex-shrink: 0;
  background: var(--h-orange-glow);
  border: 1px solid var(--h-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.h-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-story-ttl {
  font-family: var(--h-fb);
  font-size: 13px;
  font-weight: 600;
  color: var(--h-text);
  line-height: 1.4;
  margin-bottom: 5px;
}

.h-story-dt {
  font-family: var(--h-fb);
  font-size: 11px;
  color: var(--h-text-3);
}


/* ─────────────────────────────────────────────────────────────────
   LEAGUE ACTIVITY HUB — 3-column grid
───────────────────────────────────────────────────────────────── */
.h-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .h-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .h-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.h-panel {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  overflow: hidden;
}

.h-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--h-border-soft);
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--h-text-3);
}

/* Schedule rows */
.h-sch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--h-border-soft);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--h-t);
}

.h-sch-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.h-sch-date {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 10px;
  color: var(--h-text-4);
  width: 30px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.1;
}

.h-sch-date span {
  display: block;
  font-size: 16px;
  color: var(--h-orange);
}

.h-sch-match {
  flex: 1;
  font-family: var(--h-fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--h-text);
  line-height: 1.3;
  min-width: 0;
}

.h-sch-match small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--h-text-3);
  margin-top: 1px;
}

/* Standings */
.h-std-header {
  display: grid;
  grid-template-columns: 20px 1fr 26px 26px 30px;
  gap: 4px;
  padding: 7px 14px;
  font-family: var(--h-fb);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-text-4);
}

.h-std-row {
  display: grid;
  grid-template-columns: 20px 1fr 26px 26px 30px;
  gap: 4px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--h-border-soft);
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--h-t);
}

.h-std-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.h-std-pos {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 13px;
  color: var(--h-text-4);
  text-align: center;
}

.h-std-pos.top {
  color: var(--h-orange);
}

.h-std-team {
  font-family: var(--h-fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--h-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-std-num {
  font-family: var(--h-fd);
  font-weight: 600;
  font-size: 12px;
  color: var(--h-text-3);
  text-align: center;
}

.h-std-num.pts {
  color: var(--h-orange);
}

/* ── Rankings — player cards grid ───────────────────────────────── */
.h-rnk-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* Individual player ranking card */
.h-rnk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px 16px 18px;
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  text-decoration: none;
  color: inherit;
  transition: background var(--h-t), border-color var(--h-t), transform var(--h-t);
  cursor: pointer;
  overflow: hidden;
}

.h-rnk-card:hover {
  background: var(--h-card-hover);
  border-color: var(--h-orange-ring);
  transform: translateY(-2px);
}

/* Rank badge — top-left corner */
.h-rnk-pos {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 13px;
  color: var(--h-text-4);
  line-height: 1;
}

.h-rnk-pos.top {
  color: var(--h-orange);
}

/* Avatar */
.h-rnk-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--h-orange-glow);
  border: 2px solid var(--h-orange-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 18px;
  color: var(--h-orange);
  overflow: hidden;
  margin-bottom: 12px;
}

.h-rnk-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name + team block */
.h-rnk-info {
  text-align: center;
  min-width: 0;
  width: 100%;
  margin-bottom: 12px;
}

.h-rnk-name {
  font-family: var(--h-fb);
  font-size: 14px;
  font-weight: 700;
  color: var(--h-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.h-rnk-team {
  font-family: var(--h-fb);
  font-size: 12px;
  color: var(--h-text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat pill — wins / points */
.h-rnk-pts {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 20px;
  color: var(--h-orange);
  background: var(--h-orange-glow);
  border: 1px solid var(--h-orange-ring);
  border-radius: 20px;
  padding: 3px 14px;
  line-height: 1.4;
}

/* Skeleton cards */
.h-rnk-card-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 18px;
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
}

/* View all CTA under the cards */
.h-rnk-view-all {
  display: flex;
  justify-content: center;
}

/* Keep .h-rnk-row for MVP banners (different renderer, untouched) */
.h-rnk-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--h-border-soft);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--h-t);
}

.h-rnk-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Responsive: tablet → 3-col still fine; mobile → 1-col stack */
@media (max-width: 600px) {
  .h-rnk-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .h-rnk-card {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
  }

  .h-rnk-pos {
    position: static;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
  }

  .h-rnk-av {
    width: 44px;
    height: 44px;
    font-size: 13px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .h-rnk-info {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
  }

  .h-rnk-pts {
    font-size: 17px;
    padding: 2px 11px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   LATEST STORIES
───────────────────────────────────────────────────────────────── */
.h-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .h-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .h-stories-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.h-story-main {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--h-t);
}

.h-story-main:hover {
  border-color: var(--h-orange-ring);
}

.h-story-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1a0800, #3d1a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
}

.h-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-story-body {
  padding: 14px;
}

.h-story-title {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--h-text);
  line-height: 1.25;
  margin-bottom: 6px;
}

.h-story-excerpt {
  font-family: var(--h-fb);
  font-size: 12px;
  color: var(--h-text-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.h-story-date {
  font-family: var(--h-fb);
  font-size: 10px;
  color: var(--h-text-4);
}

/* Small story cards */
.h-story-side {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--h-t);
}

.h-story-side:hover {
  border-color: var(--h-orange-ring);
}

.h-story-side-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  overflow: hidden;
}

.h-story-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-story-side:nth-child(2) .h-story-side-img {
  background: linear-gradient(135deg, #001828, #003550);
}

.h-story-side:nth-child(3) .h-story-side-img {
  background: linear-gradient(135deg, #160018, #320038);
}

.h-story-side-body {
  padding: 12px;
}

.h-story-side-title {
  font-family: var(--h-fb);
  font-size: 12px;
  font-weight: 600;
  color: var(--h-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   BOOST THE GAME
───────────────────────────────────────────────────────────────── */
.h-boost-banner {
  background: var(--h-surface);
  border-top: 1px solid var(--h-border-soft);
  border-bottom: 1px solid var(--h-border-soft);
}

.h-boost-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.h-boost-header-left {
  flex: 1;
  min-width: 200px;
}

.h-boost-eyebrow {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-orange);
  margin-bottom: 5px;
}

.h-boost-heading {
  font-family: var(--h-fd);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--h-text);
  line-height: 1;
  margin-bottom: 6px;
}

.h-boost-desc {
  font-family: var(--h-fb);
  font-size: 13px;
  color: var(--h-text-2);
  line-height: 1.5;
}

.h-boost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .h-boost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .h-boost-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.h-boost-card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.h-boost-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--h-orange), transparent);
}

.h-boost-card-title {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--h-text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.h-boost-card-meta {
  font-family: var(--h-fb);
  font-size: 11px;
  color: var(--h-text-3);
  margin-bottom: 14px;
}

.h-boost-bar-bg {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 5px;
  margin-bottom: 7px;
  overflow: hidden;
}

.h-boost-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--h-orange), #ff8c3a);
  transition: width 0.8s ease;
}

.h-boost-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--h-fb);
  font-size: 11px;
  color: var(--h-text-3);
  margin-bottom: 16px;
}

.h-boost-stats strong {
  color: var(--h-orange);
  font-weight: 700;
}

.h-boost-btn {
  width: 100%;
  font-family: var(--h-fb);
  font-size: 13px;
  font-weight: 700;
  background: var(--h-orange);
  color: #fff;
  border: 2px solid var(--h-orange);
  border-radius: var(--h-r-sm);
  padding: 10px;
  cursor: pointer;
  transition: background var(--h-t), transform var(--h-t);
  text-align: center;
  display: block;
  text-decoration: none;
}

.h-boost-btn:hover {
  background: var(--h-orange-dark);
  transform: translateY(-1px);
}

/* Not gambling disclaimer */
.h-boost-disclaimer {
  text-align: center;
  font-family: var(--h-fb);
  font-size: 11px;
  color: var(--h-text-4);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--h-border-soft);
}

/* ─────────────────────────────────────────────────────────────────
   EMPTY / LOADING STATES
───────────────────────────────────────────────────────────────── */
.h-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--h-text-3);
  font-family: var(--h-fb);
  font-size: 13px;
  gap: 8px;
  text-align: center;
  flex: 1;
}

.h-empty-icon {
  font-size: 28px;
}

.h-skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: hSkeleton 1.4s ease infinite;
  border-radius: var(--h-r-sm);
}

@keyframes hSkeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ─────────────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────────────── */
.h-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.h-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER OVERRIDES
───────────────────────────────────────────────────────────────── */
body.page-home .footer {
  background: var(--h-surface);
  border-top: 1px solid var(--h-border-soft);
  color: var(--h-text-3);
}

body.page-home .footer-logo {
  font-family: var(--h-fd);
  font-weight: 900;
  color: var(--h-text);
}

body.page-home .footer-logo span {
  color: var(--h-orange);
}

body.page-home .footer-links a,
body.page-home .footer a {
  color: var(--h-text-3);
  transition: color var(--h-t);
}

body.page-home .footer-links a:hover,
body.page-home .footer a:not(.footer-social-icon):hover {
  color: var(--h-orange);
}

body.page-home .footer-copy {
  color: var(--h-text-4);
  font-family: var(--h-fb);
}

/* ─────────────────────────────────────────────────────────────────
   UTILITY: Container padding on small screens
───────────────────────────────────────────────────────────────── */
body.page-home .container {
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

/* Court divider */
.h-divider {
  height: 1px;
  margin: 0;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE TWEAKS
───────────────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .hero-track {
    height: 240px;
    border-radius: var(--h-r);
  }

  .hero-slide-content {
    max-width: 100% !important;
    padding: 16px 16px 20px !important;
  }

  .hero-title {
    font-size: 28px;
    font-weight: 800;
    /* test at 800; reduce to 700 only if readability still suffers after contrast improvements */
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .h-boost-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   HERO — mid-mobile (480–767px): previously unaddressed range
   Large phones / small tablets in portrait.
   Overlay is declared inside the .hero-slide-overlay block above.
─────────────────────────────────────────────────────────────────── */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-title {
    font-weight: 800;
    /* softened from 900; same test weight as ≤479px */
    line-height: 1.02;
  }
}

/* ─────────────────────────────────────────────────────────────────
   ACCESSIBILITY — reduced motion
───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .h-reveal,
  .hero-slide,
  .hero-slide-bg,
  .h-skeleton,
  .hero-badge-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   MVP RACE — Inside League & Matchup Hub
   Two states:
   1. Season LIVE  → "MVP Race" single track (sliding cards like spotlight)
   2. Season DONE  → Two cards: Regular Season MVP + Playoffs MVP
───────────────────────────────────────────────────────────────── */
#mvp-panel {
  overflow: hidden;
}

.h-mvp-race-wrap {
  overflow: hidden;
  position: relative;
}

.h-mvp-race-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.h-mvp-race-track::-webkit-scrollbar {
  display: none;
}

/* MVP Award cards (post-season — 2 cards side by side) */
.h-mvp-awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.h-mvp-award-card {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--h-t);
}

.h-mvp-award-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--h-orange), transparent);
}

.h-mvp-award-card:hover {
  border-color: var(--h-orange-ring);
}

.h-mvp-award-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-orange);
  margin-bottom: 2px;
}

.h-mvp-award-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--h-orange-glow);
  border: 2px solid var(--h-orange-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 15px;
  color: var(--h-orange);
  overflow: hidden;
  flex-shrink: 0;
}

.h-mvp-award-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-mvp-award-name {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 14px;
  color: var(--h-text);
  line-height: 1.2;
}

.h-mvp-award-team {
  font-size: 10px;
  color: var(--h-text-3);
}

.h-mvp-award-stat {
  font-size: 10px;
  color: var(--h-text-3);
  margin-top: 2px;
}

.h-mvp-award-stat strong {
  color: var(--h-orange);
  font-size: 11px;
}

/* ─────────────────────────────────────────────────────────────────
   RANKINGS SECTION — below League & Matchup Hub
   Three panels: 1v1 Rankings, 3x3 Matchup Rankings, League Standings (top 6)
───────────────────────────────────────────────────────────────── */
#rankings-section {
  padding: clamp(20px, 3.5vw, 36px) 0;
}

.h-rankings-head {
  display: flex;
  align-items: flex-start;
  /* left-aligned */
  justify-content: space-between;
  margin-bottom: 18px;
}

.h-rank-panel {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

/* Active panel stretches to fill remaining height */
.h-rank-panel .h-results-panel.active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────────
   BOOST MATCHUP CARDS — inside "What's Happening" section
   Small inline boost CTA that appears on matchup cards
───────────────────────────────────────────────────────────────── */
.h-hap-boost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--h-fb);
  font-size: 10px;
  font-weight: 700;
  color: var(--h-orange);
  background: var(--h-orange-glow);
  border: 1px solid var(--h-orange-ring);
  border-radius: var(--h-r-sm);
  padding: 3px 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--h-t), color var(--h-t);
  white-space: nowrap;
}

.h-hap-boost-btn:hover {
  background: rgba(232, 98, 10, 0.22);
  color: var(--h-text);
}

/* ─────────────────────────────────────────────────────────────────
   WHAT'S HAPPENING — League card variant
   "view more league" card linking to /games
───────────────────────────────────────────────────────────────── */
.h-hap-card--league {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg,
      rgba(232, 98, 10, 0.06) 0%,
      var(--h-card) 60%);
  border-color: rgba(232, 98, 10, 0.18);
}

.h-hap-card--league:hover {
  border-color: var(--h-orange-ring);
  background: linear-gradient(135deg,
      rgba(232, 98, 10, 0.10) 0%,
      var(--h-card-hover) 60%);
}

.h-hap-league-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex: 1;
}

.h-hap-league-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--h-r);
  background: var(--h-orange-glow);
  border: 1px solid var(--h-orange-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.h-hap-league-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--h-r);
}

.h-hap-league-info {
  flex: 1;
  min-width: 0;
}

.h-hap-league-name {
  font-family: var(--h-fd);
  font-weight: 700;
  font-size: 15px;
  color: var(--h-text);
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-hap-league-meta {
  font-family: var(--h-fb);
  font-size: 11px;
  color: var(--h-text-3);
}

/* ─────────────────────────────────────────────────────────────────
   WHAT'S HAPPENING — Game result card
───────────────────────────────────────────────────────────────── */
.h-hap-card--game .h-hap-vs-lbl {
  font-size: 15px;
  font-weight: 800;
  color: var(--h-text);
  /* score is prominent */
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────────────────────────
   MVP RACE — Season awareness
   Active season → top 4 only
   Post-season → award card(s) displayed
───────────────────────────────────────────────────────────────── */
/* Limit race rows to 4 for active/playoffs seasons */
.h-mvp-race--active .h-rnk-row:nth-child(n+5) {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────
   LATEST NEWS SECTION
───────────────────────────────────────────────────────────────── */
.h-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .h-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .h-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.h-news-card {
  display: flex;
  flex-direction: column;
  background: var(--h-card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--h-border, rgba(255, 255, 255, 0.07));
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.h-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(224, 123, 57, 0.3);
}

.h-news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.h-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.h-news-card:hover .h-news-card__img img {
  transform: scale(1.05);
}

.h-news-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(224, 123, 57, 0.12), rgba(224, 123, 57, 0.04));
}

.h-news-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.h-news-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--h-text-2, #94a3b8);
  margin-bottom: 12px;
  width: fit-content;
}

.h-news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--h-text, #f1f5f9);
  line-height: 1.35;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-news-card__excerpt {
  font-size: 13px;
  color: var(--h-text-3, #4b6280);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--h-text-3, #4b6280);
  margin-top: auto;
}

.h-news-card__read {
  color: var(--h-orange, #E07B39);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────
   FAQ — homepage accordion
───────────────────────────────────────────────────────────────── */
.h-faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.h-faq-item {
  background: var(--h-card, #1A1A1E);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  overflow: hidden;
  transition: border-color var(--h-t);
}

.h-faq-item.open {
  border-color: var(--h-orange-ring);
}

.h-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--h-text);
  font-family: var(--h-fb);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--h-t);
}

.h-faq-q:hover {
  background: rgba(255, 255, 255, 0.025);
}

.h-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--h-orange);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.h-faq-item.open .h-faq-icon {
  transform: rotate(45deg);
}

.h-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.h-faq-item.open .h-faq-a {
  max-height: 240px;
}

.h-faq-a-inner {
  padding: 0 18px 16px;
  font-family: var(--h-fb);
  font-size: 13.5px;
  color: var(--h-text-2);
  line-height: 1.65;
}

@media (max-width: 599px) {
  .h-faq-list {
    grid-template-columns: 1fr;
  }
}