/* TNGD Video Popup Modal Styles */

.tngd-video-popup-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0a67bc;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tngd-video-popup-trigger:hover {
    transform: scale(1.1);
    background-color: #2176CC;
}

.tngd-video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #005abe;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tngd-video-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.tngd-video-modal-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: transparent;
    border: none !important;
    outline: none !important;
    border-radius: 0;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.tngd-video-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.tngd-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #FDB813;
    transform: rotate(90deg);
}

.tngd-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.tngd-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none !important;
    outline: none !important;
    pointer-events: none;
}

.tngd-video-modal-countdown {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
    pointer-events: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Mobile adjustments for Hero Banner Video */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    .banner-slider-content {
        background-color: #0e68bc !important;
        overflow: hidden !important;
    }
    .banner-slider-content {
        height: 650px !important;
    }
    #heroBannerVideo {
        width: 100% !important;
        height: 650px !important;
        margin: 0;
        object-fit: contain !important;
        object-position: center !important;
        background-color: #0e68bc !important;
        transform: none;
    }
    .tngd-video-modal-content {
        width: 100vw !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin: auto;
        border-radius: 0;
    }
}

/* Desktop adjustments for Hero Banner Video */
@media (min-width: 769px) {
    .banner-slider-content {
        padding: 5px 0 !important;
        box-sizing: border-box !important;
    }
    #heroBannerVideo {
        object-fit: contain !important;
        height: 100% !important;
    }
}
