/* Testimonials Section - Flexible Layout System */
:root {
  --testimonials-container-padding: clamp(1rem, 4vw, 2rem);
  --testimonials-container-max-width: 1200px;
  --testimonials-section-gap: 2rem;
}

.ica-testimonials{
  background: var(--ica-bg);
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: var(--global-padding-desktop) 0;
  contain: layout;
  display: flex;
  flex-direction: column;
}

/* ===== TWO-COLUMN QUOTES SECTION - INDEPENDENT CONTAINER ===== */
.ica-two-col-quotes {
  background: #DCF4EF78;
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: var(--global-padding-desktop) 0;
  contain: layout;
  display: flex;
  flex-direction: column;
}

.ica-two-col-quotes__container {
  max-width: var(--testimonials-container-max-width);
  margin: 0 auto;
  padding: var(--testimonials-container-padding);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Alt variant with different background */
.ica-two-col-quotes--alt {
  background: #DCF4EF78;
}

/* ===== SPOTLIGHT QUOTE SECTION - INDEPENDENT CONTAINER ===== */
.ica-spotlight-quote {
  background: #DCF4EFC9;
  color: var(--ica-green-deep);
  overflow-x: hidden;
  padding: 20px 0;
  contain: layout;
  display: flex;
  flex-direction: column;
}

.ica-spotlight-quote__container {
  max-width: var(--testimonials-container-max-width);
  margin: 0 auto;
  padding: var(--testimonials-container-padding);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Level 1: Parent Container */
.ica-testimonials__level-1 {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ica-testimonials .section__inner--wide {
  max-width: var(--testimonials-container-max-width);
  margin: 0 auto;
  padding: 0 var(--testimonials-container-padding);
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Level 2: Typing Text Container */
.ica-testimonials__level-2 {
  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;
  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 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* Removed reveal animations; elements are visible by default to avoid extra observers */

.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-green-deep);
  text-transform: uppercase;
  border-right: 3px solid var(--ica-green-deep);
  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%;
  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;
}

.reviews-slider:focus,
.reviews-slider:focus-visible {
  outline: 2px solid var(--ica-green-deep);
  outline-offset: 2px;
}

/* 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: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(3, 51, 46, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.reviews-dots button:hover {
  background: rgba(3, 51, 46, 0.6);
  transform: scale(1.2);
}

.reviews-dots button:focus,
.reviews-dots button:focus-visible {
  outline: 2px solid var(--ica-green-deep);
  outline-offset: 2px;
  background: rgba(3, 51, 46, 0.6);
}

.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: 33px;
  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: 19px;
  line-height: 1.55;
  font-weight: 500;
  margin: 30px 0;
  text-align: justify;
}
.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;
  display: block;
}
.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;
  display: block;
}

/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Base styles (320px+) - Mobile */
.two-col-quotes {
  grid-template-columns: 1fr;
  gap: 24px;
}

.spotlight {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 24px;
}

.ica-two-col-quotes__container,
.ica-spotlight-quote__container {
  height: auto;
  min-height: auto;
  max-height: none;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .two-col-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  
  .spotlight {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    gap: 32px;
  }
  
  .ica-spotlight-quote__container {
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* ===== RESPONSIVE DESIGN - FLEXIBLE LAYOUT SYSTEM ===== */

/* Mobile-First Responsive Design */

/* Base styles (320px+) - Mobile */
.reviews-banner {
  min-width: min(300px, 90vw);
}

.reviews-badge {
  left: -20px;
  width: 80px;
  height: 80px;
  font-size: 18px;
}

.review-slide__text {
  font-size: 24px;
}

.ica-testimonials__level-2 {
  height: 20vh;
}

/* Small 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) {
  .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) {
  .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);
}

/* Removed local .sr-only to rely on global utility in assets/css/critical.css */