/* =========================================================
   AR-Automation hero fix: vertically center .mainTextc in the
   swiper slide regardless of screen size, and cap its width
   at 40vw (40% of viewport width). Also lays out the headline
   and the AR banner icons image side-by-side on desktop, and
   stacks them (headline above image) on mobile.
   Scoped to .swiper-slide-AR so it will not affect other pages.
   ========================================================= */

.swiper-slide-AR {
    position: relative;
}

/* Make the .centerblackA wrapper fill the slide and flex-center
   its children vertically. Overrides style.css margin-top rules
   set in several breakpoints. */
.swiper-slide-AR .centerblackA {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3% !important;
    padding: 0 3% !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    visibility: visible !important;
}

/* Constrain the headline text to 40% of viewport width, strip the
   various margin-top values style.css applies per breakpoint, and
   let the flex parent do the vertical centering. */
.swiper-slide-AR .mainTextc {
    max-width: 40vw !important;
    width: 40vw !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    line-height: 1.25 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 0 0 auto;
}

/* Banner icons sit to the right of the headline on desktop,
   vertically centered alongside .mainTextc via the flex parent. */
.swiper-slide-AR .ar-banner-icons {
    max-width: 50vw !important;
    max-height: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    flex: 0 1 auto !important;
    display: block !important;
    min-width: 0 !important;
}

/* Small-screen tuning: below 768px stack the headline on top and the
   banner image beneath it. Headline spans the slide width. */
@media (max-width: 768px) {
    .swiper-slide-AR .centerblackA {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 0 5% !important;
    }
    .swiper-slide-AR .mainTextc {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 20px !important;
        text-align: center !important;
    }
    .swiper-slide-AR .ar-banner-icons {
        max-width: 90%;
        max-height: 45%;
    }
}

@media (max-width: 480px) {
    .swiper-slide-AR .mainTextc {
        max-width: 100% !important;
        font-size: 18px !important;
    }
    .swiper-slide-AR .ar-banner-icons {
        max-width: 95%;
        max-height: 40%;
    }
}
