/**
 * Elementor Slider X CSS
 */

:root {
    --sx-primary: #003066;
    --sx-white: #ffffff;
}

.slider-x-container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Default, overridden by Elementor styles */
    min-height: 400px;
    overflow: hidden;
    background-color: var(--sx-primary);
    font-family: 'Inter', sans-serif;
    /* fallback */
}

/* Main Slider */
.slider-x-main {
    width: 100%;
    height: 100%;
}

.slider-x-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}

/* Overlay */
.slider-x-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 48, 102, 0.6);
    /* Default overlay */
    z-index: 1;
}

/* Content */
.slider-x-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Vertical Center by default */
    justify-content: flex-start;
    /* Horizontal Left by default */
    padding: 0 5%;
}

.slider-x-content-inner {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

/* Typography elements */
.slider-x-title {
    color: var(--sx-white);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.slider-x-subtitle {
    color: #e0e0e0;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

/* Buttons */
.slider-x-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.slider-x-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.slider-x-btn-1 {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sx-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.slider-x-btn-1:hover {
    background-color: var(--sx-white);
    color: var(--sx-primary);
}

.slider-x-btn-2 {
    background-color: transparent;
    color: var(--sx-white);
}

.slider-x-btn-2:hover {
    text-decoration: underline;
}

.slider-x-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.slider-x-btn:hover .slider-x-arrow {
    transform: translateX(4px);
}

/* Thumbnails Navigation */
.slider-x-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 48, 102, 0.9) 0%, rgba(0, 48, 102, 0) 100%);
    z-index: 10;
    box-sizing: border-box;
    /* Padding to match the content */
    padding: 0 5%;
    padding-bottom: 30px;
}

.slider-x-thumb {
    cursor: pointer;
    position: relative;
    padding-top: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slider-x-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.slider-x-thumb.swiper-slide-thumb-active {
    opacity: 1;
}

.slider-x-thumb.swiper-slide-thumb-active::before {
    background-color: var(--sx-white);
}

.slider-x-thumb-title {
    color: var(--sx-white);
    font-size: 0.875rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Animations for active slide elements */
.swiper-slide-active .slider-x-title,
.swiper-slide-active .slider-x-subtitle,
.swiper-slide-active .slider-x-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Elementor Editor Fixes */
.elementor-editor-active .slider-x-title,
.elementor-editor-active .slider-x-subtitle,
.elementor-editor-active .slider-x-buttons {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-x-title {
        font-size: 2rem;
    }

    .slider-x-subtitle {
        font-size: 1rem;
    }

    .slider-x-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-x-thumbs {
        display: none;
        /* Hide thumbs on mobile if it gets too crowded, or customize it */
    }
}