/* Reviews page — text testimonial cards + video testimonial lightbox.
   The .kb-* video/modal styles mirror the ones already duplicated across
   every case-study page's own stylesheet (see kaacib.css) — kept here as one
   shared copy instead of adding yet another duplicate. */

.testimonial-card {
  height: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-quote-icon {
  color: #ea332d;
  font-size: 1.3rem;
  opacity: 0.4;
  margin-bottom: 12px;
  display: block;
}

.testimonial-text {
  font-size: 0.98rem;
  color: #333333;
  line-height: 1.55;
  margin-bottom: 18px;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: #111111;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: #888888;
}

.review-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2b2e30;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.review-link-pill i {
  color: #ea332d;
}

.review-link-pill:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-2px);
}

.video-group-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  margin: 40px 0 18px;
}

/* Video thumbnail cards */
.kb-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.kb-video-card:hover {
  box-shadow: 0 0 32px rgba(234, 51, 45, 0.35);
}

.kb-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kb-video-card:hover img {
  opacity: 0.4;
  transform: scale(1.04);
}

.kb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #ea332d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.2rem;
}

.kb-video-card:hover .kb-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ea332d;
  color: #ffffff;
  box-shadow: 0 0 0 8px rgba(234, 51, 45, 0.25), 0 0 32px rgba(234, 51, 45, 0.55);
}

.kb-video-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  color: #111111;
}

.kb-video-title .role {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: #666666;
  margin-top: 2px;
}

.kb-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
}

.kb-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kb-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kb-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.kb-modal-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2001;
}

.kb-video-modal-box {
  width: 100%;
  max-width: 900px;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.kb-modal-overlay.active .kb-video-modal-box {
  transform: scale(1);
}

@media (max-width: 575px) {
  .kb-modal-close {
    top: 12px;
    right: 16px;
  }
}
