/* Testimonials — Craig Proctor style (featured hero + video grid) */

/* —— Dark hero: featured success stories —— */
.cp-stories-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 52px 20px 44px;
  background:
    linear-gradient(rgba(18, 42, 92, 0.88), rgba(18, 42, 92, 0.92)),
    url("/images/seminaire-hero.jpg") center / cover no-repeat;
}

.cp-stories-hero-lead {
  max-width: 920px;
  margin: 0 auto 10px;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.3;
  font-weight: 600;
}

.cp-stories-hero-sub {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cp-stories-hero h2 {
  margin: 0 0 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.cp-featured-carousel {
  max-width: 1180px;
  margin: 0 auto;
}

.cp-featured-viewport {
  overflow: hidden;
  min-height: 280px;
}

.cp-featured-page {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.cp-featured-page.active {
  display: grid;
}

.cp-featured-item {
  padding: 0 6px;
}

.cp-featured-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cp-featured-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  min-height: 4.2em;
}

.cp-featured-read {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.cp-featured-read:hover,
.cp-featured-read:focus {
  background: #fff;
  color: #2344a3;
}

.cp-featured-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.cp-featured-arrow {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 14px;
}

.cp-featured-arrow:hover,
.cp-featured-arrow:focus {
  color: #fff;
}

.cp-featured-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.cp-featured-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.cp-featured-dots button.active {
  background: #fff;
}

/* —— White section: video testimonials —— */
.cp-stories-videos {
  background: #fff;
  padding: 40px 20px 48px;
}

.cp-stories-videos .cp-video-grid-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.cp-video-section-title {
  margin: 0 0 28px;
  text-align: center;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  color: #1a1a1a;
}

.cp-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cp-video-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cp-video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #111;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.cp-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.cp-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.cp-video-play i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2344a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cp-video-caption {
  margin: 12px 4px 4px;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  color: #2344a3;
  text-align: left;
}

/* Video modal */
.cp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cp-video-modal[hidden] {
  display: none !important;
}

.cp-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cp-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 18px 18px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.cp-video-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
}

.cp-video-modal-close:hover,
.cp-video-modal-close:focus {
  color: #111;
}

.cp-video-modal-title {
  margin: 0 36px 14px 4px;
  font-family: Poppins, "Open Sans", system-ui, sans-serif;
  font-size: 1.2rem;
  color: #2344a3;
}

.cp-video-modal-body video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

@media (max-width: 992px) {
  .cp-featured-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cp-stories-hero {
    padding: 36px 14px 32px;
  }

  .cp-featured-page {
    grid-template-columns: 1fr;
  }

  .cp-featured-title {
    min-height: auto;
  }

  .cp-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-featured-read,
  .cp-video-play {
    transition: none;
  }
}
