/* ====== COURSE PROGRAM MAIN BLOCK ====== */

.course-program {
    margin-top: 40px;
    padding: 0 0 40px;
    color: #1b1d29; /* темный текст вместо белого */
    width: 100%;
}

/* Заголовок блока */

.cp-header h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1b1d29;
}

.cp-header p {
    font-size: 15px;
    margin-bottom: 18px;
    color: #8a8da0; /* приглушенный серый */
}

/* ====== CARD МОДУЛЯ / БЎЛИМИ ====== */

.cp-section {
    background: #ffffff;
    border-radius: 22px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e0e2ea;
    box-shadow: 0 6px 20px rgba(30, 35, 60, 0.06);
}

/* Шапка модуля (Бўлим 1 + стрелка) */

.cp-section-header {
    position: relative;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #1b1d29;
    transition: background 0.15s linear, color 0.15s linear;
}

.cp-section-header:hover {
    background: #f3f4f8;
}

/* стрелка */

.cp-arrow {
    font-size: 18px;
    margin-left: 8px;
    transition: transform 0.18s ease;
    color: #8a8da0;
}

/* открытое состояние */

.cp-section.open .cp-arrow {
    transform: rotate(180deg);
}

/* ====== ВНУТРЕННЯЯ ЧАСТЬ МОДУЛЯ (СПИСОК УРОКОВ) ====== */

.cp-lessons {
    padding: 0 20px 16px 20px;
    display: none;              /* по умолчанию скрыто */
}

/* один урок – строка в списке */

.cp-lesson {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    align-items: center;
    border-bottom: 1px solid #ececf2;
    transition: background 0.15s linear, transform 0.12s;
}

.cp-lesson:last-child {
    border-bottom: none;
}

.cp-lesson:hover {
    background: #f7f8fc;
    transform: translateY(-1px);
}

/* превью */

.cp-thumb {
    width: 92px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #d7d9e3;
    flex-shrink: 0;
}

/* текстовая часть */

.cp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cp-num {
    font-size: 13px;
    color: #8a8da0;
    margin-bottom: 3px;
}

.cp-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #1b1d29;
    word-break: break-word;
}

/* показать список у открытого модуля */

.cp-section.open .cp-lessons {
    display: block;
}

/* ====== МОБИЛЬНЫЙ АДАПТИВ (референс) ====== */

@media (max-width: 700px) {

    .course-program {
        margin-top: 32px;
        padding-bottom: 32px;
    }

    .cp-header h2 {
        font-size: 26px;
    }

    .cp-header p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .cp-section {
        border-radius: 20px;
        margin-bottom: 14px;
    }

    .cp-section-header {
        font-size: 17px;
        padding: 14px 18px;
    }

    .cp-lessons {
        padding: 0 18px 14px 18px;
    }

    .cp-lesson {
        padding: 12px 0;
        gap: 12px;
    }

    .cp-thumb {
        width: 86px;
        height: 52px;
        border-radius: 9px;
    }

    .cp-num {
        font-size: 13px;
    }

    .cp-title {
        font-size: 14.5px;
    }
}

/* extra small */

@media (max-width: 420px) {

    .cp-section-header {
        padding: 12px 16px;
        font-size: 16px;
    }

    .cp-lessons {
        padding: 0 16px 12px 16px;
    }

    .cp-thumb {
        width: 80px;
        height: 50px;
    }

    .cp-title {
        font-size: 14px;
    }

    .cp-num {
        font-size: 12.5px;
    }
}


/* ============================
   BENEFITS SECTION (before accordion)
   ============================ */

.course-benefits {
    margin-top: 40px;
    margin-bottom: 32px;
    padding: 0 4px;
    color: #1b1d29;
}

/* Заголовок */
.course-benefits-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
}

/* Список */
.course-benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.course-benefits-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.45;
    color: #44485a;
}

/* Кастомная точка */
.course-benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    color: #ff3ca6; /* розовый как акцент */
    line-height: 16px;
}

/* ============================
   Mobile
   ============================ */

@media (max-width: 700px) {
    .course-benefits {
        margin-top: 32px;
        margin-bottom: 26px;
        padding: 0 2px;
    }

    .course-benefits-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .course-benefits-list li {
        font-size: 15px;
        margin-bottom: 11px;
        padding-left: 20px;
    }

    .course-benefits-list li::before {
        font-size: 18px;
    }

    /* только заголовок и подпись программы — центр */
    .cp-header h2,
    .cp-header p {
        text-align: center;
    }
}

@media (max-width: 420px) {

    .course-benefits-title {
        font-size: 20px;
        text-align: center;
    }

    .course-benefits-list li {
        font-size: 14.5px;
        padding-left: 18px;
    }

    .course-benefits-list li::before {
        font-size: 16px;
    }
}
