/* --------------------------------------------------------------------------
   Slideshow By InfoPixal Styles
   -------------------------------------------------------------------------- */

.ip-slideshow-wrapper {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    right: 50%;
    overflow: hidden;
}

.ip-swiper-container {
    width: 100%;
    height: var(--ip-slider-height, 500px);
    position: relative;
}

.ip-slide-item {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

.ip-slide-inner {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Layout Variations */
.ip-layout-text-left .ip-slide-content { order: 1; }
.ip-layout-text-left .ip-slide-image   { order: 2; justify-content: flex-end; }

.ip-layout-text-right .ip-slide-content { order: 2; padding-left: 40px; padding-right: 0; text-align: right;}
.ip-layout-text-right .ip-slide-image   { order: 1; justify-content: flex-start; }

.ip-slide-content {
    flex: 1 1 50%;
    max-width: 50%;
    padding-right: 40px;
    z-index: 2;
    color: #0f172a;
}

.ip-slide-image {
    flex: 1 1 50%;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.ip-slide-image img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Typography */
.ip-slide-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.ip-slide-text {
    font-size: 18px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Button */
.ip-slide-button {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.ip-slide-button:hover {
    background: #ffffff;
    color: #0c759a;
}

/* Arrows */
.ip-swiper-button-prev,
.ip-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.ip-swiper-button-prev:hover,
.ip-swiper-button-next:hover {
    background: #fff;
    color: #0c759a;
}

.ip-swiper-button-prev { left: 20px; }
.ip-swiper-button-next { right: 20px; }

/* Pagination */
.ip-swiper-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}
.ip-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 10px;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .ip-slide-inner {
        padding: 0 20px;
    }
    .ip-slide-text {
        font-size: 16px;
    }
    .ip-slide-content {
        padding-right: 20px;
    }
    .ip-layout-text-right .ip-slide-content {
        padding-left: 20px;
        padding-right: 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .ip-swiper-container {
        height: auto !important;
        min-height: 400px;
    }
    .ip-slide-inner {
        display: flex;
        flex-direction: column !important;
        padding: 40px 20px;
        text-align: center;
    }
    .ip-slide-content, .ip-slide-image {
        display: contents; /* Break out of containers to allow exact child reordering */
    }
    
    /* Reorder exactly: Title -> Image -> Subtitle -> Button */
    .ip-slide-title { order: 1; margin-bottom: 15px; font-size: 28px; }
    .ip-slide-image img { 
        order: 2; 
        margin-bottom: 20px; 
        max-height: 250px; /* Smaller image on mobile */
    }
    .ip-slide-text { order: 3; margin-bottom: 20px; font-size: 15px; }
    .ip-slide-btn-wrap { order: 4; width: 100%; }
    
    .ip-slide-button {
        padding: 12px 24px;
    }
    .ip-swiper-button-prev,
    .ip-swiper-button-next {
        display: none; /* Hide arrows on mobile to save space */
    }
}
