/* Video Features Block CSS */
.video-features-block {
    position: relative;
    overflow: visible;
}

.images-wrapper {
    position: relative;
    padding-bottom: 40px;
    /* Space for absolute overlay image */
}

.main-image-box {
    width: 85%;
    border-radius: 20px;
    overflow: hidden;
}

.main-image-box img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.overlay-image-box {
    width: 45%;
    bottom: 0px;
    right: 0px;
    border-radius: 20px;
    border: 8px solid #ffffff;
    overflow: hidden;
}

.overlay-image-box img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Pulsating Play Button */
.video-play-btn {
    position: absolute;
    left: 0;
    top: 50%;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--primary-color) !important;
    color: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.video-play-btn .play-icon-triangle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 5px;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    animation: pulsateRing 1.8s infinite ease-out;
    opacity: 0;
}

@keyframes pulsateRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.feature-item-box {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feat-icon {
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    width: 20px;
    height: 20px;
}

/* Modal Overlay Styling */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.video-modal-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    outline: none;
}

.video-modal-ratio-box {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-modal-ratio-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 991.98px) {
    .video-play-btn {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .video-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
}