.flickity-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  --slider-min-height: 600px;
}
.flickity-wrap .flickity-viewport,
.flickity-slide,
.flickity-slide img {
  min-height: var(--slider-min-height);
}

.flickity-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flickity-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

/* Content overlay - properly vertically centered */
.flickity-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding: 40px;
  text-align: center;
  z-index: 10;
  max-width: 800px;
  width: 90%;
  background-color: rgba(0, 0, 0, 0.4); /* optional for contrast */
  border-radius: 10px;
}

/* Typography */
.flickity-wrap h2,
.flickity-wrap p {
  margin: 0 0 10px;
  color: #fff !important;
}

/* ============================================= */
/* Fix: Position prev/next buttons over the image */
/* ============================================= */
.flickity-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* Remove background circle */
  border: none;
  width: 40px;
  height: 40px;
  z-index: 20;
  cursor: pointer;
  fill: #fff;
  transition: opacity 0.3s ease;
  opacity: 0.8;

}
.flickity-button svg {
  width: 30px;
  height: 30px;
}

.flickity-button:hover {
  opacity: 1;
}

.flickity-prev-next-button.previous {
  left: 10px;
}

.flickity-prev-next-button.next {
  right: 10px;
}

/* Optional: Make arrow icon slightly smaller and centered */
.flickity-button-icon {
  width: 100%;
  height: 100%;
}

/* ========================== */
/* Fix: Pager position & style */
/* ========================== */
.flickity-page-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.flickity-page-dots li {
  background-color: #fff;
  margin: 0 5px !important;
  height: 6px !important;
  width: 12px !important;
  border-radius: 8px !important;
  opacity: 1;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.flickity-page-dots li.is-selected {
  width: 56px !important;
}

.flickity-page-dots li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #f6f6f6;
}

.flickity-page-dots li.is-selected:before {
  animation: bulletLoader var(--slider-ani-speed, 3s) forwards;
}

@keyframes bulletLoader {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Responsive: shrink slide height + padding */
@media (max-width: 768px) {
  .flickity-slide-content {
    padding: 20px;
    width: 95%;
    font-size: 14px;
  }

  .flickity-wrap .flickity-viewport,
  .flickity-slide,
  .flickity-slide img {
    min-height: 400px;
  }
}
