/* =============================================================================
   Landing Hero – Section (landing_hero)
   Figma node: 2656:9725
   Depends on: seed-design-tokens.css
   ============================================================================= */

.landing-hero {
  position: relative;
  width: 100%;
  /* Tartalom szerint nőjön; minimum vizuális magasság — ne vágjuk le a szöveget (régi: fix 60vh + max-height) */
  min-height: max(520px, 60vh);
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 70px;
}

.landing-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Csak első szekció + desktop: a fix menü alá ne fusson a háttérkép / videó (ugyanaz a token, mint a program herónál) */
@media (min-width: 1024px) {
  main.template.template--static
    > section.section--landing-hero.scroll__anchor:first-child
    .landing-hero__media {
    top: var(
      --seed-landing-hero-media-menu-offset,
      var(--seed-program-hero-image-menu-offset, 70px)
    );
  }
}

.landing-hero__media_img,
.landing-hero__media_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-hero__container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: var(--Padding-Section-XXL, 80px);
  box-sizing: border-box;
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  align-items: start;
}

.landing-hero__card {
  grid-column: 1 / span 5;
  background: var(--Colours-Primitive-blue-dark, #151a2e);
  border-top-left-radius: 0;
  border-top-right-radius: var(--image-corner-radius-m, 64px);
  border-bottom-right-radius: var(--image-corner-radius-m, 64px);
  border-bottom-left-radius: var(--image-corner-radius-m, 64px);
  padding: var(--Padding-Section-XL, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  align-self: start;
}

.landing-hero__tag {
  height: 32px;
  padding: 8px 16px;
  border-radius: var(--Radius-full, 9999px);
  background: var(--Colours-Primitive-blue-light, #25325b);
  color: var(--Colours-Primitive-white, #fff);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--Spacing-S, 16px);
}

.landing-hero__tag--mustard {
  background: var(--Colours-Primitive-mustard-light, #cda357);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero__tag--aqua {
  background: var(--Colours-Primitive-aqua-light, #78c6c6);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero__tag--peach {
  background: var(--Colours-Primitive-peach-light, #efb19b);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero__tag--blue {
  background: var(--Colours-Primitive-blue-light, #25325b);
  color: var(--Colours-Primitive-white, #fff);
}

.landing-hero__tag--white {
  background: var(--Colours-Primitive-white, #fff);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero__tag--green {
  background: #a6bc39;
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

/* Dinamikus insight slide badge (landing hero) */
.landing-hero__tag--insight {
  background: #6d3c8d !important;
  color: var(--Colours-Primitive-white, #fff) !important;
}

.landing-hero__slides {
  margin-top: 16px;
  position: relative;
}

.landing-hero__slide {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.landing-hero__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}

.landing-hero__title {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--Colours-Primitive-mustard-light, #cda357);
}

.landing-hero__title--mustard {
  color: var(--Colours-Primitive-mustard-light, #cda357);
}

.landing-hero__title--aqua {
  color: var(--Colours-Primitive-aqua-light, #78c6c6);
}

.landing-hero__title--peach {
  color: var(--Colours-Primitive-peach-light, #efb19b);
}

.landing-hero__title--blue {
  color: var(--Colours-Primitive-blue-light, #25325b);
}

.landing-hero__title--white {
  color: var(--Colours-Primitive-white, #fff);
}

.landing-hero__title--green {
  color: #a6bc39;
}

.landing-hero__desc {
  margin-top: 16px;
  margin-bottom: var(--Spacing-M, 24px);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--Colours-Primitive-neutral-400, #a6a7aa);
}

/* Start date sor — upcoming programs kártyával megegyező tipográfia */
.landing-hero__date_above_cta {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 0;
}

.landing-hero__date_above_cta_label {
  flex: 0 0 120px;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--Colours-Primitive-neutral-400, #a6a7aa);
  text-transform: uppercase;
}

.landing-hero__date_above_cta_value {
  flex: 1;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  color: var(--Colours-Primitive-white, #fff);
}

.landing-hero__btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--Radius-s, 8px);
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--Colours-Primitive-white, #fff);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.landing-hero__btn_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-hero__btn:hover {
  background: var(--Colours-Primitive-neutral-200, #e5e6ea);
}

.landing-hero__btn:focus-visible {
  outline: 2px solid var(--Colours-Primitive-mustard-light, #cda357);
  outline-offset: 4px;
}

.landing-hero__btn_text {
  font: inherit;
}

.landing-hero__controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-hero__dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.landing-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.landing-hero__dot.is-active {
  background: var(--Colours-Primitive-white, #fff);
}

.landing-hero__nav {
  display: inline-flex;
  gap: 8px;
}

.landing-hero__nav_btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--Colours-Primitive-white, #fff);
  background: transparent;
  color: var(--Colours-Primitive-white, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.landing-hero__nav_btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Theme overrides */
.landing-hero--theme-white .landing-hero__card {
  background: var(--Colours-Primitive-white, #fff);
}
.landing-hero--theme-white .landing-hero__tag {
  /* Keep per-slide badge backgrounds (mustard/aqua/peach/blue) working in white theme.
     Only enforce readable default text color here; variants can override as needed. */
  color: var(--Colours-Primitive-white, #fff);
}
.landing-hero--theme-white .landing-hero__title {
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero--theme-white .landing-hero__title--mustard {
  color: var(--Colours-Primitive-mustard-light, #cda357);
}

.landing-hero--theme-white .landing-hero__title--aqua {
  color: var(--Colours-Primitive-aqua-light, #78c6c6);
}

.landing-hero--theme-white .landing-hero__title--peach {
  color: var(--Colours-Primitive-peach-light, #efb19b);
}

.landing-hero--theme-white .landing-hero__title--blue {
  color: var(--Colours-Primitive-blue-light, #25325b);
}

.landing-hero--theme-white .landing-hero__title--white {
  color: var(--Colours-Primitive-white, #fff);
}

.landing-hero--theme-white .landing-hero__title--green {
  color: #a6bc39;
}
.landing-hero--theme-white .landing-hero__desc {
  color: rgba(21, 26, 46, 0.72);
}

.landing-hero--theme-white .landing-hero__date_above_cta_label {
  color: rgba(21, 26, 46, 0.72);
}

.landing-hero--theme-white .landing-hero__date_above_cta_value {
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero--theme-white .landing-hero__btn,
.landing-hero--theme-white .landing-hero__nav_btn {
  border-color: var(--Colours-Primitive-blue-dark, #151a2e);
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero--theme-white .landing-hero__btn {
  background: var(--Colours-Primitive-blue-dark, #151a2e);
  color: var(--Colours-Primitive-white, #fff);
  border: 1px solid transparent;
}

.landing-hero--theme-white .landing-hero__btn:hover {
  background: var(--Colours-Semantic-Button-dark-hover-focus, #0f1427);
}

/* Ensure badge variants stay readable in white theme */
.landing-hero--theme-white .landing-hero__tag--mustard,
.landing-hero--theme-white .landing-hero__tag--aqua,
.landing-hero--theme-white .landing-hero__tag--peach {
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero--theme-white .landing-hero__tag--blue {
  color: var(--Colours-Primitive-white, #fff);
}

.landing-hero--theme-white .landing-hero__tag--white,
.landing-hero--theme-white .landing-hero__tag--green {
  color: var(--Colours-Primitive-blue-dark, #151a2e);
}

.landing-hero--theme-white .landing-hero__tag--insight {
  color: var(--Colours-Primitive-white, #fff) !important;
}
.landing-hero--theme-white .landing-hero__dot {
  background: rgba(21, 26, 46, 0.35);
}
.landing-hero--theme-white .landing-hero__dot.is-active {
  background: var(--Colours-Primitive-blue-dark, #151a2e);
}

/* Mobile */
@media (max-width: 991px) {
  .landing-hero {
    min-height: max(100dvh, 520px);
    height: auto;
  }
  .landing-hero__container {
    padding: 32px;
  }
  .landing-hero__card {
    grid-column: 1 / -1;
    border-top-left-radius: 0;
    border-top-right-radius: 48px;
    border-bottom-right-radius: 48px;
    border-bottom-left-radius: 48px;
  }
  .landing-hero__title {
    font-size: 36px;
  }
}
