/*
|--------------------------------------------------------------------------
| TRN Diplomas Table
|--------------------------------------------------------------------------
*/

.cew-trn-dip {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f9f9f8;
}

.cew-trn-dip-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.cew-trn-dip-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0 0 32px 0;
}

/*
|--------------------------------------------------------------------------
| Table shell
|--------------------------------------------------------------------------
*/

.cew-trn-dip-wrap {
    overflow: hidden;
    border: 1px solid #bfc9c1;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cew-trn-dip-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.cew-trn-dip-table thead tr {
    background-color: #2D6A4F;
}

.cew-trn-dip-table thead th {
    padding: 16px;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cew-trn-dip-table tbody {
    background-color: #ffffff;
}

.cew-trn-dip-table tbody tr {
    border-top: 1px solid #bfc9c1;
    transition: background-color 0.2s ease;
}

.cew-trn-dip-table tbody tr:first-child {
    border-top: none;
}

.cew-trn-dip-table tbody tr:hover {
    background-color: #eeeeed;
}

.cew-trn-dip-table td {
    padding: 16px;
    font-size: 16px;
    line-height: 26px;
    color: #1a1c1c;
    vertical-align: middle;
}

.cew-trn-dip-level {
    display: block;
    font-weight: 700;
    color: #1a1c1c;
}

.cew-trn-dip-level-sub {
    display: block;
    font-size: 14px;
    color: #404943;
}

.cew-trn-dip-duration {
    font-style: italic;
    color: #404943;
}

.cew-trn-dip-status {
    display: inline-block;

    padding: 4px 8px;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    background-color: #b1f0ce;
    color: #002114;
}

/*
|--------------------------------------------------------------------------
| Responsive — stack each row into a labelled card
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .cew-trn-dip {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-trn-dip-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cew-trn-dip-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-trn-dip-table thead {
        /* accessible visual hide: header labels move onto each cell via data-label */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cew-trn-dip-table tbody tr {
        display: block;
        padding: 8px 0;
    }

    .cew-trn-dip-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        text-align: right;
    }

    .cew-trn-dip-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #404943;
        text-align: left;
    }

    .cew-trn-dip-level,
    .cew-trn-dip-level-sub {
        text-align: right;
    }

}
