/* Стили для фронтенда Adaptive LMS */

/* Скрытие дублирующихся заголовков темы (можно отключить, если нужно) */
.single-alms_course .entry-header .entry-title,
.single-alms_lesson .entry-header .entry-title,
.single-alms_module .entry-header .entry-title,
.single-alms_test .entry-header .entry-title,
.single-alms_course article > header h1,
.single-alms_lesson article > header h1,
.single-alms_module article > header h1,
.single-alms_test article > header h1 {
    display: none;
}

/* Общие стили */
.alms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.alms-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Список курсов */
.alms-course-list {
    margin: 30px 0;
}

.alms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.alms-course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.alms-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.alms-course-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.alms-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alms-course-content {
    padding: 24px;
}

.alms-course-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

.alms-course-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.alms-course-title a:hover {
    color: #0073aa;
}

.alms-course-excerpt {
    color: #666;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

.alms-course-meta {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #666;
}

.alms-modules-count,
.alms-lessons-count,
.alms-tests-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.alms-course-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Кнопки */
.alms-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.alms-button-primary {
    background: #0073aa;
    color: #fff;
}

.alms-button-primary:hover {
    background: #005a87;
    color: #fff;
}

/* Отдельный курс */
.alms-single-course {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.alms-course-header {
    margin-bottom: 40px;
}

.alms-course-actions-top {
    margin-bottom: 20px;
}

.alms-course-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.alms-course-featured-image img {
    width: 100%;
    height: auto;
}

.alms-single-course .alms-course-title {
    font-size: 32px;
    margin-bottom: 20px;
}

/* Шапка курса: название, описание, счётчики, прогресс, кнопки, обложка.
   Заголовок и обложку темы на странице курса прячем, их выводит эта шапка. */
.single-alms_course article > .entry-header,
.single-alms_course article > .post-thumbnail {
    display: none;
}

.single-alms_course .entry-content:has(> .alms-single-course) {
    margin-top: 0;
}

/* Тема даёт сверху 40px (.site-content) + 40px (.blog-layout): над шапкой курса это пустая полоса */
.single-alms_course .site-content {
    padding-top: 24px !important;
}

.single-alms_course .blog-layout {
    padding-top: 0 !important;
}

.alms-single-course {
    margin-top: 8px;
}

.alms-course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #f3f7fb 0%, #e8f0f8 100%);
    border: 1px solid #dde7f1;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
}

.alms-course-hero__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #005177;
    background: #fff;
    border: 1px solid #cfdeec;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.alms-single-course .alms-course-hero__title {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.alms-course-hero__desc {
    font-size: 17px;
    line-height: 1.55;
    color: #45525e;
    margin: 0 0 20px;
}

.alms-course-hero__stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px !important;
    padding: 0 !important;
}

.alms-course-hero__stats li {
    margin: 0;
    font-size: 14px;
    color: #45525e;
    background: #fff;
    border: 1px solid #dde7f1;
    border-radius: 8px;
    padding: 6px 12px;
}

.alms-course-hero__stats strong {
    color: #005177;
    font-weight: 700;
}

.alms-course-hero__progress {
    margin: 0 0 14px;
}

.alms-course-hero__progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #45525e;
    margin-bottom: 6px;
}

.alms-course-hero__bar {
    height: 8px;
    background: #d6e3ef;
    border-radius: 999px;
    overflow: hidden;
}

.alms-course-hero__bar span {
    display: block;
    height: 100%;
    min-width: 4px;
    background: linear-gradient(90deg, #0073aa, #27ae60);
    border-radius: 999px;
}

.alms-course-hero__note {
    font-size: 13px;
    color: #6b7782;
    margin: 0 0 18px;
}

.alms-course-hero__note--paid {
    color: #1e8449;
    font-weight: 600;
}

.alms-course-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alms-single-course a.alms-course-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.alms-single-course a.alms-course-hero__btn--primary {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.alms-single-course a.alms-course-hero__btn--primary:hover {
    background: #005177;
    border-color: #005177;
    color: #fff;
}

.alms-single-course a.alms-course-hero__btn--ghost {
    background: #fff;
    color: #005177;
    border: 1px solid #b9cfe3;
}

.alms-single-course a.alms-course-hero__btn--ghost:hover {
    border-color: #005177;
    color: #005177;
}

.alms-course-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 47, 80, .15);
}

@media (max-width: 820px) {
    .alms-course-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin-bottom: 32px;
    }

    .alms-course-hero__media {
        order: -1;
    }

    .alms-single-course .alms-course-hero__title {
        font-size: 26px;
    }

    .alms-course-hero__desc {
        font-size: 16px;
    }

    .alms-course-hero__actions a.alms-course-hero__btn {
        flex: 1 1 100%;
    }
}

/* Адаптив страницы доп.курса (single-course.php) */
@media (max-width: 768px) {
    .alms-single-course {
        padding: 0 8px;
    }

    .alms-module-block {
        padding: 12px !important;
    }

    .alms-lesson-card-new {
        padding: 14px !important;
    }

    .alms-module-header-new {
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .alms-module-number {
        font-size: 24px !important;
        min-width: auto !important;
        flex: 0 0 auto !important;
    }

    .alms-module-header-new > div:last-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .alms-module-header-new > div:last-child h3 {
        font-size: 18px !important;
    }

    .alms-lesson-card-new {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .alms-lesson-card-action {
        width: 100%;
    }

    .alms-lesson-card-action .alms-lesson-button {
        display: block !important;
        width: 100%;
        text-align: center;
    }
}

.alms-course-description {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Модули и занятия */
.alms-modules-list {
    margin-top: 30px;
}

.alms-module-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.alms-module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.alms-module-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.alms-module-number {
    color: #0073aa;
    margin-right: 8px;
}

.alms-module-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.alms-module-description {
    margin: 16px 0;
    color: #666;
    line-height: 1.6;
}

.alms-lessons-list,
.alms-tests-list {
    margin-top: 20px;
}

.alms-lessons-list h4,
.alms-tests-list h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.alms-lessons-list ul,
.alms-tests-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alms-lesson-item,
.alms-test-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s;
}

.alms-lesson-item:hover,
.alms-test-item:hover {
    background: #f0f0f0;
}

.alms-lesson-number {
    color: #0073aa;
    margin-right: 8px;
    font-weight: 600;
}

.alms-lesson-link,
.alms-test-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.alms-lesson-link:hover,
.alms-test-link:hover {
    color: #0073aa;
}

.alms-no-courses,
.alms-no-modules {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* Форма записи на курс */
.alms-enroll-form {
    margin-top: 30px;
}

.alms-enroll-form .alms-button {
    font-size: 16px;
    padding: 14px 32px;
}


.alms-course-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.alms-course-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.alms-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Маршрут обучения */
.alms-learning-path {
    margin: 20px 0;
}

.alms-module-item {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

.alms-module-item.current {
    border-left-color: #46b450;
    background: #f0fff4;
}

.alms-module-item.completed {
    border-left-color: #ccc;
    background: #f5f5f5;
}

.alms-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alms-module-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.alms-module-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.alms-module-status.current {
    background: #46b450;
    color: #fff;
}

.alms-module-status.completed {
    background: #ccc;
    color: #666;
}

.alms-module-status.locked {
    background: #e0e0e0;
    color: #999;
}

.alms-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alms-lesson-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alms-lesson-item.current {
    border-color: #46b450;
    background: #f0fff4;
}

.alms-lesson-item.completed::before {
    content: '✓';
    color: #46b450;
    font-weight: bold;
    margin-right: 8px;
}

/* Прогресс */
.alms-progress-bar {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.alms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #46b450);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.alms-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.alms-stat-item {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.alms-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 5px 0;
}

.alms-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* AI-чат */
.alms-ai-chat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
    margin: 20px auto;
}

.alms-ai-chat-header {
    background: #0073aa;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
}

.alms-ai-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.alms-ai-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.alms-ai-message.user {
    flex-direction: row-reverse;
}

.alms-ai-message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
}

.alms-ai-message.ai .alms-ai-message-bubble {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.alms-ai-message.user .alms-ai-message-bubble {
    background: #0073aa;
    color: #fff;
}

.alms-ai-chat-input {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.alms-ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
}

.alms-ai-chat-input button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.alms-ai-chat-input button:hover {
    background: #005a87;
}

/* Таблица лидеров */
.alms-leaderboard {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.alms-leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

.alms-leaderboard th {
    background: #0073aa;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.alms-leaderboard td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.alms-leaderboard tr:last-child td {
    border-bottom: none;
}

.alms-leaderboard tr:nth-child(even) {
    background: #f9f9f9;
}

.alms-rank {
    font-weight: bold;
    color: #0073aa;
    font-size: 18px;
}

/* Buttons */
.alms-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.alms-button:hover {
    background: #005a87;
}

.alms-button-secondary {
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.alms-button-secondary:hover {
    background: #f0f0f0;
}

.alms-button-success {
    background: #46b450;
}

.alms-button-success:hover {
    background: #2e7d32;
}

/* Боковая панель программы курса */
.alms-sidebar-toggle {
    position: fixed;
    top: 200px;
    left: 0;
    z-index: 999;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.alms-sidebar-toggle:hover {
    background: #005a87;
    transform: translateX(3px);
    box-shadow: 3px 3px 15px rgba(0,0,0,0.3);
}

/* Анимация пульсации */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* Анимация встряхивания для ошибок */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Вертикальный индикатор прогресса */
.alms-progress-bar-vertical {
    position: fixed;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #e0e0e0;
    z-index: 998;
}

.alms-course-sidebar {
    position: fixed;
    top: 0;
    left: -450px;
    width: 450px;
    height: 100%;
    background: #2c3e50;
    color: white;
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.4);
}

.alms-sidebar-header {
    padding: 20px;
    background: #1a252f;
    border-bottom: 2px solid #34495e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.alms-sidebar-close {
    float: right;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.alms-sidebar-close:hover {
    transform: rotate(90deg);
}

.alms-sidebar-content {
    padding: 20px;
}

.alms-sidebar-module {
    margin-bottom: 25px;
}

.alms-sidebar-module h4 {
    color: #ecf0f1;
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #34495e;
}

.alms-sidebar-module ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alms-sidebar-module li {
    margin-bottom: 8px;
}

.alms-sidebar-module a {
    display: block;
    padding: 10px 12px;
    background: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

.alms-sidebar-module a:hover {
    background: #445566;
    transform: translateX(3px);
}

.alms-sidebar-module a.active {
    background: #3498db;
}

/* Навигация по занятиям */
.alms-lesson-navigation-tabs {
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.alms-lesson-navigation-tabs a {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
    position: relative;
    margin-right: 8px;
    margin-bottom: 8px;
}

.alms-lesson-navigation-tabs a:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.alms-lesson-navigation-tabs a.active {
    background: #0073aa;
    color: white;
    font-weight: 600;
}

.alms-lesson-top-header {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #0073aa;
}

.alms-lesson-meta {
    margin-bottom: 25px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    display: inline-block;
}

/* Responsive для боковой панели */
@media (max-width: 768px) {
    .alms-course-sidebar {
        width: 90%;
        max-width: 400px;
        left: -100%;
    }
    
    .alms-course-sidebar.active {
        left: 0;
    }
    
    .alms-sidebar-toggle {
        top: auto;
        bottom: 16px;
        left: 10px;
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 24px;
        z-index: 1000;
    }

    .alms-sidebar-content {
        padding: 15px;
    }

    .alms-lesson-navigation-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Сужаем поля урока, чтобы расширить читаемую область */
    .alms-lesson-single {
        padding: 20px 12px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .alms-sidebar-toggle {
        bottom: 12px;
        left: 8px;
        padding: 8px 14px;
        font-size: 11px;
    }

    .alms-lesson-single {
        padding: 16px 10px !important;
    }

    .alms-course-sidebar {
        top: 0;
        height: 100%;
        width: 85%;
        max-width: 350px;
    }
    
    .alms-sidebar-header {
        padding: 15px;
    }
    
    .alms-sidebar-module h4 {
        font-size: 15px;
    }
    
    .alms-sidebar-module a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .alms-course-grid {
        grid-template-columns: 1fr;
    }
    
    .alms-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alms-ai-chat {
        max-width: 100%;
    }
    
    .alms-module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .alms-lesson-navigation {
        flex-direction: column;
    }
    
    .alms-lesson-navigation .button {
        width: 100% !important;
    }
}

/* Стили кнопок плагина - минимальные для работы с любой темой */
.alms-lesson-navigation {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.alms-lesson-navigation .button {
    flex: 1;
    min-width: 200px;
}

/* Дефолтные стили для элементов, настраиваемых через админку */
.alms-button,
.alms-test-submit,
.alms-start-course,
.alms-next-lesson,
.alms-retry-test-btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.alms-test-result {
    margin: 20px 0;
}

.alms-sidebar-panel .lesson-item,
.alms-course-sidebar .sidebar-item {
    transition: background-color 0.3s ease;
}

.alms-question,
.alms-test-question,
.alms-question-block {
    margin-bottom: 20px;
}

/* Базовые стили структуры курса (остальное через настройки) */
.alms-course-structure {
    margin: 30px 0;
}

.alms-lesson-card a,
.alms-test-card a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.alms-lesson-card a:hover {
    color: #0073aa;
}

.alms-lesson-item,
.alms-test-item {
    cursor: pointer;
}

/* Отступ между шапкой курса и программой: у h2 темы большой margin-top */
.alms-single-course .alms-course-content > h2 {
    margin-top: 0 !important;
}

/* Фото в тексте урока: в разметке ширины со старого сайта (600/300/189), из-за этого одни фото во всю колонку, другие маленькие.
   Все фото уроков (acg-photo, rehost) показываем одинаково: на ширину колонки, не больше родных 640px. Схемы и картинки тренажёров не трогаем. */
.alms-lesson-content img[src*="acg-photo"],
.alms-lesson-content img[src*="rehost-"] {
    display: block;
    width: 100% !important;
    max-width: 640px !important;
    height: auto !important;
    margin: 16px 0 !important;
    border-radius: 8px;
}
