.carousel-container {
  width: 95%;
  margin: 60px auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px #00000014;
  position: relative;
  overflow: hidden;
}

.carousel-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.carousel-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 10px;
}

.carousel-header p {
  font-size: 18px;
  color: #555555;
  margin: 0;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-wrapper input[type="radio"] {
  display: none;
}

.carousel-slides {
  position: relative;
  width: 100%;
  min-height: auto;
  overflow: visible;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
}

.carousel-slide:nth-child(1) {
  transform: translateX(0);
}

.carousel-slide:nth-child(2) {
  transform: translateX(0);
}

.carousel-slide:nth-child(3) {
  transform: translateX(0);
}

#slide1:checked ~ .carousel-slides .carousel-slide:nth-child(1) {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translateX(0);
  position: relative;
}

#slide2:checked ~ .carousel-slides .carousel-slide:nth-child(2) {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translateX(0);
  position: relative;
}

#slide3:checked ~ .carousel-slides .carousel-slide:nth-child(3) {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translateX(0);
  position: relative;
}

.carousel-slide > div {
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f28b2a;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background-color: #d97a1f;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

#slide1:checked ~ .arrow-slide1 {
  display: flex;
}

#slide2:checked ~ .arrow-slide2 {
  display: flex;
}

#slide3:checked ~ .arrow-slide3 {
  display: flex;
}

@media (width <= 768px) {
  .carousel-container {
    margin: 40px 20px;
    padding: 30px 15px;
  }

  .carousel-header h2 {
    font-size: 28px;
  }

  .carousel-header p {
    font-size: 16px;
  }

  .carousel-wrapper {
    min-height: auto;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-arrow.prev {
    left: 10px;
  }

  .carousel-arrow.next {
    right: 10px;
  }
}

@media (width <= 480px) {
  .carousel-container {
    margin: 30px 15px;
    padding: 20px 10px;
  }

  .carousel-header h2 {
    font-size: 24px;
  }

  .carousel-wrapper {
    min-height: auto;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}