.video-hero,
.video-listing,
.video-modal {
  font-family: 'CustomFont', Arial, Helvetica, sans-serif;
}

.video-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 45, 69, 0.46);
}

.video-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.video-hero h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
}

.video-hero__breadcrumb {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.video-hero__breadcrumb a {
  transition: color 180ms ease;
}

.video-hero__breadcrumb a:hover,
.video-hero__breadcrumb a:focus-visible {
  color: #65b1ff;
}

.video-listing {
  padding: 0 0 80px;
  background: #ffffff;
}

.video-tabs {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.video-tabs::-webkit-scrollbar {
  display: none;
}

.video-tabs__link {
  width: auto;
  min-width: 0;
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  background: #ffffff;
  color: #0567cc;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.video-tabs__link:hover,
.video-tabs__link:focus-visible,
.video-tabs__link.is-active {
  border-color: #0567cc;
  background: #0567cc;
  color: #ffffff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 432px));
  justify-content: space-between;
  gap: 50px 36px;
  padding: 20px 22px 0;
}

.video-card {
  width: 100%;
  min-width: 0;
  min-height: 435px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  color: #232323;
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  box-shadow: 0 12px 30px rgba(0, 38, 77, 0.13);
  transform: translateY(-3px);
}

.video-card:focus-visible {
  outline: 2px solid #0567cc;
  outline-offset: 3px;
}

.video-card__media {
  position: relative;
  width: 100%;
  height: 294px;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  background: #dfe4e8;
}

.video-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: background-color 180ms ease;
}

.video-card__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.video-card:hover .video-card__cover,
.video-card:focus-visible .video-card__cover {
  transform: scale(1.045);
}

.video-card:hover .video-card__shade,
.video-card:focus-visible .video-card__shade {
  background: rgba(0, 0, 0, 0.18);
}

.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card__body {
  min-height: 141px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px 30px 21px;
}

.video-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #232323;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card__body time {
  display: block;
  margin-top: 8px;
  color: #777777;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 18px;
}

.video-listing .site-pagination {
  margin-top: 30px;
}

.video-empty {
  min-height: 360px;
  margin: 0;
  padding-top: 100px;
  color: #666666;
  text-align: center;
}

.video-modal {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__dialog {
  position: relative;
  width: min(1200px, 92vw);
  transform: translateY(12px);
  transition: transform 220ms ease;
}

.video-modal.is-open .video-modal__dialog {
  transform: translateY(0);
}

.video-modal video {
  width: 100%;
  max-height: calc(100vh - 100px);
  display: block;
  background: #000000;
}

.video-modal__close {
  position: absolute;
  z-index: 1;
  top: -46px;
  right: -2px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  color: #65b1ff;
}

@media (max-width: 1199px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
    padding-inline: 0;
  }

  .video-card {
    min-height: 0;
  }

  .video-card__media {
    height: auto;
    aspect-ratio: 432 / 294;
  }
}

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

@media (max-width: 767px) {
  .video-hero {
    height: 220px;
  }

  .video-hero h1 {
    font-size: 38px;
  }

  .video-hero__breadcrumb {
    min-height: 30px;
    font-size: 13px;
  }

  .video-listing {
    padding-bottom: 54px;
  }

  .video-tabs {
    width: calc(100% + 30px);
    min-height: 92px;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 -15px;
    padding: 0 15px;
  }

  .video-tabs__link {
    min-width: 0;
    min-height: 38px;
    padding: 9px 20px;
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 12px;
  }

  .video-card__body {
    min-height: 126px;
    padding: 20px 22px;
  }

  .video-card__body strong {
    font-size: 18px;
    line-height: 28px;
  }

  .video-card__play {
    width: 64px;
    height: 64px;
  }

  .video-modal {
    padding: 54px 15px 20px;
  }

  .video-modal__dialog {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-card__cover,
  .video-card__play,
  .video-modal,
  .video-modal__dialog {
    transition: none;
  }
}

@media (max-width: 767px) {
  .video-hero { height: 180px; }
  .video-hero__content { padding-top: 38px; }
  .video-hero h1 { font-size: 30px; line-height: 38px; }
  .video-listing { padding-bottom: 44px; }
  .video-tabs { min-height: 68px; gap: 10px; }
  .video-tabs__link { min-height: 36px; padding: 8px 16px; font-size: 13px; }
  .video-grid { gap: 18px; padding-top: 8px; }
  .video-card__body { min-height: 112px; padding: 18px; }
  .video-card__body strong { font-size: 17px; line-height: 25px; }
}
