/* =====================
   TESTIMONIALS SECTION
   ===================== */
.nb-testimonials {
  padding:0 0 80px 0;
  background: #fff;
}
.nb-testimonials .nb-section-title { margin-bottom: 48px;text-align: center ; }
.nb-testimonials .nb-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;margin:0
}
.nb-testimonials .nb-section-title p {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    line-height: 1.6;margin:0
}

/* ===== TOP VIDEO CARDS ===== */
.nb-testimonials__top {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.nb-testimonials__video-card {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.nb-testimonials__top:hover .nb-testimonials__video-card { flex: 0.55; }
.nb-testimonials__top .nb-testimonials__video-card:hover  {
  flex: 1.2 !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Force playing video card to stay expanded and others collapsed */
.nb-testimonials__top.has-playing-video .nb-testimonials__video-card {
  flex: 0.55;
}
.nb-testimonials__top.has-playing-video .nb-testimonials__video-card.is-playing-video {
  flex: 1.2 !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Thumb */
.nb-testimonials__thumb {
  position: relative;
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.nb-testimonials__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.nb-testimonials__video-card:hover .nb-testimonials__thumb img { transform: scale(1.04); }
.nb-testimonials__thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}

/* Play button */
.nb-testimonials__play {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
  background: linear-gradient(0deg, #0F172A 25%, #475569 105.21%);
  box-shadow: 0px 2px 3px 0px #2F056133;
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.nb-testimonials__play svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }
.nb-testimonials__video-card:hover .nb-testimonials__play { opacity: 1; transform: translateY(0); }

/* Quote overlay */
.nb-testimonials__quote-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  z-index: 5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.nb-testimonials__video-card:hover .nb-testimonials__quote-overlay { opacity: 1; transform: translateY(0); }
.nb-testimonials__quote-overlay p { font-size: 16px; color: #fff; line-height: 1.55;font-weight: 600; }
.rating_bottom{display: flex;justify-content: space-between;border-top:1px solid #E1E4EB;padding-top:14px}
.nb_reviewleft{display: flex;gap:5px}
/* Person info — below image */
.nb-testimonials__person {
  padding: 14px 0 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.nb-testimonials__person-info strong { display: block; font-size: 18px; font-weight: 600; color: #0F172A; margin-bottom: 2px; }
.nb-testimonials__person-info span   { font-size: 14px; font-weight: 500; color: #475569; }
.nb-testimonials__quote-mark         { font-size: 36px; color: #e2e8f0; font-family: Georgia, serif; line-height: 1; flex-shrink: 0; align-self: flex-end; }

/* ===== VIDEO MODAL ===== */
.nb-video-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.nb-video-modal.open { display: flex; }
.nb-video-modal__inner {
  position: relative;
  width: 100%; max-width: 860px;
  border-radius: 16px; overflow: hidden; background: #000;
}
.nb-video-modal__inner video { width: 100%; aspect-ratio: 16/9; display: block; }
.nb-video-modal__close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer; line-height: 1; opacity: 0.8;
}
.nb-video-modal__close:hover { opacity: 1; }

/* ===== BOTTOM TEXT REVIEW CARDS — HORIZONTAL SCROLL ===== */
.nb-testimonials__bottom {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-top: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nb-testimonials__bottom::-webkit-scrollbar { display: none; }

/* 3 cards visible at once */
.nb-review-card {
  flex: 0 0 calc(33.333% - 8px);
  min-width: calc(33.333% - 8px);
  scroll-snap-align: start;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  background: #fff;
}
.nb-review-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.nb-review-card__stars {
   width: 80px;
   height: 15px;
   background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.77421 0.503916C7.15805 -0.168187 8.12711 -0.168185 8.51094 0.503918L10.2968 3.63093C10.4389 3.87988 10.6811 4.05583 10.9618 4.11412L14.4876 4.84625C15.2455 5.00361 15.5449 5.92524 15.0243 6.49798L12.6022 9.1627C12.4094 9.37485 12.3169 9.65955 12.3482 9.94452L12.7414 13.524C12.826 14.2934 12.042 14.863 11.3364 14.5448L8.05361 13.0647C7.79226 12.9469 7.4929 12.9469 7.23155 13.0647L3.94877 14.5448C3.24319 14.863 2.4592 14.2934 2.54373 13.524L2.93697 9.94452C2.96828 9.65955 2.87577 9.37485 2.68294 9.1627L0.26083 6.49798C-0.259765 5.92524 0.0396893 5.00361 0.797509 4.84625L4.32332 4.11412C4.60402 4.05583 4.84621 3.87988 4.98838 3.63093L6.77421 0.503916Z" fill="%23FFB829"/></svg>') repeat-x;
   background-size: 16px 15px;
   margin-bottom: 12px;
}
.nb-review-card__text   { font-size: 15px; font-weight:500;color: #475569; line-height: 1.7; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nb-review-card__person { display: flex; align-items: center; gap: 10px; margin-top: auto;justify-content: space-between;width:100%}
.nb-review-card__person img    { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nb-review-card__person strong { display: block; font-size: 16px; font-weight: 600; color: #0F172A; }
.nb-review-card__person span   { font-size: 13px; color: #475569;  font-weight: 500;}

/* Scroll dots */
.nb-testimonials__scroll-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.nb-testimonials__scroll-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}
.nb-testimonials__scroll-dots span.active {
  background: #1a1a2e;
  width: 20px;
  border-radius: 99px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .nb-testimonials__thumb { height: 240px; }
  .nb-review-card { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); }
}
@media(max-width:769px) {
.nb-testimonials{padding:40px 0}}
@media(max-width:600px) {
  .nb-testimonials__top { flex-direction: column; }
  .nb-testimonials__top:hover .nb-testimonials__video-card,
  .nb-testimonials__top .nb-testimonials__video-card:hover,
  .nb-testimonials__top .nb-testimonials__video-card.is-playing-video { flex: 1 !important; }
  .nb-testimonials__thumb { height: 220px; }
  .nb-testimonials__play          { opacity: 1; transform: none; }
  .nb-testimonials__quote-overlay { opacity: 1; transform: none; }
  .nb-review-card { flex: 0 0 85%; min-width: 85%; }
  .nb-testimonials{padding:30px 0}
  .nb-testimonials .nb-section-title{margin-bottom: 25px;}
  .app-services-section.mobile-app-services .container{padding-left:0;padding-right:0;width:100%}
}
@media(max-width:480px) {
  .nb-testimonials { padding: 24px 16px; }
  .nb-testimonials .nb-section-title h2 { font-size: 18px; }
  .nb-testimonials .nb-section-title p { font-size: 14px; }
  .nb-testimonials__person-info strong { font-size: 16px; }
  .nb-testimonials__person-info span { font-size: 13px; }
  .nb-testimonials .nb-section-title h2 br{display:none}
  .nb-review-card__person{flex-wrap:wrap;}
}
