@layer components {
  .testimonial-slider {
    padding: 0 80px 64px 80px;
    margin-bottom: 24px;
  }

  .testimonial-slider .testimonial-slider__testimonials.swiper {
    overflow: hidden;
  }

  .testimonial-slider .swiper-wrapper {
    display: flex;
  }

  .testimonial-slider .swiper-slide {
    width: 100%;
    flex-shrink: 0;
  }

  .testimonial-slider .testimonial-slider__testimonial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid #dcfce7;
    background: linear-gradient(90deg, #effcf3 0%, #eff6ff 100%);
  }

  .testimonial-slider
    .testimonial-slider__testimonial
    .testimonial-slider__testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .testimonial-slider
    .testimonial-slider__testimonial
    .testimonial-slider__testimonial-info
    .testimonial-slider__testimonial-info__citee {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .testimonial-slider
    .testimonial-slider__testimonial
    .testimonial-slider__testimonial-info
    .testimonial-slider__testimonial-info__citee
    .testimonial-slider__testimonial-info__citee-image {
    position: relative;
    width: 64px;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 5px solid #d8eaff;
    overflow: hidden;
  }
  .testimonial-slider
    .testimonial-slider__testimonial
    .testimonial-slider__testimonial-info
    .testimonial-slider__testimonial-info__citee
    .testimonial-slider__testimonial-info__citee-image
    img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .testimonial-slider__testimonial-info__citee-image-placeholder {
    background: #badaff;
    position: absolute;
    inset: 0;
  }

  .testimonial-slider__testimonial-info__citee-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .testimonial-slider .testimonial-slider__testimonial-info__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .testimonial-slider .testimonial-slider__testimonial-info__benefit {
    background: var(--background);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0px 10px 50px 3px #275c8d1a;
  }
  .testimonial-slider .testimonial-slider__testimonial-info__benefit-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }

  .testimonial-slider .testimonial-slider__testimonial-quote {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .testimonial-slider .testimonial-slider__testimonial-quote__title {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading);
  }

  .testimonial-slider .testimonial-slider__testimonial-quote__copy {
    display: flex;
    gap: 24px;
  }

  .testimonial-slider .testimonial-slider-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }
  .testimonial-slider
    .testimonial-slider-pagination
    .testimonial-slider__navigation {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .testimonial-slider .testimonial-slider__navigation-button {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d5dbe1;
    background: var(--background);
    border-radius: 32px;
  }

  /* Swiper pagination styles */
  .testimonial-slider .swiper-pagination {
    padding: 0 24px;
    position: static !important;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
    width: auto !important;
    height: auto !important;
  }

  .testimonial-slider .swiper-pagination-bullet {
    --swiper-theme-color: var(--primary);
    --swiper-pagination-bullet-color: var(--primary);
    --swiper-pagination-bullet-size: 8px;
  }

  .testimonial-slider .swiper-pagination-bullet-active {
    background: #165dfb;
    transform: scale(1.2);
  }

  /* Swiper navigation button styles */
  .testimonial-slider .swiper-button-prev,
  .testimonial-slider .swiper-button-next {
    position: static;
    margin: 0;
    width: 48px;
    height: 48px;
    border: 1px solid #d5dbe1;
    background: var(--background);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .testimonial-slider .swiper-button-prev:hover,
  .testimonial-slider .swiper-button-next:hover {
    background: #f8f9fa;
    border-color: #165dfb;
  }

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

  .testimonial-slider .swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Mobile Responsive Styles */
  @media (max-width: 768px) {
    .testimonial-slider {
      padding: 0 0 32px 0;
    }

    .testimonial-slider .testimonial-slider__testimonial {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 24px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info {
      gap: 24px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info
      .testimonial-slider__testimonial-info__citee {
      gap: 16px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info
      .testimonial-slider__testimonial-info__citee
      .testimonial-slider__testimonial-info__citee-image {
      width: 48px;
      border-radius: 8px;
      border: 3px solid #d8eaff;
    }

    .testimonial-slider .testimonial-slider__testimonial-info__benefits {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .testimonial-slider .testimonial-slider__testimonial-info__benefit {
      padding: 16px;
    }

    .testimonial-slider .testimonial-slider__testimonial-info__benefit-title {
      font-size: 1.5rem;
    }

    .testimonial-slider .testimonial-slider__testimonial-quote {
      gap: 24px;
      align-items: stretch;
    }

    .testimonial-slider .testimonial-slider__testimonial-quote__title {
      font-size: 1.25rem;
    }

    .testimonial-slider .testimonial-slider__testimonial-quote__copy {
      gap: 16px;
    }

    .testimonial-slider .testimonial-slider-pagination {
      flex-direction: column;
      gap: 16px;
      margin-top: 16px;
    }

    .testimonial-slider .testimonial-slider__navigation {
      order: 2;
    }

    .testimonial-slider .swiper-pagination {
      order: 1;
      padding: 0 16px;
    }

    .testimonial-slider .testimonial-slider__navigation-button {
      width: 40px;
      height: 40px;
    }

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

  /* Tablet Responsive Styles */
  @media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-slider {
      padding: 0 32px 48px 32px;
    }

    .testimonial-slider .testimonial-slider__testimonial {
      gap: 48px;
      padding: 32px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info {
      gap: 32px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info
      .testimonial-slider__testimonial-info__citee {
      gap: 20px;
    }

    .testimonial-slider
      .testimonial-slider__testimonial
      .testimonial-slider__testimonial-info
      .testimonial-slider__testimonial-info__citee
      .testimonial-slider__testimonial-info__citee-image {
      width: 56px;
    }

    .testimonial-slider .testimonial-slider__testimonial-info__benefits {
      gap: 20px;
    }

    .testimonial-slider .testimonial-slider__testimonial-info__benefit {
      padding: 20px;
    }

    .testimonial-slider .testimonial-slider__testimonial-quote {
      gap: 32px;
    }

    .testimonial-slider .testimonial-slider__testimonial-quote__copy {
      gap: 20px;
    }

    .testimonial-slider .testimonial-slider-pagination {
      margin-top: 20px;
    }
  }
}
