/* ==========================================================
   Messages from Children — Testimonial Slider
   ========================================================== */

/* ── Section ─────────────────────────────────────────────── */
.messages_from_children {
  background: linear-gradient(135deg,
      rgba(174, 144, 195, 0.2) 0%,
      rgba(246, 176, 189, 0.2) 100%);
  padding: 80px 0;
}

/* ── Outer wrapper ───────────────────────────────────────── */
.testimonial-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Card ────────────────────────────────────────────────── */
.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 48px 56px 36px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

/* ── Badge ───────────────────────────────────────────────── */
.testimonial-badge {
  position: absolute;
  top: -1px;
  left: 40px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
  transition: background-color 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ── Badge color tokens ──────────────────────────────────── */
/* Add a new block here whenever you add a new label in Drupal */

.testimonial-badge--pink {
  background-color: #e8316e;
}

.testimonial-badge--teal {
  background-color: #2a7f7f;
}

.testimonial-badge--purple {
  background-color: #5a3870;
}

.testimonial-badge--orange {
  background-color: #F15946;
}

.testimonial-badge--blue {
  background-color: #2563eb;
}

.testimonial-badge--yellow {
  background-color: #9a6500;
}

/* ── Swiper ──────────────────────────────────────────────── */
.testimonial-slider {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.testimonial-slider .swiper-wrapper {
  align-items: stretch;
}

.testimonial-slider .swiper-slide {
  display: flex;
  height: auto;
}

/* ── Slide inner ─────────────────────────────────────────── */
.testimonial-slide-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Quote icon ─────────────────────────────────────────── */
.testimonial-quote-icon {
  margin-bottom: 20px;
  align-self: flex-start;
}

.testimonial-quote-icon img {
  width: 60px;
}

/* ── Quote text ─────────────────────────────────────────── */
.testimonial-quote {
  font-size: 18px;
  line-height: 1.8;
  color: #2d2d2d;
  font-weight: 700;
  margin-bottom: 20px;
  min-height: 120px;
  text-align: left;
}

/* ── Author ─────────────────────────────────────────────── */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0c040;
  flex-shrink: 0;
}

.testimonial-avatar--placeholder {
  background: linear-gradient(135deg, #ae90c3, #f6b0bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-author-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.testimonial-author-info>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-author-dash {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.testimonial-author-meta,
.testimonial-author-location {
  font-weight: 400;
  font-size: 14px;
  line-height: 126%;
}

/* ── Controls ────────────────────────────────────────────── */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

/* ── Buttons — color follows active label via data-color ─── */
.testimonial-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e8316e;
  /* default — overridden below */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.testimonial-btn i {
  font-size: 0.75rem;
  color: #e8316e;
  transition: color 0.25s ease;
}

/* Per-color button states */
.testimonial-btn[data-color="pink"] {
  border-color: #e8316e;
}

.testimonial-btn[data-color="pink"] i {
  color: #e8316e;
}

.testimonial-btn[data-color="pink"]:hover {
  background: #e8316e;
}

.testimonial-btn[data-color="teal"] {
  border-color: #2a7f7f;
}

.testimonial-btn[data-color="teal"] i {
  color: #2a7f7f;
}

.testimonial-btn[data-color="teal"]:hover {
  background: #2a7f7f;
}

.testimonial-btn[data-color="purple"] {
  border-color: #5a3870;
}

.testimonial-btn[data-color="purple"] i {
  color: #5a3870;
}

.testimonial-btn[data-color="purple"]:hover {
  background: #5a3870;
}

.testimonial-btn[data-color="orange"] {
  border-color: #F15946;
}

.testimonial-btn[data-color="orange"] i {
  color: #F15946;
}

.testimonial-btn[data-color="orange"]:hover {
  background: #F15946;
}

.testimonial-btn[data-color="blue"] {
  border-color: #2563eb;
}

.testimonial-btn[data-color="blue"] i {
  color: #2563eb;
}

.testimonial-btn[data-color="blue"]:hover {
  background: #2563eb;
}

.testimonial-btn[data-color="yellow"] {
  border-color: #9a6500;
}

.testimonial-btn[data-color="yellow"] i {
  color: #9a6500;
}

.testimonial-btn[data-color="yellow"]:hover {
  background: #9a6500;
}

.testimonial-btn:hover i {
  color: #fff;
}

/* ── Pagination ─────────────────────────────────────────── */
.testimonial-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.testimonial-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s ease;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: #e8316e;
  width: 22px;
}

/* Active bullet color follows label color */
.testimonial-card[data-active-type="pink"] .swiper-pagination-bullet-active {
  background: #e8316e;
}

.testimonial-card[data-active-type="teal"] .swiper-pagination-bullet-active {
  background: #2a7f7f;
}

.testimonial-card[data-active-type="purple"] .swiper-pagination-bullet-active {
  background: #5a3870;
}

.testimonial-card[data-active-type="orange"] .swiper-pagination-bullet-active {
  background: #F15946;
}

.testimonial-card[data-active-type="blue"] .swiper-pagination-bullet-active {
  background: #2563eb;
}

.testimonial-card[data-active-type="yellow"] .swiper-pagination-bullet-active {
  background: #9a6500;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .testimonial-card {
    padding: 30px 22px 24px;
  }

  .testimonial-wrapper {
    padding: 0 12px;
  }
}
