/* =========================================
   VIDEOS PAGE
========================================= */

.videos-page {
   padding-top: 2.5rem;
   padding-bottom: 3rem;
}

.videos-page__header {
   max-width: 900px;
   margin: 0 auto 1.5rem;
}

.videos-page__intro {
   max-width: 900px;
   margin: 0 auto 2rem;
   text-align: center;
}

.videos-page__intro p {
   color: #666;
   line-height: 1.6;
   margin: 0;
}

.videos-page__quicklinks {
   margin-bottom: 2rem;
}

.videos-quicklinks__title {
   margin: 0 0 1rem;
   font-size: 1.2rem;
   color: #252528;
}

.videos-quicklinks__link {
   display: block;
   padding: 0.55rem 0.75rem;
   border-radius: 8px;
   background: rgba(17, 137, 217, 0.05);
   color: #1189d9;
   text-decoration: none;
   line-height: 1.4;
   transition: background-color 0.2s ease, color 0.2s ease;
}

.videos-quicklinks__link:hover,
.videos-quicklinks__link:focus {
   background: rgba(17, 137, 217, 0.12);
   color: #0f78bc;
   text-decoration: none;
}

.videos-category {
   margin-bottom: 2.5rem;
}

.videos-category__header {
   margin-bottom: 1rem;
}

.videos-category__title {
   margin: 0;
   font-size: 1.8rem;
   color: #252528;
   font-style: italic;
   font-weight: 400;
}

.videos-category__backtop {
   margin-top: 1rem;
   text-align: right;
}

.videos-category__backtop a {
   color: #1189d9;
   text-decoration: none;
   font-size: 0.95rem;
}

.videos-category__backtop a:hover,
.videos-category__backtop a:focus {
   text-decoration: underline;
   color: #0f78bc;
}

/* =========================================
   VIDEO CARD
========================================= */

.video-card {
   height: 100%;
   background: #fff;
   border: 1px solid #e6e6e6;
   border-radius: 12px;
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
   overflow: hidden;
}

.video-card__link {
   display: flex;
   flex-direction: column;
   height: 100%;
   color: inherit;
   text-decoration: none;
}

.video-card__link:hover,
.video-card__link:focus {
   color: inherit;
   text-decoration: none;
}

.video-card__thumb-wrap {
   position: relative;
   aspect-ratio: 16 / 9;
   background: #111;
   overflow: hidden;
}

.video-card__thumb {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center center;
   transition: transform 0.25s ease;
}

.video-card__play {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 62px;
   height: 62px;
   border-radius: 999px;
   background: rgba(0, 0, 0, 0.65);
   color: #fff;
   font-size: 1.5rem;
   line-height: 1;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.video-card__link:hover .video-card__thumb,
.video-card__link:focus .video-card__thumb {
   transform: scale(1.03);
}

.video-card__body {
   padding: 1rem 1rem 1.1rem;
}

.video-card__title {
   margin: 0;
   color: #252528;
   font-size: 1.1rem;
   line-height: 1.4;
   font-weight: 600;
}

@media (max-width: 767px) {
   .videos-page {
      padding-top: 2rem;
      padding-bottom: 2.5rem;
   }

   .videos-page__intro {
      margin-bottom: 1.5rem;
   }

   .videos-category {
      margin-bottom: 2rem;
   }

   .videos-category__title {
      font-size: 1.5rem;
   }

   .videos-category__backtop {
      text-align: left;
   }

   .video-card__play {
      width: 56px;
      height: 56px;
      font-size: 1.35rem;
   }

   .video-card__body {
      padding: 0.9rem 0.9rem 1rem;
   }
}