/* --------- LESSONS PAGE ---------- */
.korean-lessons-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 58px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #14141c, #7c7c97);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.level-title {
    margin-bottom: 40px;
    font-size: 18px;
    color: #1a1a1a;
}
.cards-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.level-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 100px;
}
.lesson-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.lesson-card {
    flex: 1 1 calc(25% - 20px);
    max-width: 280px;
    min-width: 200px;
    background: var(--primary-text-color);
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.lesson-card-link {
    display: block;
    padding: 20px;
}
.lesson-card:hover {
    transform: translateY(-5px);
}
.lesson-card h3 {
    font-size: 1.4rem;
    margin: 10px 0;
    color: #1a1a1a;
}
.lesson-card p {
    font-size: 0.9rem;
    color: #666;
}
.tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: #303030;
}
.tag.free {
    background: #ffc6b0;
}
.lesson-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}
.lesson-wrapper {
    margin-bottom: 20px;
}
.back-link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #242424;
    margin-top: -54px;
    margin-bottom: 60px;
}

/* --------- Стр Уроки - Видео и текст ---------- */
.video-lesson {
    margin-bottom: 100px;
}
.text-lesson {
    margin-bottom: 50px;
}
.video-lesson-title,
.text-lesson-title {
    font-size: 26px;
}

/* ------------ Видео на стр урок ------------ */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    width: 100%; /* ← важно */
    max-width: 100%; /* ← чтобы не вылазил за экран */
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------ PDF на стр урок ------------ */
.pdf-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
.pdf-iframe {
    width: 100%;
    height: 90vh;
    border: none;
    display: block;
}

.mobile-pdf-button {
    display: none;
}

.pdf-page {
    display: block;
    margin: 20px auto;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

#pdf-container {
    overflow-x: hidden;
}
