/* --------------------------------------
   Reference Carousel (custom styles)
-----------------------------------------*/
#reference {
  position: relative;
}
#reference h2 {
  font-weight: 500;
}
.reference-slide {
  min-height: 260px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 1rem;
}
.reference-item {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.25rem 2rem 1.75rem 2rem;
  max-width: 260px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px -6px rgba(0,0,0,0.25);
}
.reference-item:before {
    content: '“';
    position: absolute;
    top: 0;
    left: 25%;
    transform: translate(-50%, -55%);
    font-size: 4rem;
    color: #fff;
    background: linear-gradient(145deg, #212529, #2f3640);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    line-height: 1;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.reference-item blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
}
.reference-item .blockquote-footer {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}
.reference-item .blockquote-footer:before {
  content: "— ";
}
#referencesCarousel .carousel-indicators [data-bs-target] {
  background-color: #212529;
}
#referencesCarousel .carousel-control-prev-icon,
#referencesCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(1);
}
@media (max-width: 768px) {
  .reference-slide {
    padding: 1.5rem 0.5rem 2.25rem 0.5rem;
    min-height: 320px;
  }
  .reference-item {
    padding: 2rem 1.5rem 1.25rem 1.5rem;
    border-radius: 20px;
    max-width: 100%;
  }
  .reference-item:before {
    width: 48px;
    height: 48px;
    font-size: 2.1rem;
    border-width: 3px;
  }
  .reference-item blockquote {
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  .reference-slide {
    min-height: 350px;
  }
  .reference-item {
    padding: 1.75rem 1.25rem 1.1rem 1.25rem;
  }
}
