/* ============================================
   TABLE STYLES - Lubega Institute
   ============================================ */

/* --- Table Card Container --- */
.table-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* --- Table Header / Title --- */
.table-card .title {
    background: #0f172a;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- Table Structure --- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

/* --- Table Headers --- */
th {
    background: #f1f5f9;
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* --- Table Cells --- */
td {
    padding: 12px 18px;
    border-bottom: 1px solid #eef2f6;
}

/* --- Hover Effect --- */
tbody tr:hover {
    background: #fafbfc;
}

/* --- Last Row No Border --- */
tbody tr:last-child td {
    border-bottom: none;
}

/* --- S.No Column --- */
.sno {
    width: 50px;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
}

/* --- Abbreviation Column --- */
.abbr {
    font-weight: 700;
    color: #0284c7;
}

/* --- Status Tags / Badges --- */
.tag {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Full Time Badge */
.tag-ft {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Weekend Badge */
.tag-we {
    background: #fef3c7;
    color: #b45309;
}

/* ============================================
   RESPONSIVE MOBILE STYLES
   ============================================ */

@media (max-width: 700px) {

    /* --- Stack Table on Mobile --- */
    table,
    thead,
    tbody,
    tr,
    td {
        display: block;
    }

    /* --- Hide Table Headers --- */
    thead {
        display: none;
    }

    /* --- Each Row Becomes a Card --- */
    tr {
        padding: 14px 18px;
        border-bottom: 2px solid #e2e8f0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }

    tr:last-child {
        border-bottom: none;
    }

    /* --- Each Cell Styled --- */
    td {
        border: none;
        padding: 3px 0;
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: 0.92rem;
    }

    /* --- Label Before Each Cell --- */
    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 0.75rem;
        text-transform: uppercase;
        min-width: 70px;
    }

    /* --- Hide S.No on Mobile --- */
    .sno {
        display: none;
    }

    /* --- First Cell (Course Name) Full Width --- */
    td:first-child {
        grid-column: 1 / -1;
        font-weight: 600;
        font-size: 1rem;
        padding-bottom: 5px;
        border-bottom: 1px dashed #e2e8f0;
        margin-bottom: 3px;
    }

    /* --- Icon Before Course Name --- */
    td:first-child::before {
        content: "📌";
        min-width: auto;
        color: #0284c7;
    }

}
