/* YTRE WRAPPER */
.alt-hero-outer {
  position: relative; /* nødvendig for overlay-posisjonering */
  width: 100%;
}

/* Overlay for bakgrunnsbilde */
.alt-hero-outer.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.alt-hero-outer.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); /* mørk gjennomsiktighet */
  z-index: 1; /* ligger bak teksten */
}

/* FLEX LAYOUT - DESKTOP */
.alt-hero-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 30px 20px;
  position: relative;
  z-index: 2; /* teksten over overlay */
}

/* Når heroen ikke har bilde */
.alt-hero-wrapper.no-image {
  flex-wrap: nowrap;
}

.alt-hero-wrapper.no-image .alt-hero-left {
  max-width: 75%;
  flex: 1 1 75%;
}

.alt-hero-wrapper.no-image .alt-hero-right {
  display: none;
}

/* VENSTRE KOLONNE (tekst) */
.alt-hero-left {
  max-width: 600px;
  flex: 1 1 500px;
  position: relative;
  z-index: 2; /* over overlay */
}

/* Badge */
.alt-hero-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: #3e417f;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 15px;
  display: inline-block;
}

/* Subtekst */
.alt-hero-subtext {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff; /* ren hvit */
  margin: 0;
}

/* Heading */
.alt-hero-heading h1,
.alt-hero-heading h1 span,
.banner-slider-heading h1,
.banner-slider-heading h1 span {
  font-family: 'IBM Plex Sans';
  margin: 0;
  line-height: 1.2;
  color: #ffffff; /* ren hvit */
}

/* Brødtekst */
.alt-hero-content {
  margin-bottom: 14px;
}

.alt-hero-content p {
  font-family: 'IBM Plex Sans';
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff; /* ren hvit */
  margin: 0;
}

/* HØYRE KOLONNE (bilde) */
.alt-hero-right {
  flex: 1 1 400px;
  text-align: left;
  position: relative;
  z-index: 2; /* over overlay */
}

.alt-hero-right img {
  display: block;
  margin: 0;
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* KNAPP - matcher "PRISER"-knappen i headeren */
.banner-slider-button a {
  cursor: pointer;
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 23px;
  padding: 19px 35px;
  text-decoration: none;
  text-transform: uppercase;
  color: #F4EDDC; /* lys beige tekst som i header */
  background-color: #35376D; /* lilla som i header */
  border: 1px solid #35376D; /* samme lilla, så ingen "hopp" på hover */
  border-radius: 0; /* match header */
  transition: background-color 0.2s ease, color 0.2s ease;
}

.banner-slider-button a:hover {
  background-color: #2A2C5A; /* litt mørkere lilla */
  border-color: #2A2C5A; /* match bakgrunn på hover */
}

.banner-slider-button a:empty {
  display: none;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet */
@media (max-width: 991px) {
  .alt-hero-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .alt-hero-left,
  .alt-hero-right {
    flex: 0 0 auto;
    max-width: 100%;
  }

  /* Når ingen bilde → full bredde tekst */
  .alt-hero-wrapper.no-image .alt-hero-left {
    max-width: 100%;
    flex: 1 1 100%;
  }

  /* Sentrer bildet på tablet/mobil */
  .alt-hero-right {
    margin-top: 5px;
    text-align: center;
    width: 100%;
  }

  .alt-hero-right img {
    width: 70%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 12px;
  }
}

/* Små tablets / store mobiler */
@media (max-width: 767px) {
  .alt-hero-heading h1,
  .alt-hero-heading h1 span {
    line-height: 1.3;
  }
}

/* Mobil */
@media (max-width: 479px) {
  .alt-hero-heading h1,
  .alt-hero-heading h1 span {
    line-height: 1.25;
  }

  .alt-hero-content p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .alt-hero-right img {
    width: 75%;
    max-width: 280px;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.badge-purple {
  background-color: #3e417f;
  color: #fff;
}

.badge-beige {
  background-color: #f4e9d8;
  color: #333;
}

.badge-gray {
  background-color: #f2f2f2;
  color: #333;
}

.badge a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.badge a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 11768px) {
  .hide {
    display: none !important;
    visibility: hidden !important;
  }
}

/* --- Justering for bredere tekst og mer høyreflyttet bilde --- */
.alt-hero-left {
  max-width: 700px; /* bredere tekstfelt */
}

.alt-hero-right {
  margin-left: 40px; /* flytt bildet mer mot høyre */
}

/* --- Skjul bilde på tablet og mobil --- */
@media (max-width: 991px) {
  .alt-hero-right {
    display: none;
  }
  
  /* Sørg for at teksten får full bredde når bildet er borte */
  .alt-hero-left {
    max-width: 100%;
  }
/* Holder alle tre på linje (bryter på mobil ved behov) */
.hero-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;   /* avstand mellom punktene */
  flex-wrap: wrap;
  margin: 0;      /* fjern h6 default-margin */
}

/* Ikon + tekst skal ligge horisontalt og midtstilles vertikalt */
.hero-icons > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;    /* avstand mellom ikon og tekst */
  white-space: nowrap; /* unngå brudd midt i et punkt */
  line-height: 1.4;
}

/* Sørg for lik ikon-størrelse og vertikal justering */
.hero-icons .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
  display: block; /* eliminer ekstra linjeavstand rundt SVG */
  color: #cbd5e1; /* valgfritt: lys ikonfarge */
}


