/* ==========================================================================
   Featured Program — Gold High Performance hero
   Desktop: restored two-column grid · Mobile: top split + full-width below
   ========================================================================== */

:root {
  --featured-navy: #010e1f;
  --featured-navy-mid: #061a2e;
  --featured-gold: #d4af37;
  --featured-gold-bright: #e8c860;
  --featured-gold-line: rgba(212, 175, 55, 0.24);
  --featured-max-w: 1200px;
}

/* ── Container / override hero.css centering ─────────────────────────────── */

#hero-featured.hero-content--split {
  display: block;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-content--split .hero-featured-inner {
  width: 100%;
  max-width: var(--featured-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.hero-featured-gold-shell:not(.is-gold-active) {
  display: contents;
}

.hero-featured-gold-shell.is-gold-active {
  width: 100%;
}

/* ── Gold hero section ──────────────────────────────────────────────────── */

.hero.hero--featured-gold {
  text-align: left;
  min-height: 0 !important;
  height: auto;
  padding: clamp(4rem, 6vh, 4.75rem) 0 4rem !important;
  background: linear-gradient(180deg, var(--featured-navy) 0%, var(--featured-navy-mid) 100%) !important;
  overflow: hidden;
}

.hero.hero--featured-gold::before {
  display: none;
}

.hero.hero--featured-gold::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--featured-gold-line);
  pointer-events: none;
}

/* ── Shared layout primitives ───────────────────────────────────────────── */

.hero-content--split .hero-featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.hero-content--split .hero-featured-copy-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.hero-content--split .hero-featured-logo,
.hero-content--split .hero-featured-logo--gold-campaign {
  display: none !important;
}

/* ── Badge ──────────────────────────────────────────────────────────────── */

.hero-content--split .hero-featured-badge,
.hero--featured-gold .hero-featured-badge {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--featured-navy);
  background: var(--featured-gold);
  border-radius: 3px;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.hero-content--split .hero-featured-title {
  margin: 0;
  text-align: left;
  width: 100%;
}

.hero-featured-title--gold-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0;
}

.hero-featured-gold-emphasis {
  display: block;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--featured-gold);
}

.hero-featured-gold-subtitle {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.hero-featured-gold-sub {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ── Location & description ─────────────────────────────────────────────── */

.hero-content--split .hero-featured-location {
  margin: -0.35rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.hero-content--split .hero-featured-desc,
.hero--featured-gold .hero-featured-desc {
  display: block;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Image panel ─────────────────────────────────────────────────────────── */

.hero-content--split .hero-featured-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--featured-gold-line);
  background: var(--featured-navy-mid);
}

.hero-content--split .hero-featured-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content--split .hero-featured-player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
}

/* ── Value rows ─────────────────────────────────────────────────────────── */

.hero-content--split .hero-featured-value-points {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.hero-featured-value-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--featured-gold-line);
}

.hero-featured-value-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-featured-value-icon-wrap {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--featured-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--featured-gold-bright);
  font-size: 0.55rem;
}

.hero-featured-value-text {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Details row / action zone ──────────────────────────────────────────── */

.hero-content--split .hero-featured-action-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  margin: 0;
}

.hero-content--split .hero-featured-details {
  justify-content: flex-start;
  margin: 0;
  width: 100%;
}

.hero-featured-gold-shell.is-gold-active .hero-featured-detail-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(1, 14, 31, 0.6);
  border: 1px solid var(--featured-gold-line);
  border-radius: 4px;
  box-sizing: border-box;
}

.hero-featured-detail-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.hero-featured-detail-bar-icon {
  flex-shrink: 0;
  color: var(--featured-gold-bright);
  font-size: 0.7rem;
}

.hero-featured-detail-bar-divider {
  flex-shrink: 0;
  width: 1px;
  height: 1.25rem;
  background: var(--featured-gold-line);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.hero-content--split .hero-featured-action-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  justify-content: flex-start;
}

.hero--featured-gold .hero-btn-primary {
  background: var(--featured-gold);
  color: var(--featured-navy) !important;
  font-weight: 700;
  border-radius: 4px;
  border: none;
}

.hero--featured-gold .hero-btn-primary:hover {
  background: var(--featured-gold-bright);
  color: var(--featured-navy) !important;
}

.hero--featured-gold .hero-btn-secondary {
  border: 1px solid var(--featured-gold);
  color: #ffffff !important;
  background: transparent;
  border-radius: 4px;
}

.hero--featured-gold .hero-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.hero-content--split .hero-btn-primary,
.hero-content--split .hero-btn-secondary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Desktop: restored two-column grid (v6.1 layout) ────────────────────── */

@media (min-width: 769px) {
  .hero-content--split .hero-featured-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    grid-template-rows: auto auto;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 1.25rem;
    align-items: center;
    width: 100%;
  }

  /* Flatten top wrapper so copy + media join the stage grid */
  .hero-content--split .hero-featured-top {
    display: contents;
  }

  .hero-content--split .hero-featured-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 540px;
    gap: 0.875rem;
  }

  .hero-content--split .hero-featured-media {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 5;
  }

  .hero-content--split .hero-featured-media::after {
    display: none;
  }

  .hero-content--split .hero-featured-copy-bottom {
    grid-column: 1;
    grid-row: 2;
    max-width: 540px;
    gap: 1rem;
  }

  .hero-content--split .hero-featured-value-points {
    max-width: 480px;
  }

  .hero-content--split .hero-featured-action-zone {
    max-width: 480px;
  }

  .hero-content--split .hero-featured-desc {
    max-width: 480px;
  }
}

/* ── Coach & Play (non-split) ───────────────────────────────────────────── */

.hero-content--featured:not(.hero-content--split) .hero-featured-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-copy-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-logo {
  display: block !important;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-details {
  justify-content: center;
}

.hero-content--featured:not(.hero-content--split) .hero-featured-action-zone {
  align-items: center;
}

/* ── Campaign switcher ──────────────────────────────────────────────────── */

.hero--featured-gold .hero-campaign-switcher {
  margin-bottom: 0.75rem;
  border-color: var(--featured-gold-line);
}

.hero--featured-gold .hero-campaign-tab.is-active,
.hero--featured-gold .hero-campaign-tab[aria-selected="true"] {
  background: rgba(212, 175, 55, 0.12);
  color: var(--featured-gold-bright);
}

/* ── Mobile: top split + stacked content below ──────────────────────────── */

@media (max-width: 768px) {
  .hero.hero--featured-gold {
    min-height: clamp(690px, calc(100svh - var(--navbar-height-mobile, 85px)), 820px);
    padding: clamp(3.25rem, 7.5vw, 4rem) 0 clamp(3rem, 6.5vw, 3.5rem) !important;
    overflow-x: hidden;
  }

  .hero-featured-gold-shell.is-gold-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
  }

  .hero-content--split .hero-featured-inner {
    padding: 0 var(--space-3, 0.875rem);
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero-content--split .hero-featured-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: 0.65rem;
    row-gap: 0.75rem;
    width: 100%;
    align-items: start;
    flex: 1;
  }

  /* Flatten wrappers so copy, media, value rows join one grid */
  .hero-content--split .hero-featured-top,
  .hero-content--split .hero-featured-copy-bottom {
    display: contents;
  }

  .hero-content--split .hero-featured-copy {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
  }

  .hero-content--split .hero-featured-media {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
    min-height: clamp(19rem, 72vw, 27rem);
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-content--split .hero-featured-media picture {
    height: 100%;
    min-height: inherit;
  }

  .hero-content--split .hero-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 14, 31, 0.18) 0%, transparent 16%);
    pointer-events: none;
  }

  .hero-content--split .hero-featured-player-image {
    height: 100%;
    min-height: clamp(19rem, 72vw, 27rem);
    object-position: 50% 39%;
  }

  .hero-content--split .hero-featured-value-points {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    margin: 0.15rem 0 0;
  }

  .hero-content--split .hero-featured-action-zone {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 0.9rem;
    width: 100%;
    margin-top: 0.15rem;
  }

  .hero-featured-title--gold-stack {
    gap: 0.08rem;
  }

  .hero-content--split .hero-featured-location {
    margin: 0;
  }

  .hero-content--split .hero-featured-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0.05rem 0 0;
  }

  .hero-featured-gold-emphasis {
    font-size: clamp(2.35rem, 9.6vw, 3.05rem);
    letter-spacing: 0.035em;
  }

  .hero-featured-gold-subtitle {
    font-size: clamp(1.22rem, 4.7vw, 1.48rem);
    line-height: 1.12;
  }

  .hero-featured-value-row {
    padding: 0.4rem 0;
  }

  .hero-featured-value-text {
    font-size: 0.78rem;
    line-height: 1.32;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-featured-value-row:first-child .hero-featured-value-text {
    letter-spacing: -0.01em;
  }

  .hero-featured-value-icon-wrap {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.52rem;
  }

  /* Clean horizontal 3-column detail info bar */
  .hero-featured-gold-shell.is-gold-active .hero-featured-detail-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.7rem 0.55rem;
    gap: 0;
  }

  .hero-featured-detail-bar-divider {
    display: inline-block;
    height: 1.25rem;
    align-self: center;
    flex-shrink: 0;
  }

  .hero-featured-detail-bar-item {
    display: flex;
    flex-direction: row;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.15rem 0.2rem;
    border-bottom: none;
    white-space: nowrap;
    font-size: clamp(0.68rem, 2.75vw, 0.78rem);
    line-height: 1.2;
    min-width: 0;
  }

  .hero-featured-detail-bar-icon {
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .hero-featured-detail-bar-text {
    display: inline;
    overflow: visible;
    text-overflow: clip;
  }

  .hero-content--split .hero-featured-action-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-content--split .hero-featured-action-buttons .hero-btn {
    width: 100%;
    text-align: center;
  }
}

/* Very small screens: stack detail bar if horizontal row is too tight */
@media (max-width: 360px) {
  .hero-featured-gold-shell.is-gold-active .hero-featured-detail-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.75rem;
    gap: 0;
  }

  .hero-featured-detail-bar-divider {
    display: none;
  }

  .hero-featured-detail-bar-item {
    justify-content: flex-start;
    white-space: normal;
    padding: 0.38rem 0;
    border-bottom: 1px solid var(--featured-gold-line);
    font-size: 0.75rem;
  }

  .hero-featured-detail-bar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
