/* Loans & Financing Solutions section — all styles scoped under .loans */
.loans {
    --l-bg: #f6f8f3;
    --l-card: #fff;
    --l-ink: #0f2a1d;
    --l-muted: #55645b;
    --l-green: #1f6b34;
    --l-deep: #0d3b25;
    --l-tint: #e6f1e0;
    --l-line: #dfe8da;
    --l-shadow: 0 1px 2px rgba(15, 42, 29, .05), 0 12px 28px -14px rgba(15, 42, 29, .18);
    /* background: #f2f1ed; */
    color: var(--l-ink);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.loans * {
    box-sizing: border-box
}

.loans__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 28px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: stretch
}

/* Loan cards on the left, heading + photo on the right */
.loans__grid {
    order: 1
}

.loans__left {
    order: 2
}

/* Left column */
.loans__left {
    display: flex;
    flex-direction: column
}

.loans__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--l-green);
    font-weight: 600;
    font-size: 15px
}

.loans__eyebrow::after {
    content: "";
    height: 1px;
    width: 64px;
    background: linear-gradient(90deg, var(--l-green), transparent)
}

.loans__title {
    font-weight: 500;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.02em;
    font-family: var(--default-font);
    margin: 0 0 20px
}

.loans__title em {
    font-style: italic;
    color: var(--l-green)
}

.loans__lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--l-muted);
    margin: 0 0 28px;
    max-width: 44ch
}

.loans__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--l-deep);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 26px;
    border-radius: 999px;
    transition: gap .2s, box-shadow .2s
}

.loans__cta:hover {
    gap: 18px;
    box-shadow: 0 10px 24px -10px var(--l-deep)
}

.loans__cta:focus-visible,
.loans__card:focus-visible {
    outline: 3px solid var(--l-green);
    outline-offset: 3px
}

/* Photo: arch frame. Change object-position to re-focus the image */
.loans__photo {
    position: relative;
    margin-top: 40px;
    flex: 1;
    min-height: 280px;
    overflow: hidden;
    border-radius: 220px 220px 28px 28px;
    box-shadow: var(--l-shadow)
}

.loans__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 70%
}

.loans__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(13, 59, 37, .25))
}

/* Cards */
.loans__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start
}

.loans__card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--l-card);
    border: 1px solid var(--l-line);
    border-radius: 22px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--l-shadow);
    transition: transform .2s, border-color .2s
}

.loans__card:hover {
    transform: translateY(-3px);
    border-color: var(--l-green)
}

.loans__icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--l-tint);
    display: grid;
    place-items: center;
    color: var(--l-green)
}

.loans__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.loans__card h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 2px 0 8px;
    font-weight: 700;
    letter-spacing: -.01em
}

.loans__card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--l-muted)
}

/* Featured full-width card (Auto Loan) */
.loans__card--wide {
    grid-column: 1/-1;
    align-items: center;
    background: var(--l-deep);
    border-color: var(--l-deep);
    color: #fff
}

.loans__card--wide p {
    color: #c9dccd;
    max-width: 60ch
}

.loans__card--wide .loans__icon {
    background: rgba(255, 255, 255, .12);
    color: #bfe7c6
}

.loans__card--wide:hover {
    border-color: #bfe7c6
}

/* Responsive */
@media (max-width:980px) {
    .loans__wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 20px
    }

    .loans__left {
        order: 1
    }

    /* heading first on tablet/mobile */
    .loans__grid {
        order: 2
    }

    .loans__photo {
        min-height: 340px;
        flex: none
    }
}

@media (max-width:620px) {
    .loans__grid {
        grid-template-columns: 1fr
    }

    .loans__card {
        padding: 20px
    }
}


.our-blog {
    position: relative;
    padding: 40px 0px 50px;
    isolation: isolate;
    background: #f2f1ed;
}

.our-blog::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background:
        linear-gradient(45deg,
            rgba(0, 123, 255, 0.45) 0%,
            rgba(0, 123, 255, 0) 30%,
            transparent 55%); */
    background-attachment: fixed;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.our-blog .container {
    position: relative;
    z-index: 1;
}