/* Video & Text Widget Styles */
.video-text-container {
    width: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.video-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    align-items: stretch;
}

/* Video Section */
.video-section {
    background: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.video-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

.video-wrapper iframe {
    border: none;
}

.video-wrapper video {
    object-fit: cover;
}

/* Video Placeholder and Error States */
.video-wrapper.video-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.video-placeholder-content {
    text-align: center;
    padding: 40px 20px;
}

.video-placeholder-content .video-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.video-placeholder-content h3 {
    color: #374151;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.video-placeholder-content p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.video-error {
    text-align: center;
    padding: 40px 20px;
}

.video-error p {
    color: #dc2626;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Text Section */
.text-section {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

.text-content {
    max-width: 500px;
    width: 100%;
}

.text-content .heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 30px 0;
    line-height: 1.2;
    font-family: 'Arial', sans-serif;
}

.text-content .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 40px;
}

.text-content .description p {
    margin: 0 0 20px 0;
}

.text-content .description p:last-child {
    margin-bottom: 0;
}

.button-wrapper {
    margin-top: 30px;
}

.video-text-button {
    display: inline-block;
    padding: 16px 32px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #2563eb;
    cursor: pointer;
}

.video-text-button:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* Layout Direction Classes */
.video-text-container.video-right .video-text-grid {
    grid-template-columns: 1fr 1fr;
}

.video-text-container.video-right .video-section {
    order: 2;
}

.video-text-container.video-right .text-section {
    order: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-text-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .video-section {
        padding: 0;
    }
    .text-section {
        padding: 40px 30px;
    }
    
    .text-content .heading {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .text-content .description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .video-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .video-text-container {
        padding: 20px;
    }
    
    .video-section {
        padding: 0;
    }
    .text-section {
        padding: 30px 20px;
    }
    
    .text-content .heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .text-content .description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .video-text-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .video-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .video-text-container {
        padding: 15px;
    }
    
    .video-section {
        padding: 0;
    }
    .text-section {
        padding: 25px 15px;
    }
    
    .text-content .heading {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    .text-content .description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .video-text-button {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

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

.video-text-container {
    animation: videoTextFadeIn 0.8s ease-out;
}

.video-section {
    animation: videoTextFadeIn 0.8s ease-out 0.2s both;
}

.text-section {
    animation: videoTextFadeIn 0.8s ease-out 0.4s both;
}

/* Focus states for accessibility */
.video-text-button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-text-button {
        border-width: 3px;
    }
    
    .text-content .heading {
        text-shadow: 1px 1px 0 #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .video-text-container,
    .video-section,
    .text-section {
        animation: none;
    }
    
    .video-text-button:hover {
        transform: none;
    }
} 