/* Styles moved from inline <style> */
.scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  animation: scroll-left 60s linear infinite;
  width: max-content;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroll-item {
  flex: 0 0 auto;
  min-width: 120px;
}

.testimonials-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 15px;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
}



.reviews__scroll {
  display: flex;            /* cards in a row */
  gap: 1.5rem;              /* spacing between cards */
  overflow-x: auto;         /* enables horizontal scroll */
  scroll-behavior: smooth;  /* smooth scroll when JS scrolls */
  padding-bottom: 1rem;     /* optional for spacing */
}


.reviews__scroll::-webkit-scrollbar {
  display: none;
}
.reviews__scroll {
  -ms-overflow-style: none;  /* IE 10+ */
  scrollbar-width: none;     /* Firefox */
}


/* Modern Card Design */
/* Ensure the card is a positioned parent */
.reviews__card {
  background-color: #ffffff;            /* clean white card */
  border-radius: 1rem;                  /* rounded corners */
  padding: 2rem 1.5rem;                 /* inner spacing */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);  /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;                         /* remove default borders */
  position: relative;   /* Needed for absolute positioning inside */

}

/* Play icon styling */
.placement-play-icon {
  position: absolute;
  top: 1rem;            /* space from top */
  right: 1rem;          /* space from right */
  width: 32px;
  height: 32px;
  background-color: #1d4ed8; /* Bootstrap primary-like color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional hover effect */
.placement-play-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 4px rgba(0,0,0,0.2);
}




.reviews__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Image / Avatar */
.reviews__img,
.reviews__avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #555555;
  margin-bottom: 1rem;
}

/* Name & Designation */
.reviews__card h5 {
  margin: 0.5rem 0 0.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #222222;
}

.reviews__card small {
  color: #777777;
  font-size: 0.9rem;
}

/* Testimonial Text */
.testimonial-text {
  font-style: italic;
  color: #555555;
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.5;
}


/* Scroll buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1b1ebd;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10;
  font-size: 24px;
  user-select: none;
}

.scroll-btn:hover { opacity: 1; }
.scroll-left { left: 0; }
.scroll-right { right: 0; }

/* Dynamic packet and effects */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.dynamic-packet {
  animation: dataFlow 6s linear forwards !important;
}

.cert-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.optical-grid {
  transition: opacity 0.3s ease, background-size 0.3s ease;
}

.scroll-indicator {
  transition: opacity 0.2s ease;
}

.network-node:hover {
  animation: nodeSignal 0.5s ease-in-out infinite !important;
}

/* Industry-specific responsive enhancements */
@media (max-width: 768px) {
  .dynamic-packet { width: 4px; height: 4px; }
  .light-ray { height: 1px; }
  .network-node { width: 8px; height: 8px; }
}

/* Replacement for inline button background */
.btn-primary-nifot {
  background-color: #1b1ebd !important;
}

.logo-img {
  max-height: 60px;
}

/* Testimonial popup */
.hidden {
  display: none !important;
}

.reviews__avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.review-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.expand-icon {
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
  margin-left: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

.expand-icon:hover {
  transform: rotate(90deg);
}



/* Testimonial popup modal */
.testimonial-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: auto;
  padding: 1rem;
  transition: opacity 0.3s ease-in-out;
}

.testimonial-popup.hidden {
  display: none !important;
}

.popup-inner.review-card {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.review-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.review-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.review-message {
  margin-top: 1rem;
  max-height: 300px; /* Scrollable area for long messages */
  overflow-y: auto;
}

