.loans-banner {
    max-width: 1400px;
    background-image: url("../images/loans-banner.jpg");
    background-size: cover;
    width: 100%;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loans-banner .banner-content {
    width: 80%;
    margin: 0 auto;
}

.loans-banner .banner-title {
    color: white;
    margin: 0;
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.loans-banner .banner-description {
    margin: 0;
    text-align: center;
    font-size: 0.75rem;
    color: white;
}

.secured-loan-title {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #28af60;
}

.loan {
    max-width: 1300px;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 2rem;
}

.loan-item {
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.loan-item-image-container {
    /* border: 0.5px solid gray; */
    border-radius: 5px 5px 0 0;
    padding: 1rem;
    text-align: center;
}

.loan-item-image {
    width: 10rem;
    height: 10rem;
}

.loan-item-details {
    /* border-left: 0.5px solid gray;
    border-right: 0.5px solid gray;
    border-bottom: 0.5px solid gray; */
    border-radius: 0 0 5px 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.loan-item-title {
    color: #28af60;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.loan-item-description {
    margin: 0;
    text-align: justify;
}

.loan-item-details-title {
    color: #28af60;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.loan-item-details-description {
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: justify;
}

.table-container {
    overflow: scroll;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

th, td {
    padding: 0.25rem;
}

/* Tablet design */
@media(min-width: 768px) {
    .loans-banner {
        height: 15rem;
    }
    
    .loans-banner .banner-title {
        font-size: 1.5rem;
    }
    
    .loans-banner .banner-description {
        font-size: 1rem;
    }

    .loan {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 2rem;
    }
}

/* Desktop design */
@media(min-width: 992px) {
    .loans-banner {
        height: 24rem;
        margin-left: auto;
        margin-right: auto;
    }

    .loans-banner .banner-title {
        font-size: 1.75rem;
    }
    
    .loans-banner .banner-description {
        font-size: 1.25rem;
    }

    .loan {
        grid-template-columns: auto auto auto;
        margin-right: auto;
        margin-left: auto;
    }

    .loan-item-image {
        width: 12rem;
        height: 12rem;
    }

    .loan-item-details {
        height: 20rem;
    }
    .loan-item
    {
        display: flex;
        align-items: center;
        padding: 1rem;
    }
}
