/* =========================
   Past developments slider
========================= */

.past-developments-slider {
  width: 100%;
  background: #fff;
  position: relative;
  padding-bottom: 120px;
}

/* Banner */
.past-developments-slider__banner {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: var(--color-purple);
  padding: 100px 0 160px;
  text-align: center;
}

.past-developments-slider__title {
  font-family: var(--font-heading);
  font-size: var(--font-h3);
  color: #fff;
  font-weight: 700;
}

.past-developments-slider__description {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: var(--font-body);
  text-align: center;
}

/* Layout wrapper */
.past-developments-slider__carousel {
  position: relative;
  max-width: 1160px;
  margin: -120px auto 0;
}

/* CLIPPER hides the 3rd slide peek */
.past-developments-slider__clip {
  overflow: hidden;         /* ✅ hides peeking slide */
  padding: 14px;            /* ✅ gives shadow room so it doesn't get cut */
  margin: -14px;            /* keeps layout same size */
}

/* Swiper itself must NOT clip shadow */
.past-developments-slider__swiper {
  overflow: visible;
}

/* Cards */
.past-card {
  background: #fff;
  box-shadow: 0px 3px 6px #00000029;
  display: flex;
  flex-direction: column;
}

.past-card__image {
  height: 350px;
  overflow: hidden;
}

.past-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-card__content {
  padding: 40px;
}

.past-card__status {
  font-family: var(--font-heading);
  font-size: var(--font-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.past-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-h4);
  font-weight: 700;
  line-height: var(--lh-normal);
  color: var(--color-purple);
  margin-bottom: var(--space-xs);
}

/* Desktop arrows */
.past-developments-slider__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 9999;
}

.past-developments-slider__arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.past-developments-slider__arrow svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
  stroke-width: 3;
  transition: 0.2s ease;

  /* ✅ Force visible even if older CSS hid it */
  display: block !important;
}

.past-developments-slider__arrow:hover svg {
  stroke: var(--color-purple);
}

/* Push arrows outward on desktop */
@media (min-width: 1025px) {
  .past-developments-slider__arrow.prev { transform: translateX(-40px); }
  .past-developments-slider__arrow.next { transform: translateX(40px); }
}

/* Mobile/tablet */
@media (max-width: 1024px) {
  .past-developments-slider__banner { padding: 50px 0 80px; }
  .past-developments-slider__description { padding: 0 30px; }
  .past-developments-slider__carousel { margin: -60px auto 0; max-width: 100%; }
  .past-card__image { height: 260px; }

  /* Hide arrows on <=1024 */
  .past-developments-slider__arrows { display: none; }
}

@media (max-width: 768px) {
  .past-developments-slider__description { padding: 0 20px; }
  .past-developments-slider__carousel { margin: -40px auto 0; }
  .past-card__image { height: 220px; }
}


/* ===============================
   PAST DEVELOPMENTS – ARROW RESET
   Pure icon arrows, no background
=============================== */

.past-developments-slider__arrow {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 40px;
  height: 40px;
}

/* Kill any pseudo elements creating blocks */
.past-developments-slider__arrow::before,
.past-developments-slider__arrow::after {
  content: none !important;
  display: none !important;
}

/* SVG chevron styling */
.past-developments-slider__arrow svg {
  width: 42px;
  height: 42px;
  display: block !important;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  fill: none;
  background: none !important;
}

/* Make sure nothing wraps the arrow visually */
.past-developments-slider__arrows,
.past-developments-slider__arrow {
  background: none !important;
}


/* ============================================================
   PAST DEVELOPMENTS — FORCE ALL CARDS TO SAME HEIGHT
============================================================ */

/* Make Swiper make all slides the same height */
#pastDevSwiper .swiper-wrapper,
#pastDevSwiper .swiper-slide {
  height: auto;
  align-items: stretch; /* key: same height columns */
}

/* Force each card to stretch to slide height */
#pastDevSwiper .past-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Make content take remaining space and push button down */
#pastDevSwiper .past-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;              /* fills available height */
}

/* If a button exists, lock it to the bottom */
#pastDevSwiper .past-card__content .btn {
  margin-top: auto;
}

@media (min-width: 1025px) {
  #pastDevSwiper .past-card {
    min-height: 620px; /* adjust to taste */
  }
}

/* ============================================================
   PAST DEVELOPMENTS — PUSH ARROWS FURTHER OUT (DESKTOP)
============================================================ */
@media (min-width: 1025px) {

  .past-developments-slider__arrow.prev {
    transform: translateX(-80px); /* move left arrow further left */
  }

  .past-developments-slider__arrow.next {
    transform: translateX(80px);  /* move right arrow further right */
  }

}
