.videos__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .videos__header {
    flex-direction: row;
  }
}
.videos__search {
  width: 100%;
  max-width: 400px;
}
.videos__search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.videos__search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}
.videos__search-input:focus {
  border-color: #3e78bc;
}
.videos__search-input::placeholder {
  color: #94A3B8;
}
.videos__search-submit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #64748B;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.videos__search-submit:hover, .videos__search-submit:focus {
  color: #3e78bc;
}
.videos__search-submit svg {
  width: 20px;
  height: 20px;
}
.videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  min-height: 200px;
}
@media only screen and (min-width: 768px) {
  .videos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media only screen and (min-width: 992px) {
  .videos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.videos__grid--loading {
  opacity: 0.5;
  pointer-events: none;
}
.videos__no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  background: #F8FAFC;
  border-radius: 8px;
}
.videos__no-results p {
  font-size: 1.125rem;
  color: #64748B;
  margin: 0;
}
.videos__pagination {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
@media only screen and (min-width: 768px) {
  .videos__pagination {
    margin-top: 48px;
  }
}
@media only screen and (min-width: 1200px) {
  .videos__pagination {
    margin-top: 72px;
  }
}
.videos__pagination .page-numbers {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.videos__pagination li {
  display: inline-block;
  position: relative;
}
.videos__pagination li::before {
  content: "";
  position: absolute;
  left: 0;
  height: 60%;
  width: 1px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  background-color: #000;
}
.videos__pagination li:first-child::before {
  content: none;
}
.prev ~ .videos__pagination li::before, .next ~ .videos__pagination li::before {
  content: none;
}
.videos__pagination li:has(.prev)::before, .videos__pagination li:has(.next)::before, .videos__pagination li:has(.dots)::before {
  content: none;
}
.videos__pagination li:has(.prev) + li::before {
  content: none;
}
.videos__pagination li:last-child::before {
  content: none;
}
.videos__pagination a.page-numbers,
.videos__pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #000;
}
@media only screen and (min-width: 768px) {
  .videos__pagination a.page-numbers,
  .videos__pagination span {
    min-width: 48px;
    height: 36px;
    font-size: 22px;
  }
}
@media only screen and (min-width: 1200px) {
  .videos__pagination a.page-numbers,
  .videos__pagination span {
    min-width: 56px;
    height: 48px;
    font-size: 28px;
  }
}
.videos__pagination a.page-numbers.prev, .videos__pagination a.page-numbers.next,
.videos__pagination span.prev,
.videos__pagination span.next {
  font-weight: 400;
  color: #3e78bc;
  text-decoration: underline;
  display: none;
}
@media only screen and (min-width: 768px) {
  .videos__pagination a.page-numbers.prev, .videos__pagination a.page-numbers.next,
  .videos__pagination span.prev,
  .videos__pagination span.next {
    display: flex;
  }
}
.videos__pagination a.page-numbers:hover,
.videos__pagination span:hover {
  color: #3e78bc;
}
.videos__pagination .current {
  font-weight: 700;
  color: #3e78bc;
  pointer-events: none;
}
.videos__pagination .prev,
.videos__pagination .next {
  font-weight: 600;
}
.videos__pagination .dots {
  background: transparent;
  pointer-events: none;
}
.videos .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-thumbnail:hover, .video-thumbnail:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  outline: none;
}
.video-thumbnail:focus-visible {
  outline: 2px solid #3e78bc;
  outline-offset: 4px;
}
.video-thumbnail__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumbnail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumbnail__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}
.video-thumbnail:hover .video-thumbnail__overlay, .video-thumbnail:focus .video-thumbnail__overlay {
  background: rgba(0, 0, 0, 0.5);
}
.video-thumbnail__overlay svg path:first-child {
  fill: #f5821f;
}
.video-thumbnail__play-icon {
  width: 68px;
  height: 48px;
  transition: transform 0.3s ease;
}
.video-thumbnail:hover .video-thumbnail__play-icon, .video-thumbnail:focus .video-thumbnail__play-icon {
  transform: scale(1.1);
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal[hidden] {
  display: none;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}
.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 1;
  animation: modalSlideIn 0.3s ease;
  background: #ecf1f8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
@media only screen and (min-width: 768px) {
  .video-modal__content {
    width: 85%;
    padding: 32px;
  }
}
@media only screen and (min-width: 992px) {
  .video-modal__content {
    width: 80%;
    padding: 40px;
  }
}
.video-modal__close {
  position: absolute;
  top: -48px;
  right: -8px;
  background: transparent;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}
@media only screen and (min-width: 768px) {
  .video-modal__close {
    top: -56px;
  }
}
.video-modal__close:hover, .video-modal__close:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.video-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.video-modal__close svg {
  width: 24px;
  height: 24px;
}
.video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.video-modal__player lite-youtube {
  width: 100%;
  height: 100%;
  max-width: unset;
}
.video-modal__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media only screen and (min-width: 768px) {
  .video-modal__info {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.video-modal__details {
  flex: 1;
}
.video-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #3e78bc;
  margin: 0;
  line-height: 1.4;
}
@media only screen and (min-width: 768px) {
  .video-modal__title {
    font-size: 20px;
  }
}
@media only screen and (min-width: 992px) {
  .video-modal__title {
    font-size: 22px;
  }
}
.video-modal__date {
  font-size: 14px;
  color: #3e78bc;
  margin: 0;
}
@media only screen and (min-width: 768px) {
  .video-modal__date {
    font-size: 16px;
  }
}
.video-modal__youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 400;
  font-size: 14px;
}
.video-modal__youtube-link svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
body.video-modal-open {
  overflow: hidden;
}

/*# sourceMappingURL=videos.css.map */
