/* ============================================================
   BASE WRAPPER
============================================================ */
.developments-slider {
    width: 100%;
    background: #FFFFFF;
    position: relative;
}

/* ============================================================
   PURPLE BANNER
============================================================ */
.developments-slider__banner {
    width: 100%;
    background: #4A1C60;
    padding: 100px 0 160px;
    text-align: center;
}

.developments-slider__title {
    font-family: "Merriweather", serif;
    font-size: 25px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 20px;
    text-align: center;
}

.developments-slider__description {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   TRACK WRAPPER (image + arrows)
============================================================ */
.developments-slider__track {
    width: 100%;
    margin-top: -120px; /* slide overlaps banner */
    overflow: visible !important; /* 💥 allows arrows outside image */
    position: relative; /* arrows anchor here */
}

/* ============================================================
   SWIPER CONTAINER
============================================================ */
.developmentsSwiper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* REQUIRED for Swiper functionality */
}

/* ============================================================
   IMAGE
============================================================ */
.developments-slide__image {
    width: 100%;
    height: 622px;
    overflow: hidden;
}

.developments-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   WHITE CARD OVERLAY
============================================================ */
.developments-slide__card {
    width: 450px;
    background: #FFFFFF;
    padding: 40px 40px;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* STATUS */
.developments-slide__status {
    font-family: "Merriweather", serif;
    font-size: 14px;
    color: #BD9869;
    text-transform: uppercase;
    letter-spacing: 1.03px;
    margin-bottom: 12px;
    text-align: left;
}

/* TITLE */
.developments-slide__title {
    font-family: "Merriweather", serif;
    font-size: 25px;
    line-height: 32px;
    color: #4A1C60;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

/* TEXT */
.developments-slide__text {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #1C1D1F;
    margin-bottom: 10px;
    text-align: left;
}

/* BUTTON */
.developments-slide__card .btn {
    display: inline-block;
    padding: 8px 40px;
    font-family: "Merriweather", serif;
    font-size: 12px;
    font-weight: 700;
    color: #4A1C60;
    background: #FFFFFF;
    border: 1px solid #BD9869;
    letter-spacing: 1.03px;
    text-transform: uppercase;
    transition: 0.25s;
    text-decoration: none;
}
.developments-slide__card .btn:hover {
    background: #BD9869;
    color: white;
    text-decoration: none;
}

/* ============================================================
   ARROWS — OUTSIDE THE IMAGE, IN WHITE SPACE
============================================================ */
.developments-prev,
.developments-next {
    position: absolute;
    top: 50%;                                   /* vertically centered */
    transform: translateY(-50%);
    z-index: 1000;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* 👇 adjust these to move arrows closer/further */
.developments-prev  { left: calc(50% - 700px); }  /* left arrow in white space */
.developments-next  { right: calc(50% - 700px); } /* right arrow in white space */

/* GOLD CHEVRON ICONS */
.developments-prev::after,
.developments-next::after {
    content: "";
    width: 16px;
    height: 16px;
    border-top: 3px solid #BD9869;
    border-right: 3px solid #BD9869;
    display: block;
}

.developments-prev::after  { transform: rotate(-135deg); }
.developments-next::after  { transform: rotate(45deg); }

/* ============================================================
   RESPONSIVE — FINAL VERSION
   Arrows disappear at 1024px and below
============================================================ */

/* Tablet & Mobile (≤ 1024px): REMOVE ARROWS COMPLETELY */
@media (max-width: 1024px) {

    /* hide arrows fully */
    .developments-prev,
    .developments-next {
        display: none !important;
    }

    .developments-slide__image {
        height: 500px; /* increased slightly for nicer ratio */
    }

    .developments-slide__card {
        width: 90%;
        padding: 40px 30px;
    }

    /* KEEP TEXT LEFT ALIGNED */
    .developments-slide__title,
    .developments-slide__text,
    .developments-slide__status {
        text-align: left;
    }
}

/* Mobile (≤ 767px) — refine sizing */
@media (max-width: 767px) {

    .developments-slide__image {
        height: 420px;
    }

    .developments-slide__card {
        width: 90%;
        padding: 30px 25px;
    }

    /* still left aligned */
    .developments-slide__title,
    .developments-slide__text,
    .developments-slide__status {
        text-align: left;
    }
}

/* ================================================
   TABLET & SMALL LAPTOP (≤1024px)
===================================================*/
@media (max-width: 1024px) {

    /* More purple below, a bit less on top */
    .developments-slider__banner {
        padding: 70px 0 190px;   /* top / sides / bottom */
    }

    /* Add side padding around title + description */
    .developments-slider__header {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 40px;         /* ← this is the key bit */
        box-sizing: border-box;
    }

    .developments-slider__title {
        font-size: 23px;
        line-height: 1.3;
    }

    /* Let the copy span full header width, not a fixed max */
    .developments-slider__description {
        max-width: none;
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ================================================
   MOBILE (≤767px)
===================================================*/
@media (max-width: 767px) {

    /* Slightly tighter top, still generous bottom */
    .developments-slider__banner {
        padding: 60px 0 180px;
    }

    /* Stronger side padding on very small screens */
    .developments-slider__header {
        max-width: 100%;
        padding: 0 24px;
    }

    .developments-slider__title {
        font-size: 21px;
        line-height: 1.3;
    }

    .developments-slider__description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Hide arrows only when image touches edges (≤900px) */
@media (max-width: 900px) {
    .developments-prev,
    .developments-next {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Arrows visible above 900px */
@media (min-width: 901px) {
    .developments-prev,
    .developments-next {
        display: block !important;
        opacity: 1 !important;
    }
}
/* ============================================================
   WHITE CARD — FIXED CONSISTENT SIZE
============================================================ */
.developments-slide__card {
    width: 420px;               /* consistent width */
    min-height: 360px;    
    height: auto;          /* consistent height */
    background: #FFFFFF;
    padding: 20px 36px;         /* reduced padding */
    box-sizing: border-box;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* FIXES spacing */
    gap: 12px;
}

/* STATUS */
.developments-slide__status {
    margin: 20px 0 10px;
}

/* TITLE */
.developments-slide__title {
    margin: 0px 0 10px;
}

/* DESCRIPTION */
.developments-slide__text {
    margin: 0 0 0px;
    flex-grow: 1;                /* pushes content cleanly */
}

/* BUTTON (unchanged) */
.developments-slide__card .btn {
    align-self: flex-start;      /* keeps button left aligned */
}

/* ============================================================
   WHITE CARD — SMALLER, CLEANER, TIGHTER
============================================================ */
.developments-slide__card {
    width: 380px;            /* smaller width */
    min-height: 300px;       /* reduced height */
    background: #FFFFFF;
    padding: 18px 26px;      /* reduced padding */
    box-sizing: border-box;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;               /* much tighter spacing */
}

/* STATUS */
.developments-slide__status {
    margin: 10px 0 10px;        /* smaller */
}

/* TITLE */
.developments-slide__title {
    margin: 0 0 6px;        /* smaller */
}

/* DESCRIPTION */
.developments-slide__text {
    margin: 0 0 6px !important;  /* stops big gap */
    flex-grow: 1;                /* pushes button down cleanly */
}

/* BUTTON */
.developments-slide__card .btn {
    align-self: flex-start;
}

/* ============================================================
   TYPOGRAPHY UPDATE — USING GLOBAL VARIABLES ONLY
   (No layout changes, no spacing changes)
============================================================ */

/* Banner heading */
.developments-slider__title {
    font-family: var(--font-heading);
    font-size: var(--font-h2);          /* replaces fixed 25px */
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

/* Banner description */
.developments-slider__description {
    font-family: var(--font-body-family);
    font-size: var(--font-body);
    line-height: var(--lh-relaxed);
    color: var(--color-white);
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Status label */
.developments-slide__status {
    font-family: var(--font-heading);
    font-size: var(--font-small);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* Slide title */
.developments-slide__title {
    font-family: var(--font-heading);
    font-size: var(--font-h3);          /* replaces 25px */
    line-height: var(--lh-normal);
    color: var(--color-purple);
    font-weight: 700;
}

/* Slide body text */
.developments-slide__text {
    font-family: var(--font-body-family);
    font-size: var(--font-body);
    line-height: var(--lh-relaxed);
    color: var(--color-black);
}

/* CTA button — keep EXACT look but update colours via global vars */
.developments-slide__card .btn {
    font-family: var(--font-heading);
    font-size: var(--font-small);
    color: var(--color-purple);
    border-color: var(--color-gold);
}

.developments-slide__card .btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* FORCE ALL SLIDE CARDS TO SAME HEIGHT */
.developments-slide__card {
    width: 420px;                          /* keep your size */
    height: 360px;                         /* 🔥 pick your universal height */
    max-height: 360px;
    overflow: hidden;                      /* prevent layout break */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Push CTA to bottom for consistent spacing */
.developments-slide__card .btn {
    margin-top: auto;                      /* forces button alignment */
}

@media (max-width: 1024px) {
    .developments-slide__card {
        width: 320px;
        height: 280px;

        padding: 24px;              /* reduced padding */
        gap: 6px;                   /* tighter spacing */
    }

    .developments-slide__title {
        font-size: 20px;
    }

    .developments-slide__text {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 767px) {
    .developments-slide__card {
        width: 260px;
        height: 230px;

        padding: 18px;
        gap: 4px;
    }

    .developments-slide__title {
        font-size: 18px;
    }

    .developments-slide__text {
        font-size: 13px;
        line-height: 1.4;
    }
}

.developments-slide__card {
    aspect-ratio: 1 / 1;      /* enforce square */
    height: auto;             /* allow width to drive height */
}


.developments-slider__banner {
    width: 100vw !important;
    margin-left: 50%;
    transform: translateX(-50%);
}
