/**
 * Video Testimonial Block Styles
 */

.video-testimonial-block {
    position: relative;
    background: var(--bg-color, #fffcf9);
    padding: 104px 16px;
    overflow: hidden;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center; 
}

.video-testimonial-container {
    max-width: 1130px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quote-mark {
    position: absolute;
    z-index: 5;
    width: 91px;
    opacity: 0.8;
}

.quote-mark img {
    display: block;
    width: 100%;
    height: auto;
}

.quote-left {
    top: 0;
    left: 46px;
    transform: rotate(180deg);
}

.quote-right {
    top: 200px;
    right: 46px;
}

.decorative-circle {
    position: absolute;
    z-index: 5;
    border-radius: 50%;
    width: 322px;
    height: 322px;
    top: -20px;
    right: 280px;
}

.decorative-circle-2 {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    width: 280px;
    height: 280px;
    top: 0;
    right: 92px;
}

.gradient-oval {
    position: absolute;
    z-index: 1;
    width: 380px;
    height: 280px;
    top: 0;
    left: 574px;
}

.decorative-circle img,
.decorative-circle-2 img,
.gradient-oval img {
    display: block;    
    height: 100%;
    width: 100%;
}

/* Video Section */
.video-section {
    position: relative;
    z-index: 2;
    margin-bottom: 56px;
    padding-left: 92px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 552px;
    border-radius: 200px;
    overflow: hidden;
    opacity: 0;
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 50.725%;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    display: block;
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.play-button:hover {
    opacity: 1;
}

.play-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.play-icon {
    width: 100%;
    height: 100%;
}

/* Testimonial Content */
.testimonial-content {
    text-align: center;
    max-width: 609px;
    margin: 0 auto;
}

.testimonial-quote {
    color: #201E1E;
    font-feature-settings: 'liga' off, 'clig' off;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 98%;
    margin: 0 0 16px 0;
    opacity: 0;
}

.testimonial-quote::before {
    background: none;
}

/* Speakers List */
.speakers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    opacity: 0;
}

.speaker-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
    line-height: 125%;
}

.speaker-name {
    font-weight: 700;
    color: #201E1E;
}

.speaker-separator {
    color: #77494D;
}

.speaker-title {
    color: #77494D;
    font-weight: 700;
}

/* Video Modal/Lightbox */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 2;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    transform: rotate(90deg);
    color: #ff6b6b;
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-iframe,
.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-section {
        padding-left: 0;
    }

    .quote-left {
        left: 0;
    }

    .quote-right {
        right: 0;
    }
    .decorative-circle {
        right: 188px;
    }

    .decorative-circle-2 {
        right: 0;
    }

    .gradient-oval {
        left: 382px;
    }
}

@media (max-width: 768px) {
    .video-wrapper {
        max-width: 300px;
    }
    
    .quote-mark {
        width: 28px;
    }

    .quote-left {
        top: 0;
        left: 0;
    }

    .quote-right {
        top: 127px;
        right: 0;
    }

    .decorative-circle {
        width: 175px;
        height: 175px;
        right: 74px;
    }

    .decorative-circle-2 {
        width: 152px;
        height: 152px;
        right: 0;
    }

    .gradient-oval {
        width: 171px;
        height: 152px;
        left: 250px;
    }
    
    .play-button {
        width: 48px;
        height: 48px;
        right: 10px;
    }

    .testimonial-quote {
        color: #000000;
        font-size: 20px;
        letter-spacing: 0.2px;
        margin: 0 0 24px 0;
    }

    .speakers-list {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .speaker-item {
        flex-direction: column;
        gap: 0;
    }

    .speaker-item:first-child {
        margin-bottom: 10px;
    }
    
    .speaker-separator {
        display: none;
    }

    .video-section {
        margin-bottom: 24px;
    }

    .video-wrapper {
        max-width: 200px;
    }

    .decorative-circle {
        width: 138px;
        height: 138px;
        right: 54px;
    }

    .decorative-circle-2 {
        width: 102px;
        height: 102px;
        right: 0;
    }

    .gradient-oval {
        width: 115px;
        height: 102px;
        left: 172px;
    }
}

/* Full width alignment */
.video-testimonial-block.alignfull {
    padding-left: 0;
    padding-right: 0;
}

.video-testimonial-block.alignfull .video-testimonial-container {
    max-width: 100%;
    padding: 0 60px;
}

/* Wide alignment */
.video-testimonial-block.alignwide .video-testimonial-container {
    max-width: 1400px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-wrapper,
.testimonial-quote,
.speakers-list {
    animation: fadeIn 0.8s ease forwards;
}

.testimonial-quote {
    animation-delay: 0.2s;
}

.speakers-list {
    animation-delay: 0.4s;
}

/* Accessibility */
.play-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.video-modal-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .video-modal,
    .decorative-elements {
        display: none;
    }
}
