/* Testimonials Section - Flexible Layout System */
.ica-testimonials{
  --container-padding: clamp(1rem, 4vw, 2rem);
  --container-max-width: 1200px;
  --section-gap: 2rem;
  
  background: var(--ica-bg);
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: 20px 0;
  height: auto;
  min-height: auto;
  max-height: none;
  contain: layout;
  display: flex;
  flex-direction: column;
}

/* ===== TWO-COLUMN QUOTES SECTION - INDEPENDENT CONTAINER ===== */
.ica-two-col-quotes {
  --container-padding: clamp(1rem, 4vw, 2rem);
  --container-max-width: 1200px;
  --section-gap: 2rem;
  
  background: #DCF4EF78;
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: 60px 0;
  height: auto;
  min-height: auto;
  max-height: none;
  contain: layout;
  display: flex;
  flex-direction: column;
}

.ica-two-col-quotes__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: auto;
  max-height: none;
}

/* Alt variant with different background */
.ica-two-col-quotes--alt {
  background: var(--ica-mint);
}

/* ===== SPOTLIGHT QUOTE SECTION - INDEPENDENT CONTAINER ===== */
.ica-spotlight-quote {
  --container-padding: clamp(1.5rem, 5vw, 3rem);
  --container-max-width: 1200px;
  --section-gap: 2rem;
  
  background: #DCF4EFC9;
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: 20px 0;
  height: auto;
  min-height: auto;
  max-height: none;
  contain: layout;
  display: flex;
  flex-direction: column;
}

.ica-spotlight-quote__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: auto;
  max-height: none;
}

/* Level 1: Parent Container */
.ica-testimonials__level-1 {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ica-testimonials .section__inner--wide {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Level 2: Typing Text Container */
.ica-testimonials__level-2 {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  padding: 40px 0;
}

.ica-testimonials__typing {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 auto;
  text-align: center;
  letter-spacing: .5px;
  max-width: min(92vw, 1200px);
  padding-inline: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform;
  height: 100%;
}

/* Level 2: Typing Text Container - Fixed Heights */
.ica-testimonials__typing-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Level 3: Review Box Container */
.ica-testimonials__level-3 {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 40px 0;
}

/* ===== REVEAL ANIMATIONS ===== */

/* Base reveal state - hidden by default */
.ica-testimonials .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Revealed state - visible when scrolled into view */
.ica-testimonials .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */

.two-col-quotes.reveal {
  transition-delay: 0.2s;
}

.spotlight.reveal {
  transition-delay: 0.4s;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ica-testimonials .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ica-testimonials .reveal.revealed {
    opacity: 1 !important;
    transform: none !important;
  }
}

.ica-testimonials__typing .ica{color:var(--ica-green-deep);margin-bottom:.2em;display:block;font-size:30px}
.ica-testimonials__typing .typing-target{color:var(--ica-lavender);text-transform:uppercase;border-right:3px solid var(--ica-lavender);padding-right:2px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;display:block;text-align:center;font-size:30px !important}

.reviews-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--ica-lavender);
  border-radius: 30px;
  padding: 20px;
  margin: 16px auto 0;
  max-width: min(750px, 80vw);
  overflow: visible;
  box-sizing: border-box;
}
.reviews-badge{position:absolute;left:-40px;top:5px;transform:none;width:120px;height:120px;border-radius:999px;background:var(--ica-green-deep);color:var(--ica-bg);display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-size:28px;letter-spacing:.5px;box-shadow:0 6px 18px rgba(3,51,46,.12);pointer-events:none;z-index:3}
.reviews-slider{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow:hidden;scroll-snap-type:x mandatory;border-radius:20px;background:transparent;width:100%;will-change:scroll-position;cursor:grab;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;box-sizing:border-box}
.reviews-slider:active{cursor:grabbing}

/* Review slide - Mobile First Design */
.review-slide{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  gap: 10px;
  padding: 20px 0;
  scroll-snap-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.review-slide__avatar{
  width: 170px;
  height: 170px;
  border-radius: 999px;
  object-fit: cover;
  justify-self: start;
}

.review-slide__text{
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  margin: 0;
  padding: 0;
}

.reviews-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 0;
  box-sizing: border-box;
}
.reviews-dots button{width:8px;height:8px;border-radius:999px;border:0;background:rgba(3, 51, 46, 0.3);transition:all 0.3s ease}
.reviews-dots button:hover{background:rgba(3, 51, 46, 0.6);transform:scale(1.2)}
.reviews-dots button.is-active{background:var(--ica-green-deep);transform:scale(1.3)}

/* Two-column grid - Independent Layout */
.two-col-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
}
/* Spotlight layout - Independent Design */
.spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.spotlight__avatar{display:flex;align-items:center;justify-content:center}
.spotlight__img{width:clamp(120px,18vw,220px);height:clamp(120px,18vw,220px);border-radius:999px;object-fit:cover}
.spotlight__quote{font-family:var(--font-heading);font-weight:600;font-size:clamp(28px,2.8vw,40px);line-height:1.3;margin:0}
.spotlight__meta{margin-top:12px;font-family:var(--font-ui);font-size:14px;letter-spacing:1.2px;text-transform:uppercase;color:var(--ica-green-deep)}
.spotlight__name, .spotlight__role{font-weight:500;font-family:var(--font-ui);text-transform:uppercase;font-size:16px}
.spotlight__attribution{font-style:normal} 

.quote-card{background:transparent;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;overflow:hidden}
.quote-card__text{font-family:var(--font-ui);font-size:clamp(18px,1.8vw,20px);line-height:1.55}
.quote-card__text .quote-hl{background:linear-gradient(180deg,rgba(255,255,255,0) 50%, var(--ica-lime) 50%)}
.quote-card__person{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}
.quote-card__avatar{width:93px;height:93px;border-radius:999px;object-fit:cover}
.quote-card__name{font-family:var(--font-ui);font-weight:500;font-size:clamp(16px,1.6vw,18px);text-align:center}
.quote-card__role{font-family:var(--font-ui);font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:var(--ica-green-deep);text-align:center}

/* ===== TWO-COLUMN QUOTES RESPONSIVE DESIGN ===== */

/* Mobile: Stack to single column */
@media (max-width: 768px) {
  .two-col-quotes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .ica-two-col-quotes__container {
    padding: clamp(1.5rem, 5vw, 2rem);
    height: auto;
    min-height: auto;
    max-height: none;
  }
}

/* ===== SPOTLIGHT QUOTE RESPONSIVE DESIGN ===== */

/* Tablet and Mobile: Stack to single column */
@media (max-width: 900px) {
  .spotlight {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  
  .ica-spotlight-quote__container {
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* Mobile: Add specific height for spotlight quote container */
@media (max-width: 768px) {
  .ica-spotlight-quote__container {
    height: auto;
    min-height: auto;
    max-height: none;
  }
}

/* ===== RESPONSIVE DESIGN - FLEXIBLE LAYOUT SYSTEM ===== */

/* Small Mobile (320px+) */
@media (min-width: 320px) {
  .ica-testimonials {
    padding: 20px 0;
  }
  
  .ica-two-col-quotes {
    padding: 20px 0;
  }
  
  .ica-spotlight-quote {
    padding: 20px 0;
  }
}

/* Extra Small Mobile (≤480px) */
@media (max-width: 480px) {
  .ica-testimonials {
    padding: 20px 0;
  }
  
  .ica-two-col-quotes {
    padding: 20px 0;
  }
  
  .ica-spotlight-quote {
    padding: 20px 0;
  }
  
  .reviews-banner {
    min-width: min(300px, 90vw);
  }
  
  .reviews-badge {
    left: -20px;
    width: 80px;
    height: 80px;
    font-size: 18px;
  }
}

/* Mobile (480px+) */
@media (min-width: 480px) {
  
  .reviews-banner {
    min-width: min(400px, 92vw);
  }
  
  .reviews-badge {
    left: -25px;
    width: 90px;
    height: 90px;
    font-size: 20px;
  }
  
  .review-slide__text {
    font-size: 28px;
  }
}

/* Large Mobile (600px+) */
@media (min-width: 600px) {
  .reviews-badge {
    left: -30px;
    width: 99px;
    height: 99px;
    font-size: 22px;
  }
  
  .review-slide__text {
    font-size: 30px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .ica-testimonials {
    padding: 20px 0;
  }
  
  .ica-two-col-quotes {
    padding: 20px 0;
  }
  
  .ica-spotlight-quote {
    padding: 20px 0;
  }
  
  .reviews-banner {
    max-width: 700px;
  }
  
  .review-slide {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
  }
  
  .review-slide__avatar {
    width: 200px;
    height: 200px;
    justify-self: center;
  }
  
  .review-slide__text {
    font-size: 32px;
    text-align: left;
  }
  
  .reviews-badge {
    left: -40px;
    width: 120px;
    height: 120px;
    font-size: 28px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .ica-testimonials {
    padding: 20px 0;
  }
  
  .ica-two-col-quotes {
    padding: 20px 0;
  }
  
  .ica-spotlight-quote {
    padding: 20px 0;
  }
  
  .reviews-banner {
    max-width: 900px;
  }
  
  .review-slide {
    padding: 36px 28px;
  }
  
  .review-slide__text {
    font-size: 36px;
  }
}

/* Ensure slider stays within bounds */
.reviews-slider{
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

/* Smooth transitions for professional feel */
.reviews-banner{
  transition: box-shadow 0.3s ease;
}

.reviews-banner:hover{
  box-shadow: 0 8px 32px rgba(3, 51, 46, 0.15);
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}