.carousel-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}
/* .carousel-container .owl-carousel {
  background: url("/sites/default/files/home/home-slider-bg.webp")
    no-repeat center center/cover;
}

.carousel-container .owl-carousel .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  max-width: 85%;

  margin: 0 auto;
} */
.carousel-container .swiper {
  background: url("/sites/default/files/home/home-slider-bg.webp")
    no-repeat center center/cover;
}

.carousel-container .swiper .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  max-width: 85%;
  /* padding-inline: 10%; */
  margin: 0 auto;
}

.carousel-container .item .text-content {
  /* width: 50%; */
  padding: 20px;
}

.carousel-container .item .text-content h2 {
  height: auto;
  width: auto;
  color: rgb(35, 35, 35);
  text-decoration: none;
  min-height: 0px;
  min-width: 0px;
  max-height: none;
  max-width: none;
  text-align: left;
  line-height: 66px;
  letter-spacing: 0px;
  font-weight: 600;
  font-size: 50px;
  transform-origin: 50% 50%;
  opacity: 1;
  transform: translate(0px, 0px);
  visibility: visible;
  margin: 0px;
}

.carousel-container .item .text-content .headline {
  font-family: "Fira Sans";
  text-transform: uppercase;
  height: auto;
  width: auto;
  color: rgb(35, 35, 35);
  text-decoration: overline;
  /* white-space: nowrap; */
  min-height: 0px;
  min-width: 0px;
  max-height: none;
  max-width: none;
  text-align: left;
  line-height: 25px;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 19px;
  transform-origin: 50% 50%;
  opacity: 1;
  transform: translate(0px, 0px);
  visibility: visible;
}

.carousel-container .item .text-content .sub-text {
  font-family: Rubik;
  height: auto;
  width: auto;
  color: rgb(109, 109, 109);
  text-decoration: none;
  white-space: nowrap;
  min-height: 0px;
  min-width: 0px;
  max-height: none;
  max-width: none;
  text-align: left;
  line-height: 27px;
  letter-spacing: 0px;
  font-weight: 400;
  font-size: 20px;
  transform-origin: 50% 50%;
  opacity: 1;
  transform: translate(0px, 0px);
  visibility: visible;
  text-wrap: auto;
}

.item .image-content {
  width: 50%;
  text-align: right;
}

.carousel-container .item .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.carousel-container .link-button {
  display: inline-block;
  padding: 0px 10px;
  background-color: #ff4c00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  background-color: rgb(255, 60, 0);
  font-family: Rubik;
  color: rgb(255, 255, 255);
  text-decoration: none;
  white-space: normal;
  /* width: 183px; */
  height: 55px;
  min-height: 0px;
  min-width: 0px;
  max-height: none;
  max-width: none;
  text-align: center;
  line-height: 55px;
  letter-spacing: 0px;
  font-weight: 400;
  font-size: 18px;
  padding-left: 25px;
  border-radius: 4px;
  backdrop-filter: none;
  filter: brightness(100%);
  transform-origin: 50% 50%;
  opacity: 1;
  transform: translate(0px, 0px);
  visibility: visible;
  border-width: 0px;
}

/* Custom Navigation Buttons */
.custom-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 100;
}

.custom-nav button {
  background: rgb(0 0 0 / 35%);
  color: #fff;
  border: none;
  width: 70px;
  height: 70px;
  font-size: 1.5em;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.custom-nav .prev {
  margin-left: 20px;
}

.custom-nav .next {
  margin-right: 20px;
}

.youtube-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background-color: #ff4c00;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  margin-left: 50px;
}

@media (max-width: 768px) {
  .carousel-container .item .image-content {
    display: none; /* Hides the image content */
  }

  .carousel-container .item .text-content {
    width: 100%; /* Takes up the full width */
    text-align: center; /* Centers the text content */
    margin: 15% 0px;
  }

  .carousel-container .item .text-content h2,
  .carousel-container .item .text-content .headline,
  .carousel-container .item .text-content .sub-text,
  .carousel-container .item .text-content .link-button {
    text-align: center; /* Centers individual elements */
  }
}

@media (max-width: 767px) {
  .carousel-container .item .text-content h2 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 25px;
  }
  .custom-nav button {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
  .carousel-container .item .text-content .sub-text {
    font-size: 16px;
    line-height: 20px;
  }
  .link-button {
    padding: 0px 10px;
    font-size: 12px;
    /* width: 110px; */
    height: 50px;
  }
  .carousel-container .youtube-video {
    margin-left: 30px;
    font-size: 1em;
    width: 55px;
    height: 55px;
  }
  .custom-nav .next,.custom-nav .prev{
    margin: 0;
  }
}
