/* ST Slider Styles */
.st-slider-wrapper {
    width: 100%;
    max-width: 100%;
    /* Ensure images are not upscaled beyond their natural size */
    --max-image-width: 1920px;
}

.st-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background-color: #1a1a1a; /* Dark background while loading */
    height: 600px; /* Default height for desktop - overridden by shortcode */
    width: 100%;
    perspective: 1300px;
    /* Maintain aspect ratio where possible */
    max-height: 100vh;
}

/* Aspect ratio support for better image display */
@supports (aspect-ratio: 16/9) {
    .st-slider-container[style*="675"] {
        aspect-ratio: 16/9;
        max-height: 675px;
    }
    
    .st-slider-container[style*="562"] {
        aspect-ratio: 16/9;
        max-height: 562px;
    }
    
    .st-slider-container[style*="450"] {
        aspect-ratio: 16/9;
        max-height: 450px;
    }
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16/9) {
    .st-slider-container[style*="675"]::before {
        content: '';
        display: block;
        padding-top: 56.25%; /* 16:9 aspect ratio */
    }
    
    .st-slider-container[style*="675"] .st-slider {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }
}

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

.st-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.st-slide.st-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: all;
}

.st-slide.st-exit {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.st-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use 'cover' for best aspect ratio preservation */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Improve image rendering quality - prevent pixelation */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    /* Prevent blur from scaling */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Hardware acceleration for smoother rendering */
    transform: translateZ(0) scale(1.001);
    will-change: transform;
    /* Ensure image fills container properly */
    height: 100%;
    width: 100%;
}

/* Optional Ken Burns effect - disabled by default for better image quality */
/* To enable, add 'ken-burns' class to slider wrapper */
.st-slider-wrapper.ken-burns .st-slide-bg {
    transform: scale(1.08);
    transition: transform 12s ease-out;
}

.st-slider-wrapper.ken-burns .st-slide.st-active .st-slide-bg {
    transform: scale(1);
    animation: kenBurnsZoom 12s cubic-bezier(0.1, 0.1, 0.25, 1) forwards;
}

/* Ken Burns zoom animation - subtle and smooth */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.st-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 0 60px;
    color: white;
    /* Modern gradient overlay matching the image design */
    background: linear-gradient(to top,
        rgba(0, 51, 102, 0.95) 0%,
        rgba(0, 51, 102, 0.85) 15%,
        rgba(0, 51, 102, 0.6) 35%,
        rgba(0, 51, 102, 0.3) 55%,
        rgba(0, 0, 0, 0.1) 75%,
        transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.3s;
    width: 100%;
}

.st-content-container {
    max-width: 1500px !important;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.st-slide.st-active .st-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.st-slide-motto {
    font-size: 11px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fcbe1f !important; /* Branded Golden Yellow */
    border-left: 3px solid #1A64CC; /* Branded Main Blue */
    padding-left: 10px;
    margin-bottom: 15px;
    font-family: inherit;
    line-height: 1.2;
    display: block;
    width: fit-content;
}

.st-slide-motto .motto-phrase {
    display: inline-block;
    opacity: 0;
    transform: translateY(-80px);
    filter: blur(8px);
}

.st-slide.st-active .st-slide-motto .motto-phrase {
    animation: fallFromSky 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fallFromSky {
    0% {
        opacity: 0;
        transform: translateY(-80px);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        transform: translateY(8px);
        filter: none;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: none;
    }
}

.st-slide-tag {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.st-slide-content h2, .st-slide-title {
    font-size: 35px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: 2px;
    line-height: 1.1 !important;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.5s;
    max-width: 900px;
}

.st-slide.st-active .st-slide-content h2,
.st-slide.st-active .st-slide-content .st-slide-title {
    transform: translateY(0);
    opacity: 1;
}

.st-slide-content p {
    font-size: 16px;
    max-width: 800px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.7s;
    text-transform: none !important;
    letter-spacing: 2px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.st-slide.st-active .st-slide-content p {
    transform: translateY(0);
    opacity: 1;
}

.st-slide-btn {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease, background-color 0.3s ease;
    transition-delay: 0.9s;
}

.st-slide.st-active .st-slide-btn {
    transform: translateY(0);
    opacity: 1;
}

.st-slide-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
    border-color: #fff;
}

/* Navigation Buttons */
.st-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.st-slider-btn:hover {
    opacity: 1;
    color: #E3A72F;
    transform: translateY(-50%) scale(1.1);
}

.st-prev-btn {
    left: 20px;
}

.st-next-btn {
    right: 20px;
}

/* Add a subtle hover effect to show which direction user can navigate */
.st-prev-btn:hover i {
    transform: translateX(-3px);
}

.st-next-btn:hover i {
    transform: translateX(3px);
}

/* Reduce the width of Style 1 navigation arrows */
.st-style1 .st-next-btn,
.st-style1 .st-prev-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.st-slider-btn i {
    transition: transform 0.3s ease;
}

/* Progress Bar */
.st-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 10;
}

.st-progress-bar {
    height: 100%;
    width: 0;
    background: #0046BE;
    transition: width 0.1s linear;
}

/* Indicators */
.st-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 20;
}

.st-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.st-indicator:hover {
    transform: scale(1.2);
}

.st-indicator.st-active {
    background-color: #0046BE;
    transform: scale(1.2);
}

.st-indicator::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.st-indicator.st-active::after {
    border-color: rgba(0, 70, 190, 0.3);
}

/* Responsive adjustments */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
    .st-slider-container {
        height: 550px;
    }

    .st-slide-content {
        padding: 50px 0;
    }

    .st-content-container {
        padding: 0 50px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title {
        font-size: 38px;
        max-width: 700px;
        font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .st-slider-container {
        height: 500px;
    }

    .st-slide-content {
        padding: 45px 0;
    }

    .st-content-container {
        padding: 0 60px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title {
        font-size: 34px;
        margin-bottom: 12px;
        max-width: 600px;
        font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    }

    .st-slide-content p {
        font-size: 16px;
        margin-bottom: 20px;
        max-width: 90%;
    }

    .st-slider-btn {
        width: 45px;
        height: 45px;
        /* Move buttons slightly away from content */
        background-color: transparent;
    }
    
    .st-prev-btn {
        left: 15px;
    }
    
    .st-next-btn {
        right: 15px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767px) {
    .st-slider-container {
        height: 450px;
    }

    .st-slide-content {
        padding: 35px 0;
    }

    .st-content-container {
        /* Increase padding to prevent text from getting too close to arrows */
        padding: 0 50px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title {
        font-size: 28px;
        margin-bottom: 10px;
        max-width: 500px;
        font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    }

    .st-slide-content p {
        font-size: 16px;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .st-slide-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .st-slider-btn {
        /* Make buttons smaller and more transparent on mobile */
        width: 38px;
        height: 38px;
        font-size: 14px;
        opacity: 0.6;
        /* Move buttons to edges */
        background-color: transparent;
    }

    .st-prev-btn {
        left: 10px;
    }

    .st-next-btn {
        right: 10px;
    }
    
    /* Improve background image positioning for mobile */
    .st-slide-bg {
        background-position: center center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .st-slider-container {
        height: 400px;
    }

    .st-slide-content {
        padding: 30px 0;
    }

    .st-content-container {
        /* Increase horizontal padding to prevent text from getting too close to arrows */
        padding: 0 45px;
    }

    .st-slide-tag {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 8px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title {
        font-size: 24px;
        margin-bottom: 10px;
        max-width: 100%;
        font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    }

    .st-slide-content p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .st-slide-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .st-slider-btn {
        /* Position the buttons at the edges and make them smaller */
        width: 34px;
        height: 34px;
        font-size: 12px;
        opacity: 0.6;
        top: 50%;
    }
    
    .st-prev-btn {
        left: 8px;
    }
    
    .st-next-btn {
        right: 8px;
    }

    .st-slider-progress {
        height: 3px;
    }

    .st-indicators {
        bottom: 15px;
        gap: 8px;
    }

    .st-indicator {
        width: 8px;
        height: 8px;
    }
    
    /* Optimize background image for mobile */
    .st-slide-bg {
        background-position: center center;
    }
}

/* Very small devices (small phones, less than 400px) */
@media (max-width: 399px) {
    .st-slider-container {
        height: 350px;
    }

    .st-slide-content {
        padding: 30px 0;
    }

    .st-slide-tag {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title {
        font-size: 20px;
        margin-bottom: 8px;
        max-width: 100%;
        font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    }

    .st-slide-content p {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .st-slide-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .st-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
        opacity: 0.8;
    }
}

/* Style 1 - Alternative Slider Design */

/* Main wrapper styles */
.st-style1 .st-slider-container {
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Content positioning and styling */
.st-style1 .st-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
        rgba(0, 10, 50, 0.98) 0%,
        rgba(0, 15, 70, 0.9) 10%,
        rgba(0, 20, 90, 0.8) 20%,
        rgba(0, 30, 110, 0.6) 30%,
        rgba(0, 40, 130, 0.4) 40%,
        rgba(0, 50, 150, 0.2) 50%,
        rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    pointer-events: none;
}

.st-style1 .st-slide-content {
    background: transparent;
    padding: 80px 0 50px;
    z-index: 2;
}

/* Title styling */
.st-style2 .st-slide-title {
    font-size: 40px;
    font-weight: 700 !important;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
    color: white !important;
    margin-bottom: 20px;
    line-height: 1.1 !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.st-style1 .st-slide-title {
    font-size: 44px;
    font-weight: 700 !important;
    font-family: 'Butler', 'Georgia', serif !important;
    color: white !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #E3A72F;
    padding-left: 20px;
    line-height: 1.1 !important;
    max-width: 700px;
}

.st-style1 .st-slide-content p {
    font-size: 14px !important;
    line-height: 1.6;
    max-width: 700px;
}

/* Tag styling */
.st-style1 .st-slide-tag {
    background: linear-gradient(135deg, #0046BE, #00A1FF);
    color: #fff;
    font-weight: 600;
    font-size: 10px !important;
    text-transform: uppercase;
    border-radius: 15px;
    padding: 5px 14px;
    margin-bottom: 15px;
    letter-spacing: 0.8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 70, 190, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.st-style1 .st-slide-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.st-style1 .st-slide-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 70, 190, 0.4);
}

.st-style1 .st-slide-tag:hover::before {
    transform: translateY(0);
}

/* Button styling - Matching Style 5 */
.st-style1 .st-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #0046be;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 12px 35px rgba(0, 70, 190, 0.25), 0 4px 15px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.st-style1 .st-slide-btn:hover {
    background: #000;
    color: #ffffff;
    transform: translateY(-2px);
}

.st-style1 .st-slide-btn svg,
.st-style1 .st-slide-btn i {
    transition: transform 0.3s ease;
}

.st-style1 .st-slide-btn:hover svg,
.st-style1 .st-slide-btn:hover i {
    transform: translateX(4px);
}

/* Navigation buttons */
.st-style1 .st-slider-btn.st-style1-btn {
    background-color: rgba(227, 167, 47, 0.85);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 0;
    opacity: 0.9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.st-style1 .st-slider-btn.st-style1-btn:hover {
    background-color: #E3A72F;
    color: #000;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.05);
}

/* Style 1 indicators */
.st-style1 .st-indicators {
    bottom: 25px;
}

.st-style1 .st-indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 2px;
    position: relative;
    overflow: hidden;
}

.st-style1 .st-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0046BE, #00A1FF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.st-style1 .st-indicator:hover {
    transform: scale(1.3);
}

.st-style1 .st-indicator:hover::before {
    opacity: 0.7;
}

.st-style1 .st-indicator.st-active {
    width: 25px;
    border-radius: 5px;
    background-color: transparent;
    transform: scale(1);
}

.st-style1 .st-indicator.st-active::before {
    opacity: 1;
}

.st-style1 .st-indicator.st-active::after {
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0, 70, 190, 0.5);
}

/* Style 1 navigation arrows */
.st-style1 .st-prev-btn,
.st-style1 .st-next-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 30, 100, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.7;
}

.st-style1 .st-prev-btn {
    left: 15px;
    border-radius: 50%;
    transform: translateX(-10px);
}

.st-style1 .st-next-btn {
    right: 15px;
    border-radius: 50%;
    transform: translateX(10px);
}

.st-style1 .st-prev-btn:hover,
.st-style1 .st-next-btn:hover {
    background: linear-gradient(135deg, #0046BE, #00A1FF);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 70, 190, 0.4);
    transform: translateX(0);
}

.st-style1 .st-slider-btn i {
    font-size: 20px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.st-style1 .st-prev-btn:hover i {
    transform: translateX(-3px) scale(1.1);
}

.st-style1 .st-next-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

/* Hide navigation arrows on tablets and mobile devices */
@media (max-width: 991px) {
    .st-slider-btn,
    .st-style1 .st-slider-btn.st-style1-btn {
        display: none;
    }
}

/* Indicators/dots positioned at the bottom */
.st-style1 .st-indicators-bottom {
    bottom: 20px;
    top: auto;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    display: inline-flex;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.st-style1 .st-indicator {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.st-style1 .st-indicator.st-active {
    background-color: #E3A72F;
    transform: none;
    box-shadow: 0 0 8px rgba(227, 167, 47, 0.6);
}

.st-style1 .st-indicator:hover {
    background-color: rgba(227, 167, 47, 0.7);
    transform: scaleY(1.2);
    box-shadow: 0 0 5px rgba(227, 167, 47, 0.4);
}

/* Progress bar at top */
.st-style1 .st-progress-top {
    bottom: 0;
    top: auto;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
}

.st-style1 .st-progress-bar {
    background: linear-gradient(to right, #E3A72F, #F5C462);
    box-shadow: 0 1px 5px rgba(227, 167, 47, 0.5);
    transition: width 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Responsive adjustments for Style 1 */
@media (max-width: 991px) {
    .st-style1 .st-slide-title {
        font-size: 36px;
        padding-left: 15px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-family: 'Butler', 'Georgia', serif !important;
    }
    
    .st-style1 .st-slide-content {
        padding: 70px 20px 40px;
        background: transparent;
    }
    
    .st-style1 .st-content-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .st-style1 .st-slide-content p {
        font-size: 18px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .st-style1 .st-slide-title {
        font-size: 25px !important;
        padding-left: 12px;
        max-width: 95%;
        border-left-width: 4px;
        font-family: 'Butler', 'Georgia', serif !important;
    }
    
    .st-style1 .st-slide-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .st-style1 .st-slide-content {
        padding: 60px 15px 40px;
        background: transparent;
    }
    
    .st-style1 .st-slide::before {
        background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 15%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.1) 90%,
            rgba(0, 0, 0, 0) 100%);
    }
    
    .st-style1 .st-slide-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .st-style1 .st-indicators-bottom {
        bottom: 15px;
    }
}

@media (max-width: 575px) {
    .st-style1 .st-slide-title {
        font-size: 22px;
        padding-left: 10px;
        border-left-width: 3px;
        max-width: 100%;
        line-height: 1.3;
        font-family: 'Butler', 'Georgia', serif !important;
    }
    
    .st-style1 .st-slide-content {
        padding: 50px 10px 30px;
    }
    
    .st-style1 .st-indicator {
        width: 20px;
        height: 3px;
        margin: 0 3px;
    }
    
    .st-style1 .st-indicators-bottom {
        bottom: 10px;
    }
    
    .st-style1 .st-slide-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .st-style1 .st-slide-tag {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    
    .st-style1 .st-slide-content p {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

/* Responsive adjustments for Default Style */
@media (max-width: 991px) {
    .st-slide-content {
        padding: 60px 0 50px;
    }

    .st-slide-content h2, .st-slide-title {
        font-size: 36px !important;
        letter-spacing: 1.5px;
    }

    .st-slide-content p {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 767px) {
    .st-slide-content {
        padding: 50px 0 40px;
    }

    .st-slide-content h2, .st-slide-title {
        font-size: 28px !important;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .st-slide-content p {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .st-slide-btn {
        padding: 10px 22px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .st-slide-tag {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
}

@media (max-width: 575px) {
    .st-slide-motto {
        font-size: 9px !important;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .st-slide-content {
        padding: 40px 0 30px;
    }

    .st-slide-content h2, .st-slide-title {
        font-size: 22px !important;
        letter-spacing: 1px;
        line-height: 1.15 !important;
    }

    .st-slide-content p {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .st-slide-btn {
        padding: 8px 18px;
        font-size: 11px;
    }

    .st-content-container {
        padding: 0 15px;
    }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions for users who prefer reduced motion */
    .st-slide,
    .st-slide-bg,
    .st-slide-content,
    .st-slide-content h2,
    .st-slide-content .st-slide-title,
    .st-slide-content p,
    .st-slide-btn,
    .st-slider-btn,
    .st-indicator,
    .st-progress-bar,
    .st-slide-tag,
    .st-slider-wrapper.ken-burns .st-slide-bg {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Ensure slides are visible without animation */
    .st-slide {
        opacity: 0;
        visibility: hidden;
    }

    .st-slide.st-active {
        opacity: 1;
        visibility: visible;
    }

    /* Content should be visible when slide is active */
    .st-slide.st-active .st-slide-content,
    .st-slide.st-active .st-slide-content h2,
    .st-slide.st-active .st-slide-content .st-slide-title,
    .st-slide.st-active .st-slide-content p,
    .st-slide.st-active .st-slide-btn {
        opacity: 1;
        transform: none;
    }

    /* Ken Burns zoom effect - disabled */
    .st-slider-wrapper.ken-burns .st-slide-bg {
        transform: scale(1) !important;
    }

    /* Navigation buttons - instant state change */
    .st-slider-btn:hover {
        transition: none;
    }

    /* Indicators - instant state change */
    .st-indicator.st-active {
        transform: scale(1.2);
        transition: background-color 0.1s ease;
    }
}

/* Focus visible styles for keyboard navigation accessibility */
.st-slider-btn:focus-visible,
.st-slide-btn:focus-visible,
.st-indicator:focus-visible {
    outline: 2px solid #E3A72F;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .st-slide-content {
        background: linear-gradient(to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0) 100%);
    }

    .st-slide-btn {
        border: 2px solid #fff;
    }

    .st-indicator {
        border: 2px solid #fff;
    }

    .st-indicator.st-active {
        border-color: #0046BE;
        box-shadow: 0 0 0 2px #fff;
    }
}


/* Maximum responsive safety overrides */
.st-slider-wrapper,
.st-slider-wrapper * {
    box-sizing: border-box;
}

.st-slide-content h2,
.st-slide-content .st-slide-title {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.st-slide-content p {
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    .st-slider-container {
        height: clamp(520px, 72vw, 680px) !important;
        max-height: none;
    }

    .st-slide-content {
        padding: clamp(36px, 7vw, 70px) 0 clamp(42px, 7vw, 72px);
    }

    .st-content-container {
        padding-left: clamp(42px, 7vw, 70px);
        padding-right: clamp(42px, 7vw, 70px);
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title,
    .st-style1 .st-slide-title {
        font-size: clamp(28px, 5vw, 42px) !important;
        line-height: 1.14 !important;
        max-width: min(760px, 100%);
    }

    .st-slide-content p,
    .st-style1 .st-slide-content p {
        font-size: clamp(14px, 2.1vw, 17px) !important;
        line-height: 1.55;
        max-width: min(760px, 100%);
    }
}

@media (max-width: 767px) {
    .st-slider-container {
        height: clamp(560px, 118vw, 760px) !important;
        min-height: 560px;
    }

    .st-slide-bg {
        background-size: contain !important;
        background-position: top center !important;
        background-color: #0046be;
    }

    .st-slide-content {
        padding: 260px 0 48px;
        background: linear-gradient(to bottom, rgba(0, 70, 190, 0) 0%, rgba(0, 70, 190, 0) 32%, rgba(0, 70, 190, 0.96) 46%, rgba(0, 51, 153, 0.98) 100%);
    }

    .st-content-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .st-slide-motto {
        font-size: 10px !important;
        line-height: 1.45;
        letter-spacing: 1.4px;
        max-width: 100%;
        white-space: normal;
    }

    .st-slide-tag {
        font-size: 10px !important;
        letter-spacing: 1px;
        white-space: normal;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title,
    .st-style1 .st-slide-title {
        font-size: clamp(24px, 7.4vw, 34px) !important;
        line-height: 1.16 !important;
        letter-spacing: 0;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .st-style1 .st-slide-title {
        padding-left: 14px;
        border-left-width: 4px;
    }

    .st-slide-content p,
    .st-style1 .st-slide-content p {
        font-size: clamp(13px, 4vw, 16px) !important;
        line-height: 1.55;
        margin-bottom: 18px;
        max-width: 100%;
        letter-spacing: 0.2px;
    }

    .st-slide-btn {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .st-slider-btn {
        top: 34%;
        background-color: rgba(0, 70, 190, 0.45);
        opacity: 0.85;
    }
}

@media (max-width: 575px) {
    .st-slider-container {
        height: clamp(540px, 135vw, 720px) !important;
        min-height: 540px;
    }

    .st-slide-content {
        padding-top: 235px;
        padding-bottom: 42px;
    }

    .st-content-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .st-slide-content h2,
    .st-slide-content .st-slide-title,
    .st-style1 .st-slide-title {
        font-size: clamp(22px, 7vw, 30px) !important;
    }

    .st-slide-content p,
    .st-style1 .st-slide-content p {
        font-size: clamp(13px, 3.7vw, 15px) !important;
    }

    .st-indicators {
        bottom: 12px;
    }
}

@media (max-width: 399px) {
    .st-slider-container {
        height: clamp(540px, 150vw, 700px) !important;
        min-height: 540px;
    }

    .st-slide-content {
        padding-top: 220px;
    }

    .st-content-container {
        padding-left: 18px;
        padding-right: 18px;
    }
}
