/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

/* ── HERO GRID ────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3px;
  margin-bottom: 24px;
  border: 1px solid var(--coal-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

/* Main large story */
.hero-main {
  grid-row: 1 / 4;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  cursor: pointer;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.hero-main:hover img {
  transform: scale(1.04);
}

.hero-main-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(17, 16, 16, 0.97) 0%,
    rgba(17, 16, 16, 0.35) 55%,
    transparent 100%
  );
}

.hero-main-content .story-tag {
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-sun);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 14px 0 12px;
  transition: color var(--t-base);
}
.hero-main:hover .hero-title {
  color: var(--accent);
}

.hero-desc {
  font-size: var(--fs-mercury);
  font-weight: 300;
  color: var(--grey-mid);
  max-width: 540px;
  line-height: 1.55;
}

/* Side cards column */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 156px;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-card:hover img {
  transform: scale(1.04);
}

.hero-card-content {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(17, 16, 16, 0.92) 0%,
    transparent 70%
  );
}
.hero-card-content .story-tag {
  margin-bottom: 4px;
}
.hero-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-earth);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #fff;
  transition: color var(--t-base);
}
.hero-card:hover .hero-card-title {
  color: var(--accent);
}

/* ── RESPONSIVE ─────────────────────────────────────────
   hero.css loads AFTER shell.css — mobile overrides MUST live
   here or base grid (1fr 340px + grid-row 1/4) wins on phones.
────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr 300px;
  }
}

/* Tablet: stack main on top, side cards in a row */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-main {
    grid-row: auto;
    min-height: 360px;
  }
  .hero-side {
    flex-direction: row;
  }
  .hero-card {
    min-height: 140px;
  }
}

/* Mobile: 4 equal cards like league story-cards (img top + body below) */
@media (max-width: 640px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  /* Unwrap side so all 4 are equal flex siblings */
  .hero-side {
    display: contents;
  }

  .hero-main,
  .hero-card {
    flex: none;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--coal-card);
    border: 1px solid var(--coal-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
  }

  /* Image band — same height as .story-img-wrap img */
  .hero-main img,
  .hero-card img {
    position: static;
    width: 100%;
    height: 155px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
  }
  .hero-main:hover img,
  .hero-card:hover img {
    transform: scale(1.04);
  }

  /* Body under image (not overlay) */
  .hero-main-content,
  .hero-card-content {
    position: static;
    inset: auto;
    padding: 15px;
    background: none;
    justify-content: flex-start;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-main-content .story-tag,
  .hero-card-content .story-tag {
    margin-bottom: 7px;
  }

  .hero-title,
  .hero-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-earth);
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 6px;
  }

  /* Short desc hidden on mobile (cards.css also enforces) */
  .hero-desc {
    display: none;
  }
}
