
.loans-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.matrix-header {
    padding-bottom:20px;
    border-bottom:1px solid rgb(255, 255, 255);
    margin-bottom:20px;
}

.matrix-header h1{
    font-size:34px;
    color:#fff;
    margin-bottom:10px;
    
}

.matrix-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    font-weight: 800;
    color: #f7faf7;
}

.matrix-title i {
    color: #083d22;
    font-size: 1.15em;
}

.matrix-description {
    max-width: 780px;
    color: rgba(235, 247, 238, 0.92);
    line-height: 1.75;
    font-size: 15.5px;
}


.loan-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 999px;
    font-weight: 700;
    color: #fafafa;
}


.court-section {
    background: rgba(13, 38, 24, 0.418);
    border: 1px solid rgba(117, 216, 155, 0.13);
    border-radius: 28px;
}

.section-title-wrapper{
    display:flex;
    justify-content:center;
    width:100%;
    margin-bottom:1.8rem;
}


.section-title{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;

    width:100%;
    padding: 18px 20px;

    background:linear-gradient(90deg,#1d6b4b,#49ad82);
    color:#fff !important;

    border-radius:12px;
    border-left:6px solid #6af3aa;
    border-bottom: solid rgba(255,255,255,.15);

    font-size:1.6rem;
    font-weight:700;
    letter-spacing:.5px;

    text-transform:uppercase;

    box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.loan-category {
    background: rgba(25, 51, 36, 0.973);
    border: 1px solid rgba(110, 196, 146, 0.22);

    font-size: 1rem;
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:0;
}

.loan-category i,
.loan-table th i,
.loan-table .loan-type i {
    color: #ffffff;
}

.loan-table td,
.loan-table td p {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
}

.loan-table td p {
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 24px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(118, 187, 144, 0.18);
}

.loan-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1rem;
    table-layout: fixed;
}

/* Column sizing: only pin first + last columns so both the
   7-col (Loan Type + 5 years + Co-makers) and 5-col Occasional
   (Loan Type + 3 years + Co-makers) tables share space fairly.
   Pinning every column with % widths squeezed Co-makers and made
   DIV-CAPITAL wrap/overlap the next row. */
.loan-table th:first-child,
.loan-table td:first-child {
    width: 32%;
}

.loan-table th:last-child,
.loan-table td:last-child {
    width: 140px;
    min-width: 140px;
    white-space: nowrap;
    overflow: visible;
}

.loan-table th,
.loan-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(118, 187, 144, 0.18);
    vertical-align: middle;
    height: auto;
    line-height: 1.35;
}

.loan-table th {
    background: rgba(18,80,60,0.9);;
    color: #ffffff;

    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.loan-table th.loan-name {
    width: auto;
}

.loan-table th.loan-eligibility {
    width: auto;
}

.loan-table th.loan-interest {
    width: auto;
    text-align: center;
    justify-content: center;
}

.loan-table th.loan-comakers {
    width: auto;
}

/* Occasional table (Loan Type + 3 year cols + Co-makers = 5 cols) */
.loan-table thead tr:last-child th:only-of-type,
.loan-table thead tr:last-child th:first-child:last-child {
    width: auto;
}

.loan-table th i {
    margin-right: 8px;
    line-height: 1;
}

.loan-table td {
    background: #ffffff;
    color: #121312 !important;
}

.loan-table td * {
    color: #121312 !important;
}

.loan-table td p {
    margin: 0;
}

.loan-table tbody tr:nth-child(even) td {
    background: #f1f8f3;
}

.loan-table tbody tr:hover td {
    background: #a5b6af;
}

.loan-table .loan-type {
    text-align: left;
    font-weight: 800;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: middle;
}

.loan-table .loan-rate,
.loan-table .loan-guarantor,
.loan-table .center {
    text-align: center;
    white-space: nowrap;
    line-height: 1.35;
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .loans-page-content {
        padding: 22px 18px 14px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-title,
    .loan-category {
        width: 100%;
        justify-content: center;
    }

    .loan-table {
        min-width: 860px;
    }
}

@media (max-width: 768px) {
    .loans-page-overlay {
        width: 100%;
    }

    .matrix-title {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .matrix-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .court-section {
        border-radius: 18px;
        overflow: hidden;
    }

    .loan-table th,
    .loan-table td {
        padding: 12px 10px;
    }

    .loan-table {
        font-size: 0.92rem;
    }

    .loan-table .loan-type {
        gap: 6px;
    }
}

@media (max-width: 560px) {
    .loans-page-content {
        padding: 14px 10px 10px;
    }

    .section-title {
        font-size: 1.08rem;
        gap: 10px;
        padding: 12px;
    }

    .loan-category {
        font-size: 0.92rem;
        padding: 12px;
    }

    .loan-table {
        min-width: 680px;
    }

    .loan-table th,
    .loan-table td {
        padding: 10px 8px;
        font-size: 0.84rem;
    }
}
