.undervisning-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.undervisning-section {
  padding: 80px 0;
}

.undervisning-h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.undervisning-h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.undervisning-lead,
.undervisning-intro {
  font-size: 18px;
  line-height: 28px;
}

.undervisning-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

.undervisning-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-blue-200);
  color: var(--brand-blue-600);

  svg {
    stroke-width: 1.6;
  }
}

.undervisning .landing__button svg {
  stroke-width: 1.7;
}

.undervisning .undervisning-button-outline {
  border: 1px solid var(--brand-blue-300);
  background: #fff;
  color: var(--brand-blue-600);

  &:hover {
    background: var(--brand-blue-200);
  }
}

/* Hero */

.undervisning-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #fff 35%,
    var(--brand-blue-200) 75%,
    var(--brand-blue-200) 100%
  );

  &::before,
  &::after {
    content: '';
    position: absolute;
  }

  &::before {
    top: 260px;
    right: -320px;
    width: 900px;
    height: 640px;
    border-radius: 46% 54% 38% 62%;
    background: var(--brand-blue-300);
    filter: blur(140px);
    opacity: 0.9;
  }

  &::after {
    top: 520px;
    left: -380px;
    width: 620px;
    height: 460px;
    border-radius: 58% 42% 55% 45%;
    background: var(--brand-blue-600);
    filter: blur(160px);
    opacity: 0.35;
  }
}

.undervisning-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 56px;
  text-align: center;

  .undervisning-lead {
    max-width: 680px;
  }
}

.undervisning-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.undervisning-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1072px;
  margin: 48px auto 0;
  padding: clamp(16px, 4.5vw, 48px) clamp(8px, 3vw, 36px) clamp(8px, 2vw, 16px);

  &::before {
    content: '';
    position: absolute;
    inset: 2% 1% 10%;
    border-radius: 48px;
    background:
      radial-gradient(
        ellipse at 30% 40%,
        var(--brand-blue-600) 0%,
        rgb(35 66 204 / 55%) 45%,
        rgb(192 204 255 / 0%) 75%
      ),
      radial-gradient(
        ellipse at 75% 65%,
        #7c8cf8 0%,
        rgb(124 140 248 / 40%) 40%,
        rgb(192 204 255 / 0%) 75%
      );
    filter: blur(48px);
    opacity: 0.75;
  }

  figcaption {
    position: relative;
    margin-top: 28px;
    color: #4a4960;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }
}

.undervisning-showcase-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 20px 50px 0 rgb(33 0 113 / 18%),
    0 2px 8px 0 rgb(0 0 0 / 8%);
}

.undervisning video {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.undervisning-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(12 12 33 / 35%);

  &[hidden] {
    display: none;
  }

  &[data-ended] .undervisning-play-start,
  &:not([data-ended]) .undervisning-play-again {
    display: none;
  }

  button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-blue-800);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px 0 rgb(0 0 0 / 18%);
  }

  span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  svg {
    stroke-width: 1.8;
  }
}

.undervisning-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(12 12 33 / 60%);
  color: #fff;
  cursor: pointer;

  &[hidden] {
    display: none;
  }

  &:hover {
    background: rgb(12 12 33 / 80%);
  }

  &:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0;
    box-shadow: 0 0 0 4px var(--brand-blue-800);
  }

  svg {
    stroke-width: 2.2;
  }
}

.undervisning-hero .landing-trust {
  padding: 56px 0 72px;
}

.undervisning .landing-trust__logos img {
  width: auto;
  object-fit: contain;
}

.undervisning .landing-trust__logos li:nth-child(1) img {
  height: 22px;
}

.undervisning .landing-trust__logos li:nth-child(2) img {
  height: 30px;
}

.undervisning .landing-trust__logos li:nth-child(3) img {
  height: 40px;
}

.undervisning .landing-trust__logos li:nth-child(4) img {
  height: 26px;
}

/* Ferdig kurs i tre steg */

.undervisning-steps-section {
  background: linear-gradient(180deg, var(--brand-blue-200) 0, #fff 120px, #fff 100%);
}

.undervisning-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.undervisning-card {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
}

.undervisning-step {
  border: 1px solid #e4e7f7;
  box-shadow: var(--flow-shadow-100);
}

.undervisning-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-blue-600);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.undervisning-card-title {
  font-size: 22px;
  line-height: 28px;
}

.undervisning-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;

  p {
    color: #5b5a68;
    font-size: 15px;
    line-height: 24px;
  }
}

/* For pasientene dine */

.undervisning-section-navy {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: var(--brand-blue-800);
  color: #fff;

  &::before {
    content: '';
    position: absolute;
    top: 80px;
    left: -200px;
    width: 700px;
    height: 600px;
    border-radius: 50%;
    background: var(--brand-blue-600);
    filter: blur(160px);
    opacity: 0.55;
  }

  h2,
  h3 {
    color: #fff;
  }

  .landing__eyebrow {
    color: var(--brand-blue-300);
  }

  .undervisning-intro,
  p {
    color: #e3e8ff;
  }

  .undervisning-heading {
    margin-bottom: 0;
  }

  .undervisning-icon {
    background: rgb(255 255 255 / 10%);
    color: #fff;
  }

  a:focus-visible {
    outline-color: #fff;
  }
}

.undervisning-patient-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.undervisning-phone {
  display: flex;
  flex: 0 1 340px;
  justify-content: center;
  min-width: 0;
}

.undervisning-phone-frame {
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 46px;
  background: var(--grey-900);
  box-shadow:
    0 30px 80px 0 rgb(0 0 0 / 35%),
    0 0 0 1px rgb(255 255 255 / 10%);
}

.undervisning-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #f8f9ff;

  &::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 2;
    width: 84px;
    height: 22px;
    margin-left: -42px;
    border-radius: 12px;
    background: var(--grey-900);
  }

  .undervisning-play span {
    gap: 8px;
  }

  .undervisning-play button {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
  }
}

.undervisning-patient-text {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.undervisning-patient-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

.undervisning-benefit-title {
  font-size: 20px;
  line-height: 26px;
}

.undervisning .undervisning-button-navy {
  align-self: flex-start;
  color: var(--brand-blue-800);
}

/* Anbud og avtaler med helseforetakene */

.undervisning-tender-section {
  background: var(--brand-blue-200);

  .undervisning-card {
    gap: 10px;
  }

  .landing__button {
    align-self: flex-start;
  }
}

.undervisning-tender {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.undervisning-stat {
  color: var(--brand-blue-600);
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 48px;
}

/* Kontakt */

.undervisning-contact-section {
  padding: 24px 0 88px;
  background: linear-gradient(180deg, #fff 0%, var(--brand-blue-200) 45%, var(--grey-100) 100%);
}

.undervisning-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 2px 3px 0 rgb(0 0 0 / 3%),
    0 8px 24px 0 rgb(35 66 204 / 6%);
}

.undervisning-contact-text {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.undervisning-contact-title {
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
}

.undervisning-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  font-size: 15px;
  line-height: 24px;

  li {
    display: flex;
    align-items: center;
    gap: 10px;

    &::before {
      content: '';
      flex: 0 0 18px;
      height: 18px;
      background: url('../images/undervisning-check.svg') no-repeat center / contain;
    }
  }
}

.undervisning-contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
}

.undervisning .undervisning-button-large {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}
