.carousel {
  position: relative;
  max-width: 1180px;
  height: 548px;
  margin: 100px auto;
  background-color: #eef2fb;
  border-radius: 24px;
  overflow: hidden;
}

.carousel-list {
  margin: 0;
  padding: 0;
  /* padding: 0 103px; */
  height: 100%;
  width: 100%;
  list-style-type: none;
  display: flex;
  /* gap: 206px; */
  transition: transform 0.5s ease;
  position: relative;
  background-color: transparent;
}

.carousel-item {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  padding: 40px;
  padding: 40px 103px;
  box-sizing: border-box;
  position: relative;
}

.carousel-item .carousel-before {
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-item .carousel-after {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* .carousel-item::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  right: 0;
  bottom: 0;
  background-image: url('/img/carousel-after.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 98px;
  z-index: 1;
}

.carousel-item::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  left: 0;
  top: 0;
  background-image: url('/img/carousel-before.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 98px;
  z-index: 1;
} */

.text-content {
  width: 480px;
  margin-right: 75px;
}

.image-content {
  position: relative;
  width: 100%;
  max-width: 401px;
  height: 401px;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.image-content .product {
  width: 308px;
  z-index: 2;
}

.image-content .product-bg {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 383px;
  height: 358px;
}

.bg-red {
  filter: invert(19%) sepia(94%) saturate(7483%) hue-rotate(357deg) brightness(97%) contrast(115%);
}

.bg-green {
  filter: invert(57%) sepia(72%) saturate(470%) hue-rotate(89deg) brightness(91%) contrast(92%);
}

.text-content h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: #1A202C;
  margin: 0;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #5D6A83;
  margin: 0;
  margin-top: 14px;
}

.carousel-item.active {
  display: flex;
}

.text-content h2 {
  color: #1a202c;
  margin-bottom: 20px;
}

.text-content p {
  color: #4a5568;
}

.image-content img {
  width: 300px;
  height: auto;
}

.carousel-controls {
  position: absolute;
  left: 10px;
  top: 50%;
  width: calc(100% - 20px);
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background: #E2E8F0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-controls button:hover {
  opacity: 0.8;
}

.carousel-indicators {
  position: absolute;
  bottom: 41px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-indicators .indicator {
  width: 30px;
  height: 10px;
  background-color: #CBD5E0;
  border-radius: 6px;
  cursor: pointer;
}

.carousel-indicators .indicator.active {
  background-color: #2d74da;
}


@media (max-width: 400px) {
  .carousel {
    position: relative;
    max-width: 355px;
    height: 548px;
    margin: 50px auto;
    background-color: #eef2fb;
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-list {
    transition: transform 0.5s ease;
    position: relative;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-item {
    min-width: 100%;
    min-height: 100%;
    padding: 20px;
    flex-direction: column;
  }
  
   .carousel-list svg {
      display: none;
  }

  .carousel::before,
  .carousel::after {
    display: none;
  }

  .text-content {
    width: 315px;
    margin-right: 0;
  }

  .image-content {
    width: 100%;
    max-width: 315px;
  }

  .text-content h2 {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 22px;
    max-width: 300px;
  }

  .text-content p {
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    margin: 0;
  }

  .image-content img.product {
    width: 161px;
    margin-left: 8px;
  }

  .image-content svg.product-bg {
    position: absolute;
    z-index: 1;
    right: 35px;
    bottom: 60px;
    width: 210px;
    height: 190px;
  }

  .carousel-controls button {
    width: 40px;
    height: 40px;
  }

  .carousel-indicators {
    position: absolute;
    bottom: 41px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    max-width: 300px;
  }

  .carousel-indicators .indicator {
    width: 30px;
    height: 10px;
    background-color: #CBD5E0;
    border-radius: 6px;
    cursor: pointer;
  }

  .carousel-indicators .indicator.active {
    background-color: #2d74da;
  }

}