/* Dream Catchers HQ con5-style reviews — track transform carousel */

.dc-reviews-section {
  --dc-mc: var(--primary-color, #805231);
  --dc-mc-rgb: var(--primary-color-rgb, 128, 82, 49);
  --dc-c5-card: 300px;
  --dc-c5-gap: 32px;
  position: relative;
  z-index: 5;
  padding: 88px 0 72px;
  background: #fff;
  overflow: hidden;
}

.dc-reviews-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 12px;
}

.dc-reviews-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.35;
  word-break: keep-all;
  color: #1a1a1a;
}

.dc-reviews-head p {
  margin: 0;
  color: #666;
  line-height: 1.7;
  word-break: keep-all;
  font-size: 16px;
}

.dc-c5-area {
  --dc-phone-w: 328px;
  --dc-phone-h: 500px;
  position: relative;
  width: 100%;
  height: 640px;
  margin-top: 56px;
  margin-bottom: 8px;
}

.dc-bubble {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--dc-mc);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  word-break: keep-all;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(var(--dc-mc-rgb), 0.25);
  animation: dc-bubble-float 3.2s ease-in-out infinite;
  pointer-events: none;
}

.dc-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

.dc-bubble-1 {
  top: 12px;
  left: 8%;
}

.dc-bubble-2 {
  top: 4px;
  left: 42%;
  animation-delay: -0.8s;
}

.dc-bubble-2::after {
  left: auto;
  right: 36px;
}

.dc-bubble-3 {
  top: 40px;
  right: 5%;
  animation-delay: -1.4s;
}

.dc-bubble-3::after {
  left: auto;
  right: 28px;
}

@keyframes dc-bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.dc-c5-phone {
  --dc-phone-radius: 40px;
  --dc-phone-bezel: 12px;
  position: absolute;
  top: 52%;
  left: 50%;
  width: var(--dc-phone-w);
  height: var(--dc-phone-h);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  box-sizing: border-box;
  border: var(--dc-phone-bezel) solid #1c1c1c;
  border-radius: var(--dc-phone-radius);
  background: transparent;
  box-shadow:
    0 0 0 1px #333,
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dc-c5-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d0d0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dc-c5-phone::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 108px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.dc-c5-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: var(--dc-mc);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--dc-mc-rgb), 0.28);
}

.dc-c5-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.dc-c5-prev {
  left: calc(50% - (var(--dc-phone-w) / 2) - 64px);
}

.dc-c5-prev::before {
  transform: translate(-35%, -50%) rotate(135deg);
}

.dc-c5-next {
  left: calc(50% + (var(--dc-phone-w) / 2) + 16px);
}

.dc-c5-next::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}

.dc-c5-track-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 1;
}

.dc-c5-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  gap: var(--dc-c5-gap);
  will-change: transform;
  transition: none;
  backface-visibility: hidden;
  background: none !important;
  background-image: none !important;
}

.dc-c5-card {
  position: relative;
  flex: 0 0 var(--dc-c5-card);
  width: var(--dc-c5-card);
  opacity: 0.72;
  transform: scale(0.94);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center center;
}

.dc-c5-card.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.dc-review-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--dc-mc-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dc-c5-card.is-active .dc-review-card {
  border-color: transparent;
  box-shadow: none;
  border-radius: 24px;
  padding: 14px 6px 12px;
}

.dc-review-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 8px;
}

.dc-review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.dc-review-meta {
  min-width: 0;
  flex: 1;
}

.dc-review-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

.dc-review-stats {
  display: block;
  font-size: 10px;
  color: #8a8a8a;
}

.dc-review-follow {
  color: #2f6fed;
  font-size: 12px;
  font-weight: 700;
}

.dc-review-photo {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
}

.dc-c5-card.is-active .dc-review-photo {
  border-radius: 12px;
}

.dc-review-body {
  padding: 8px 6px 4px;
}

.dc-review-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 6px 4px;
  border-top: 1px solid #ececec;
  font-size: 10px;
  color: #9a9a9a;
}

.dc-review-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  word-break: keep-all;
}

.dc-review-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #444;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991px) {
  .dc-reviews-section {
    padding: 72px 0 96px;
  }

  .dc-bubble {
    display: none;
  }

  .dc-c5-area {
    --dc-phone-w: min(300px, 82vw);
    --dc-phone-h: 470px;
    height: 520px;
    margin-top: 20px;
  }

  .dc-c5-phone {
    --dc-phone-radius: 34px;
    --dc-phone-bezel: 10px;
    top: 50%;
  }

  .dc-c5-card.is-active .dc-review-card {
    padding: 12px 4px 10px;
  }

  .dc-c5-prev {
    left: 12px;
  }

  .dc-c5-next {
    left: auto;
    right: 12px;
  }
}
