/**
 * Welcome Widget Styles
 *
 * Provides styling for the Welcome Elementor widget with responsive layout
 */

/* Main Container */
.welcome-widget-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Top Section - Title & Subtitle */
.welcome-top-section {
    margin-bottom: 30px;
}

.welcome-title {
    font-family: var(--iabt-font-family);
    font-size: var(--iabt-h2);
    font-weight: var(--iabt-font-bold);
    color: var(--iabt-text-heading);
    line-height: var(--iabt-line-height-heading);
    margin: 0 0 40px;
    padding: 0;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 991px) {
    .welcome-title {
        font-size: 30px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 767px) {
    .welcome-title {
        font-size: 24px;
    }
}

.welcome-subtitle {
    margin: 0;
    padding: 0;
    color: var(--iabt-text-body);
}

/* Bottom Section - Content & Video */
.welcome-bottom-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.welcome-content {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.welcome-text {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}


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

.welcome-video {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Video Embed Container with Aspect Ratio */
.welcome-video-embed {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
}

/* Aspect Ratio Variations */
.welcome-aspect-ratio-16-9 {
    padding-bottom: 56.25%; /* 16:9 */
}

.welcome-aspect-ratio-4-3 {
    padding-bottom: 75%; /* 4:3 */
}

.welcome-aspect-ratio-1-1 {
    padding-bottom: 100%; /* 1:1 */
}

.welcome-aspect-ratio-21-9 {
    padding-bottom: 42.857%; /* 21:9 */
}

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

/* Video Thumbnail Overlay */
.welcome-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.welcome-video-thumbnail:hover {
    opacity: 0.9;
}

/* Play Button */
.welcome-video-play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 68px;
    height: 48px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.welcome-video-play-button:hover {
    transform: scale(1.1);
    opacity: 1;
}

.welcome-video-play-button:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.welcome-video-play-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Hide thumbnail when video is playing */
.welcome-video-embed.playing .welcome-video-thumbnail {
    display: none;
}

.welcome-video-embed.playing {
    cursor: default;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    .welcome-title {
        font-size: 2em;
    }

    .welcome-subtitle {
        font-size: 1.3em;
    }

    .welcome-top-section {
        margin-bottom: 25px;
    }

    .welcome-bottom-section {
        gap: 25px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    .welcome-top-section {
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 1.75em;
    }

    .welcome-subtitle {
        font-size: 1.1em;
    }

    .welcome-bottom-section {
        flex-direction: column;
        gap: 20px;
    }

    .welcome-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .welcome-video {
        width: 100%;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .welcome-title {
        font-size: 1.5em;
    }

    .welcome-subtitle {
        font-size: 1em;
    }

    .welcome-text {
        font-size: 0.95em;
    }

    .welcome-top-section {
        margin-bottom: 15px;
    }

    .welcome-bottom-section {
        gap: 15px;
    }
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .welcome-widget-wrapper {
    min-height: 200px;
}

/* Content Typography Enhancements */
.welcome-text h1,
.welcome-text h2,
.welcome-text h3,
.welcome-text h4,
.welcome-text h5,
.welcome-text h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.welcome-text ul,
.welcome-text ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.welcome-text li {
    margin-bottom: 0.5em;
}

.welcome-text a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.welcome-text a:hover {
    opacity: 0.7;
}

.welcome-text strong,
.welcome-text b {
    font-weight: 700;
}

.welcome-text em,
.welcome-text i {
    font-style: italic;
}



.welcome-video-embed iframe {
    z-index: 2;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth Transitions */
.welcome-widget-wrapper * {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .welcome-video {
        display: none;
    }

    .welcome-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
