.category-videos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden; /* Ensures the image doesn't overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.video-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ensures the image covers the container without distorting */
    object-position: center; /* Centers the image */
    position: absolute; /* Positions the image behind the content */
    top: 0;
    left: 0;
    z-index: 1; /* Ensures the image is behind the content */
}

.video-info {
    position: relative; /* Ensures the content is above the image */
    z-index: 2; /* Places the content above the image */
    padding: 20px;
    border-radius: 10px;
    
}

.video-info h2, .video-info h3 {
    margin: 10px 0;
}

.video-description {
    margin-top: 10px;
}

.play-video {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
}

.play-video-icon {
    width: 50px; /* Adjust size */
    height: 50px; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image fits properly */
    transition: opacity 0.2s ease-in-out;
}

.play-video:hover .play-video-icon {
    opacity: 0.8;
}

.video-frame {
    width: 100%;
    height: 400px;
}

.video_h2_title {
    color: black;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .video-preview {
        height: 250px; /* Reduce height for smaller screens */
    }

    .video-info {
        padding: 10px;
    }

    .video-info h2, .video-info h3 {
        font-size: 16px;
        margin: 5px 0;
    }

    .video-description {
        font-size: 14px;
    }

    .play-video {
        font-size: 16px;
        padding: 8px 16px;
    }

    .video-frame {
        height: 250px; /* Adjust the height of the video on mobile */
    }
}

iframe.video-frame {
    border: none; /* Removes any default border */
    outline: none; /* Ensures there's no focus outline */
}