/*=================================
    Video Gallery Styles
==================================*/

.video-gallery-area {
    position: relative;
    background-color: var(--smoke-color2, #F8FAFE);
    padding: 120px 0;
}

.video-gallery-card {
    background: var(--white-color, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(8, 25, 51, 0.04);
    border: 1px solid var(--th-border-color2, #EEEFF2);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(211, 34, 77, 0.15);
    /* Glow matching theme color */
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-gallery-card:hover .video-thumbnail {
    transform: scale(1.06);
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(8, 25, 51, 0.6) 0%, rgba(8, 25, 51, 0) 60%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.video-gallery-card:hover .video-overlay-gradient {
    opacity: 0.95;
    background: linear-gradient(0deg, rgba(211, 34, 77, 0.4) 0%, rgba(8, 25, 51, 0.7) 100%);
}

.video-play-btn-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--theme-color, #D3224D);
    color: var(--white-color, #ffffff);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(211, 34, 77, 0.6);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    animation: playPulse 2s infinite;
}

.video-gallery-card:hover .video-play-btn-inline {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--title-color, #081933);
    box-shadow: 0 0 20px rgba(8, 25, 51, 0.4);
    animation: none;
}

@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 34, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(211, 34, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 34, 77, 0);
    }
}

.video-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--title-color, #081933);
    margin-bottom: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-gallery-card:hover .video-title {
    color: var(--theme-color, #D3224D);
}

/* Play state */
.video-thumb-wrap.is-playing img,
.video-thumb-wrap.is-playing .video-overlay-gradient,
.video-thumb-wrap.is-playing .video-play-btn-inline {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-thumb-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 5;
    border-radius: inherit;
}

/* Slider Controls wrapper */
.sec-btn-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-navigation {
    display: flex;
    gap: 12px;
}