/* Focused homepage layout refinements. Kept separate from the shared bundle. */
.home-hero-new {
  grid-template-columns: minmax(17rem, 0.68fr) minmax(32rem, 1.32fr);
  gap: clamp(1.75rem, 3.5vw, 4rem);
  min-height: 44rem;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.home-hero-new::before {
  display: none;
}

.home-event-showcase {
  width: 100%;
  justify-self: stretch;
}

.home-hero-image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  border-radius: 1.25rem;
  box-shadow: 0 22px 52px rgba(8, 29, 51, 0.14);
}

.home-event-progress {
  min-width: 3.25rem;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 28, 49, 0.36);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.home-event-toggle[hidden] {
  display: none;
}

.home-event-toggle .play-icon,
.home-event-showcase.is-paused .home-event-toggle .pause-icon {
  display: none;
}

.home-event-showcase.is-paused .home-event-toggle .play-icon {
  display: block;
}

.home-hero-join {
  min-height: 3.55rem;
  gap: 0.65rem;
  padding: 0.88rem 1.35rem;
  color: #fff;
  border: 1px solid #0d4c94;
  border-radius: 999px;
  background: #0d4c94;
  box-shadow: 0 10px 24px rgba(13, 76, 148, 0.18);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-hero-join::after {
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 0.1rem;
  border-radius: 0;
  background: transparent;
  content: "\2192";
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.home-hero-join:hover {
  color: #fff;
  border-color: #083a73;
  background: #083a73;
  box-shadow: 0 14px 30px rgba(8, 58, 115, 0.22);
  transform: translateY(-2px);
}

.home-hero-join:hover::after {
  transform: translateX(0.22rem);
}

.home-team-invite {
  background: #0d4c94;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-team-invite::after {
  display: none;
}

.home-team-invite:hover {
  border-color: #083a73;
  box-shadow: 0 22px 48px rgba(13, 76, 148, 0.2);
  transform: translateY(-2px);
}

.home-team-action {
  width: fit-content;
  min-height: 3.55rem;
  gap: 0.65rem;
  padding: 0.78rem 1.15rem;
  color: #0d4c94;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(7, 28, 49, 0.16);
  transition: color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-team-action::after {
  display: inline-block;
  width: auto;
  height: auto;
  color: currentColor;
  background: transparent;
  content: "\2192";
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.home-team-invite:hover .home-team-action {
  color: #083a73;
  box-shadow: 0 11px 24px rgba(7, 28, 49, 0.16);
  transform: translateY(-1px);
}

.home-team-invite:hover .home-team-action::after {
  transform: translateX(0.2rem);
}

@media (max-width: 900px) {
  .home-hero-new {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
  }

  .home-event-showcase {
    height: auto;
    min-height: 0;
  }

  .home-hero-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 767px) {
  .home-hero-new {
    border-radius: 0;
  }

  .home-hero-caption {
    display: block;
    padding-right: 4.3rem;
  }

  .home-hero-caption > span:first-child {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .home-hero-caption strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(1rem, 4.7vw, 1.2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-hero-caption > span:first-child > span {
    white-space: normal;
  }

  .home-event-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 3.55rem;
    justify-content: center;
    white-space: nowrap;
  }

  .home-hero-join {
    width: fit-content;
    max-width: 100%;
    min-height: 3.55rem;
    align-self: flex-start;
    justify-content: center;
  }

  .home-team-action {
    width: fit-content;
    max-width: 100%;
    align-self: start;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-join,
  .home-hero-join::after,
  .home-team-invite,
  .home-team-action,
  .home-team-action::after {
    transition: none;
  }
}
