/* Video Gallery Container Styles */
.video-gallery-part {
    padding: 60px 0;
    background-color: #f9fbfd;
}

/* Video Card Styles */
.video-card {
    cursor: pointer;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-media img {
    transform: scale(1.05);
}

.video-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.4s ease;
}

.video-card:hover .video-media::after {
    background: rgba(0, 0, 0, 0.4);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #dfa10c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.play-btn:hover {
    background: #dfa10c;
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}

.video-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.video-date {
    margin: 0;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-date i {
    color: #555;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .video-media {
        height: 200px;
    }
}
@media (max-width: 768px) {
    .video-media {
        height: 220px; /* On tablet size (col-sm-6), there are 2 columns so height can be higher */
    }
    .video-title {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    .video-media {
        height: 200px; /* Phones */
    }
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
