/**
 * Testimonials Block Styles
 * Featured Layout (Top) + Grid Layout (Bottom)
 */

/* Main Container Reset */
.testimonials-grid-block {
  margin-bottom: 4rem;
  background-color: transparent;
  padding: 0;
  width: 100%;
}

/* --- 1. Featured Section Styles --- */
.featured-testimonial-wrapper {
  background-color: #f9f5f0; /* Beige background from screenshot */
  padding: 4rem 1.5rem;
  margin-bottom: 4rem;

  /* Force full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Title Inside Featured Section */
.testimonials-title-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem auto; /* Spacing below title */
  padding: 0; /* Removed side padding to align with grid */
}

.testimonials-section-title {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .testimonials-section-title {
    font-size: 2.5rem; /* 40px */
    text-align: center;
  }
}

.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .featured-inner {
    grid-template-columns: 1fr 0.7fr;
    gap: 5rem;
  }
}

.featured-content {
  order: 2; /* Text below image on mobile */
}

@media (min-width: 1024px) {
  .featured-content {
    order: 1; /* Text left on desktop */
  }
}

.featured-quote {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #0f172a; /* Dark text */
  font-weight: 500;
  margin-bottom: 2.5rem;
  font-family: inherit;
}

@media (min-width: 768px) {
  .featured-quote {
    font-size: 1.875rem;
  }
}

.featured-author {
  display: flex;
  align-items: flex-start; /* Align with top of icon block */
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quote-icon {
  background-color: #ffecd1; /* Light orange background */
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.875rem;
  color: #64748b;
}

.featured-image {
  order: 1; /* Image first on mobile */
  position: relative;
}

@media (min-width: 1024px) {
  .featured-image {
    order: 2; /* Image right on desktop */
  }
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem; /* Large rounded corners */
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1; /* Square-ish crop like screenshot */
}

/* --- 2. Grid Section Styles --- */
.testimonials-bottom-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: none; /* Cleaner look like reference */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-stars {
  color: #ffb400;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

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

.testimonial-name {
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  display: block;
}

.testimonial-role {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
  display: block;
}
