/* ============================================================
   Testimonials CPT Carousel — testimonials-cpt.css
   ============================================================ */

/* Slide wrapper — full-height flex column */
.h2c-testimonial-cpt-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---- Card (speech-bubble box) ---- */
.h2c-testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  border: 1px solid #eee;
}

/* Speech-bubble tail pointing toward the author */
.h2c-testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #fff;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.06));
}

/* ---- Stars ---- */
.h2c-testimonial-card .h2c-testimonial-star {
  margin-bottom: 2px;
}

/* ---- Review heading (post title) ---- */
.h2c-testimonial-card .h2c-testimonial-heading {
  font-size: 14px;
  font-weight: 700;
  color: #213246;
  margin: 0;
  line-height: 1.4;
}

/* ---- Review body text ---- */
.h2c-testimonial-card .h2c-testimonial-content {
  flex: 1;
}

.h2c-testimonial-card .h2c-testimonial-content .h2c-testimonial-text {
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h2c-testimonial-card .h2c-testimonial-content .h2c-testimonial-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.h2c-testimonial-read-more {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.h2c-testimonial-read-more:hover {
  color: #333;
}

/* ---- Source row (logo + "Posted on" + name) ---- */
.h2c-testimonial-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  justify-content: center;
}

.h2c-testimonial-source-logo-wrap {
  flex-shrink: 0;
}

.h2c-testimonial-source-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.h2c-testimonial-source-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.h2c-testimonial-posted-on {
  font-size: 10px;
  color: #aaa;
  display: block;
}

.h2c-testimonial-source-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

a.h2c-testimonial-source-name:hover {
  text-decoration: underline;
}

/* ---- Author section (below card) ---- */
.h2c-testimonial-cpt-item .h2c-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-left: 10px;
}

.h2c-testimonial-cpt-item .h2c-testimonial-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h2c-testimonial-cpt-item .h2c-testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder icon when no photo */
.h2c-testimonial-cpt-item .h2c-testimonial-image svg {
  width: 22px;
  height: 22px;
  opacity: 0.4;
}

.h2c-testimonial-cpt-item .h2c-testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h2c-testimonial-cpt-item .h2c-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #213246;
  display: block;
}

.h2c-testimonial-cpt-item .h2c-testimonial-position {
  font-size: 12px;
  color: #aaa;
  display: block;
}
