.section-loans {
    background-color: #FAFAFA;
    padding: 30px 5%;
    overflow: hidden;
    border-radius: 40px 40px 0px 0px;
}


.text-section {

    margin: 0 auto;
    padding: 2rem;
}

.content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 400;
    color: #000000;
    margin: 0;
}


.loans-section {
    background-color: #00A0FA;
    padding: 60px 0;
    color: white;
    border-radius: 24px;
    margin: 0px 20px 10rem 20px;
    height: 115vh;
}

.loans-header {
    margin-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.loans-header h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.loans-intro {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 60px;
}

.loans-intro h3 {
    font-size: 2.5rem;
    font-weight: 500;
    flex: 1;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.loans-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.loans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.loan-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0) 100%);
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-overlay h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.find-out-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.find-out-more:hover {
    background: rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.find-out-more svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Hover Effects */
.loan-card:hover {
    transform: scale(1.5);
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.loan-card:hover .card-bg {
    transform: scale(1.1);
}

.loan-card:hover .card-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.2) 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .loans-header h2 {
        font-size: 3.5rem;
    }

    .loans-intro {
        flex-direction: column;
        gap: 30px;
    }

    .loans-intro h3 {
        font-size: 2rem;
    }

    .loans-grid {
        gap: 20px;
    }

    .loan-card:hover {
        transform: scale(1.3);
    }

    .loans-section {
        height: auto;
        margin: 0px 40px 40px 40px;
    }
}

@media (max-width: 991px) {
    .content {
        font-size: 2rem;
    }

    .loans-section {
        padding: 60px 0;
    }

    .loans-header h2 {
        font-size: 2.8rem;
    }

    .loans-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .loan-card:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {

    .loans-section {
        margin: 0px 4px;
    }

    .content {
        font-size: 1.5rem;
    }

    .text-section {
        padding: 1rem;
    }

    .loans-header h2 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .loans-intro h3 {
        font-size: 1.5rem;
        font-weight: 400;
    }

    .loans-intro {
        gap: 20px;
        margin-top: 10px;
    }

    .loans-intro p {
        font-size: 0.8rem;
        line-height: 1.6;

    }
}

@media (prefers-reduced-motion: reduce) {

    .loan-card,
    .card-bg,
    .card-overlay,
    .find-out-more {
        transition: none;
    }

    .loans-header h2,
    .loans-intro h3,
    .loans-intro p,
    .loan-card {
        animation: none;
    }
}