/*
 * Customer video testimonials (UGC).
 * Shared by the carousel include (inc/inc_videotestimonials.php) and the
 * full listing page (frontend_ucgvideo.php).
 * Self-contained "vtst-" prefixed classes + the legacy .video-card markup,
 * so it renders the same on every template that pulls the include.
 * Responsive from 320px to 4K.
 */

/* ── Section heading: title with the "more reviews" button on its right ──── */

.vtst-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 10px 30px 10px;
}

.vtst-head-title {
  margin: 0;
}

/* Outline black button — sits to the right of the title, wraps under it on
   narrow screens */
.vtst-more {
  display: inline-block;
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 2px solid #000;
  border-radius: 4px;
  background: transparent;
  color: #000;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.vtst-more:hover,
.vtst-more:focus {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.vtst-more i {
  margin-left: 6px;
}

/* ── Video card (thumbnail + play overlay) ──────────────────────────────── */

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.video-card:hover {
  transform: scale(1.03);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
}

.play-btn i {
  margin-left: 3px;
}

/* Swiper navigation arrows in white, with a shadow so they stay visible on
   light backgrounds */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* ── Full listing page (frontend_ucgvideo.php) ──────────────────────────── */

.vtst-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: "Open Sans", "Source Sans Pro", Arial, sans-serif;
}

.vtst-page-intro {
  text-align: center;
  padding: 40px 0 30px;
}

.vtst-page-title {
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: #000;
  text-transform: uppercase;
  margin: 0 auto 14px;
  max-width: 900px;
}

.vtst-page-lead {
  font-size: clamp(14px, 1.6vw, 17px);
  color: #6b7280;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
}

/* Auto-fitting grid: 1 column at 320px, up to 6+ on 4K */
.vtst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.vtst-grid-item {
  display: block;
  text-decoration: none;
}

.vtst-grid-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.vtst-empty {
  text-align: center;
  color: #6b7280;
  padding: 40px 0;
}

@media (max-width: 575px) {
  .vtst-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}
