/* ========================================
   Video Library — video-library.html
   ======================================== */
.vl-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 72px 0 64px;
  overflow: hidden;
  background: #0a1d37;
}

.vl-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.vl-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10, 29, 55, 0.82) 0%,
    rgba(10, 29, 55, 0.62) 50%,
    rgba(10, 29, 55, 0.38) 100%
  );
}

.vl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.vl-hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.vl-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.vl-hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
}

.vl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 35, 70, 0.12);
}

.vl-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #111827;
  overflow: hidden;
  cursor: pointer;
}

.vl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.vl-card:hover .vl-thumb img {
  transform: scale(1.05);
}

.vl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.vl-card:hover .vl-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.vl-play img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vl-duration {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  background: rgba(10, 29, 55, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  pointer-events: none;
}

.vl-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 1.05rem 1.1rem;
}

.vl-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.55rem;
}

.vl-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.vl-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.9rem;
  flex-grow: 1;
}

.vl-btn {
  align-self: flex-start;
  padding: 0.48rem 1.15rem;
  font-size: 0.86rem;
}

.page-video-library .blog-cta {
  padding: 0 0 72px;
}

#galleryVideoModal .gallery-modal-dialog {
  max-width: min(1100px, 94vw);
  width: 100%;
}

#galleryVideoModal .modal-content {
  border-radius: 16px;
  overflow: hidden;
}

#galleryVideoModal .gallery-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

@media (max-width: 991.98px) {
  .vl-hero {
    min-height: 300px;
    padding: 56px 0 48px;
  }
}

@media (max-width: 767.98px) {
  .vl-hero {
    min-height: 0;
    padding: 44px 0 36px;
  }

  .vl-hero-text {
    max-width: none;
    font-size: 0.98rem;
  }

  .vl-card:hover {
    transform: none;
  }

  .page-video-library .blog-cta {
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-card,
  .vl-thumb img,
  .vl-play {
    transition: none;
  }

  .vl-card:hover {
    transform: none;
  }

  .vl-card:hover .vl-thumb img,
  .vl-card:hover .vl-play {
    transform: none;
  }
}
