.simple-banner2-p{
    margin-top: 0px !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    z-index:2;
}

.slider_ff_2{
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* .controls_btn (position:absolute, bottom:...) was anchoring to
       .simple-banner2-p instead — the nearest *positioned* ancestor — and
       that element's flex box grows to include this element's own inline
       margin-top/margin-bottom (from the block's ACF spacing fields), so
       "bottom:40px" was actually measuring 40px up from below that extra
       margin, not from the banner's own visible bottom edge. Making this
       element itself the positioning context fixes that, since an
       element's own margin is never part of its own box for its children's
       absolute positioning. */
    position: relative;
}

.slider_ff_2 .slider-container-f-2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
    /* No max-width (was 1366px, Figma's own canvas width) — on screens
       wider than that this left white bars on both sides. This page's
       hero section above it is genuinely full-bleed (no cap, fixed height,
       image cropped wider via object-fit/background-size:cover beyond its
       design width), so matching that pattern here keeps both image
       sections edge-to-edge consistently instead of one of them
       letterboxing. */
    overflow: hidden;
}

.slider_ff_2 .slider_sub_2 {
    /* No declared width here previously — a flex container with no width
       of its own shrinks to fit its content instead of filling its
       (already correctly 1366px-wide) parent. With 3 testimonials this
       happened to look full-width by coincidence; with just 1 (this page)
       it shrank to that single card's own content-based size (~772px at
       1440px viewport), leaving blank space beside the banner. */
    width: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    margin-left: 0px;
}

.slider_ff_2 .slider-card-f-2 {
    width: 100%;
    /* No max-width — see .slider-container-f-2's comment above. */
    /* flex-shrink:0 — this is a flex child of .slider_sub_2, whose own
       width now correctly fills its container (see that rule's comment);
       without this, flexbox's default flex-shrink:1 compressed each card
       down to fit all of them side by side in that one container width
       instead of each being full-width, which both squashed every card
       and broke the next/prev transform math (it moves by one full
       card-width per step, but the actual rendered cards were narrower
       than that). flex-shrink alone (not the "flex" shorthand, which
       would also set flex-basis and override the width/max-width below —
       including the mobile 320px!important square card further down). */
    flex-shrink: 0;
    /* Fixed height (not aspect-ratio, which would grow the banner taller
       on wide screens) — matches the hero above it, which also holds a
       constant height and lets object-fit/background-size:cover crop the
       photo horizontally instead of changing its own box's proportions. */
    height: 566px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 12px 16px 50px #0000000D;
    /* border-radius: 20px; */
    position: relative;
    overflow: hidden;
}

.slider_ff_2 .slider-card-f-2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider_ff_2 .slider-card-f-2::before{
    /* Figma: a flat 20%-opacity black dim over the photo, separate from
       the text. A brightness() filter on the <img> (previous approach)
       darkens the whole image's existing tones instead of laying a true
       black wash over it — different, lower-contrast result than Figma's
       overlay, and it also wasn't the right percentage (85% brightness
       ≈ a 15% dim, not 20%). */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}


/*  */
.slider-card-f-2 .texts{
    position: absolute;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-card-f-2 .texts h2{
    color: #fff;
    width: 100%;
    text-align: center;
    /* Figma: 848px (was 830px — close, but narrow enough to force an
       extra line break the design doesn't have). */
    max-width: 848px;
    margin-top: 0;
    /* Figma: 40px gap to the attribution line below (was 32px), and the
       quote itself sits 103px from the banner's top — the old 25px
       margin-top here was on top of .texts' own layout offset, pushing it
       further down than that. */
    margin-bottom: 40px;
    font-family: "Alright Sans", Verdana, sans-serif;
    /* 600 isn't one of this family's loaded weights (400/500/700/900), so
       it was silently rendering as 700 Bold — heavier than Figma's Medium
       (500). */
    font-weight: 500;
    font-size: 30px;
    text-transform: none;
    line-height: 42px;
}

.slider-card-f-2 .texts p{
    color: #fff;
    width: 100%;
    max-width: 848px;
    text-align: center;
    font-family: "Alright Sans", Verdana, sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 26px;
}
/*  */

/* .slider-card-f-2 img{ poster
    position: absolute;
    width: 100%;
    max-width: 1366px;
    z-index: 1;
} */

.slider_ff_2 .slider-card-f-2:hover{
    box-shadow: 8px 12px 38px #980C3130;;
}

.slider_ff_2 .slider-card-f-2 .slider-image {
    max-width: 100%;
}

.slider_ff_2 .controls_btn{
    display: flex;
    width: 100%;
    justify-content: end;
    position: absolute;
    /* bottom (not a top margin-top:33% of the card's own height) — the
       card's height is driven by its testimonial text, which varies in
       length, so a percentage-of-height offset placed the buttons at an
       inconsistent spot relative to the banner image depending on how
       long the quote was. Figma anchors them a fixed ~40px up from the
       banner's own bottom edge regardless of text length. */
    bottom: 40px;
    /* No max-width (was 1366px) — now that the banner itself is
       full-bleed beyond that width too, capping just the arrows' own
       positioning box would right-align them to where the banner's old
       1366px edge used to be instead of the real (now wider) edge. */
    z-index: 2;
}

.slider_ff_2 .controls_btn .control_btn{
    display: flex;
    /* Figma: two 36px circles with an 8px gap (80px total), not
       space-between across a wider 110px box. */
    gap: 8px;
    width: 80px;
    /* Matches the 115px (8.4% of 1366px) right margin used sitewide. */
    margin-right: 115px;
}

.slider_ff_2 .controls_btn .slider-btn{
    /* Figma: 36px at every width (was 50px on desktop, dropping to 36px
       only below 768px — this design doesn't have a larger desktop
       variant). */
    width: 36px;
    height: 36px;
    border-radius: 50px;
    font-size: 24px;
    background: transparent;
    cursor: pointer;
    background: #BA0C2F;
}


/*  */
.slider_ff_2 .controls_btn .slider-btn:last-child svg{
    fill: red;
}
/*  */


.slider_ff_2 .controls_btn .prev-btn-f-2 {
    left: 10px;
    background-image: url("../images-reskin/white-left-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_ff_2 .controls_btn .prev-btn-f-2:hover{
    background: #fff;
    background-image: url("../images-reskin/red-arrow-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_ff_2 .controls_btn .prev-btn-f-2:focus{
    outline: none;
}

.slider_ff_2 .controls_btn .next-btn-f-2 {
    right: 10px;
    background-image: url("../images-reskin/white-arrow-icon.png");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_ff_2 .controls_btn .next-btn-f-2:hover{
    background: #fff;
    background-image: url("../images-reskin/red-right-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_ff_2 .controls_btn .next-btn-f-2:focus{
    outline: none;
}

.video-poster{
    background: linear-gradient(154.06deg, #D04A4A 0%, #8B0027 60%, #8B0027 100%);
    width: 100%;
    height: 320px;
}


@media screen and (max-width: 1150px){
    .slider-card-f-2 .texts h2{
        font-size: 25px;
    }
}


@media screen and (max-width: 850px){
    .slider-card-f-2 .texts{
        max-width: 80%;
    }
    .slider-card-f-2 .texts h2{
        font-size: 20px;
        line-height: 30px;
    }
}

@media screen and (max-width:768px){
    /* Button size (36px) is now the base rule's default at every width;
       only the right margin still needs to shrink here, since 115px
       would eat too much of a narrower screen. */
    .slider_ff_2 .controls_btn .control_btn{
        margin-right: 30px;
    }
}

@media screen and (max-width:700px){
    .slider-card-f-2 .texts h2{
        margin-bottom:10px;
        font-weight: 300;
    }
    .slider-card-f-2 .texts p{
        font-size: 14px;
    }
    .slider_ff_2 .slider-card-f-2 {
        width: 320px !important;
        height: 320px !important;
        margin-right: 4px;
        margin-left: 4px;
        border-radius: 20px !important;
    }

    .slider_ff_2 .slider-card-f-2 img {
        height: 320px !important;
    }

    .video-poster{
        height: 320px !important;
    }

}

/* The first/last-card centering margin on mobile (where each 320px-wide
   square card is narrower than the viewport) used to be five separate
   breakpoint blocks with hand-picked pixel values (85/70/40/14/4px) that
   only centered the card at specific widths — anywhere between them it
   drifted off-center. simple-banner2-p.js now computes this margin from
   the viewport's actual width on every resize instead, so it stays
   centered continuously rather than only at five fixed points. */

@media screen and (max-width:600px){
    .slider-card-f-2 .texts h2{
        font-size: 15px;
        line-height: 25px;
    }
}

@media screen and (max-width:550px){
    .slider_ff_2 .controls_btn{
        /* Mobile card height is a fixed 320px (below), so this scales the
           same ~40px-from-bottom proportion down to that smaller card. */
        bottom: 20px;
    }
    .slider-card-f-2 .texts h2{
        font-size: 14px;
        line-height: 20px;

    }

}

@media screen and (max-width:429px){
    .slider-card-f-2 .texts h2{
        /* Was height:60px + overflow:hidden — a hard pixel cap that cut
           the quote off mid-word with no ellipsis partway through a
           sentence. A 4-line clamp with an ellipsis degrades gracefully
           regardless of exactly how long a given testimonial is. */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

}