/* ============================================
   ExamConnect — Testimonials Section (Design 1)
   Brand: #327b74 Teal | #0F4C81 Navy | #F59E0B Amber
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.ec-test {
  background: #fafbfc;
  padding: 60px 0;
  font-family: 'Poppins', sans-serif;
}

.ec-test * {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

.ec-test .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === HEADING === */
.ec-test-head {
  text-align: center;
  margin-bottom: 36px;
}

.ec-test-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8e6;
  color: #c17a00;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #F59E0B;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ec-test-title {
  font-size: 32px;
  font-weight: 800;
  color: #0F4C81;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ec-test-title b {
  color: #327b74;
}

.ec-test-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.55;
}

/* === CAROUSEL ITEMS === */
.ec-test .owl-carousel {
  margin-top: 0 !important;
}

.ec-test .owl-carousel .item {
  padding: 8px 4px 4px;
}

/* === CARD === */
.ec-test-card {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 24px 20px !important;
  position: relative;
  transition: all 0.25s ease;
  height: 100%;
  text-align: left !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.ec-test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.1) !important;
  border-color: #327b74 !important;
}

/* Watermark quote icon */
.ec-test-card-quote {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  opacity: 0.12;
  color: #327b74;
}

.ec-test-card-quote svg {
  width: 100%;
  height: 100%;
}

/* Stars */
.ec-test-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.ec-test-stars span {
  color: #F59E0B;
  font-size: 16px;
  line-height: 1;
}

.ec-test-stars .star-empty {
  color: #e2e8f0;
}

/* Message */
.ec-test-msg {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 0 16px !important;
  font-style: italic;
  min-height: 78px;
  position: relative;
  z-index: 1;
}

.ec-test-msg::before {
  content: '"';
  color: #327b74;
  font-size: 18px;
  font-weight: 700;
  margin-right: 2px;
}

.ec-test-msg::after {
  content: '"';
  color: #327b74;
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
}

/* Footer */
.ec-test-footer {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  position: relative;
  z-index: 1;
}

/* Avatar */
.ec-test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #327b74, #0F4C81);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Different avatar colors based on position */
.ec-test .owl-item:nth-child(3n+2) .ec-test-avatar {
  background: linear-gradient(135deg, #F59E0B, #d97706);
}

.ec-test .owl-item:nth-child(3n+3) .ec-test-avatar {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.ec-test-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0F4C81 !important;
  margin: 0 !important;
  line-height: 1.3;
}

.ec-test-role {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

/* === OWL CAROUSEL CONTROLS === */
.ec-test .owl-carousel .owl-dots {
  text-align: center;
  margin-top: 20px !important;
}

.ec-test .owl-carousel .owl-dots .owl-dot span {
  width: 10px !important;
  height: 10px !important;
  background: #cbd5e1 !important;
  border-radius: 50% !important;
  margin: 0 4px !important;
  transition: all 0.3s ease;
}

.ec-test .owl-carousel .owl-dots .owl-dot.active span {
  background: #327b74 !important;
  width: 28px !important;
  border-radius: 14px !important;
}

.ec-test .owl-carousel .owl-nav button {
  width: 38px !important;
  height: 38px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  color: #0F4C81 !important;
  font-size: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.ec-test .owl-carousel .owl-nav button:hover {
  background: #327b74 !important;
  color: #fff !important;
  border-color: #327b74 !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991px) {
  .ec-test {
    padding: 40px 0;
  }
  
  .ec-test-title {
    font-size: 26px;
  }
  
  .ec-test-card {
    padding: 20px 16px !important;
  }
}

@media (max-width: 767px) {
  .ec-test {
    padding: 30px 0;
  }
  
  .ec-test-title {
    font-size: 22px;
  }
  
  .ec-test-subtitle {
    font-size: 13px;
  }
  
  .ec-test-msg {
    font-size: 12px !important;
    min-height: auto;
  }
  
  .ec-test-name {
    font-size: 13px !important;
  }
  
  .ec-test-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}