.eweb-fancy-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  --f-transition-duration: 0.85s;
  --f-carousel-slide-width: 100%;
}

.eweb-fancy-slider .f-carousel__slide {
  width: 100%;
  height: 80vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.eweb-fancy-slider .eweb-fancy-slider {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}
.eweb-fancy-slider {
  background-color: rgba(227, 227, 227, 0.5) !important;
}
.eweb-fancy-slider .eweb-fancy-tx {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  text-align: left;
  padding: 7rem 5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease 0.4s,
    transform 0.8s ease 0.4s;
}
.eweb-fancy-slider .f-carousel__slide.is-selected .eweb-fancy-tx {
  opacity: 1;
  transform: translateY(0);
}
.f-carousel.has-dots {
  margin-bottom: 0px !important;
}
.eweb-fancy-slider .eweb-count {
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 0.75rem;
  text-align: left !important;
}

.eweb-fancy-slider .eweb-tt {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.eweb-fancy-slider .eweb-td {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  opacity: 0.85;
  max-width: 540px;
  line-height: 1.7;
}

.eweb-fancy-slider .f-carousel__dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 14px;
}
.f-carousel__dots li button {
  color: white !important;
}

.eweb-fancy-slider .f-carousel__dots li {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0.6;
  cursor: pointer;
}

.eweb-fancy-slider .f-carousel__dots li.is-current {
  background-color: #ffffff;
  opacity: 1;
  width: 10px;
}

.eweb-fancy-slider .f-button.is-prev,
.eweb-fancy-slider .f-button.is-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.eweb-fancy-slider .f-button.is-prev {
  left: 1.5rem;
}
.eweb-fancy-slider .f-button.is-next {
  right: 1.5rem;
}
.eweb-fancy-slider .f-button svg {
  margin-top: 8px;
}
@media (hover: hover) {
  .f-button:hover:not([disabled]) {
    color: var(--e-global-color-accent) !important;
  }
}

.eweb-fancy-slider .f-button.is-prev:hover,
.eweb-fancy-slider .f-button.is-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.eweb-fancy-slider .f-carousel__slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.eweb-fancy-slider .f-carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.eweb-fancy-slider {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .eweb-fancy-slider {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .eweb-fancy-slider {
    height: 430px;
  }
  .eweb-fancy-slider .eweb-fancy-tx {
    left: 24px;
    right: 24px;
    bottom: 120px !important;
  }
  .eweb-tt {
    font-size: 30px;
  }
}

/* === Page Carousel V2 ========================================================== */

.pcv2-wrap .f-carousel {
  --f-carousel-slide-width: calc((100% - 60px) / 3);
}

@media (max-width: 991px) {
  .pcv2-wrap .f-carousel {
    --f-carousel-slide-width: calc((100% - 30px) / 2);
  }
}

@media (max-width: 575px) {
  .pcv2-wrap .f-carousel {
    --f-carousel-slide-width: 100%;
  }
}

.pcv2-wrap .f-carousel__viewport {
  overflow: hidden;
}

.pcv2-wrap .f-carousel__slide {
  margin-right: 40px;
  height: auto;
  display: flex;
}

@media (max-width: 575px) {
  .pcv2-wrap .f-carousel__slide {
    margin-right: 0;
  }
}

.pcv2-wrap .f-carousel__slide > div {
  width: 100%;
}

.pcv2-card {
  background: #fff;
  height: 100%;
}

.pcv2-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}

.pcv2-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.pcv2-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcv2-wrap .f-button.is-prev,
.pcv2-wrap .f-button.is-next {
  transform: translateY(-50%);
  z-index: 1;
  width: 46px;
  padding: 0;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.3s;
}
.pcv2-wrap .f-button.is-prev,
.pcv2-wrap .f-button.is-next:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.pcv2-wrap .f-button svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}
