.category-videos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-home-videos {
    text-align: center;
    margin-top: 20px;
    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 */
}

.custom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Arrow color */
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}

.custom-nav:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

/* Position the previous arrow on the left */
.custom-prev {
    left: 10px; /* Adjust as needed */
}

/* Position the next arrow on the right */
.custom-next {
    right: 10px; /* Adjust as needed */
}


.material-icons {
    display: inline-block;
    width: 1em;
    height: 1em;
    font-family: "Material Icons", Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    vertical-align: middle;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
}