/*Carousel section*/

.carousel-section {
  overflow: hidden;
  padding: 20px 0;
  padding-top: 40px;
  background: white;
}

.carousel-section .grid-content {
  position: relative;
}

.carousel-section .item-carousel img {
  border-radius: 25px;
}

.carousel-section .item-carousel .container-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgb(1, 79, 74);
  background: linear-gradient(
    0deg,
    rgba(1, 79, 74, 0.5030047419358368) 0%,
    rgba(1, 79, 74, 0) 81%
  );
  max-width: unset;
  margin: auto;
  border-radius: 25px;
  padding: 20px 25px;
  gap: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-section .item-carousel .content-text .title {
  color: white;
  font-weight: 700;
  font-size: 1.4em;
}

.carousel-section .owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  background: #8bc44b;
}

.carousel-section .owl-theme .owl-dots .owl-dot.active span,
.carousel-section .owl-theme .owl-dots .owl-dot:hover span {
  background: #011d4f;
  transition: all 0.3s ease;
}

.carousel-section .control-carousel {
  position: absolute;
  z-index: 2;
  justify-content: center;
  display: flex;
  align-items: center;
}

.carousel-section .control-carousel button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: none;
  background: transparent;
  transition: all 0.3s ease;
}

.carousel-section .control-carousel button:hover {
  border-radius: 65px;
  background-color: #cae3df73;
}

.carousel-section .control-carousel img {
  width: 28px;
  height: 28px;
}

.carousel-section .control-right {
  right: -30px;
  margin: auto;
  top: 0;
  bottom: 0;
}

.carousel-section .control-left {
  left: -30px;
  margin: auto;
  top: 0;
  bottom: 0;
}

.carousel-section .item-carousel {
  padding: 0 0px;
}

.carousel-section .container-image img {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.carousel-section .container-text .btn-apply {
  max-width: 150px;
  margin: auto;
}

.carousel-section .content-text p {
  letter-spacing: 0.2px;
  max-width: 230px;
  font-size: 13px;
  color: white;
}

.carousel-section .owl-theme .owl-nav.disabled + .owl-dots {
  margin-top: 28px;
}

@media (max-width: 992px) {
  .carousel-section .grid-content {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .carousel-section .grid-slip {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (min-width: 992px) {
  .carousel-section {
    padding-top: 20px;
  }
  .carousel-section .grid-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1063px;
    margin: 30px auto;
  }
  .carousel-section .item-carousel .container-text {
    padding: 20px 40px;
    background: linear-gradient(
      276deg,
      rgb(1 79 74 / 67%) 0%,
      rgba(1, 79, 74, 0) 73%
    );
  }
  .carousel-section .item-carousel .container-image img {
    max-height: 330px;
    object-position: center 25%;
  }
  .carousel-section .grid-slip .container-image {
    grid-area: container-image;
  }
  .carousel-section .grid-slip .container-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    grid-area: container-text;
    align-content: center;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0px;
  }
  .carousel-section .item-carousel .content-text .title {
    color: white;
    font-weight: 700;
    font-size: 2.2em;
    text-wrap-style: balance;
    max-width: 252px;
  }
  .carousel-section .item-carousel img {
    border-radius: 50px;
    max-height: unset;
  }
  .carousel-section .item-carousel .content-text {
    max-width: 406px;
  }
  .carousel-section .item-carousel .content-text {
    width: 100%;
  }
  .carousel-section .grid-content {
    border-radius: 50px;
    overflow: hidden;
  }
  .carousel-section .content-text p {
    margin-top: 39px;
    max-width: 215px;
    font-size: 15px;
    margin-top: 0;
    max-width: 299px;
    margin-left: 2px;
  }
  .carousel-section .container-text .btn-apply {
    margin-top: 32px !important;
    max-width: 170px;
    margin: 0;
  }
  .carousel-section .item-carousel .content-text {
    margin-top: 0px;
    margin-left: 0px;
  }
  .carousel-section .item-carousel .content-text {
    max-width: unset;
  }
  .carousel-section .item-carousel .content-text {
    width: max-content;
    border-radius: 0px;
    flex: 0;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    margin-left: auto;
    margin-right: 0;
  }
}

@media (min-width: 1400px) {
  .carousel-section .control-right {
    right: 60px;
    margin: auto;
    top: 0;
    bottom: 0;
  }
  .carousel-section .control-left {
    left: 60px;
    margin: auto;
    top: 0;
    bottom: 0;
  }
}
