/* ==========================================================================
   Таблица курсов — [courses_table]
   ========================================================================== */

/* Обёртка */
.ci-courses {
    background: #ede8f7;
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
}

/* Шаблон колонок (header + row) */
.ci-courses__header,
.ci-courses__row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr 1.7fr;
    align-items: center;
    gap: 0 16px;
    padding: 18px 28px;
    border-radius: 10px;
}

/* Заголовок */
.ci-courses__header {
    background: #3F328C;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Строки */
.ci-courses__row {
    margin-top: 6px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.ci-courses__row--even {
    background: #fff;
}

.ci-courses__row--odd {
    background: #f6f2fc;
}

/* Ячейки */
.ci-courses__cell {
    word-break: break-word;
}

/* Кнопки */
.ci-courses__col--actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.ci-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
    transition: all .3s ease;
}


.ci-btn--primary {
    background: #3F328C;
    color: #fff !important;
    border: 2px solid #3F328C;
}

.ci-btn--primary:hover {
    background: #2e2469;
}

.ci-btn--outline {
    background: #fff;
    color: #3F328C !important;
    border: 2px solid #3F328C;
}

.ci-btn--outline:hover {
    background: #3F328C;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Адаптив 1024px
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    .ci-courses__header,
    .ci-courses__row {
        grid-template-columns: 1.1fr 0.9fr 1fr 1fr 1fr 1.8fr;
        padding: 14px 20px;
        font-size: 15px;
    }

    .ci-btn {
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* --------------------------------------------------------------------------
   Адаптив 768px — карточный вид
-------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ci-courses__header {
        display: none;
    }

    .ci-courses__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
        margin-top: 6px;
        border-radius: 10px;
    }

    .ci-courses__cell {
        width: 100%;
        font-size: 14px;
    }

    .ci-courses__cell::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #3F328C;
    }

    .ci-courses__col--actions {
        justify-content: flex-start;
        width: 100%;
        margin-top: 4px;
    }

    .ci-courses__col--actions::before {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Адаптив 480px
-------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .ci-courses {
        padding: 6px;
        border-radius: 10px;
    }

    .ci-btn {
        padding: 9px 16px;
        font-size: 13px;
        flex: 1;
        text-align: center;
    }

    .ci-courses__col--actions {
        gap: 6px;
    }
}