/* =========================================================
   BUSINESS "WHY BANKING WITH US" CARDS
   Partial: Views/Partials/_BusinessWhyBankingWithUs.cshtml
   ========================================================= */

.bh-why-banking {
    padding: 16px 32px;
}

.bh-why-banking__title {
    margin: 0 0 32px;
    text-align: center;
    color: var(--color-secondary-dark, #003B70);
    font-weight: 400;
    font-size: 32px;
}

.bh-why-banking__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bh-why-banking-card {
    position: relative;
    overflow: visible;
    border: 1px solid #CBCBCB;
    border-radius: 16px;
    padding: 28px 24px;
    background: var(--color-white, #fff);
}

.bh-why-banking-card__top {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.bh-why-banking-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-icon-bg, #E8F7F5);
    flex-shrink: 0;
}

    .bh-why-banking-card__icon img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

/* Ribbon-style badge: fixed-size pill flush against the card's top-right
   corner, rounded on the outer edge only — matches the Figma spec (130x40,
   border-radius 6000px 0 0 6000px) rather than a floating pill or a
   clip-path notch. */
.bh-why-banking-card__tag {
    position: absolute;
    top: 8px;
    inset-inline-end: -24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 130px;
    height: 40px;
    background: var(--color-secondary-dark, #003B70);
    color: var(--color-white, #fff);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    border-radius: 6000px 0 0 6000px;
    white-space: nowrap;
}

[dir="rtl"] .bh-why-banking-card__tag {
    border-radius: 0 6000px 6000px 0;
    width: 145px !important;
}

.bh-why-banking-card__tag-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    font-size: 16px;
}

.bh-why-banking-card__title {
    margin: 0 0 12px;
    color: var(--color-secondary-dark, #003B70);
font-weight: 400;
font-style: Regular;
font-size: 24px;
line-height: 150%;
letter-spacing: 0%;
}

.bh-why-banking-card__desc {
    margin: 0;
    color: #6b7684;
  font-weight: 400;
font-style: Regular;
font-size: 16px;
line-height: 150%;
letter-spacing: 0%;
}

/* ---------- Responsive ---------- */
/* ≤1024px: same horizontal-scroll carousel pattern as .menu-header
   (Personal page tabs) / .bh-products__grid (products-at-a-glance).
   .menu-arrows-row / .menu-scroll-arrow / .hidden are shared classes
   already defined in Master.css — only the track itself needs the
   fixed-width-card + overflow-x treatment here. */
@media (max-width: 1024px) {
    .bh-why-banking__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding-bottom: 4px;
    }

        .bh-why-banking__grid::-webkit-scrollbar {
            display: none;
        }

    .bh-why-banking-card {
        flex: 0 0 auto;
        width: 260px;
    }
}

@media (max-width: 600px) {
    .bh-why-banking {
        padding: 16px 16px;
    }

    .bh-why-banking-card {
        width: 90%;
    }

    .bh-why-banking-card__tag {
        width: 110px;
        height: 36px;
        font-size: 13px;
    }

    .bh-why-banking-card__tag-icon {
        width: 16px;
        height: 16px;
    }
    
.bh-why-banking-card__title {
    font-size: 20px;
}
.bh-why-banking-card__desc {
    font-size: 14px;
}
}
