/**
 * Video Block Styles
 */

.video-block {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.video-block__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.video-block__wrapper--reverse {
    flex-direction: row-reverse;
}

/* Media Column */
.video-block__media {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-block__frame {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-placeholder {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.video-poster.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

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

.custom-play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.video-poster:hover .custom-play-button {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.custom-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #667eea;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.youtube-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-block__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-block__frame--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-block__content {
    flex: 0 0 50%;
}

.video-block__title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    color: #0F172B;
    margin: 0 0 1.5rem 0;
}

.video-block__description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #45556C;
    margin: 0 0 1.5rem 0;
}

.video-block__features {
    color: #1a237e;
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-block__features ul {
    list-style-position: outside;
    margin-left: 19px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .video-block {
        padding: 40px 0;
    }
    
    .video-block__wrapper,
    .video-block__wrapper--reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .video-block__media,
    .video-block__content {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .video-block__title {
        font-size: 24px;
    }
    
    .video-block__frame {
        max-width: 100%;
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .video-block {
        padding: 30px 0;
    }
    
    .video-block__wrapper {
        gap: 20px;
    }
    
    .video-block__title {
        font-size: 22px;
    }
}
