* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* Навигационная кнопка */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    font-size: 0;
}

.nav-toggle-icon {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
}

.nav-toggle-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    box-shadow: 0 6px 0 white, 0 12px 0 white;
}

.nav-toggle-icon::after {
    display: none;
}

.nav-toggle-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.nav-toggle:hover {
    background: #357abd;
}

/* Боковое меню */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.hidden {
    left: -300px;
}

.sidebar-header {
    padding: 20px 20px 20px 65px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h2 {
    font-size: 18px;
    color: #4a90e2;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav ul {
    list-style: none;
}

/* Заголовок уровня */
.course-level-header {
    padding: 15px 20px;
    background: #4a90e2;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 10px;
    border-radius: 4px 4px 0 0;
    cursor: default;
}

.course-level-header:first-child {
    margin-top: 0;
}

.course-item {
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
}

.course-item:hover {
    background: #f8f9fa;
}

.course-item.active {
    background: #e3f2fd;
    border-left: 4px solid #4a90e2;
}

.course-item.active .course-item-text {
    color: #1976d2;
    font-weight: 600;
}

.course-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.course-item-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.course-item-text {
    flex: 1;
    min-width: 0;
    color: #333;
}

.course-expand-icon {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.course-item.expanded .course-expand-icon {
    transform: rotate(180deg);
}

.course-description {
    padding: 10px 20px 15px 20px;
    background: #f8f9fa;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Блок с деталями курса в центре - плоский стиль */
.course-details {
    background: white;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin: 30px 0;
    box-shadow: none;
}

.course-details-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: none; /* Нормальная капитализация */
    letter-spacing: normal;
}

.course-details-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4a90e2;
    text-transform: none; /* Нормальная капитализация */
    font-weight: 400;
    box-shadow: none;
}

.course-details-description p {
    margin: 0;
    text-transform: none; /* Нормальная капитализация */
}

.course-details-description strong {
    font-weight: 600;
    color: #333;
    text-transform: none; /* Нормальная капитализация */
}

.course-details-video {
    margin-top: 20px;
}

.course-details-video iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 8px;
    border: none;
}

/* Список уроков внутри course-details */
.course-details .lessons-list {
    margin-top: 30px;
}

/* Список уроков для курса "Джйотиш экспресс" под установкой программы */
.lessons-list-express {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.lessons-list-express h3 {
    margin-bottom: 20px;
    color: #4a90e2;
    font-size: 20px;
    font-weight: 600;
}

/* Кликабельные элементы уроков в списке */
.lesson-item-clickable {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4a90e2;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lesson-item-clickable:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

/* Кликабельные элементы уроков в списке */
.lesson-item-clickable {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4a90e2;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lesson-item-clickable:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.lesson-item-clickable.locked {
    border-left-color: #ccc;
    cursor: not-allowed;
}

.lesson-item-clickable.locked .lesson-title,
.lesson-item-clickable.locked .lesson-desc {
    color: #999;
    opacity: 0.75;
}

.lesson-item-clickable.locked:hover {
    transform: none;
    box-shadow: none;
}

.lesson-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lesson-item-clickable .lesson-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: none;
    flex: 1;
}

.lesson-item-clickable .lesson-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.lesson-item-clickable .lesson-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 0;
    display: inline-block;
    width: fit-content;
}

.lesson-item-clickable .lesson-status.free {
    background: #e8f5e9;
    color: #2e7d32;
}

.lesson-item-clickable .lock-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Стили для урока экспресс-курса со спойлерами */
.lesson-item-express {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #4a90e2;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.lesson-item-express.locked {
    border-left-color: #ccc;
}

.lesson-item-express.locked .lesson-title,
.lesson-item-express.locked .lesson-desc {
    color: #999;
    opacity: 0.75;
}

.lesson-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-watch-lesson,
.btn-spoiler-toggle {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.btn-watch-lesson {
    background: #4a90e2;
    color: white;
}

.btn-watch-lesson:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-spoiler-toggle {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-spoiler-toggle:hover {
    background: #e0e0e0;
}

.lesson-spoiler {
    margin-top: 10px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.spoiler-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-link {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    color: #4a90e2;
    text-decoration: none;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.material-link:hover {
    background: #4a90e2;
    color: white;
}

/* Основной контент */
.main-content {
    margin-left: 300px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
}

.sidebar.active ~ .main-content {
    margin-left: 300px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-auth {
    padding: 8px 16px;
    border: 1px solid #4a90e2;
    background: white;
    color: #4a90e2;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-auth:hover {
    background: #4a90e2;
    color: white;
}

/* Стиль для кнопки "УРОК ОНЛАЙН" */
.btn-auth[href="lesson-online.html"],
a.btn-auth[href*="lesson-online"] {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745;
}

.btn-auth[href="lesson-online.html"]:hover,
a.btn-auth[href*="lesson-online"]:hover {
    background: #218838 !important;
    color: white !important;
    border-color: #218838;
}

/* Страница курсов */
.courses-page {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-page h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Обертка для кликабельного блока */
.trial-lesson-central-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 900px;
    margin: 40px auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.trial-lesson-central-clickable:hover {
    opacity: 0.95;
}

/* Центральный блок Пробный урок - плоский стиль */
.trial-lesson-central {
    max-width: 100%;
    margin: 0;
    background: #e8f5e9;
    border-radius: 0;
    padding: 40px;
    text-align: center;
    box-shadow: none;
    border: 1px solid #4caf50;
    position: relative;
    transition: background-color 0.2s;
}

.trial-lesson-central-clickable:hover .trial-lesson-central {
    background: #d4edda;
}

.trial-lesson-central::before {
    display: none;
}

.trial-lesson-central h2 {
    font-size: 32px;
    color: #1b5e20;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    text-shadow: none;
}

.trial-description {
    font-size: 16px;
    color: #2e7d32;
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    font-weight: 400;
}

/* Превью видео для пробного урока */
.trial-video-preview {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    cursor: pointer;
    border: 2px solid #4caf50;
}

.preview-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.trial-lesson-central-clickable:hover .preview-thumbnail {
    opacity: 0.9;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    pointer-events: none;
    transition: all 0.2s;
    border: 3px solid white;
}

.trial-lesson-central-clickable:hover .play-button-overlay {
    background: rgba(69, 160, 73, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Превью видео для модуля */
.module-video-preview {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.video-preview-link {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #4a90e2;
}

.module-preview-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.video-preview-link:hover .module-preview-thumbnail {
    opacity: 0.9;
}

.video-preview-link .play-button-overlay {
    background: rgba(74, 144, 226, 0.9);
    border-color: white;
}

.video-preview-link:hover .play-button-overlay {
    background: rgba(74, 144, 226, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-preview-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.next-lesson-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #1b5e20;
    font-weight: 500;
    opacity: 1;
    position: relative;
    padding: 10px 15px;
    background: white;
    border-radius: 0;
    border: 1px solid #4caf50;
    display: inline-block;
}

.lesson-item .next-lesson-hint {
    margin-top: 12px;
    font-size: 15px;
    color: #2e7d32;
    font-weight: 600;
    opacity: 1;
    padding: 8px 15px;
    background: #e8f5e9;
    border-radius: 0;
    border-left: 3px solid #4caf50;
}

.lesson-item.free .next-lesson-hint {
    color: #1b5e20;
    background: #e8f5e9;
}

.trial-link-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s;
    box-shadow: none;
    border: 1px solid #45a049;
    position: relative;
    letter-spacing: 0.3px;
}

.trial-link-btn:hover {
    background: #45a049;
    transform: none;
    box-shadow: none;
}

/* Указатель прокрутки вниз */
.scroll-down-indicator {
    display: block;
    text-align: center;
    margin: 40px auto;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid #4caf50;
    border-radius: 0;
    width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #388e3c;
}

.scroll-down-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    color: #2e7d32;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 1px;
}

.scroll-down-arrows {
    font-size: 20px;
    color: #4caf50;
    letter-spacing: 8px;
    line-height: 1;
    font-weight: 400;
    /* Без анимации - статично, зеленые стрелки вниз */
}

@media (max-width: 768px) {
    .trial-lesson-central {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .trial-lesson-central h2 {
        font-size: 28px;
    }
    
    .trial-description {
        font-size: 16px;
    }
    
    .trial-link-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .scroll-down-indicator {
        margin: 30px auto;
        padding: 14px 30px;
    }
    
    .scroll-down-text {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .scroll-down-arrows {
        font-size: 18px;
        letter-spacing: 6px;
    }
    
    .trial-video-preview {
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
    }
    
    .preview-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }
}

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

/* Список уроков под пробным уроком */
.lessons-list {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lesson-item {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    transition: all 0.2s;
}

.lesson-item.free {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left-color: #4caf50;
}

.lesson-item.locked {
    background: #f9f9f9;
}

.lesson-item.locked .lesson-title,
.lesson-item.locked .lesson-desc {
    color: #999;
    opacity: 0.75;
}

.lesson-item.lesson1-highlight {
    border: 2px solid #ff9800;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.5);
    }
}

.lesson-item:not(.locked):hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.lesson-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.lesson-item.free .lesson-title {
    color: #1b5e20;
}

.lock-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.lesson-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.lesson-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    align-self: flex-start;
}

.lesson-status.free {
    background: #c8e6c9;
    color: #2e7d32;
}

.lesson-status.locked {
    background: #e0e0e0;
    color: #757575;
}

@media (max-width: 768px) {
    .lessons-list {
        margin: 30px 10px;
    }
    
    .lesson-item {
        padding: 15px;
    }
    
    .lesson-title {
        font-size: 16px;
    }
}

.course-card {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.course-card:hover:not(.locked) {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.course-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.course-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
}

.course-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.course-title,
.course-title-link {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
}

.course-title-link {
    cursor: pointer;
}

.course-title-link:hover {
    color: #4a90e2;
    text-decoration: underline;
}

.course-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
}

.course-status.free {
    background: #e8f5e9;
    color: #2e7d32;
}

.course-status.locked {
    background: #f5f5f5;
    color: #757575;
}

/* Видео блок (муляж) */
.video-placeholder {
    max-width: 800px;
    margin: 40px auto;
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.2s;
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 28px solid #333;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 6px;
}

.video-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    z-index: 1;
    text-align: center;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 0;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #357abd;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
        min-width: 280px;
    }
    
    .sidebar.active {
        left: 0;
        z-index: 1002;
    }
    
    .sidebar.active ~ .main-content {
        margin-left: 0;
    }
    
    .sidebar-header {
        padding: 15px 15px 15px 60px;
        text-align: left;
    }
    
    .sidebar-header h2 {
        font-size: 16px;
        text-align: left;
    }
    
    .course-item {
        padding: 0;
        font-size: 14px;
        white-space: normal;
        word-wrap: break-word;
        display: flex;
        flex-direction: column;
    }
    
    .course-item-header {
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .course-item-text {
        flex: 1;
        min-width: 0;
        color: #333;
        overflow: visible;
    }
    
    .course-description {
        padding: 10px 15px 15px 15px;
        font-size: 12px;
    }
    
    .course-details {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .course-details-header h2 {
        font-size: 22px;
    }
    
    .course-details-description {
        font-size: 14px;
        padding: 15px;
    }
    
    .course-details-video iframe {
        height: 250px;
    }
    
    .main-content {
        padding: 20px 10px;
        padding-top: 100px;
        margin-left: 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-toggle {
        top: 0px !important;
        left: 10px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
        width: 40px;
        height: 40px;
        font-size: 24px;
        padding: 10px 14px;
        pointer-events: auto !important;
    }
    
    .header {
        padding: 10px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-auth {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .courses-page h1 {
        font-size: 24px;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
        z-index: 1002;
    }
    
    .nav-toggle {
        top: 1px !important;
        left: 10px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
        width: 36px;
        height: 36px;
        padding: 8px 10px;
        pointer-events: auto !important;
    }
    
    .nav-toggle-icon {
        width: 20px;
        height: 16px;
    }
}
