/* =========================================
   LOAN LOCATIONS
========================================= */

.loan-locations-section {
    --primary: #3867ce;
    --text: #102957;
    --muted: #394761;
    --light-blue: #f1f6ff;

    padding: 70px 20px;
    background: #f8fbff;
    overflow: hidden;
}


/* GRID
========================================= */

.loan-locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* CARD
========================================= */

.loan-location-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 238px;
    padding: 20px 15px 18px;

    background: #ffffff;
    border-radius: 14px;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(28, 67, 130, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.loan-location-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 35px rgba(28, 67, 130, 0.14);
}


/* ICON
========================================= */

.loan-location-icon {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #eaf2ff 0%,
            #f4f8ff 68%,
            #ffffff 69%
        );

    color: var(--primary);
}

.loan-location-icon svg {
    width: 62px;
    height: 62px;

    display: block;
}


/* CITY NAME
========================================= */

.loan-location-card h3 {
    margin: 0;

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;

    text-align: center;
}


/* BLUE LINE
========================================= */

.card-line {
    display: block;

    width: 24px;
    height: 2px;

    margin: 9px 0 10px;

    border-radius: 5px;

    background: var(--primary);
}


/* DESCRIPTION
========================================= */

.loan-location-card p {
    margin: 0;

    color: var(--muted);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;

    text-align: center;
}


/* ARROW
========================================= */

.loan-arrow {
    position: absolute;

    right: 15px;
    bottom: 13px;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    transition:
        transform 0.25s ease;
}

.loan-arrow svg {
    width: 24px;
    height: 24px;
}

.loan-location-card:hover .loan-arrow {
    transform: translateX(5px);
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1400px) {

    .loan-locations-section {
        padding: 80px 40px;
    }

    .loan-locations-grid {
        gap: 18px;
    }

    .loan-location-card {
        min-height: 255px;
        padding-top: 22px;
    }

    .loan-location-icon {
        width: 82px;
        height: 82px;
    }

    .loan-location-icon svg {
        width: 68px;
        height: 68px;
    }

    .loan-location-card h3 {
        font-size: 20px;
    }

    .loan-location-card p {
        font-size: 15px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .loan-locations-section {
        padding: 55px 40px;
    }

    .loan-locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .loan-location-card {
        min-height: 240px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .loan-locations-section {
        padding: 40px 40px;
    }

    .loan-locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .loan-location-card {
        width: 100%;
        min-height: 225px;

        padding-top: 18px;

        border-radius: 13px;
    }

    .loan-location-icon {
        width: 72px;
        height: 72px;
    }

    .loan-location-icon svg {
        width: 59px;
        height: 59px;
    }

    .loan-location-card h3 {
        font-size: 18px;
    }

    .loan-location-card p {
        font-size: 14px;
    }
}


/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 360px) {

    .loan-locations-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .loan-location-card {
        min-height: 220px;
    }
}