/* Custom Video Widget Styles */
.xtrain-video-widget {
    font-family: 'Cairo', sans-serif;
    padding: 60px 20px;
    background-color: #fff;
    margin: 40px 0;
}

.xtrain-video-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 40px;
    gap: 60px;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

/* Flex Direction Logic - Match Image (Text Left, Video Right) */
.xtrain-video-container {
    flex-direction: row;
}

/* Text Column */
.xtrain-video-text {
    flex: 1.2;
    min-width: 300px;
}

.xtrain-video-title {
    font-size: 42px;
    font-weight: 800;
    color: #0c2117; /* Dark green/black from image */
    margin-bottom: 25px;
    line-height: 1.3;
}

.xtrain-video-desc {
    color: #718096;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.xtrain-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 40px;
}

.xtrain-video-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.xtrain-video-brands {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.xtrain-video-brands img {
    height: 35px;
    width: auto;
    filter: brightness(0);
    opacity: 0.8;
}

/* Visual Column */
.xtrain-video-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding: 20px;
}

/* Decorative Background */
.xtrain-video-decor {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0; /* Adjust for RTL if needed, but in image it's on the right side of the container */
    height: 80%;
    width: 90%;
    background-color: #1a365d; /* Dark Blue from image */
    border-radius: 20px;
    z-index: 0;
}

/* Optional stripes pattern if visible in image */
.xtrain-video-decor::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 8px);
}

.xtrain-video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
    aspect-ratio: 1/1; /* From image it looks roughly square */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.xtrain-video-wrapper iframe,
.xtrain-video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.xtrain-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.xtrain-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* RTL Adjustments */
body.rtl .xtrain-video-container {
    flex-direction: row; /* Keep text left and video right as per image? Or should it mirror? */
}

/* Mirror for RTL if standard behavior is expected */
/* If the user wants to follow the image EXACTLY even in RTL, we leave it as is. */

@media (max-width: 991px) {
    .xtrain-video-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
    }
    .xtrain-video-visual {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .xtrain-video-title {
        font-size: 32px;
    }
}
