/* Video Testimonial Card Styles */
.video-testimonial {
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Ensure thumbnail doesn't break border radius */
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #120733; /* Fallback dark background */
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-testimonial:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(253, 183, 26, 0.9); /* Bran Gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button-overlay::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(253, 183, 26, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.video-testimonial:hover .play-button-overlay {
    background-color: #FDB71A; /* Solid Gold on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 24px;
    height: 24px;
    color: #120733; /* Dark background color for contrast */
    margin-left: 4px; /* Optical center alignment for play triangle */
}


/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Ensure it is above Calendly and everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 7, 51, 0.95); /* Deep brand purple with high opacity */
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: auto;
    max-width: 95vw;
    z-index: 2;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.video-wrapper {
    position: relative;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    /* Soft ambient gold and purple glow */
    box-shadow: 0 0 60px rgba(253, 183, 26, 0.15), 0 0 100px rgba(18, 7, 51, 0.6), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(253, 183, 26, 0.3); /* Subtle gold glassmorphism border */
    display: inline-flex; /* Shrink wraps precisely to the video size */
}

.video-wrapper video {
    display: block; /* Removes inline spacing gap */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh; /* Keep it from touching top/bottom of the screen */
    border: none;
    outline: none;
    background: #000;
    border-radius: 16px;
}

.close-video-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    border-radius: 50%;
}

.close-video-modal:hover {
    opacity: 1;
    color: #FDB71A; /* Brand Gold */
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.close-video-modal svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .close-video-modal {
        top: -45px;
        right: -10px; /* Slight adjustment for mobile edges */
    }
}
