.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-description {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 5px 5px;
}

.video-description q {
    font-style: italic;
    color: #6c757d;
}

.video-description strong {
    color: #dc3545;
}

/* Modal video styling */
.modal-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.modal-video iframe,
.modal-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video controls */
.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.video-controls input[type="range"] {
    width: 100px;
}

.speed-control {
    display: flex;
    align-items: center;
}

.speed-control select {
    margin-left: 10px;
}