/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.banner-scroll-type1 {
    position: relative;
    width: 100%;
    overflow: visible;
    /* The height will be determined by the slide height setting */
}

.banner-scroll-type1 .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: #333;
    max-width: 450px;
    box-shadow: none;
}

.banner-scroll-type1 .banner-text .hasicon {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #005a8c;
}

.banner-scroll-type1 .banner-text .hasicon .h1icon {
    width: 25px;
    height: 25px;
}

.banner-scroll-type1 .banner-text .subtext p {
    font-size: 15px;
    margin-top: 10px;
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-slider-container .swiper-wrapper {
    transition-timing-function: linear !important;
    display: flex;
    align-items: center;
}

.hero-slider-container .swiper-slide {
    width: auto !important; /* Critical for ticker effect */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero-slider-container .swiper-slide a {
    display: block;
    position: relative;
    height: 100%;
}

.hero-slider-container .swiper-slide img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: cover;
    max-height: 100%;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero-slider-container .swiper-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 16px;
    box-sizing: border-box;
}

.hero-slider-container .swiper-slide:hover .slide-caption {
    opacity: 1;
}

.hero-slider-container .slide-caption .slide-button {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}


@media (max-width: 768px) {
    .banner-scroll-type1 .banner-text {
        position: relative;
        transform: none;
        width: auto;
        max-width: 100%;
        margin-bottom:20px;
        left: auto;
        top: auto;
        background: url('/wp-content/uploads/2025/09/image2.jpg') no-repeat center center;
        background-size: cover;
        color: #333;
        height:220px;
        text-align: left;
    }

    .banner-scroll-type1 .banner-text .inner {
        position: absolute;
        bottom: 15px;
        left: 15px;
        background: #000000a6;
        padding: 10px;
        border-radius: 10px;
    }

    .banner-scroll-type1 .banner-text .hasicon {
        font-size: 22px;
        align-items: flex-start;
        color: white;
        justify-content: start;
    }

    .banner-scroll-type1 .banner-text .subtext p {
        font-size: 14px;
        color: white;
    }

}

.hero-slider-container .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Prevent text selection during sliding */
.hero-slider-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Ensure slides maintain proper styling during hover */
.hero-slider-container .swiper-slide {
    cursor: pointer;
    position: relative;
}

/* Optional: Add visual feedback on hover */
.hero-slider-container .swiper-slide:hover img {
    filter: brightness(1.05);
    transition: filter 0.3s ease;
}

/* Ensure wrapper doesn't jump when pausing */
.hero-slider-container.paused .swiper-wrapper {
    transition: none !important;
    -webkit-transition: none !important;
}
