.videos-library-page {
  background: #f5f8fa;
}

.videos-library-header {
  position: sticky;
  top: 0;
}

.videos-library-header .header-inner {
  min-height: 88px;
}

.videos-library-header .brand-icon {
  mix-blend-mode: multiply;
}

.back-to-landing {
  gap: 8px;
}

.back-to-landing svg {
  width: 18px;
  height: 18px;
}

.videos-library-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 177, 219, .28), transparent 30%),
    linear-gradient(135deg, #091f30 0%, #123d58 100%);
}

.videos-library-hero .container {
  max-width: 920px;
  margin-left: max(40px, calc((100% - var(--container)) / 2));
}

.videos-library-hero .eyebrow {
  color: #75d2ed;
}

.videos-library-hero h1 {
  max-width: 850px;
  margin: 16px 0 22px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .98;
}

.videos-library-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.videos-library-content {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.video-category + .video-category {
  margin-top: clamp(64px, 8vw, 96px);
}

.video-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(19, 55, 75, .14);
}

.video-category-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.video-category-count {
  flex: 0 0 auto;
  color: #1680a8;
  font-weight: 700;
}

.video-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-category-grid .tutorial-card {
  height: 100%;
}

.video-category-grid .tutorial-card-media:focus-visible,
.back-to-landing:focus-visible {
  outline: 3px solid #67c9ea;
  outline-offset: 4px;
}

.videos-library-return {
  padding: 56px 0;
  color: #fff;
  background: #0c293b;
}

.videos-library-return-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.videos-library-return h2 {
  margin: 0 0 8px;
  color: #fff;
}

.videos-library-return p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
}

@media (min-width: 981px) {
  .videos-library-hero {
    padding-block: 64px 54px;
  }

  .videos-library-hero h1 {
    max-width: 720px;
    margin: 10px 0 14px;
    font-size: 3.7rem;
    line-height: 1.02;
  }

  .videos-library-hero p {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .videos-library-content {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .video-category {
    max-width: 1120px;
    margin-inline: auto;
  }

  .video-category + .video-category {
    margin-top: 56px;
  }

  .video-category-head {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .video-category-head h2 {
    font-size: 1.65rem;
  }

  .video-category-grid {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .video-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .videos-library-header .header-inner {
    min-height: 72px;
  }

  .back-to-landing {
    padding-inline: 14px;
  }

  .videos-library-hero .container {
    margin-inline: auto;
  }

  .videos-library-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .video-category-grid {
    grid-template-columns: 1fr;
  }

  .video-category-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .videos-library-return-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .videos-library-hero {
    padding-block: 52px;
  }

  .video-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
