/**
 * Стили для фронтенда плагина "Курсы Про"
 */

.course-archive-wrapper {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    min-height: 100vh;
}

.course-archive-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Левая боковая панель с фильтрами - Современный дизайн */
.course-filters-sidebar,
.program-filters-sidebar {
    width: 20%;
    flex: 0 0 20%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-filters-sidebar:hover,
.program-filters-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filters-title {
    font-size: 1.5em;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%) 1;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-title::before {
    content: "⚡";
    font-size: 1.2em;
}

.filter-section {
    margin-bottom: 28px;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    color: #667eea;
}

.filter-section-title::before {
    content: "▸";
    font-size: 14px;
    color: #764ba2;
}

/* Поиск по фильтрам */
.filter-search {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5568d3 0%, #6a3f8f 100%);
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.filter-checkbox-label:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(4px);
}

.filter-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-checkbox-label input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.filter-checkbox-label span {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s ease;
}

.filter-checkbox-label:hover span {
    color: #667eea;
}

.filter-checkbox-label input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.filter-submit-btn,
.filter-reset-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.filter-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.filter-submit-btn:active {
    transform: translateY(0);
}

.filter-reset-btn {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #4a5568;
    text-decoration: none;
    display: block;
    text-align: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-reset-btn:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .course-archive-container,
    .program-archive-container {
        flex-direction: column;
    }
    
    .course-filters-sidebar,
    .program-filters-sidebar {
        width: 100%;
        flex: 1 1 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 30px;
    }
    
    .course-main-content,
    .program-main-content {
        width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .course-filters-sidebar,
    .program-filters-sidebar {
        padding: 16px;
        border-radius: 12px;
    }
    
    .filters-title {
        font-size: 1.3em;
    }
    
    .filter-section {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .filter-checkboxes {
        max-height: 200px;
    }
    
    .filter-submit-btn,
    .filter-reset-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .courses-grid {
        padding: 15px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .course-card-wrapper {
        padding: 24px;
        min-height: 280px;
    }
    
    .course-card-title {
        font-size: 1.5em;
    }
    
    .course-card-illustration {
        width: 120px;
        height: 120px;
        bottom: -5px;
        right: -5px;
    }
}

/* Анимации для фильтров */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-section {
    animation: fadeInUp 0.3s ease-out;
}

/* Улучшенный скроллбар для фильтров */
.course-filters-sidebar::-webkit-scrollbar,
.program-filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.course-filters-sidebar::-webkit-scrollbar-track,
.program-filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.course-filters-sidebar::-webkit-scrollbar-thumb,
.program-filters-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.course-filters-sidebar::-webkit-scrollbar-thumb:hover,
.program-filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5568d3 0%, #6a3f8f 100%);
}

/* Элементы управления в левой панели */
.filters-controls {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters-controls .course-pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.filters-controls .view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-controls .control-label {
    font-size: 14px;
    color: #666;
}

.filters-controls .view-btn {
    padding: 6px 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.filters-controls .view-btn:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.filters-controls .view-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.filters-controls .course-sort {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-controls .course-sort label {
    font-size: 14px;
    color: #666;
}

.filters-controls .sort-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Основная область */
.course-main-content {
    width: 80%;
    flex: 0 0 80%;
    min-width: 0;
    box-sizing: border-box;
    background: transparent;
}

.course-main-content .course-top-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.course-main-content .course-pagination-info,
.course-main-content .control-label,
.course-main-content .course-sort label {
    color: rgba(255, 255, 255, 0.8);
}

/* Верхняя панель */
.course-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.course-pagination-info {
    font-size: 14px;
    color: #666;
}

.course-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.view-btn {
    padding: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.view-btn:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.view-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.course-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-sort label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Контейнер курсов */
.courses-container {
    margin-bottom: 30px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
}

@media (min-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.courses-container[data-view="list"] .courses-grid {
    grid-template-columns: 1fr;
}

.courses-container[data-view="list"] .course-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.courses-container[data-view="list"] .course-card-modern {
    min-height: 200px;
}

.courses-container[data-view="list"] .course-card-wrapper {
    min-height: 200px;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.courses-container[data-view="list"] .course-card-illustration {
    position: relative;
    width: 100px;
    height: 100px;
    transform: none;
    opacity: 0.5;
}

.courses-container[data-view="list"] .course-thumbnail {
    flex: 0 0 250px;
}

.courses-container[data-view="list"] .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Карточка курса - Старый стиль */
.course-item:not(.course-card-modern) {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-item:not(.course-card-modern):hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Современная карточка курса */
.course-card-modern {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 320px;
}

.course-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.course-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.course-card-wrapper {
    position: relative;
    padding: 32px;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
}

/* Градиенты для карточек */
.gradient-blue-gray {
    background: linear-gradient(135deg, #e8f0f5 0%, #d4e3eb 100%);
}

.gradient-peach-orange {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
}

.gradient-cream {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
}

.gradient-light-blue {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce6ff 100%);
}

.course-card-header {
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.course-card-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2d3748;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.course-card-subtitle {
    font-size: 0.95em;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
}

.course-card-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
    z-index: 2;
    position: relative;
}

.tag-yellow-green {
    background: #c6f6d5;
    color: #22543d;
}

.tag-orange {
    background: #fed7aa;
    color: #7c2d12;
}

.tag-red-orange {
    background: #fecaca;
    color: #7f1d1d;
}

.course-card-additional {
    font-size: 0.95em;
    color: #4a5568;
    margin: 0 0 auto 0;
    font-weight: 500;
    z-index: 2;
    position: relative;
}

.course-card-illustration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 160px;
    height: 160px;
    opacity: 0.5;
    z-index: 1;
    transform: rotate(-5deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.course-card-modern:hover .course-card-illustration {
    opacity: 0.7;
    transform: rotate(0deg) scale(1.05);
}

.course-card-illustration svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.course-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
}

/* Название поверх изображения */
.course-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.course-title-overlay a {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.course-title-overlay a:hover {
    opacity: 0.9;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.course-item:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.course-placeholder .dashicons {
    font-size: 60px;
    color: #999;
}

.course-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-price-section {
    margin-bottom: 10px;
}

.course-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.course-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #0073aa;
}

.course-old-price {
    font-size: 1em;
    color: #999;
    text-decoration: line-through;
}

/* Название теперь поверх изображения, стили выше */

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #ddd;
}

.star.star-filled {
    color: #000;
}

.reviews-count {
    font-size: 0.9em;
    color: #666;
}

.course-start-date {
    font-size: 0.9em;
    color: #666;
    margin-top: auto;
    padding-top: 10px;
}

/* Пагинация */
.course-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.no-courses {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.no-courses p {
    font-size: 1.2em;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .course-archive-container {
        flex-direction: column;
    }
    
    .course-filters-sidebar {
        width: 100%;
        flex: 1 1 100%;
        position: static;
        max-height: none;
    }
    
    .course-main-content {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-container[data-view="list"] .course-item {
        flex-direction: column;
    }
    
    .courses-container[data-view="list"] .course-thumbnail {
        flex: 1;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ОТДЕЛЬНОГО КУРСА
   ============================================ */

/* Обертка для страницы курса */
.single-course-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Большой синий баннер с названием курса */
.course-hero-banner {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.course-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.course-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.course-hero-title {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.course-hero-teacher {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-hero-code {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.8;
    position: absolute;
    top: 20px;
    right: 40px;
}

.course-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
}

.course-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero-video-overlay {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 3;
}

.course-play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s;
}

.course-play-button:hover {
    transform: scale(1.1);
}

/* Контейнер для основного контента и боковой панели */
.single-course-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.single-course-main {
    flex: 1;
    min-width: 0;
}

.single-course-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Код курса и название */
.course-code-title {
    margin-bottom: 30px;
}

.course-code {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.course-code-title h2 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

/* Секции контента */
.course-description-section,
.course-goals-section,
.course-content-section {
    margin-bottom: 40px;
}

.course-description-section h3,
.course-goals-section h3,
.course-content-section h3 {
    font-size: 1.8em;
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.course-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.goals-intro {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.goal-category {
    margin-bottom: 25px;
}

.goal-category h4 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #0073aa;
}

.goal-content {
    line-height: 1.8;
    color: #555;
}

.goal-content ol,
.goal-content ul {
    margin-left: 20px;
}

.goal-content li {
    margin-bottom: 10px;
}

.course-content-outline {
    line-height: 1.8;
    color: #555;
}

/* Видео секция */
.course-video-section {
    margin-bottom: 40px;
}

.course-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.course-video-wrapper iframe,
.course-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-youtube-link {
    text-align: center;
    margin-top: 15px;
}

.video-youtube-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.video-youtube-link a:hover {
    text-decoration: underline;
}

/* Боковая панель - кнопки действий */
.course-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-action-btn {
    display: block;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    color: #fff;
    border: none;
    cursor: pointer;
}

.course-btn-seminary-new {
    background: #87ceeb;
    color: #333;
}

.course-btn-seminary-new:hover {
    background: #6bb6d6;
}

.course-btn-seminary-student {
    background: #ffd700;
    color: #333;
}

.course-btn-seminary-student:hover {
    background: #e6c200;
}

.course-btn-buy {
    background: #28a745;
}

.course-btn-buy:hover {
    background: #218838;
}

/* Боковая панель - обзор курса */
.course-overview-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.course-overview-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
}

.course-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.course-overview-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.course-overview-list li:last-child {
    border-bottom: none;
}

.overview-label {
    font-weight: 600;
    color: #666;
}

.overview-value {
    color: #333;
}

/* Боковая панель - преподаватель */
.course-instructor-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.course-instructor-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
}

.instructor-info {
    text-align: center;
}

.instructor-photo {
    margin-bottom: 15px;
}

.instructor-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0073aa;
}

.instructor-name {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.instructor-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.instructor-name a:hover {
    color: #0073aa;
}

.instructor-photo a {
    display: block;
    transition: transform 0.3s;
}

.instructor-photo a:hover {
    transform: scale(1.05);
}

.instructor-position {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.instructor-specializations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instructor-spec-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.instructor-spec-item .dashicons {
    color: #0073aa;
}

/* Боковая панель - цена */
.course-price-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    position: relative;
}

.course-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
    margin-bottom: 5px;
}

.course-price-discount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

.course-price-current {
    font-size: 2em;
    font-weight: 700;
    color: #0073aa;
}

/* Боковая панель - рейтинг */
.course-rating-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.course-rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.course-rating-stars .star {
    font-size: 24px;
    color: #ddd;
}

.course-rating-stars .star.star-filled {
    color: #ffc107;
}

.course-reviews-count {
    color: #666;
    font-size: 0.9em;
}

/* Другие курсы по теме */
.related-courses-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-courses-section h3 {
    font-size: 1.8em;
    margin: 0 0 30px 0;
    color: #333;
}

.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-course-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-course-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-course-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.related-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-course-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 1em;
    color: #333;
    line-height: 1.4;
}

/* Футер с призывом к действию */
.course-footer-cta {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}

.course-footer-cta a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: opacity 0.3s;
}

.course-footer-cta a:hover {
    opacity: 0.8;
}

/* Адаптивность для страницы курса */
@media (max-width: 1024px) {
    .single-course-container {
        flex-direction: column;
    }
    
    .single-course-sidebar {
        width: 100%;
    }
    
    .course-hero-code {
        position: static;
        margin-top: 20px;
    }
    
    .related-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-hero-banner {
        padding: 40px 20px;
    }
    
    .course-hero-title {
        font-size: 2em;
    }
    
    .course-hero-teacher {
        font-size: 1.2em;
    }
    
    .single-course-container {
        padding: 0 15px 30px;
    }
    
    .related-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-hero-video-overlay {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ПРЕПОДАВАТЕЛЯ
   ============================================ */

/* Обертка для страницы преподавателя */
.teacher-page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Верхний баннер с фото и информацией */
.teacher-hero-section {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 60px 40px;
    margin-bottom: 50px;
}

.teacher-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.teacher-photo-large {
    flex-shrink: 0;
}

.teacher-photo-large img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.teacher-hero-info {
    flex: 1;
}

.teacher-name {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teacher-position {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-weight: 300;
}

.teacher-description-short {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.95;
}

.teacher-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.teacher-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.3s;
}

.teacher-contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.teacher-contact-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.teacher-social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Основной контент */
.teacher-content-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.teacher-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-description-full,
.teacher-education {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.teacher-description-full h2,
.teacher-education h2 {
    font-size: 2em;
    margin: 0 0 25px 0;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.teacher-description-text,
.teacher-education-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.teacher-description-text p,
.teacher-education-text p {
    margin-bottom: 15px;
}

/* Секция с курсами преподавателя */
.teacher-courses-section {
    padding: 60px 20px;
    background: #fff;
}

.teacher-courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.teacher-courses-title {
    font-size: 2.5em;
    margin: 0 0 40px 0;
    color: #333;
    text-align: center;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 20px;
}

.teacher-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #0073aa #f0f0f0;
}

.teacher-courses-grid::-webkit-scrollbar {
    height: 8px;
}

.teacher-courses-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.teacher-courses-grid::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 4px;
}

.teacher-course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 300px;
}

.teacher-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.course-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.teacher-course-card:hover .course-card-thumbnail img {
    transform: scale(1.1);
}

.course-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.course-card-title-overlay {
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.course-card-content {
    padding: 20px;
}

.course-card-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.course-current-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #0073aa;
}

.course-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.course-card-rating .stars-rating {
    display: flex;
    gap: 3px;
}

.course-card-rating .star {
    font-size: 18px;
    color: #ddd;
}

.course-card-rating .star.star-filled {
    color: #000;
}

.course-card-rating .reviews-count {
    font-size: 0.9em;
    color: #666;
}

.course-card-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
}

.teacher-no-courses {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 20px;
}

.teacher-no-courses p {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

/* Адаптивность для страницы преподавателя */
@media (max-width: 1024px) {
    .teacher-hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .teacher-contacts {
        justify-content: center;
    }
    
    .teacher-social-links {
        justify-content: center;
    }
    
    .teacher-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .teacher-hero-section {
        padding: 40px 20px;
    }
    
    .teacher-name {
        font-size: 2em;
    }
    
    .teacher-position {
        font-size: 1.2em;
    }
    
    .teacher-photo-large img {
        width: 150px;
        height: 150px;
    }
    
    .teacher-content-section {
        padding: 30px 15px;
    }
    
    .teacher-description-full,
    .teacher-education {
        padding: 25px;
    }
    
    .teacher-courses-section {
        padding: 40px 15px;
    }
    
    .teacher-courses-title {
        font-size: 2em;
    }
    
    .teacher-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teacher-course-card {
        min-width: auto;
    }
}

/* ========================================
   Стили для программ
   ======================================== */

/* Программы используют те же стили, что и курсы, но с дополнительными классами */
.program-archive-wrapper {
    background: #1a1a1a;
    min-height: 100vh;
}

.program-archive-container {
    /* Наследует стили от .course-archive-container */
}

.program-filters-sidebar {
    /* Наследует стили от .course-filters-sidebar */
}

.program-filters-form {
    /* Наследует стили от .course-filters-form */
}

.program-main-content {
    /* Наследует стили от .course-main-content */
}

.programs-container {
    /* Наследует стили от .courses-container */
}

.programs-grid {
    /* Наследует стили от .courses-grid */
}

.program-item {
    /* Наследует стили от .course-item */
}

.program-thumbnail {
    /* Наследует стили от .course-thumbnail */
}

.program-content {
    /* Наследует стили от .course-content */
}

.program-price-section {
    /* Наследует стили от .course-price-section */
}

.program-price-wrapper {
    /* Наследует стили от .course-price-wrapper */
}

.program-price {
    /* Наследует стили от .course-price */
}

.program-old-price {
    /* Наследует стили от .course-old-price */
}

.program-discount-badge {
    /* Наследует стили от .course-discount-badge */
}

/* Дополнительные стили для программ */
.program-duration {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.program-courses-count {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.program-certificate-info {
    margin: 8px 0;
    font-size: 14px;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 5px;
}

.program-certificate-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.program-start-date {
    /* Наследует стили от .course-start-date */
}

.program-pagination {
    /* Наследует стили от .course-pagination */
}

.program-pagination-info {
    /* Наследует стили от .course-pagination-info */
}

.no-programs {
    /* Наследует стили от .no-courses */
    padding: 60px 20px;
    text-align: center;
}

.no-programs p {
    font-size: 18px;
    color: #666;
}

/* Стили для отдельной программы */
.single-program-wrapper {
    /* Наследует стили от .single-course-wrapper */
}

.program-hero-banner {
    /* Наследует стили от .course-hero-banner */
}

.program-hero-content {
    /* Наследует стили от .course-hero-content */
}

.program-hero-title {
    /* Наследует стили от .course-hero-title */
}

.program-hero-teacher {
    /* Наследует стили от .course-hero-teacher */
}

.program-hero-image {
    /* Наследует стили от .course-hero-image */
}

.single-program-container {
    /* Наследует стили от .single-course-container */
}

.single-program-main {
    /* Наследует стили от .single-course-main */
}

.program-title-section {
    /* Наследует стили от .course-code-title */
}

.program-description-section {
    /* Наследует стили от .course-description-section */
}

.program-description {
    /* Наследует стили от .course-description */
}

.program-info-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.program-info-item {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-info-item:last-child {
    border-bottom: none;
}

.program-info-item strong {
    color: #333;
    font-weight: 600;
}

.program-info-item span {
    color: #666;
}

.program-certificate-item {
    color: #28a745;
}

.program-certificate-item strong {
    color: #28a745;
}

.program-related-courses-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.program-related-courses-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: #333;
}

.program-related-courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.program-related-course-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.program-related-course-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.program-related-course-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.program-related-course-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.program-related-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-related-course-info {
    padding: 15px;
}

.program-related-course-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.program-related-course-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.program-taxonomies-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.program-taxonomy {
    margin: 10px 0;
    font-size: 14px;
}

.program-taxonomy strong {
    color: #333;
    margin-right: 5px;
}

.program-taxonomy a {
    color: #0073aa;
    text-decoration: none;
}

.program-taxonomy a:hover {
    text-decoration: underline;
}

.single-program-sidebar {
    /* Наследует стили от .single-course-sidebar */
}

.program-price-box {
    /* Наследует стили от .course-price-box */
}

.program-price-info {
    /* Наследует стили от .course-price-info */
}

.program-current-price {
    /* Наследует стили от .course-current-price */
}

.program-enroll-btn {
    /* Наследует стили от .course-enroll-btn */
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.program-enroll-btn:hover {
    background: #005a87;
}

.program-info-box {
    /* Наследует стили от .course-info-box */
}

.program-teacher-box {
    /* Наследует стили от .course-teacher-box */
}

/* Адаптивность для программ */
@media (max-width: 768px) {
    .program-related-courses-list {
        grid-template-columns: 1fr;
    }
    
    .program-info-section {
        padding: 15px;
    }
    
    .program-related-courses-section {
        padding: 20px 15px;
    }
}
