/* =========================================
LENDERS SLIDER SECTION (PRODUCTION FINAL)
========================================= */

/* =========================
DESKTOP
========================= */

.lenders-slider-section {
    position: relative;
    min-height: 550px;
    padding: 80px 20px;
    overflow: hidden;
}

/* BACKGROUND IMAGE */
.lenders-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* OVERLAY (optional) */
.lenders-slider-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* CONTENT WRAPPER */
.lenders-slider-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;                  /* 🔥 REQUIRED */
    max-width: 1100px;
    margin: 0 auto;

    display: flex;                /* 🔥 CENTER FIX */
    justify-content: center;      /* 🔥 CENTER FIX */
    /*outline: 2px solid red;*/
}

/* TOP BUTTON */
.lenders-slider-top {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* MAIN CARD */
.lenders-slider {
    width: 100%;                  /* 🔥 PREVENT RIGHT SHIFT */
    max-width: 1000px;            /* 🔥 CONTROL WIDTH */

    margin: 0 auto;               /* 🔥 CENTER FIX */

    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    overflow: visible;
}

/* GRID */
.lenders-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 25px;
    justify-items: center;
    align-items: center;
}

/* CARD ITEM */
.lender-item {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 180px;
    height: 110px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all 0.3s ease;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

/* STAGGER */
.lender-item:nth-child(1) { animation-delay: 0.1s; }
.lender-item:nth-child(2) { animation-delay: 0.2s; }
.lender-item:nth-child(3) { animation-delay: 0.3s; }
.lender-item:nth-child(4) { animation-delay: 0.4s; }
.lender-item:nth-child(5) { animation-delay: 0.5s; }
.lender-item:nth-child(6) { animation-delay: 0.6s; }

/* IMAGE */
.lender-item img {
    max-width: 120px;
    max-height: 150px;
    object-fit: contain;
    transition: 0.3s ease;
}

/* HOVER INTERACTION */
.lenders-track:hover .lender-item {
    opacity: 0.25;
}

.lender-item:hover {
    opacity: 1 !important;
    z-index: 20;

    transform: translateY(-5px) scale(1.05);

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.lender-item:hover img {
    transform: scale(1.8);
}

/* ANIMATION */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
TABLET
========================= */

@media (max-width: 1024px) {

    .lenders-track {
        grid-template-columns: repeat(3, 1fr);
    }

    .lender-item {
        max-width: 160px;
        height: 100px;
    }

    .lender-item img {
        max-width: 110px;
    }
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {

    .lenders-slider-section {
        min-height: auto;
        padding: 60px 15px;
    }

    .lenders-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .lender-item {
        max-width: 140px;
        height: 70px;
    }

    .lender-item img {
        max-width: 100px;
    }

    .lenders-slider {
        padding: 25px 15px;
    }

    .lenders-slider-top {
        top: 10px;
    }
}