/* CrewCard Testimonials Carousel — namespaced with cc-testi- prefix */

.cc-testi-section {
  background: linear-gradient(180deg, #0b1a3d 0%, #0e2150 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cc-testi-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.cc-testi-eyebrow {
  color: #f5821f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.cc-testi-heading {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 48px;
  font-family: inherit;
}

/* Carousel shell */
.cc-testi-carousel {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.cc-testi-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}

.cc-testi-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Each card takes full width of the viewport */
.cc-testi-card {
  flex: 0 0 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 40px 32px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.cc-testi-quote-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  color: #f5821f;
  opacity: 0.6;
  margin-bottom: 8px;
  display: block;
}

/* Scrollable text area so very long testimonials don't blow out card height */
.cc-testi-text-wrap {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 24px;
}

.cc-testi-text-wrap::-webkit-scrollbar {
  width: 6px;
}
.cc-testi-text-wrap::-webkit-scrollbar-thumb {
  background: rgba(245, 130, 31, 0.5);
  border-radius: 4px;
}

.cc-testi-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.cc-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.cc-testi-author-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5821f;
  color: #0b1a3d;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-testi-author-info {
  display: flex;
  flex-direction: column;
}

.cc-testi-author-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.cc-testi-author-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 2px;
}

/* Prev/Next buttons */
.cc-testi-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-testi-nav:hover,
.cc-testi-nav:focus {
  background: #f5821f;
  border-color: #f5821f;
}

.cc-testi-nav-arrow {
  font-size: 14px;
  line-height: 1;
}

/* Dots */
.cc-testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.cc-testi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cc-testi-dot-active,
.cc-testi-dot:hover {
  background: #f5821f;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 640px) {
  .cc-testi-section {
    padding: 56px 16px;
  }

  .cc-testi-heading {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .cc-testi-carousel {
    gap: 8px;
  }

  .cc-testi-card {
    padding: 28px 22px 22px;
  }

  .cc-testi-text-wrap {
    max-height: 260px;
  }

  .cc-testi-nav {
    width: 36px;
    height: 36px;
  }
}

/* Author footer now split: avatar+name on left, date on right */
.cc-testi-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  flex-wrap: wrap;
}

.cc-testi-author-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cc-testi-author-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5821f;
  color: #0b1a3d;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-testi-author-info {
  display: flex;
  flex-direction: column;
}

.cc-testi-author-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.cc-testi-author-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 2px;
}

.cc-testi-date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* On small screens, let the date drop below if space is tight */
@media (max-width: 480px) {
  .cc-testi-author {
    justify-content: flex-start;
  }

  .cc-testi-date {
    margin-left: 58px; /* aligns roughly under the name, past the avatar */
  }
}