/* ================================
   ALT HERO - MATCH BANNER-SLIDER
   ================================ */

/* YTRE WRAPPER */
.alt-hero-purple-outer {
  width: 100%;
  /* Mørkere gradient */
  background: linear-gradient(90deg, #1E1B4B 0%, #2C2966 100%);
}

/* FLEX LAYOUT - DESKTOP */
.alt-hero-purple-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 50px 20px;
}

.alt-hero-purple-wrapper.no-image {
  flex-wrap: nowrap;
}

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

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

/* VENSTRE KOLONNE */
.alt-hero-purple-left {
  max-width: 700px;
  flex: 1 1 500px;
}

/* Badge */
.alt-hero-purple-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2E2A68; /* Lilla tekst */
  background-color: #F4EDDC; /* Beige bakgrunn */
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: inline-block;
 
}

/* Subtekst */
.alt-hero-purple-subtext {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #F4EDDC; /* Beige */
  margin: 0;
}

/* Heading - STØRRE OG TYDELIG */
.alt-hero-purple-heading h1,
.alt-hero-purple-heading h2,
.alt-hero-purple-heading h3,
.alt-hero-purple-heading {
  font-family: 'IBM Plex Sans';
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  font-size: 3.5rem; /* ~56px på desktop */
  color: #ffffff; /* Hvit */
}

.alt-hero-purple-heading h1 span,
.alt-hero-purple-heading h2 span,
.alt-hero-purple-heading h3 span {
  color: #F4EDDC; /* Beige */
}

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

.alt-hero-purple-content p {
  font-family: 'IBM Plex Sans';
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: #F4EDDC; /* Beige */
  margin: 0;
}

/* HØYRE KOLONNE */
.alt-hero-purple-right {
  flex: 1 1 400px;
  text-align: left;
}

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

/* KNAPP */
.banner-slider-button a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #F4EDDC; /* Beige knapp */
  color: #2E2A68; /* Lilla tekst */
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 1.0rem;
  font-weight: 500;
}

.banner-slider-button a:hover {
  background-color: #ffffff; /* Hvit ved hover */
  color: #2E2A68;
}



/* Badge generelt */
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.badge-beige {
  background-color: #F4EDDC; /* Beige bakgrunn */
  color: #2E2A68; /* Lilla tekst */
}


.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: 768px) {
  span.hide {
    display: none !important;
    visibility: hidden !important;
  }
}

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

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

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

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

  /* Heading størrelse på tablet */
  .alt-hero-purple-heading h1,
  .alt-hero-purple-heading h2 {
    font-size: 2.5rem; /* ~40px */
    line-height: 1.3;
  }

  /* Tekst på tablet */
  .alt-hero-purple-content p {
    font-size: 1.125rem;
  }

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

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

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

/* Mindre heading på mobil */
@media (max-width: 479px) {
  .alt-hero-purple-heading h1,
  .alt-hero-purple-heading h2,
  .alt-hero-purple-heading h3 {
    font-size: 1.8rem; /* ca 28–30px */
  }
}

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

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

