/* --- Undervisning --- */
.teaching-section {
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-accent-light) 100%
  );
  text-align: center;
  padding: 5rem 2rem;
  /* border-top: 2px solid var(--color-primary); */
}

.teaching-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.teaching-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.teaching-links img {
  width: 3em;
  height: auto;
  margin-bottom: 0.5em;
}

.teaching-links a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.teaching-player iframe {
  max-width: 700px;
  width: 100%;
  height: 232px;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
}

.teaching-text {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.teaching-text h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  line-height: 1.3;
}

.teaching-text > p:first-child {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* Responsivt */
@media (max-width: 768px) {
  .teaching-section {
    width: auto;
    padding: 3rem 1rem;
  }

  .teaching-links {
    flex-direction: row;
    margin-bottom: 3rem;
    gap: 1.5rem;
  }

  .teaching-player {
    margin-bottom: 2rem;
  }
  .event-card {
    min-width: 15rem;
  }

  .teaching-section h3 {
    font-size: 1.2rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .teaching-text {
    width: 100%;
    max-width: 85%;
  }

  .teaching-player iframe {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .teaching-section {
    padding: 5rem 2rem;
  }

  .teaching-links {
    gap: 3rem;
  }

  .teaching-links a img {
    width: 3.5em;
  }

  .teaching-player iframe {
    width: 100%;
    height: 232px;
  }

  .teaching-text {
    width: 70%;
  }
}

@media (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
  .teaching-section h3 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .teaching-text {
    width: 70%;
  }
}

/* ================================
   Liggande mobil – fix
================================ */
@media (min-width: 480px) and (max-width: 768px) and (orientation: landscape) {
  .teaching-section h3 {
    align-self: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .teaching-links {
    flex-direction: row;
    gap: 5rem;
  }
  .teaching-player {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .teaching-player iframe {
    width: 100%;
    height: 232px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .teaching-player {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6vh;
  }
  .teaching-text {
    width: 70%;
  }
}

@media (max-height: 351px) and (max-width: 509px) {
  .CoverArtSingle_coverArtSingle__KLcKa {
    width: 120px !important;
    height: 120px !important;
  }
}
