/* Container for all categories */
.custom-video-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

/* video category sidebar */
.video-category-sidebar {
    flex-basis: 25%;
}
.video-content {
    flex-basis: 75%;
}

.video-category-sidebar ul {
    list-style: none;
    padding: 0;
}

.video-category-sidebar li {
    align-items: center;
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 15px 0;
    position: relative;
}

.video-category-sidebar a {
    text-decoration: none;
    color: #021e2f;
}
.video-category-sidebar a:hover {
    color: #fe5801;
}
.video-category-sidebar .category-title{
    text-align: left;
}
.video-category-sidebar li svg {
    min-width: 15px;
    width: 15px;
    font-size: 15px;
    fill: #2e93ed;
    flex-shrink: 0;
    margin-right: 10px;
}

/* Each category box */
.video-category-box {
    width: 100%;
    max-width: 100%;
    padding-top: 50px;
}
.video-category-box:first-child{
    padding-top: 0px;
}

/* Category Title */
.category-title {
    text-align: center;
    font-size: 24px;
    color: #1639e0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Video Grid (3 columns) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Video Items */
.video-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: scale(1.05);
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 70%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
}

/* Play Icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 24px;
}

/* Video Duration */
.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
}

/* Video Titles */
.video-title {
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
    line-height: 20px;
    text-align: left;
}

/* Video Tags */
.video-tags {
    font-size: 14px;
    color: #fe5801;
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    text-align: left;
}
.video-tags svg{
    margin-top: 2px;
}

/* Lightbox */
.video-lightbox {
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Optional: adds a dark overlay */
}

/* Lightbox Content */
.video-lightbox-content {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

/* Close Button */
.video-lightbox-close {
    position: absolute;
    top: -14%;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    z-index: 999999;
}
.video-lightbox-content iframe{
    width: 60%;
    height: 70vh;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-video-container {
        flex-direction: column;
    }
    .video-lightbox-close {
        top: 0;
    }
    .video-lightbox-content {
        width: 95%;
    }
    .video-lightbox-content iframe {
        width: 100%;
        height: 40vh;
    }
}
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}