/* Основные стили для страницы курса */
.course-container {
    max-width: 100%;
    margin-left: 12.3vw;
    margin-right: 5vw;
    margin-top: 0;
    margin-bottom: 0;
}

/* Декоративные линии */
.decorative-lines {
    position: relative;
    width: 100%;
    height: 5px;
    margin-bottom: 20px;
}

.line-left, .line-right {
    position: absolute;
    top: 0;
    height: 5px;
    background-color: #000;
    z-index: 10;
}

.line-left {
    left: 0;
    width: calc(50% - 200px); /* Расстояние от левого края до названия курса */
}

.line-right {
    right: 0;
    width: calc(50% - 200px); /* Расстояние от правого края до названия курса */
}

/* Адаптивность для линий */
@media (max-width: 1200px) {
    .line-left, .line-right {
        width: calc(50% - 180px);
    }
}

@media (max-width: 768px) {
    .line-left, .line-right {
        width: calc(50% - 120px);
    }
}

@media (max-width: 480px) {
    .line-left, .line-right {
        width: calc(50% - 80px);
    }
}

/* Основной контент курса */
.course-main-content {
    display: flex;
    margin: 5px 0;
    gap: 30px;
    align-items: flex-start;
}

/* Левая часть с изображением */
.course-image-section {
    flex: 1;
    max-width: 1005px;
}

.course-main-image {
    padding-top: 6px;
    width: 100%;
    object-fit: cover;
}

/* Правая боковая панель */
.course-info-sidebar {
    flex: 0 0 auto;
    border-radius: 12px;
}

.course-info-content {
    height: 100%;
}

.course-header {
    display: flex;
}

.course-type {
    color: #009DFF;
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-name {
    color: #575757;
    font-weight: normal;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Описание курса */
.course-description {
    margin-bottom: 40px;
}

.course-description p {
    margin-bottom: 0px;
    color: #9E9E9E;
    font-size: 19px;
    line-height: 19px;
}

.course-description strong {
    color: #6D6D6D;
}

/* Программа курса */
.course-program {
    margin-bottom: 70px;
}

.program-title {
    color: #009DFF;
    font-size: 20px;
    font-weight: bold;
    text-transform: lowercase;
    margin: 0;
}

.course-program p {
    color: #9E9E9E;
    font-size: 20px;
    font-weight: 300;
    text-transform: lowercase;
    line-height: 20px;
    margin: 0;
}

.course-program h5 {
    color: #6D6D6D;
    font-size: 20px;
    line-height: 20px;
    margin: 0;
}

.another-color p {
    color: #6D6D6D;
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    margin: 0;
}

/* Стоимость и бронирование */
.course-pricing {
    display: flex;
    align-items: center;
    gap: 40px;
}

.price-label {
    display: flex;
    color: #9E9E9E;
    font-size: 19px;
    text-transform: uppercase;
    line-height: 19px;
}

.bold-price {
    color: #6D6D6D;
    font-size: 19px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 19px;
}

.price-amount {
    color: #333;
    font-size: 19px;
    font-weight: bold;
    line-height: 19px;
}

.price-note {
    color: #9E9E9E;
    font-size: 12px;
}

.btn-booking {
    background-color: #009DFF;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 3px 60px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-booking:hover {
    background-color: #007ACC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 157, 255, 0.3);
}

/* Навигация по урокам */
.course-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
  
}

.nav-item {
    display: flex;
    cursor: pointer;
    gap: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 18px;
}

.nav-item:hover {
    opacity: 0.7;
    text-decoration: none;
}

.nav-item.active .nav-type {
    color: #009DFF;
}

.nav-item.active .nav-course {
    color: #009DFF;
}

.nav-type {
    color: #575757;
    font-size: 19px;
    text-transform: uppercase;
    display: block;
}

.nav-course {
    color: #575757;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .course-main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .course-info-sidebar {
        flex: none;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .course-container {
        padding: 0 15px;
    }
    
    .course-info-sidebar {
        padding: 20px;
    }
    
    .nav-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .course-navigation {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .course-main-content {
        margin: 20px 0;
    }
    
    .course-navigation {
        margin: 20px 0;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Стили для страниц курсов */

/* Кастомные стили для пагинации */
.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: #3498db;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: #dee2e6;
    --bs-pagination-border-radius: 0.375rem;
    --bs-pagination-hover-color: #2980b9;
    --bs-pagination-hover-bg: #e9ecef;
    --bs-pagination-hover-border-color: #dee2e6;
    --bs-pagination-focus-color: #2980b9;
    --bs-pagination-focus-bg: #e9ecef;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #3498db;
    --bs-pagination-active-border-color: #3498db;
    --bs-pagination-disabled-color: #6c757d;
    --bs-pagination-disabled-bg: #fff;
    --bs-pagination-disabled-border-color: #dee2e6;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
}

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

.course-card {
    animation: fadeInUp 0.6s ease-out;
}

.course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.course-card:nth-child(3) {
    animation-delay: 0.2s;
}

.course-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Улучшение доступности */
.course-btn:focus,
.filter-btn:focus,
.enroll-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Smooth scroll для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* Утилиты для адаптивности */
@media (max-width: 480px) {
    .course-card {
        margin: 0 5px;
    }
    
    .filter-btn {
        width: 100%;
        margin-top: 10px;
    }
}