/* Hero Section */
.hero-section {
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 16vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.hero-title.background {
  z-index: 0;
  opacity: 0.3;
}

.hero-title.foreground {
  z-index: 3;
}

.hero-image-container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-image-container picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-info-container {
  display: flex;
  align-items: center;
  gap: 60px;
  z-index: 4;
  position: relative;
}

.hero-info-text {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.hero-info-text span {
  display: inline-block;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Hero Overlay — right-half event info card
   ========================================================================== */

.hero-section {
  min-height: clamp(320px, 80vh, 800px);
  --hero-content-width: min(100vw, var(--issca-content-max, 1440px));
  --hero-content-left: calc((100vw - var(--hero-content-width)) / 2);
}

/* The image container fills the full section as a background layer */
.hero-image-container {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  height: 100% !important;
  z-index: 2;
}

.hero-image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient layer: covers right half of the image, edge to edge */
.hero-gradient {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 3;
  pointer-events: none;
   background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.32) 28%, rgba(0, 0, 0, 0.56) 100%);
}

/* Content layer: aligned to layout content-max right half */
.hero-overlay-content {
  position: absolute;
  top: 0;
  right: var(--hero-content-left);
  bottom: 0;
  left: calc(var(--hero-content-left) + (var(--hero-content-width) / 2));
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.2vw, 18px);
  padding: clamp(24px, 4vw, 72px) clamp(28px, 4.5vw, 80px) clamp(24px, 4vw, 72px) clamp(16px, 2.5vw, 48px);
}

.hero-overlay-content .issca-event-notice {
  margin-bottom: clamp(4px, 0.7vw, 10px);
}

.hero-overlay-content .issca-event-notice__text {
  text-shadow: none;
}

.hero-overlay-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-overlay-logo {
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 1025px) {
  .hero-overlay-logo {
    max-height: 7vh;
    margin-left: -31px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-overlay-logo {
    max-height: 9vh;
  }
}

/* Small uppercase label — event name */
.hero-overlay-label {
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 3vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  margin: 0;
  line-height: 1;
  text-shadow: var(--issca-text-shadow-soft-down-global);
}

.hero-overlay-highlight {
  color: var(--event-color);
}

/* Year — the dominant visual element */
.hero-overlay-year {
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.5rem, 10vw, 12rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: #fff;
  margin: 0;
  text-shadow: var(--issca-text-shadow-strong-down-global);
}

/* Date — clean and readable */
.hero-overlay-date {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 2.4vw, 2.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 12px);
  flex-wrap: wrap;
  text-shadow: var(--issca-text-shadow-soft-down-global);
}

.hero-overlay-date-text {
  white-space: nowrap;
}

.hero-overlay-date-separator {
  display: inline-block;
  width: clamp(36px, 4vw, 72px);
  height: 1px;
  background-color: rgba(255, 255, 255, 0.70);
  flex: 0 0 auto;
}

/* Location — uppercase, event-coloured accent */
.hero-overlay-location {
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.78rem, 2.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--event-color);
  margin: 0;
  line-height: 1;
  text-shadow: var(--issca-text-shadow-soft-down-global);
}

/* ── Mobile: centered overlay on top of full image ────────────────── */
@media (max-width: 768px) {
  .hero-section {
    margin-top: 0 !important;
    justify-content: center !important;
    min-height: clamp(360px, 72vh, 620px);
  }

  .hero-title {
    font-size: clamp(2.2rem, 13vw, 4.2rem);
    white-space: normal !important;
    position: static !important;
    transform: none !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  .hero-title.background {
    display: none !important;
  }

  .hero-image-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }

  .hero-info-container {
    gap: 20px !important;
    margin-top: 30px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .hero-info-text {
    font-size: 14px !important;
  }

  .hero-divider {
    height: 30px !important;
  }

  .hero-image-container picture {
    width: 100%;
    height: 100%;
  }

  .hero-image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-gradient {
    display: block;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.46) 100%);
  }

  .hero-overlay-content {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: min(100%, var(--issca-content-max, 1440px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 7vw, 40px) 18px;
    gap: clamp(8px, 2.6vw, 14px);
    background: none;
  }

  .hero-overlay-content .issca-event-notice {
    width: min(100%, 680px);
    margin-bottom: 6px;
  }

  /* Mobile image set → align content to top */
  .hero-has-mobile-image .hero-overlay-content {
    justify-content: flex-start;
    padding-top: 3vh;
    gap: 0.8vh;
  }

  .hero-overlay-label {
    font-size: 2.8rem;
  }

  .hero-overlay-year {
    font-size: 5.8rem;
  }

  .hero-overlay-date {
    font-size: 2.4rem;
  }

  .hero-overlay-date-separator {
    width: 40px;
  }

  .hero-overlay-location {
    font-size: 2.2rem;
  }

  .hero-overlay-logo {
    max-height: 5vh;
  }
}
