/* Basic styling for the slider */
.splide-section {
  background-color: #d2ffc2; /* Light green background */
  padding-top: 55px;
  padding-bottom: 10px;
}

.splide-section h2 {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-bottom: 45px;
  font-size: 64px;
  color: #1d3031;
  font-weight: 300;
  font-family: "Poppins", sans-serif;
}

.splide {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #d2ffc2; /* Light green background */
}

.splide__list {
  display: flex;
  gap: 20px; /* Spacing between the slides */
  padding: 0;
  margin: 0;
  list-style: none;
}

.splide__slide {
  background-color: #1d3031; /* Dark green background for each slide */
  color: #d9ffce; /* Light greenish-white text color */
  padding: 25px 45px 25px 45px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  height: 311px;
  width: 402px;
  transition: transform 0.3s ease;
}

/* Hover effect */
.splide__slide:hover {
  transform: translateY(-5px);
}

.slide-content h3,
.slide-content p,
.slide-content hr {
  font-family: "Poppins", sans-serif;
  color: #d2ffc2;
}

.slide-content h3 {
  font-size: 20px;
  font-weight: 600;
}

.slide-content p {
  font-size: 16px;
  font-weight: 300;
}

.slide-content hr {
  opacity: 1;
  margin-top: 10px;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.custom-pagination__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d2ffc2;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid #1d3031;
  display: inline-block; /* Ensure proper rendering in Safari */
  box-sizing: border-box; /* Include padding and border in the width/height */
  padding: 0; /* Remove default padding */
}

.bunn-leppaa {
  position: relative;
  background-color: #D2FFC2;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  width: 100%;
  height: 52px;
  bottom: 0;
  z-index: 100;
  margin: 0 auto;
}

.splide-section h2 {
  margin-bottom: 20px;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
  .custom-pagination__dot {
    width: 16px; /* Safari sometimes needs an extra pixel */
    height: 16px; /* Same as above */
  }

.custom-pagination__dot.is-active {
  background: #1d3031 !important;
}

.splide__arrow {
  background: transparent !important;
}

/* Responsive styling */
@media (max-width: 768px) {
  .slide-content p {
    font-size: 14px;
  }

  .splide__arrow svg path {
    fill: #d9ffce;
  }

  .splide__slide {
    min-width: 80%;
  }

  .splide-section h2 {
    width: 100%;
    font-size: 30px;
  }
}

@media (min-width: 769px) {
  .splide__slide {
    padding: 70px 50px 60px 50px;
    min-width: 30%;
  }

  .splide__arrow svg path {
    fill: #1d3031 !important;
  }

  .splide__arrow--next {
    transform: translate(40px, -10px) !important;
    scale: 2;
  }

  .splide__arrow--prev {
    transform: translate(-40px, -10px) !important;
    scale: 2;
  }
}