/* Mct SliderShow Plugin CSS */

/* Responsive slider */
.mct-slider-show {
    --mct-slider-aspect-ratio: 1920 / 500;
    --mct-slider-height: 500px;
}

.mct-slider-show .tns-carousel {
    width: 100%;
}

.mct-slider-show .mct-slider-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.mct-slider-show .mct-slider-contained {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.mct-slider-show--contained {
    overflow: hidden;
    max-width: 100%;
}

.mct-slider-show--contained .tns-outer,
.mct-slider-show--contained .tns-inner,
.mct-slider-show--contained [id$="-iw"],
.mct-slider-show--contained [id$="-ow"] {
    max-width: 100%;
    overflow: hidden;
}

/* Sidebar/widget sliders must stay inside their column even when FullScreen is selected */
.side-2 .mct-slider-show .mct-slider-fullwidth,
.widget .mct-slider-show .mct-slider-fullwidth,
.offcanvas-body .mct-slider-show .mct-slider-fullwidth {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.side-2 .mct-slider-show,
.widget .mct-slider-show,
.offcanvas-body .mct-slider-show {
    overflow: hidden;
    max-width: 100%;
}

.side-2 .mct-slider-show .tns-outer,
.side-2 .mct-slider-show .tns-inner,
.side-2 .mct-slider-show [id$="-iw"],
.side-2 .mct-slider-show [id$="-ow"],
.widget .mct-slider-show .tns-outer,
.widget .mct-slider-show .tns-inner,
.widget .mct-slider-show [id$="-iw"],
.widget .mct-slider-show [id$="-ow"],
.offcanvas-body .mct-slider-show .tns-outer,
.offcanvas-body .mct-slider-show .tns-inner,
.offcanvas-body .mct-slider-show [id$="-iw"],
.offcanvas-body .mct-slider-show [id$="-ow"] {
    max-width: 100%;
    overflow: hidden;
}

/* Contained/sidebar sliders: use admin SliderHeight, not viewport-scaled aspect ratio */
.mct-slider-show--contained .mct-slider-contained,
.side-2 .mct-slider-show .tns-carousel,
.widget .mct-slider-show .tns-carousel,
.offcanvas-body .mct-slider-show .tns-carousel {
    min-height: var(--mct-slider-height, 500px);
}

.mct-slider-show--contained [id$="-iw"],
.side-2 .mct-slider-show [id$="-iw"],
.widget .mct-slider-show [id$="-iw"],
.offcanvas-body .mct-slider-show [id$="-iw"] {
    aspect-ratio: unset;
    height: var(--mct-slider-height, 500px) !important;
}

.mct-slider-show--contained .mct-slider-slide:not(.mct-slider-slide--overlay),
.mct-slider-show--contained .mct-slider-slide--overlay,
.side-2 .mct-slider-show .mct-slider-slide:not(.mct-slider-slide--overlay),
.side-2 .mct-slider-show .mct-slider-slide--overlay,
.widget .mct-slider-show .mct-slider-slide:not(.mct-slider-slide--overlay),
.widget .mct-slider-show .mct-slider-slide--overlay,
.offcanvas-body .mct-slider-show .mct-slider-slide:not(.mct-slider-slide--overlay),
.offcanvas-body .mct-slider-show .mct-slider-slide--overlay {
    aspect-ratio: unset;
    height: var(--mct-slider-height, 500px) !important;
    min-height: var(--mct-slider-height, 500px);
}

/* DeviceVisibility: 0=Both, 1=MobileOnly, 2=DesktopOnly */
@media (min-width: 992px) {
    section.mct-slider-show[data-device-visibility="1"],
    section.mct-slider-show.mct-slider-show--mobile-only {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    section.mct-slider-show[data-device-visibility="2"],
    section.mct-slider-show.mct-slider-show--desktop-only {
        display: none !important;
    }

    .mct-slider-show [id$="-iw"] {
        aspect-ratio: unset;
        height: var(--mct-slider-height, 500px) !important;
    }

    .mct-slider-show .mct-slider-slide:not(.mct-slider-slide--overlay),
    .mct-slider-show .mct-slider-slide--overlay {
        aspect-ratio: unset;
        height: var(--mct-slider-height, 500px) !important;
        min-height: var(--mct-slider-height, 500px);
    }

    .mct-slider-show .mct-slider-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

.mct-slider-show--mobile .tns-carousel [data-controls] {
    display: none !important;
}

.mct-slider-show--mobile .mct-slider-slide-inner {
    padding-left: 0 !important;
}

.mct-slider-show .mct-slider-slide {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.mct-slider-show .mct-slider-slide:not(.mct-slider-slide--overlay) {
    aspect-ratio: var(--mct-slider-aspect-ratio);
}

.mct-slider-show .mct-slider-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
}

.mct-slider-show--contained .mct-slider-slide--overlay,
.side-2 .mct-slider-show .mct-slider-slide--overlay,
.widget .mct-slider-show .mct-slider-slide--overlay,
.offcanvas-body .mct-slider-show .mct-slider-slide--overlay {
    height: var(--mct-slider-height, 500px) !important;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mct-slider-show .mct-slider-slide--overlay {
    aspect-ratio: var(--mct-slider-aspect-ratio);
    height: auto !important;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.mct-slider-show .tns-gallery > .tns-item.mct-slider-slide--overlay:not(.tns-slide-active) {
    height: 100%;
    aspect-ratio: unset;
}

.mct-slider-show .mct-slider-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
}

.mct-slider-show .mct-slider-slide-inner,
.mct-slider-show .mct-slider-slide-content {
    height: 100%;
    min-height: 100%;
}

.mct-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.slide-item {
    position: relative;
    width: 100%;
    display: block;
}

.slide-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slide-link:hover .slide-image {
    transform: scale(1.02);
}

.slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-item:hover .slide-content-overlay {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    z-index: 2;
}

.slide-big-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.slide-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.slide-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.slide-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: #ffffff !important;
    text-decoration: none;
}

.slide-text-only {
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Slider Navigation Bullets */
.slider-bullets {
    margin-top: 1.5rem;
}

.slider-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background-color: transparent;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.slider-bullet.active,
.slider-bullet:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: scale(1.2);
}

.slider-bullet:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* No slides message */
.no-slides-message {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content-overlay {
        padding: 1rem;
        opacity: 1;
    }
    
    .slide-big-title {
        font-size: 1.8rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-text {
        font-size: 0.9rem;
    }
    
    .slide-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .slide-text-only {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .slide-big-title {
        font-size: 1.5rem;
    }
    
    .slide-title {
        font-size: 1.1rem;
    }
    
    .slide-content-overlay {
        padding: 0.5rem;
    }
}

/* Loading animation */
.mct-slider-container.loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mct-slider-container.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility improvements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Owl Carousel compatibility */
.owl-carousel .owl-item {
    width: 100% !important;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

/* Custom theme colors support */
.mct-slider-container[data-theme="dark"] .slide-text-only {
    background-color: #2c3e50;
    color: #ffffff;
}

.mct-slider-container[data-theme="light"] .slide-text-only {
    background-color: #ffffff;
    color: #333333;
}
