.program-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.program-video-item {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    text-align: center;
}

.video-thumb {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.video-thumb .lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 100%;
    cursor: pointer;
}

.play-btn:hover{
    background: #000;
}

/* Locked video state */
.program-video-item[data-locked="1"] {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

/* Lock icon */
.program-video-item[data-locked="1"] .video-thumb::after {
    content: "🔒";
    font-size: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Remove lock when unlocked */
.program-video-item[data-locked="0"] {
    opacity: 1;
    pointer-events: auto;
}

.video-completed-check{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #4CAF50;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left:10px;
}

#quiz-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quiz-popup {
    background: #fff;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

#quiz-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

#quiz-skip-btn {
    margin-top: 15px;
    background: #ccc;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
