/* The existing photo covers the complete hero. Copy and course card remain in normal
   flow above the overlay, so larger text can increase the section height. */
body.home #content .rt-native-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  background: var(--ad-night, #161826) !important;
}
body.home #content .rt-native-hero > .rt-hero-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 0;
}
body.home #content .rt-native-hero .rt-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}
body.home #content .rt-native-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 21, 31, .9), rgba(16, 21, 31, .8) 55%, rgba(16, 21, 31, .42)) !important;
  opacity: 1 !important;
  z-index: 1;
  pointer-events: none;
}
body.home #content .rt-native-hero > .e-con-inner {
  display: flex !important;
  flex-grow: 0 !important;
  margin-block: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 2;
}
body.home #content .rt-native-hero .elementor-element-1ba9f80 { padding: 0 !important; }
body.home #content .rt-native-hero .elementor-element-1ba9f80 h1 { color: #fff !important; }
body.home #content .rt-native-hero .elementor-element-6a98b36 .elementor-heading-title { color: var(--ad-gold, #f5d752) !important; }
body.home #content .rt-native-hero .elementor-element-279d5f2 p { color: #eef2f7 !important; }
body.home #content .rt-native-hero .elementor-element-735c61f .elementor-button {
  color: #fff !important;
  border-color: #dce0e6 !important;
  background: rgba(16, 21, 31, .2) !important;
}
body.home #content .rt-native-hero .elementor-element-1ba9f80 .elementor-button:focus-visible { outline-color: var(--ad-gold, #f5d752) !important; }
body.home #content .rt-native-hero .elementor-element-70646b1 {
  position: relative !important;
  inset: auto !important;
  width: min(44%, 28rem) !important;
  max-width: 44% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-self: flex-end !important;
  margin-top: 0 !important;
  /* Match the existing action row's 10px bottom padding. */
  margin-bottom: 10px !important;
  margin-left: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.home #content .rt-native-hero .elementor-element-70646b1 :is(.elementor-widget, .elementor-widget-container) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* The availability line is a status, while the calendar remains an action. */
body.home #content .rt-native-hero .rt-nestekurs > p {
  display: table;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: .5rem 0 0 !important;
  padding: .25rem .65rem;
  border-radius: .5rem;
  background: #fff4d1;
  color: #674900 !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
}
body.home #content .rt-native-hero .rt-nestekurs > a {
  width: fit-content;
  max-width: 100%;
  margin-top: .75rem !important;
}

@media (max-width: 900px) {
  body.home #content .rt-native-hero > .e-con-inner {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.home #content .rt-native-hero::before { background: rgba(16, 21, 31, .78) !important; }
  body.home #content .rt-native-hero .elementor-element-70646b1 {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 600px) {
  body.home #content .rt-native-hero { padding-block: 1.75rem !important; }
  body.home #content .rt-native-hero > .e-con-inner { gap: 1rem !important; }
  body.home #content .rt-native-hero .elementor-element-1ba9f80 { gap: .75rem !important; }
  body.home #content .rt-native-hero .elementor-element-279d5f2 p {
    margin: 0 !important;
    font-size: 1.0625rem !important;
    line-height: 1.6 !important;
  }
  body.home #content .rt-native-hero .elementor-element-0cecb26 {
    gap: .5rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
}

