/* Common Styles */
.alchemer-reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.alchemer-reviews-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.alchemer-star {
  color: #ffc107;
  font-size: 18px;
  letter-spacing: 2px;
}

.alchemer-star-empty {
  color: #e0e0e0;
}

/* Navigation Buttons */
.alchemer-nav-button {
  background-color: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
  color: #666;
}

.alchemer-nav-button:hover {
  background-color: #e0e0e0;
  color: #333;
}

/* List Layout Styles */
.alchemer-reviews-list .alchemer-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.alchemer-reviews-list .alchemer-review-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alchemer-reviews-list .alchemer-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.alchemer-reviews-list .alchemer-reviewer-info {
  display: flex;
  align-items: center;
}

.alchemer-reviews-list .alchemer-reviewer-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
}

.alchemer-reviews-list .alchemer-review-date {
  font-size: 14px;
  color: #666;
}

.alchemer-reviews-list .alchemer-review-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.alchemer-reviews-list .alchemer-review-content p {
  margin-bottom: 0!important;
}

.alchemer-reviews-list .alchemer-list-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Grid Layout */
.alchemer-reviews-grid {
    padding: 2rem 0;
}

.alchemer-reviews-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.alchemer-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.alchemer-grid-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alchemer-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.alchemer-reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alchemer-reviewer-meta {
    flex: 1;
    text-align: center;
}

.alchemer-reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.alchemer-review-date {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
}

.alchemer-review-rating {
    color: #f6ad55;
    font-size: 1.2rem;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.alchemer-review-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alchemer-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .alchemer-reviews-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .alchemer-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .alchemer-grid-item {
        padding: 1.25rem;
    }
}

/* Testimonial Layout Styles */
.alchemer-reviews-testimonial {
  --alchemer-primary: var(--e-global-color-primary, #163f75);
  --alchemer-accent: var(--alchemer-primary);
  --alchemer-pale-blue: #edf6fd;
  --alchemer-ink: #1f2b3a;
  --alchemer-muted: #607392;
  --alchemer-border: rgba(22, 63, 117, 0.12);
  --alchemer-primary-border: color-mix(in srgb, var(--alchemer-primary) 34%, transparent);
  --alchemer-primary-border-strong: color-mix(in srgb, var(--alchemer-primary) 72%, transparent);
  margin: 0 auto 38px;
  max-width: 1180px;
  padding: 28px 20px 24px;
  position: relative;
  text-align: left;
}

.alchemer-reviews-testimonial .alchemer-reviews-title {
  color: var(--alchemer-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 auto 34px;
  max-width: 920px;
  text-align: center;
}

.alchemer-testimonial-slider {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--alchemer-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(22, 63, 117, 0.12);
  margin: 0 auto;
  max-width: 1080px;
  overflow: hidden;
  position: relative;
}

.alchemer-testimonial-track {
  display: flex;
  position: relative;
  transition: transform 0.5s ease;
  width: 100%;
  z-index: 1;
}

.alchemer-testimonial-slide {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 220px;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.alchemer-testimonial-slider.alchemer-fade-mode .alchemer-testimonial-track {
  display: block;
  transform: none !important;
}

.alchemer-testimonial-slider.alchemer-fade-mode .alchemer-testimonial-slide {
  display: none;
  width: 100% !important;
}

.alchemer-testimonial-slider.alchemer-fade-mode .alchemer-testimonial-slide.active {
  animation: alchemer-testimonial-fade 0.28s ease both;
  display: block;
}

@keyframes alchemer-testimonial-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alchemer-testimonial-slide-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 0.66fr);
  min-height: 220px;
}

.alchemer-testimonial-profile {
  align-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 246, 253, 0.44));
  border-right: 1px solid var(--alchemer-primary-border);
  color: var(--alchemer-primary);
  display: grid;
  justify-items: center;
  padding: clamp(18px, 2.2vw, 24px) 26px;
  text-align: center;
}

.alchemer-preview-avatar {
  align-items: center;
  background: linear-gradient(145deg, #fff, var(--alchemer-pale-blue));
  border: 1px solid rgba(22, 63, 117, 0.13);
  border-radius: 50%;
  color: var(--alchemer-primary);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  justify-content: center;
}

.alchemer-reviews-testimonial .alchemer-reviewer-meta {
  text-align: center;
}

.alchemer-testimonial-kicker {
  color: var(--alchemer-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.alchemer-reviews-testimonial .alchemer-reviewer-name {
  color: var(--alchemer-primary);
  font-family: "Euphoria Script", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 8px;
  text-transform: capitalize;
}

.alchemer-reviews-testimonial .alchemer-review-date {
  color: var(--alchemer-muted);
  font-size: 16px;
}

.alchemer-reviews-testimonial .alchemer-review-rating {
  color: var(--alchemer-accent);
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
}

.alchemer-reviews-testimonial .alchemer-star {
  color: var(--alchemer-accent);
  font-size: 22px;
  letter-spacing: 2px;
}

.alchemer-testimonial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 28px);
  position: relative;
}

.alchemer-quote-mark {
  color: rgba(93, 120, 159, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 78px);
  line-height: 0.7;
  pointer-events: none;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content {
  color: var(--alchemer-ink);
  max-height: 285px;
  max-width: 780px;
  overflow: auto;
  padding-right: 12px;
  scroll-behavior: smooth;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content::-webkit-scrollbar {
  width: 7px;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content::-webkit-scrollbar-thumb {
  background: rgba(22, 63, 117, 0.22);
  border-radius: 999px;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content::-webkit-scrollbar-track {
  background: rgba(22, 63, 117, 0.05);
  border-radius: 999px;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content p {
  color: var(--alchemer-ink);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.alchemer-reviews-testimonial .alchemer-testimonial-content p + p {
  color: var(--alchemer-muted);
  margin-top: 18px;
}

.alchemer-testimonial-navigation {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 20px auto 0;
}

.alchemer-testimonial-prev,
.alchemer-testimonial-next {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  font-size: 34px;
  height: 54px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 54px;
}

.alchemer-testimonial-prev {
  background: var(--alchemer-primary);
  box-shadow: 0 14px 35px rgba(22, 63, 117, 0.1);
  color: #fff;
}

.alchemer-testimonial-next {
  background: var(--alchemer-primary);
  box-shadow: 0 18px 32px rgba(22, 63, 117, 0.24);
  color: #fff;
}

.alchemer-testimonial-prev:hover,
.alchemer-testimonial-prev:focus-visible,
.alchemer-testimonial-next:hover,
.alchemer-testimonial-next:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.alchemer-testimonial-dots {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 860px;
}

.alchemer-reviews-testimonial .alchemer-testimonial-dot {
  align-items: center;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid var(--alchemer-border) !important;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(22, 63, 117, 0.1);
  color: var(--alchemer-ink) !important;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 92px;
  padding: 16px 18px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.alchemer-reviews-testimonial .alchemer-testimonial-dot:hover,
.alchemer-reviews-testimonial .alchemer-testimonial-dot:focus-visible {
  background: #fff !important;
  border-color: var(--alchemer-primary-border-strong) !important;
  outline: none;
  transform: translateY(-3px);
}

.alchemer-reviews-testimonial .alchemer-testimonial-dot.active {
  background: #fff !important;
  border-color: var(--alchemer-accent) !important;
  box-shadow: 0 14px 35px rgba(22, 63, 117, 0.1);
}

.alchemer-reviews-testimonial .alchemer-testimonial-dot.is-preview-hidden {
  display: none;
}

.alchemer-preview-avatar {
  font-size: 22px;
  height: 48px;
  line-height: 1;
  width: 48px;
}

.alchemer-preview-info {
  display: block;
  min-width: 0;
}

.alchemer-preview-info strong {
  color: var(--alchemer-primary);
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alchemer-preview-info > span:not(.alchemer-preview-stars) {
  color: var(--alchemer-muted);
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.alchemer-preview-stars {
  display: flex;
  gap: 2px;
  white-space: nowrap;
}

.alchemer-preview-stars .alchemer-star {
  color: var(--alchemer-accent);
  font-size: 14px;
  letter-spacing: 1px;
}

@media (max-width: 980px) {
  .alchemer-testimonial-slide-inner {
    grid-template-columns: 1fr;
  }

  .alchemer-testimonial-profile {
    border-bottom: 1px solid var(--alchemer-primary-border);
    border-right: 0;
    padding: 26px 26px;
  }

  .alchemer-testimonial-copy {
    padding: 28px 28px;
  }

  .alchemer-testimonial-dots {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .alchemer-reviews-testimonial .alchemer-testimonial-content {
    max-height: 360px;
  }
}

@media (max-width: 576px) {
  .alchemer-reviews-testimonial {
    padding: 24px 14px 22px;
  }

  .alchemer-reviews-testimonial .alchemer-reviews-title {
    font-size: clamp(34px, 12vw, 48px);
    margin-bottom: 24px;
  }

  .alchemer-testimonial-slider {
    border-radius: 22px;
  }

  .alchemer-testimonial-copy {
    padding: 24px 22px;
  }

  .alchemer-reviews-testimonial .alchemer-testimonial-content p {
    font-size: 16px;
  }

  .alchemer-testimonial-navigation {
    gap: 14px;
    margin: 18px auto 0;
  }

  .alchemer-testimonial-prev,
  .alchemer-testimonial-next {
    height: 48px;
    width: 48px;
  }
}
