.customers__section {
  padding: 4rem 0;
  background-color: var(--clr-secondary);
  overflow: hidden;
}

.customers__section .customers__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.customers__section .customers__content .customers__description {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customers__section .customers__content .customers__description h2 {
  font-size: 2.5rem;
  width: min(600px, 100%);
  font-weight: 500;
}

.customers__section .customers__content .customers__description p {
  font-size: 1.5rem;
  font-weight: 400;
}

/* Swiper wrapper */
.customers__section .customers__content .customers__card__main__container {
  position: relative;
  width: 100%;
  padding: 0 20px;
  /* To prevent arrow clipping inside the container */
}

.customers__section .customers__content .customers__card__warpper {
  position: relative;
  width: 100%;
  padding: 2rem 0 4rem 0;
  /* Increased top/bottom padding for shadows and pagination */
  overflow: hidden;
}

/* Allow cards to show shadows without being clipped */
.customers__section .customers__content .swiper-wrapper {
  padding: 10px 0;
}

.customers__section .customers__content .customers__card__list {
  width: 100%;
  display: flex !important;
}

.customers__section .customers__content .customers__card {
  height: auto;
  box-sizing: border-box;
}

/* Cards styling */
.customers__section .customers__content .customers__card__list .customers__card {
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.customers__section .customers__content .customers__card__list .customers__card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 8rem;
  color: var(--clr-primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
  z-index: -1;
  pointer-events: none;
}

.customers__section .customers__content .customers__card__list .customers__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.customers__section .customers__content .customers__card__list .customers__card p:first-child {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.customers__section .customers__content .customers__card__list .customers__card .customers__card__profile {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.customers__section .customers__content .customers__card__list .customers__card .customers__card__profile img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid var(--clr-primary);
  padding: 2px;
}

.customers__section .customers__content .customers__card__list .customers__card .customers__card__profile .customers__card__profile__description h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #222;
}

.customers__section .customers__content .customers__card__list .customers__card .customers__card__profile .customers__card__profile__description p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* Ensure cards have proper width in Swiper */
.customers__section .customers__content .customers__card__list .customers__card {
  height: auto;
  min-height: 100%;
  margin: 0;
}

/* Swiper Navigation */
.customers__section .swiper-button-next,
.customers__section .swiper-button-prev {
  width: 50px;
  height: 50px;
  background-color: white;
  border: none;
  border-radius: 50%;
  color: var(--clr-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
}

.customers__section .swiper-button-next::after,
.customers__section .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.customers__section .swiper-button-next:hover,
.customers__section .swiper-button-prev:hover {
  background-color: var(--clr-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* Position arrows safely within boundaries by adjusting swiper container padding or positioning inside */
.customers__section .swiper-button-prev {
  left: 10px;
}

.customers__section .swiper-button-next {
  right: 10px;
}

@media (max-width: 1100px) {
  .customers__section .swiper-button-prev {
    left: 10px;
  }

  .customers__section .swiper-button-next {
    right: 10px;
  }
}

@media (max-width: 768px) {

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

/* Swiper Pagination */
.customers__section .swiper-pagination {
  bottom: 0 !important;
}

.customers__section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: all 0.3s ease;
}

.customers__section .swiper-pagination-bullet-active {
  background-color: var(--clr-primary);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .customers__section .customers__content .customers__description h2 {
    width: 100%;
    font-size: 2rem;
  }

  .customers__section .customers__content .customers__card__list .customers__card {
    width: 100%;
  }
}

@media (max-width: 967px) {
  .customers__section .customers__content .customers__description {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .customers__section .customers__content .customers__description h2 {
    font-size: 1.8rem;
  }

  .customers__section .customers__content .customers__description p {
    font-size: 1.2rem;
  }

  .customers__section .customers__content .customers__card__list .customers__card {
    width: 100%;
  }
}

@media (max-width: 769px) {
  .customers__section {
    padding: 3rem 0;
  }

  .customers__section .customers__content {
    gap: 2rem;
  }

  .customers__section .customers__content .customers__description h2 {
    font-size: 1.6rem;
  }

  .customers__section .customers__content .customers__description p {
    font-size: 1rem;
  }

  .customers__section .customers__content .customers__card__list .customers__card {
    width: 100%;
  }
}

@media (max-width: 432px) {
  .customers__section {
    padding: 3rem 0;
  }

  /* Centered peek effect for mobile */
  .customers__section .customers__content .customers__card__warpper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: visible;
  }

  .customers__section .customers__content .customers__card__list .customers__card {
    width: 85vw !important;
    padding: 1.5rem;
    margin: 0 auto;
  }

  .customers__section .customers__content .customers__description h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .customers__section .customers__content .customers__description p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .customers__section .customers__content .customers__card__list .customers__card .customers__card__profile img {
    width: 50px;
    height: 50px;
  }

  .customers__section .customers__content .customers__card p:first-child {
    font-size: 0.95rem;
  }
}