/* ===== Why Us Section ===== */
.whyus__section .secWrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1080px;
   
    border: 1px solid #E4F2FF;
    border-radius: 30px;
    overflow: hidden;
    padding: 0;
    margin: var(--section-wraper-py) auto;
    background: #fff;
    box-shadow: 0px 0px 19.5px 0px #F0EEFF;

}

/* ===== Card ===== */
.whyus__card {
       padding: 35px 35px 35px 50px;
    border-right: 1px solid #E4F2FF;
    border-bottom: 1px solid #E4F2FF;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Remove right border on even cards (right column) */
.whyus__card:nth-child(2n) {
    border-right: none;
}

/* Remove bottom border on last row */
.whyus__card:nth-last-child(-n+2) {
    border-bottom: none;
}

/* If odd total — last single card spans full width or remove border */
.whyus__card:last-child:nth-child(odd) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
}

/* Ghost number background */
 

/* Sliding top accent line */
.whyus__card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: var(--color-primary, #3A66D4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
    border-radius: 0 2px 2px 0;
}

.whyus__card:hover {
    background: var(--color-primary-lighter, #EEF3FC);
    box-shadow: 0 6px 28px rgba(58,102,212,0.09);
}
.whyus__card:hover::before {
    color: rgba(58,102,212,0.09);
}
.whyus__card:hover::after {
    transform: scaleX(1);
}

/* Dash extends on hover */
.whyus__card:hover .whyus__num-dash {
    width: 44px;
    transition: width 0.22s ease;
}

/* ===== Card Top Row (number + icon) ===== */
.whyus__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* ===== Number Badge ===== */
.whyus__num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--color-primary, #3A66D4);
}

.whyus__num-dash {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--color-primary, #3A66D4);
}

/* ===== Icon ===== */
.whyus__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF3FC;
    border-radius: 10px;
    flex-shrink: 0;
}

.whyus__icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(29%) sepia(96%) saturate(600%) hue-rotate(205deg) brightness(95%) contrast(90%);
}

/* ===== Content ===== */
.whyus__content h3 {
    font-weight: 600;
    font-size: 19px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

    color: var(--color-heading);
    margin-bottom: 11px;
}

.whyus__desc,
.whyus__desc p {
    font-weight: 400;
    font-size: 15px;
    line-height: 180%;
    letter-spacing: 0%;
    color: #5F6C72;
    margin: 0;
}

/* ===== Footnote ===== */
.whyus__footnote {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6B7280;
}

/* ===== CTA Button ===== */
@keyframes whyus-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(58,102,212,0.5); }
    100% { box-shadow: 0 0 0 15px rgba(58,102,212,0); }
}

.whyus__section .primary-cta-serSec {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 13px 32px;
    background: var(--color-primary, #3A66D4);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: whyus-pulse 2s ease-out infinite;
}

.whyus__section .primary-cta-serSec:hover {
    background: var(--color-primary-hover, #2d54b8);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */

/* Tablet — keep 2 cols but tighten spacing */
@media (max-width: 991px) {
    .whyus__section .secWrapper {
        max-width: 100%;
        border-radius: 20px;
    }
    .whyus__card {
        padding: 28px 24px;
    }
    .whyus__content h3 {
        font-size: 17px;
    }
    .whyus__desc,
    .whyus__desc p {
        font-size: 14px;
    }
}

/* Mobile — single column */
@media (max-width: 767px) {
    .whyus__section .secWrapper {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }
    /* All cards: remove right border, keep bottom divider */
    .whyus__card {
        border-right: none !important;
        border-bottom: 1px solid #E9ECF3;
        padding: 24px 20px;
    }
    /* Restore correct last-row bottom-border removal */
    .whyus__card:last-child {
        border-bottom: none;
        grid-column: span 1;
    }
    .whyus__card:nth-last-child(-n+2) {
        border-bottom: 1px solid #E9ECF3;
    }
    .whyus__card:last-child:nth-child(odd) {
        grid-column: span 1;
    }
}

@media (max-width: 575px) {
    .whyus__section .secWrapper {
        border-radius: 12px;
        border: none;
        box-shadow: none;
    }
    .whyus__card {
        padding: 20px 16px;
    }
}
