/* Стили для курсов */

/* ===== Общие стили для страницы курсов ===== */
.course-header {
    padding: 60px 0 40px;
    background-color: #f8f5f0;
    border-bottom: 1px solid #e5e0d5;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.breadcrumbs a {
    color: #8B5A2B;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.course-meta-header {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 15px;
    color: #555;
}

.meta-item i {
    margin-right: 8px;
    color: #8B5A2B;
}

/* ===== Стили для курса и его содержимого ===== */
.course-content {
    padding: 50px 0;
}

.course-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Боковая панель с навигацией */
.course-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.course-progress {
    margin-bottom: 25px;
    background-color: #f8f5f0;
    padding: 15px;
    border-radius: 6px;
}

.progress-bar {
    background-color: #e5e0d5;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background-color: #8B5A2B;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.course-navigation {
    background-color: #fff;
    border: 1px solid #e5e0d5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.course-navigation h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1F3438;
}

.lesson-list {
    list-style: none;
    padding: 0;
}

.lesson-list li {
    margin-bottom: 12px;
}

.lesson-list li:last-child {
    margin-bottom: 0;
}

.lesson-list a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lesson-list a:hover {
    background-color: #f8f5f0;
}

.lesson-list a.active {
    background-color: #f0e8dd;
    font-weight: 500;
}

.lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e5e0d5;
    color: #8B5A2B;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 500;
    font-size: 14px;
}

.lesson-title {
    flex-grow: 1;
    font-size: 15px;
}

.lesson-status {
    margin-left: 8px;
}

.lesson-status i {
    font-size: 16px;
}

.completed .lesson-status i {
    color: #4CAF50;
}

.current .lesson-status i {
    color: #8B5A2B;
}

li:not(.completed):not(.current) .lesson-status i {
    color: #aaa;
}

.course-instructor {
    background-color: #fff;
    border: 1px solid #e5e0d5;
    border-radius: 6px;
    padding: 20px;
}

.course-instructor h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1F3438;
}

.instructor-info {
    display: flex;
    align-items: center;
}

.instructor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-bio h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.instructor-bio p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Содержимое урока */
.lesson-content {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.video-container {
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background-color: #000;
}

.lesson-description {
    padding: 30px;
    border-bottom: 1px solid #e5e0d5;
}

.lesson-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1F3438;
}

.lesson-description h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #333;
}

.lesson-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.lesson-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.lesson-description ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.lesson-description blockquote {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f5f0;
    border-left: 4px solid #8B5A2B;
    font-style: italic;
}

.lesson-description blockquote p {
    margin-bottom: 10px;
}

.lesson-description blockquote cite {
    display: block;
    font-size: 14px;
    color: #666;
    text-align: right;
}

/* Материалы для скачивания */
.lesson-materials {
    padding: 30px;
    border-bottom: 1px solid #e5e0d5;
}

.lesson-materials h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1F3438;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f5f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.material-item:hover {
    background-color: #f0e8dd;
}

.material-item.locked {
    background-color: #f0f0f0;
    position: relative;
}

.material-item.locked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.material-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 6px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.material-icon i {
    font-size: 22px;
    color: #8B5A2B;
}

.material-item.locked .material-icon i {
    color: #aaa;
}

.material-info {
    flex-grow: 1;
}

.material-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.material-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.file-size {
    font-size: 12px;
    color: #888;
}

.download-btn {
    padding: 8px 15px;
    font-size: 14px;
    white-space: nowrap;
}

/* Навигация по урокам */
.lesson-navigation {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e0d5;
}

.nav-prev, .nav-next {
    padding: 10px 15px;
    font-size: 14px;
}

.nav-prev i, .nav-next i {
    margin: 0 5px;
}

.complete-btn {
    padding: 10px 20px;
}

/* Комментарии */
.lesson-comments {
    padding: 30px;
}

.lesson-comments h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1F3438;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e5e0d5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #8B5A2B;
}

.comment-form button {
    padding: 10px 20px;
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e0d5;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment {
    display: flex;
    align-items: flex-start;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.comment-reply {
    margin-top: 15px;
    padding-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #e5e0d5;
    display: flex;
}

/* Похожие курсы */
.related-courses {
    padding: 50px 0;
    background-color: #f8f5f0;
}

.related-courses h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #1F3438;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    height: 180px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-level {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.course-level.beginner {
    background-color: #4CAF50;
}

.course-level.intermediate {
    background-color: #FFA000;
}

.course-level.advanced {
    background-color: #F44336;
}

.course-details {
    padding: 20px;
}

.course-details h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.course-details h3 a {
    color: #1F3438;
    text-decoration: none;
}

.course-details h3 a:hover {
    color: #8B5A2B;
}

.course-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.course-meta span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.course-meta i {
    margin-right: 5px;
    color: #8B5A2B;
}

.course-details p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.course-details .btn {
    width: 100%;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 991px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .course-navigation, .course-instructor {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .course-header {
        padding: 40px 0 30px;
    }
    
    .course-meta-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        margin-right: 0;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .lesson-description, .lesson-materials, .lesson-comments {
        padding: 20px;
    }
    
    .lesson-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-prev, .nav-next, .complete-btn {
        width: 100%;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 10px;
    }
    
    .comment-reply {
        padding-left: 15px;
    }
} 