/* 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;
}

.clutch-rating-stars {
  font-size: 1.3rem;
  color: #ff9900;
  letter-spacing: 2px;
}

.clutch-review-stars {
  font-size: 0.85rem;
  color: #ff9900;
  letter-spacing: 2px;
}

.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 collage â€” justified photo-wall rows: each row is a fixed height, tiles
   within it vary in width (flex-grow set per item in reviews.php), alternating
   which slot is narrow/wide row to row for a brick-like gallery-wall rhythm. */
.kb-video-collage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kb-video-row {
  display: flex;
  gap: 20px;
  height: 260px;
}

.kb-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
  transition: box-shadow 0.3s ease;
  height: 100%;
  min-width: 0;
  flex-basis: 0;
}

@media (max-width: 767px) {
  .kb-video-row { height: 190px; }
}

@media (max-width: 480px) {
  .kb-video-row { flex-direction: column; height: auto; gap: 12px; }
  .kb-video-card { height: 200px; flex-grow: 1 !important; }
}

.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.75;
  display: block;
  transform: scale(1.08);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kb-video-card:hover img {
  opacity: 0.48;
  transform: scale(1.14);
}

.kb-play-icon {
    position: absolute;
    top: 80%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 999;
    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-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.kb-video-caption strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.kb-video-caption .role {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  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;
  }
}
