.frontpage-slider {
  position: relative;
  width: 100%;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  color: var(--primary-color);
}
@media only screen and (min-width: 480px) {
    .frontpage-slider{
      min-height: 900px;
    }
}
@media only screen and (min-width: 1025px) {
    .frontpage-slider{
      height: 100vh;
      padding-left: var(--outer-padding);
    }
}

.frontpage-slider .swiper-slide {
  display: flex;
  align-items: center;
  position: relative;
  transition: opacity 1s ease, transform 1s ease;
  opacity: 0;
  transform: scale(0.95);
  z-index: 0;
}

.frontpage-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.frontpage-slider .banner-bg-subpage {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.frontpage-slider .banner-bg-subpage .banner-image {
  height: calc(100% - 150px);
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
  object-fit: cover;
  z-index: -1;
}

@media only screen and (min-width: 1025px) {
  .frontpage-slider .banner-bg-subpage .banner-image {
    height: 90%;
    width: 50%;
  }
}

.frontpage-slider .btn-fill.btn-slide {
	background-color: var(--primary-color);
	color: var(--secondary-color);
}

.frontpage-slider .btn-fill.btn-slide::after {
	background-color: var(--primary-color);
}

.frontpage-slider .btn-fill.btn-slide:hover {
	background-color: var(--secondary-color);
	color: var(--primary-color);
}

.frontpage-slider .btn-fill.btn-slide:hover::after {
	background-color: var(--secondary-color);
  filter: brightness(1);
}

.frontpage-slider .btn-fill.btn-slide svg * {
	fill: currentColor;
	stroke: currentColor;
}

.frontpage-slider .btn-fill.btn-outline{
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.frontpage-slider .banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 20%;
  height: 350px;
}

.frontpage-slider .banner-text-block {
  transition: all 1s ease;
}

@media only screen and (min-width: 1025px) and (max-width: 1800px) {
  .frontpage-slider .banner-text-block{
    flex: 0 0 45%!important;
    max-width: 45%!important;
  }
}

.frontpage-slider .swiper-slide-active .banner-text-block {
  opacity: 1;
  transform: scale(1);
}

.frontpage-slider .banner-bg-subpage {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.frontpage-slider .banner-bg-subpage:after{
  content: "";
  position: absolute;
  height: calc(100% - 150px);
  width: 100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0) 100%);
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .banner-bg-subpage:after{
    height: 90%;
    width: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%)
  }
}

.frontpage-slider .text-preview-container {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .text-preview-container {
    width: calc(100% - var(--outer-padding-value));
  }
}

body.block-editor-page .frontpage-slider .text-preview-container {
  width: 100%;
}

.frontpage-slider .text-preview-wrapper {
  flex: 0 0 50%;
  max-width: 50%;
  display: none;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
@media only screen and (min-width: 480px) {
  .frontpage-slider .text-preview-wrapper{
    display: flex;
  }
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .text-preview-wrapper{
    flex: 0 0 40%;
    max-width: 40%;
    gap: 0;
  }
}

.frontpage-slider .text-preview {
  transition: all 0.5s ease;
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 5%;
}

@media only screen and (min-width: 1025px) {
  .frontpage-slider .text-preview {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.frontpage-slider .text-preview small,
.frontpage-slider .banner-text-block small{
  display: block;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 16px;
}

.frontpage-slider .header-buttons {
  flex: 0 0 100%;
  max-width: 100%;
  justify-content: flex-end;
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .header-buttons {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.frontpage-slider .banner-text-block .h1{
  color: var(--primary-color);
}
@media only screen and (min-width: 1025px) and (max-width: 1800px) {
  .frontpage-slider .banner-text-block .h1{
    font-size: clamp(32px, 6vw, 46px);
    line-height: clamp(38px, 5vw, 50px);
  }
}

.frontpage-slider .text-preview .h1 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: clamp(24px, 2vw, 30px);
  font-weight: bold;
  color: var(--primary-color);
}

.frontpage-slider .slider-buttons{
  flex: 0 0 10%;
  max-width: 10%;
  position: relative;
  display: none;
  gap: 30px;
  height: 40px;
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .slider-buttons{
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
  }
}

.frontpage-slider .swiper-button-prev,.frontpage-slider .swiper-button-next {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f4f4f4;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.frontpage-slider .swiper-button-prev:hover, .frontpage-slider .swiper-button-next:hover {
    background-color: #e0e0e0;
}

.frontpage-slider .swiper-button-prev svg,.frontpage-slider .swiper-button-next svg {
  width: 19x;
  height: 16px;
}

.frontpage-slider .swiper-button-prev svg{
  transform: rotate(180deg);
}

.frontpage-slider .swiper-button-prev:after,.frontpage-slider .swiper-button-next:after{
  display: none;
}

.frontpage-slider .swiper-pagination-progressbar {
  height: var(--swiper-pagination-progressbar-size, 2px)!important;
  background-color: rgba(255, 255, 255, 0.5);
  width: 250px!important;
  left: 1.4rem!important;
  top: 50%!important;
  transition: margin-top 0.4s ease;
}
@media only screen and (min-width: 1025px) {
  .frontpage-slider .swiper-pagination-progressbar {
    left: 40px!important;
  }
}

.frontpage-slider .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background-color: var(--theme-white);
  height: 100%;
  transition: transform 0.3s ease;
  height: 2px;
}