/* ============================================================
   Approved Banks — "Flexible Payment Options" section.

   Three-up card slider with an orange chevron on either side and a
   row of trust badges underneath. Replaces the older marquee-style
   banks tape so the brand logos read as distinct partners rather
   than as a generic scrolling strip.

   Markup contract (Views/Home/Index.cshtml + IndexAr.cshtml):
     section.banks-installments
       .container
         .bi-head            — eyebrow + headline
         .bi-slider-wrap     — prev button + .swiper + next button
           .bi-nav.bi-prev   — circular orange arrow (left)
           .swiper.bi-swiper
             .swiper-wrapper > .swiper-slide > .bi-card > img
           .bi-nav.bi-next   — circular orange arrow (right)
         .bi-badges          — three "Secure / No fees / Flexible" pills

   A small inline IIFE on the home page instantiates the Swiper.
   ============================================================ */

.banks-installments {
    background: #ffffff;
    padding: 70px 0 60px;
}

.bi-head {
    text-align: center;
    margin-bottom: 36px;
}

.bi-eyebrow {
    display: inline-block;
    color: var(--color-primary, #f9a842);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.bi-title {
    font-size: 36px;
    line-height: 1.18;
    font-weight: 800;
    color: #0a3d62;
    margin: 0 auto;
    max-width: 760px;
}

/* Slider + nav buttons -------------------------------------------------- */
.bi-slider-wrap {
    position: relative;
    padding: 0 70px;
    margin-top: 24px;
}

.bi-swiper {
    overflow: hidden;
}

.bi-card {
    background: #ffffff;
    border: 1px solid #e9ebef;
    border-radius: 14px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 26px;
    box-shadow: 0 6px 22px rgba(15, 22, 36, 0.06);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.bi-card img {
    max-width: 92%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Centre slide gets a subtle emphasis to match the supplied design. */
.bi-swiper .swiper-slide-active .bi-card,
.bi-swiper .swiper-slide.is-active .bi-card {
    border-color: #d8dde6;
    box-shadow: 0 14px 36px rgba(15, 22, 36, 0.10);
}

/* Orange circular nav buttons ------------------------------------------ */
.bi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--color-primary, #f9a842);
    color: #ffffff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 16px rgba(249, 168, 66, 0.35);
    transition: background 0.2s, transform 0.2s;
}

.bi-nav:hover { background: #e89436; transform: translateY(-50%) scale(1.05); }
.bi-nav:disabled, .bi-nav.swiper-button-disabled { opacity: 0.45; cursor: not-allowed; }

.bi-prev { left: 0; }
.bi-next { right: 0; }

/* In RTL the chevrons swap visual direction. */
[dir="rtl"] .bi-prev i { transform: scaleX(-1); }
[dir="rtl"] .bi-next i { transform: scaleX(-1); }

/* Trust badges --------------------------------------------------------- */
.bi-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 36px;
    color: #4a5568;
    font-size: 15px;
    font-weight: 500;
}

.bi-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bi-badge i {
    color: #1ea860;        /* check-circle green */
    font-size: 18px;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
    .bi-title { font-size: 28px; }
    .bi-slider-wrap { padding: 0 60px; }
    .bi-card { height: 170px; padding: 22px; }
    .bi-card img { max-height: 130px; max-width: 90%; }
}

@media (max-width: 640px) {
    .banks-installments { padding: 50px 0 40px; }
    .bi-title { font-size: 22px; }
    .bi-slider-wrap { padding: 0 56px; }
    .bi-nav { width: 42px; height: 42px; font-size: 15px; }
    .bi-card { height: 150px; padding: 18px; }
    .bi-card img { max-height: 112px; max-width: 92%; }
    .bi-badges { gap: 18px 24px; font-size: 13px; margin-top: 26px; }
    .bi-badge i { font-size: 16px; }
}
