/*! Flickity Enhanced Navigation - Final Stable Version */
.flickity-enabled {
  position: relative;
}

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

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* ==================================================
   CIRCULAR PREV/NEXT BUTTONS â€” FIXED & CENTERED
   ================================================== */
.flickity-prev-next-button {
  position: absolute;
  top: 79%;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1px solid #d7be6c91;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Proper positioning using translate only for centering once */
.flickity-prev-next-button.previous {
  left: calc(50% - 66px); /* positions left button slightly left of center */
}

.flickity-prev-next-button.next {
  left: calc(50% + 3px); /* positions right button slightly right of center */
}

/* SVG arrows */
.flickity-prev-next-button svg {
  width: 40%;
  height: 40%;
  fill: #333;
  transition: transform 0.25s ease, fill 0.25s ease;
}

/* Hover animation (no jumping) */
.flickity-prev-next-button:hover {
  background: #fff;
  border-color: #c9b15a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.flickity-prev-next-button:hover svg {
  transform: scale(1.2);
  fill: #c9b15a;
}

/* Click effect */
.flickity-prev-next-button:active {
  transform: translateY(2px);
  opacity: 0.9;
}

.flickity-prev-next-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(215, 190, 108, 0.4);
}

/* Disabled state */
.flickity-prev-next-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==================================================
   DOT PAGINATION
   ================================================== */
.flickity-page-dots {
  position: absolute;
  width: 100%;
  top: 88%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-page-dots .dot {
  display: inline-block;
  width: 52px;
  height: 3px;
  margin: 0 6px;
  background: #d7be6c70;
  border-radius: 3px;
  opacity: 01;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
  background: #999a39;
  transform: scale(1.2);
}

/* ==================================================
   RESPONSIVE FIXES
   ================================================== */
@media (max-width: 992px) {
  .flickity-prev-next-button {
    width: 55px;
    height: 55px;
    bottom: 25px;
  }
  .flickity-prev-next-button.previous {
    left: calc(50% - 75px);
  }
  .flickity-prev-next-button.next {
    left: calc(50% + 20px);
  }
}

@media (max-width: 768px) {
  .flickity-prev-next-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
  }
  .flickity-prev-next-button.previous {
    left: calc(50% - 65px);
  }
  .flickity-prev-next-button.next {
    left: calc(50% + 15px);
  }
}

@media (max-width: 480px) {
  .flickity-prev-next-button {
    width: 45px;
    height: 45px;
    bottom: 15px;
  }
  .flickity-prev-next-button.previous {
    left: calc(50% - 55px);
  }
  .flickity-prev-next-button.next {
    left: calc(50% + 10px);
  }
}
