.homeslider {
  position: relative;
  height: 53.75rem; /* 860px */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2.625rem; /* 42px */
  background: linear-gradient(to left, #524e58, #323036);
  padding-bottom: 1.875rem; /* 30px */

  @media screen and (max-width: 992px) {
    height: auto;
    padding-top: 150px;
  }
}
.homeslider .splide {
  height: 100%;

  @media screen and (min-width: 992px) {
    .splide__track {
      height: 100%;
    }
  }
}

.homeslider::before {
  content: "";
  position: absolute;
  top: 2.5rem; /* 40px */
  left: -3.625rem; /* -58px */
  width: 100%;
  height: 100%;
  background-image: url("/wp-content/themes/kn/img/eagle.webp");
  background-repeat: no-repeat;
  pointer-events: none;
}

.homeslider::after {
  content: "";
  position: absolute;
  top: 26.875rem; /* 430px */
  right: -5.625rem; /* -90px */
  width: 20rem; /* 320px */
  height: 21.25rem; /* 340px */
  background-image: url("/wp-content/themes/kn/img/sign.webp");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.homeslider .section__title {
  text-align: left !important;

  @media screen and (max-width: 992px) {
    text-align: center !important;
  }

  p {
    color: var(--white);
  }
}

.homeslider .section__title h1 {
  color: #ffffff !important;

  @media screen and (max-width: 1200px) {
    font-size: 38px;
  }
}

.homeslider__container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  gap: 5rem; /* 80px */
  grid-template-columns: 22.5rem auto; /* 360px auto */
  align-items: center;
  position: relative;
  z-index: 2;

  @media screen and (max-width: 1400px) {
    gap: 40px;
  }

  @media screen and (max-width: 1300px) {
    gap: 30px;
  }

  @media screen and (max-width: 992px) {
    grid-template-columns: 1fr;
    gap: 2.5rem; /* 40px */
  }
}

.homeslider__content {
  @media screen and (max-width: 992px) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.homeslider__content-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.homeslider__slides-container {
  position: relative;

  @media screen and (max-width: 1200px) {
    padding-bottom: 48px;
  }
}

.homeslider__slides-container .slick-slide {
  margin: 0 20px;
}

.homeslider__slides-container .slick-slide > div {
  height: 100%;
}

.homeslider__slides-container .slick-dots {
  display: none !important;
}

.homeslider__navigation {
  position: absolute;
  right: 1.5625rem; /* 25px */
  bottom: 0;
  z-index: 1;

  @media screen and (max-width: 1200px) {
    bottom: 0;
  }

  @media screen and (max-width: 630px) {
    top: unset;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }
}

.homeslider__navigation-buttons {
  display: flex;
  gap: 1rem; /* 16px */
}

.homeslider__navigation-prev,
.homeslider__navigation-next {
  flex: unset !important;
  width: auto !important;
  height: auto !important;
  padding: 0.625rem !important; /* 10px */
  border-radius: 0.25rem; /* 4px */
  border: 1px solid #ffffff !important;
  transition: all 0.2s ease-in-out;
  background: none !important;
}

.homeslider__navigation-prev:hover:not(.is-disabled),
.homeslider__navigation-next:hover:not(.is-disabled) {
  background: #ffffff !important;
}

.homeslider__navigation-prev:hover:not(.is-disabled) svg path,
.homeslider__navigation-next:hover:not(.is-disabled) svg path {
  fill: var(--text);
}

.homeslider__navigation-prev::before,
.homeslider__navigation-next::before {
  content: none !important;
}

.is-disabled {
  opacity: 0.16 !important;
}

.homeslider__slide {
  position: relative;
  height: auto;

  @media screen and (max-width: 630px) {
    height: 100%;
  }

  img {
    height: 100%;
    object-fit: cover;
  }
}

.homeslider__slide-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 24px */
  position: absolute;
  width: 50%;
  top: 50%;
  right: 1.5625rem; /* 25px */
  transform: translateY(-50%);
  opacity: 0.96;
  background: #ffffff;
  border-radius: 1rem; /* 16px */
  padding: 3rem; /* 48px */
  box-shadow: 0 0 0 8px #b9a87829;

  @media screen and (max-width: 1300px) {
    padding: 28px;
  }

  @media screen and (max-width: 1200px) {
    padding: 24px;
  }

  @media screen and (max-width: 630px) {
    position: static;
    width: calc(100% - 40px);
    transform: translateY(-50px) translateX(20px);
    text-align: center;
  }
}

.homeslider__slide-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: calc(100% + 1rem);
  height: calc(100% + 1rem);
  transform: translate(-50%, -50%);
  /*background: rgba(231, 76, 60, 0.16);*/
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  pointer-events: none;
}

.homeslider__slide-img {
  width: 60%;
  opacity: 1;
  border-radius: 16px;

  @media screen and (max-width: 630px) {
    position: static;
    width: 100% !important;
  }
}

.homeslider__slide-title {
  color: var(--text);
  font-size: 1.5rem; /* 24px */
  line-height: 1.75rem; /* 28px */
  margin-bottom: 0;

  @media screen and (max-width: 1100px) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

.homeslider__slide-date {
  width: fit-content;
  color: var(--white);
  background: var(--gold);
  padding: 5px 8px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 300;
}

.homeslider__slide-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--red);
  text-decoration: none;
  text-transform: none;
  transition: color 0.2s ease-in-out;

  &:hover {
    color: var(--red);
  }
}

.homeslider__slide-button svg {
  transition: transform 0.3s ease-in-out;
}

.homeslider__slide-button:hover svg {
  transform: translateX(5px);
}

.homeslider__scroll-indicator {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  align-items: center;
  color: var(--gold);
  text-decoration: none;
}

.homeslider__scroll-indicator:hover {
  cursor: pointer;
}

.homeslider__scroll-indicator:hover .homeslider__scroll-bullet {
  animation: scroll-wheel-animation 1.5s infinite;
}

.homeslider__scroll-mouse {
  position: relative;
  height: 3rem; /* 48px */
  width: 1.75rem; /* 28px */
  border: 3px solid #524e58;
  border-radius: 1.25rem; /* 20px */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.6);
}

.homeslider__scroll-bullet {
  position: absolute;
  height: 8px;
  width: 8px;
  background: var(--gold);
  left: 50%;
  top: 0.5rem; /* 8px */
  transform: translateX(-50%);
  border-radius: 50%;
}

.homeslider__scroll-text {
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 300;
}

@keyframes scroll-wheel-animation {
  0% {
    top: 0.5rem; /* 8px */
    opacity: 1;
  }
  100% {
    top: 1.75rem; /* 28px */
    opacity: 0;
  }
}
