/* ============================================================
   NewLP Projects Section — recent projects slider (Splide)
   Fonts & colors inherit from the Elementor global theme styles
   (--e-global-color-*, --e-global-typography-*).
   ============================================================ */

.newlp-projects {
    width: 100%;
    max-width: var(--newlp-max-width, 1280px);
    margin: 0 auto;
    padding: 70px 40px;
}

/* ── Header ────────────────────────────────────────────────── */

.newlp-projects__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.newlp-projects__eyebrow {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--e-global-color-secondary);
}

.newlp-projects__title {
    margin: 0;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--e-global-color-primary);
}

.newlp-projects__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 22px;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: 8px;
    background: transparent;
    color: var(--e-global-color-secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.newlp-projects__all::after {
    content: "→";
    font-weight: 400;
    transition: transform 0.25s ease;
}

.newlp-projects__all:hover {
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-accent, #fff);
}

.newlp-projects__all:hover::after {
    transform: translateX(4px);
}

/* ── Cards ─────────────────────────────────────────────────── */

.newlp-projects__card {
    display: flex;
    flex-direction: column;
}

.newlp-projects__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    /* Placeholder colour while no image has been chosen yet */
    background: #e9eef5;
}

.newlp-projects__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newlp-projects__card-title {
    margin: 0 0 4px;
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.3;
    color: var(--e-global-color-primary);
}

.newlp-projects__card-location {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--e-global-color-primary);
    opacity: 0.6;
}

.newlp-projects__card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.newlp-projects__card-meta {
    font-size: 12px;
    line-height: 1.4;
    color: var(--e-global-color-primary);
    opacity: 0.65;
}

.newlp-projects__card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-accent, #fff);
    text-decoration: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.newlp-projects__card-arrow svg {
    width: 16px;
    height: 16px;
}

.newlp-projects__card-arrow:hover {
    filter: brightness(1.1);
    transform: translateX(2px);
}

/* ── Pagination dots ───────────────────────────────────────── */

/* Room for the pagination dots below the track */
.newlp-projects__slider {
    padding-bottom: 30px;
}

.newlp-projects .splide__pagination li {
    margin-top: -4px;
}

.newlp-projects .splide__pagination__page {
    background: var(--e-global-color-primary);
    opacity: 0.25;
    margin: 0;
    transition: opacity 0.2s ease;
    padding: 0;
}

.newlp-projects .splide__pagination {
    background: #f7f7f7;
    border: 1px solid #1957b633;
    height: 30px;
    width: fit-content;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    bottom: -30px;
}

@media (max-width: 768px) {
    .newlp-projects .splide__pagination {
        gap: 7px;
        width: 100%;
        bottom: -27%;
        display: flex;
        justify-content: space-evenly;
    }
}

.newlp-projects .splide__pagination__page.is-active {
    background: var(--e-global-color-primary);
    opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 767px) {
    .newlp-projects {
        padding: 48px 20px;
    }

    .newlp-projects__head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 22px;
    }
}