.quotes-carousel-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.quotes-carousel__featured {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.quotes-carousel__featured-quote {
  margin: 0;
  padding: 0;
}

.quotes-carousel__featured-text {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--e-global-color-primary);
  margin-bottom: 1rem;
}

.quotes-carousel__featured-author {
  line-height: 1.5;
  color: var(--e-global-color-text);
  font-size: 32px;
  opacity: 0.7;
  font-style: normal;
}

.quotes-carousel__slider {
  width: 100%;
  position: relative;
}

.qc-widget .quotes-carousel__slider {
  padding-left: 150px;
}

.qc-widget .swiper-slide-duplicate-prev {
  opacity: 0.6;
}

.quotes-carousel__slider .swiper {
  width: 100%;
  padding: 0;
}

.quotes-carousel__slider .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.quotes-carousel__slider .swiper-slide {
  height: auto;
  display: flex;
}

.quotes-carousel__card {
  background: var(--bg-color-secondary);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 230px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quotes-carousel__card::before {
  content: " ";
  position: absolute;
  top: 15px;
  left: 25px;
  line-height: 1;
  background: url("assets/img/quote-icon.png") no-repeat;
  width: 40px;
  height: 40px;
}

.quotes-carousel__card:hover {
  transform: translateY(-4px);
}

.quotes-carousel__card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  margin-top: 1rem;
}

.quotes-carousel__quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  color: var(--e-global-color-text);
  flex: 1;
}

.quotes-carousel__card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quotes-carousel__divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  width: 100%;
}

.quotes-carousel__author {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  font-style: normal;
  color: var(--e-global-color-text);
}

.carousel__navigation {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0 80px;
}

.carousel__navigation .swiper-button-prev,
.carousel__navigation .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--e-global-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.carousel__navigation .swiper-button-prev::after,
.carousel__navigation .swiper-button-next::after {
  display: none;
}

.carousel__navigation .swiper-button-prev:hover,
.carousel__navigation .swiper-button-next:hover {
  border-color: var(--e-global-color-primary);
  background-color: var(--e-global-color-primary);
  color: white;
  opacity: 1;
}

.carousel__navigation .swiper-button-prev:active,
.carousel__navigation .swiper-button-next:active {
  opacity: 0.8;
}

.carousel__navigation .swiper-button-prev.swiper-button-disabled,
.carousel__navigation .swiper-button-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .quotes-carousel__card {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }

  .quotes-carousel__quote {
    font-size: 1.125rem;
  }

  .carousel__navigation {
    padding: 0 20px;
  }

  .qc-widget .quotes-carousel__slider {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .quotes-carousel-container {
    gap: 2rem;
  }

  .quotes-carousel__featured {
    max-width: 100%;
  }

  .quotes-carousel__featured-text {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .quotes-carousel__featured-author {
    font-size: 1.125rem;
  }

  .quotes-carousel__card {
    padding: 1.5rem;
    min-height: 180px;
  }

  .quotes-carousel__quote {
    font-size: 1rem;
  }

  .quotes-carousel__author {
    font-size: 0.875rem;
  }

  .carousel__navigation {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .quotes-carousel__card {
    padding: 1.25rem;
    min-height: 160px;
  }

  .quotes-carousel__card::before {
    font-size: 2.5rem;
    top: 0.75rem;
    left: 1rem;
  }
}
