/* Стили для страницы Kursübersicht */
.site-content {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: none;
}

.dashboard-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
    box-sizing: border-box;
}

.dashboard-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #960030;
    display: none;
}

.course-banner {
    width: 100%;
    margin-bottom: 20px;
}

.course-banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    max-height: 200px;
}

.back-to-course {
    display: inline-block;
    padding: 10px 20px;
    background: #960030;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.back-to-course:hover {
    background: #B82E3F;
    transform: scale(1.02);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.lesson-card {
    position: relative;
    display: block;
    background: #40291B;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    min-width: 0;
}

.lesson-card:hover {
    transform: scale(1.05);
}

.lesson-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lesson-card h3 {
    font-size: 18px;
    padding: 15px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #698747;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.news-section {
    background: #40291B;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-container .news-section h2 {
    font-size: 24px;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    color: #FFFFFF;
}

.news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.news-content {
    color: #FFFFFF;
}

.news-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.news-content a {
    color: #698747 !important;
    text-decoration: underline;
}

.news-content a:hover {
    color: #960030 !important;
    text-decoration: underline;
}

.course-selection-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
}

.course-selection-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #FFFFFF;
}

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

.course-card {
    background: #40291B;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 0;
}

.course-card:hover {
    transform: scale(1.05);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 18px;
    padding: 15px;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-message {
    background: #960030;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-message h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-align: center;
}

.welcome-message p {
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.welcome-message .signature {
    margin-top: 30px;
}

/* Адаптивность */
@media (max-width: 1279px) {
    .dashboard-container,
    .course-selection-container {
        max-width: 960px;
    }

    .courses-grid,
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 959px) {
    .dashboard-container,
    .course-selection-container {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .site-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .site-content > *:first-child {
        margin-top: 0 !important;
    }

    .dashboard-container,
    .course-selection-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .courses-grid,
    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container h1,
    .course-selection-container h1 {
        font-size: 28px;
    }

    .welcome-message {
        padding: 15px;
    }

    .welcome-message h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .welcome-message p {
        font-size: 14px;
    }

    .welcome-message .signature {
        margin-top: 20px;
    }

    .course-banner img {
        max-height: 150px;
    }

    .course-card img,
    .courses-grid .course-card img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }
	
	.back-to-course {
    	display: inline-block;
    	padding: 10px 20px;
    	background: #960030;
    	color: #FFFFFF;
    	text-decoration: none;
    	border-radius: 5px;
    	margin-bottom: 20px;
    	margin-top: 20px;
    	transition: background 0.3s ease, transform 0.3s ease;
	}

	.back-to-course:hover {
    	background: #B82E3F;
    	transform: scale(1.02);
	}
	.back-to-modules {
    	display: inline-block;
    	padding: 10px 20px;
    	background: #960030;
    	color: #FFFFFF;
    	text-decoration: none;
    	border-radius: 5px;
    	margin-bottom: 20px;
    	margin-top: 20px;
    	transition: background 0.3s ease, transform 0.3s ease;
	}

	.back-to-modules:hover {
    	background: #B82E3F;
    	transform: scale(1.02);
	}


}
