:root {
    --text-dark: #333;
    --text-light: #777;
    --border-color: #eee;
    --hover-bg: #f9fafb;
    --bg-color: #f0f2f5;
}


body {
    margin: 0;
    padding: 0;
}


.loan-card-wrapper {
    /*background-color: var(--bg-color);*/
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    color: var(--text-dark);
    box-sizing: border-box;
}

.loan-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1400px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-content {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    background-color: #fff;
}

.info-item:hover {
    background-color: #f0f7ff !important;
}

.info-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.info-value {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}


.info-item {
    width: 100%;
    border-left: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 20px;
}

.info-item .info-label {
    margin-bottom: 0;
}

.info-item .info-value {
    text-align: left;
    max-width: 60%;
}

.info-item:nth-child(even) {
    background-color: var(--hover-bg);
}


@media (min-width: 600px) {
    .info-item {
        width: 50%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 30px 25px;
        background-color: #fff;
    }

    .info-item .info-label {
        margin-bottom: 15px;
    }

    .info-item .info-value {
        text-align: center;
        max-width: 100%;
    }

    .info-item:nth-child(odd) {
        border-left: 1px solid var(--border-color);
    }

    .info-item:nth-child(even) {
        border-left: none;
    }


    .info-item:nth-child(4n+2), .info-item:nth-child(4n+3) {
        background-color: var(--hover-bg);
    }

    .info-item:nth-child(4n+1), .info-item:nth-child(4n+4) {
        background-color: #fff;
    }
}


@media (min-width: 992px) {
    .info-item {
        width: 33.333%;
        background-color: #fff;
    }

    .info-item {
        border-left: 1px solid var(--border-color);
    }

    .info-item:nth-child(3n) {
        border-left: none;
    }


    .info-item:nth-child(odd) {
        background-color: var(--hover-bg);
    }

    .info-item:nth-child(even) {
        background-color: #fff;
    }
}


@media (min-width: 1200px) {
    .info-item {
        width: 25%;
        background-color: #fff;
    }

    .info-item {
        border-left: 1px solid var(--border-color);
    }

    .info-item:nth-child(3n) {
        border-left: 1px solid var(--border-color);
    }

    .info-item:nth-child(4n) {
        border-left: none;
    }


    .info-item:nth-child(8n+1), .info-item:nth-child(8n+3), .info-item:nth-child(8n+6), .info-item:nth-child(8n+8) {
        background-color: #fff;
    }

    .info-item:nth-child(8n+2), .info-item:nth-child(8n+4), .info-item:nth-child(8n+5), .info-item:nth-child(8n+7) {
        background-color: var(--hover-bg);
    }
}
