.activoz-hero-video-section {
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 50;
}

.hero-video-container {
    position: relative;
    background-color: #E9E7DE;
    padding: 0rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-video-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-placeholder-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: -4rem 0;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-video-placeholder-wrapper {
        margin: -5rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-video-placeholder-wrapper {
        margin: -6rem 0;
    }
}

.hero-video-placeholder {
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.hero-video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-video-placeholder:hover .hero-video-placeholder-image {
    background: transparent;
}

.hero-video-placeholder:focus {
    outline: 3px solid #046E5A;
    outline-offset: 4px;
}

.hero-video-placeholder-image,
.hero-video-placeholder-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: transparent;
}

.hero-video-placeholder-video {
    object-fit: cover;
}

.hero-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-video-play-overlay {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1024px) {
    .hero-video-play-overlay {
        width: 120px;
        height: 120px;
    }
}

.hero-video-placeholder:hover .hero-video-play-overlay {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-play-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .hero-video-play-icon {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 1024px) {
    .hero-video-play-icon {
        width: 60px;
        height: 60px;
    }
}

/* Lightbox Styles */
.hero-video-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-lightbox[style*="display: flex"],
.hero-video-lightbox[style*="display:block"] {
    display: flex !important;
}

.hero-video-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 999998 !important;
}

.hero-video-lightbox-content {
    position: relative !important;
    width: 80% !important;
    max-width: 1400px;
    max-height: 90vh;
    z-index: 999999 !important;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-video-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 24px;
    line-height: 1;
    color: #000;
    padding: 0;
}

.hero-video-lightbox-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.hero-video-lightbox-close:focus {
    outline: 3px solid #046E5A;
    outline-offset: 2px;
}

.hero-video-lightbox-video-wrapper {
    position: relative;
    width: 100% !important;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#hero-video-lightbox-player,
[id^="hero-video-lightbox-player-"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

#hero-video-lightbox-player iframe,
[id^="hero-video-lightbox-player-"] iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-video-lightbox-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .hero-video-lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-video-lightbox-content {
        width: 85%;
    }
}

