﻿/* =========================================================
               ISM LEARNING PAGE
               ========================================================= */
.ism-learning-page {
    width: 100%;
    padding: 25px 15px 35px;
    margin: 0;
    background: #f5f8fb;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

    .ism-learning-page *,
    .ism-learning-page *::before,
    .ism-learning-page *::after {
        box-sizing: border-box;
    }


/* =========================================================
               MAIN CONTAINER
               ========================================================= */

.ism-learning-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
               SECTION HEADER
               ========================================================= */

.ism-learning-section-head {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d5e0e8;
}

.ism-learning-label {
    display: block;
    margin-bottom: 3px;
    color: #64727e;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ism-learning-section-head h2 {
    margin: 0;
    padding: 0;
    color: #003b6f;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
}


/* =========================================================
               COURSE COUNT
               ========================================================= */

.ism-learning-course-count {
    display: inline-block;
    flex-shrink: 0;
    padding: 6px 13px;
    background: #e8f3f9;
    border-radius: 20px;
    color: #005a9c;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
               TABLE WRAPPER
               ========================================================= */

.ism-learning-table-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #d6e1e8;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
               TABLE
               ========================================================= */

.ism-learning-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}


    /* =========================================================
               TABLE HEADER
               ========================================================= */

    .ism-learning-table thead {
        background: #edf4f8;
    }

    .ism-learning-table th {
        padding: 12px 14px;
        color: #003b6f;
        background: #edf4f8;
        border-bottom: 1px solid #d4e0e8;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        text-align: left;
        vertical-align: middle;
    }


        /* =========================================================
               COLUMN WIDTHS
               4 COLUMNS:
               #           6%
               Title       27%
               Description 52%
               URL         15%
               ========================================================= */

        .ism-learning-table th:nth-child(1),
        .ism-learning-table td:nth-child(1) {
            width: 6%;
            text-align: center;
        }

        .ism-learning-table th:nth-child(2),
        .ism-learning-table td:nth-child(2) {
            width: 27%;
        }

        .ism-learning-table th:nth-child(3),
        .ism-learning-table td:nth-child(3) {
            width: 52%;
        }

        .ism-learning-table th:nth-child(4),
        .ism-learning-table td:nth-child(4) {
            width: 15%;
            text-align: center;
        }


    /* =========================================================
               TABLE BODY
               ========================================================= */

    .ism-learning-table td {
        padding: 14px;
        color: #444;
        background: #ffffff;
        border-bottom: 1px solid #e5ebef;
        font-size: 12px;
        line-height: 1.5;
        vertical-align: middle;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .ism-learning-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .ism-learning-table tbody tr:hover td {
        background: #fafcfd;
    }


    /* =========================================================
               TITLE
               ========================================================= */

    .ism-learning-table td strong {
        color: #003b6f;
        font-weight: 600;
    }


    /* =========================================================
               VIEW COURSE BUTTON
               ========================================================= */

    .ism-learning-table td a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 105px;
        padding: 8px 12px;
        background: #005a9c;
        border: 1px solid #005a9c;
        border-radius: 4px;
        color: #ffffff !important;
        text-decoration: none !important;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

        .ism-learning-table td a:hover {
            background: #003b6f;
            border-color: #003b6f;
            color: #ffffff !important;
        }


/* =========================================================
               LARGE DESKTOP
               1200px AND ABOVE
               ========================================================= */

@media screen and (min-width: 1200px) {

    .ism-learning-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ism-learning-container {
        max-width: 1100px;
    }

    .ism-learning-table-wrap {
        max-width: 1000px;
    }

    .ism-learning-section-head h2 {
        font-size: 24px;
    }
}


/* =========================================================
               TABLET / SMALL LAPTOP
               768px - 1199px
               ========================================================= */

@media screen and (min-width: 768px) and (max-width: 1199px) {

    .ism-learning-page {
        padding: 22px 15px 30px;
    }

    .ism-learning-container {
        max-width: 100%;
    }

    .ism-learning-table-wrap {
        max-width: 100%;
    }

    .ism-learning-table th {
        padding: 11px 10px;
        font-size: 12px;
    }

    .ism-learning-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

        .ism-learning-table td a {
            min-width: 95px;
            padding: 7px 10px;
            font-size: 10px;
        }
}


/* =========================================================
               MOBILE
               Up to 767px
               ========================================================= */

@media screen and (max-width: 767px) {

    .ism-learning-page {
        padding: 18px 10px 30px;
    }

    .ism-learning-section-head {
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 9px;
    }

    .ism-learning-label {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .ism-learning-section-head h2 {
        font-size: 20px;
    }

    .ism-learning-course-count {
        padding: 5px 10px;
        font-size: 10px;
    }
    /* -----------------------------------------
                   MOBILE TABLE
                   ----------------------------------------- */

    .ism-learning-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 5px;
    }

    .ism-learning-table {
        width: 100%;
        min-width: 600px;
        table-layout: fixed;
    }

        .ism-learning-table th {
            padding: 10px 8px;
            font-size: 11px;
        }

        .ism-learning-table td {
            padding: 11px 8px;
            font-size: 11px;
            line-height: 1.45;
        }

            .ism-learning-table td a {
                min-width: 90px;
                padding: 7px 9px;
                font-size: 10px;
            }
}


/* =========================================================
               SMALL MOBILE
               Up to 480px
               ========================================================= */

@media screen and (max-width: 480px) {

    .ism-learning-page {
        padding: 15px 8px 25px;
    }

    .ism-learning-section-head {
        gap: 8px;
    }

    .ism-learning-label {
        font-size: 8px;
        letter-spacing: 0.7px;
    }

    .ism-learning-section-head h2 {
        font-size: 18px;
    }

    .ism-learning-course-count {
        padding: 5px 8px;
        font-size: 9px;
    }


    .ism-learning-table-wrap {
        width: 100%;
        overflow-x: auto;
    }

    .ism-learning-table {
        min-width: 560px;
    }

        .ism-learning-table th {
            padding: 9px 7px;
            font-size: 10px;
        }

        .ism-learning-table td {
            padding: 10px 7px;
            font-size: 10px;
        }

            .ism-learning-table td a {
                min-width: 85px;
                padding: 7px 8px;
                font-size: 9px;
            }
}


/* =========================================================
               VERY SMALL MOBILE
               Up to 360px
               ========================================================= */

@media screen and (max-width: 360px) {

    .ism-learning-page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .ism-learning-section-head h2 {
        font-size: 17px;
    }

    .ism-learning-course-count {
        padding: 4px 7px;
        font-size: 8px;
    }

    .ism-learning-table {
        min-width: 520px;
    }

        .ism-learning-table th,
        .ism-learning-table td {
            padding: 8px 6px;
            font-size: 10px;
        }
}


/* =========================================================
               MOBILE LANDSCAPE
               ========================================================= */

@media screen and (max-width: 767px) and (orientation: landscape) {

    .ism-learning-table {
        min-width: 650px;
    }
}


/* =========================================================
               PRINT
               ========================================================= */

@media print {

    .ism-learning-page {
        padding: 0;
        background: #ffffff;
    }

    .ism-learning-table-wrap {
        max-width: 100%;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .ism-learning-table td a {
        background: none;
        color: #000 !important;
        border: 0;
        padding: 0;
    }
}
