.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lesson-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.lesson-card:hover {
    transform: translateY(-5px);
}

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

.lesson-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

.lesson-card-content {
    padding: 12px 15px;
}

.lesson-card h3 {
    font-size: 16px;
    color: #f57c00; /* оранжевый */
    margin: 5px 0 2px;
  padding:15px!important;
}

.lesson-card-content p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.lesson-card-content .lesson-duration {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.lesson-card button.open-video {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f57c00;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
  	padding:10px!important;
}

.lesson-card button.open-video::before {
   
    font-size: 14px;
}

/* Заблокированная карточка */
.lesson-card.locked {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
    text-align: center;
}

.lesson-card.locked .lock-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

/* Модалка */
.video-modal {
    display: none; /* скрыта по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);

   
    justify-content: center; /* горизонтальное центрирование */
    align-items: center;     /* вертикальное центрирование */

    z-index: 9999;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-content iframe {
    width: 100%;
    height: 500px;
}

.video-modal .close-video {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}
