/* ==========================================================================
   Custom Testimonials Plugin - Front-end Styles
   Author: bhaaratbyte.com
   ========================================================================== */

:root {
  --ct-gold: #b28743;
  --ct-gold-light: rgba(178, 135, 67, 0.1);
  --ct-gold-border: rgba(178, 135, 67, 0.2);
  --ct-red: #D32F2F;
  --ct-red-bg: #FAF4E6;
  --ct-star: #FFD700;
  --ct-bg-light: #faf8f5;
  --ct-text-main: #1f2937;
  --ct-text-muted: #6b7280;
  --ct-radius: 1rem;
}

/* --------------------------------------------------------------------------
   Carousel Layout Styles
   -------------------------------------------------------------------------- */
.ct-testimonials-section {
  width: 100%;
  background-color: var(--ct-bg-light);
  padding: 4rem 1rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ct-container {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Header */
.ct-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ct-badge-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ct-line {
  height: 1px;
  background-color: var(--ct-gold-border);
  width: 3rem;
}

@media (min-width: 640px) {
  .ct-line {
    width: 5rem;
  }
}

.ct-badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ct-gold);
}

.ct-subline {
  width: 2rem;
  height: 1px;
  background-color: rgba(178, 135, 67, 0.2);
  margin: 0.75rem auto 0;
}

/* Carousel Wrapper & Buttons */
.ct-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.ct-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--ct-gold-border);
  color: var(--ct-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 25;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ct-nav-btn:hover {
  background-color: var(--ct-gold);
  color: #ffffff;
  border-color: var(--ct-gold);
  box-shadow: 0 4px 12px rgba(178, 135, 67, 0.3);
}

.ct-prev-btn {
  left: 0.5rem;
}

.ct-next-btn {
  right: 0.5rem;
}

@media (min-width: 1024px) {
  .ct-prev-btn {
    left: -3rem;
  }
  .ct-next-btn {
    right: -3rem;
  }
}

/* Stage & Cards */
.ct-card-stage {
  width: 100%;
  max-width: 42rem;
  background: #ffffff;
  border: 1px solid var(--ct-gold-light);
  border-radius: var(--ct-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ct-card-stage {
    padding: 2.5rem;
  }
}

.ct-quote-bg {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(178, 135, 67, 0.08);
  pointer-events: none;
}

.ct-slides-container {
  position: relative;
  min-height: 180px;
}

.ct-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateX(10px);
}

.ct-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.ct-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ct-slide-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* Avatar Column */
.ct-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ct-avatar-frame {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffebce;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ct-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ct-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.ct-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Info Column */
.ct-info-col {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .ct-info-col {
    text-align: left;
  }
}

.ct-info-header {
  margin-bottom: 0.75rem;
}

.ct-client-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 2px 0;
}

.ct-client-location {
  font-size: 0.75rem;
  color: #a8a29e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.ct-category-pill {
  display: inline-block;
  background-color: var(--ct-red-bg);
  color: var(--ct-red);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-top: 6px;
}

.ct-testimonial-text {
  color: #44403c;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* Dots Pagination */
.ct-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.ct-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: rgba(178, 135, 67, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.ct-dot.active {
  background-color: var(--ct-gold);
  width: 1.25rem;
}


/* --------------------------------------------------------------------------
   Grid Layout Styles
   -------------------------------------------------------------------------- */
.ct-testimonials-grid-section {
  width: 100%;
  background-color: #FAF9F6;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

.ct-grid-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.ct-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(211, 47, 47, 0.06);
  border-radius: 9999px;
  color: var(--ct-red);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.ct-grid-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.ct-highlight {
  color: var(--ct-red);
}

.ct-stars-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.ct-grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .ct-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.ct-grid-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.75rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
  border: 1px solid #f3f4f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ct-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.ct-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ct-type-tag {
  background-color: #FAF4E6;
  color: var(--ct-red);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.ct-card-quote {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 1.5rem 0;
}

.ct-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.25rem;
}

.ct-author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #D32F2F 0%, #800000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  overflow: hidden;
  flex-shrink: 0;
}

.ct-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-author-details {
  min-width: 0;
}

.ct-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.ct-author-location {
  font-size: 0.7rem;
  color: var(--ct-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  margin: 3px 0 0 0;
}

.ct-grid-footer {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}
