/* ===== Why Us Section ===== */
.whyus__section .secWrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1047px;
    margin: auto;
    counter-reset: whyus-counter;
}

/* ===== Card ===== */
.whyus__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 30px 22px 41px;
    position: relative;
    overflow: hidden;
    counter-increment: whyus-counter;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* counter triangle shape + watermark number */
.whyus__card::before {
    content: counter(whyus-counter, decimal-leading-zero);
    position: absolute;
    top: 0;
    right: 0;
        width: 71px;
    height: 67px;
    background: linear-gradient(to top left, #FCF9FE 50%, transparent 50%);
   font-family: Lato;
font-weight: 900;
font-style: Black;
font-size: 40px;
leading-trim: CAP_HEIGHT;
line-height: 170%;
letter-spacing: 0%;
color: #F3F0F5;
    text-align: right;
    padding: 0px 23px 0 0;
    pointer-events: none;
    z-index: 0;
    transition: color 0.3s ease;
}

.whyus__card:hover::before {
    color: rgba(104, 90, 219, 0.5);
}

/* gradient top bar sweep on hover */
.whyus__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #9C8EF5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.whyus__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-alt);
    border-color: var(--color-border-section);
}

.whyus__card:hover::after {
    transform: scaleX(1);
}

/* ===== Icon & Content z-index ===== */
.whyus__icon,
.whyus__content {
    position: relative;
    z-index: 1;
}

/* ===== Icon ===== */
.whyus__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-background);
    border-radius: 15px;
    margin-bottom: 25px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.whyus__icon img{
    filter: brightness(0) saturate(100%) invert(39%) sepia(87%) saturate(515%) hue-rotate(207deg) brightness(87%) contrast(98%);
}
.whyus__card:hover .whyus__icon {
    background: var(--color-primary);
    transform: scale(1.08) rotate(-4deg);
}

.whyus__icon img {
    width: 28px;
    height: 28px;
    transition: filter 0.3s ease;
}

.whyus__card:hover .whyus__icon img {
    filter: brightness(0) invert(1);
}

/* ===== Content ===== */
.whyus__content h3 {
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    color: var(--color-heading);
    margin-bottom: 13px;
}

.whyus__desc,
.whyus__desc p {
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
    margin: 0;
}

/* ===== CTA Button ===== */
.whyus__section .primary-cta-serSec {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    max-width: max-content;
    padding: 0 32px;
    margin: 50px auto 0;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    line-height: 1;
    letter-spacing: 0;
    border-radius: var(--radius-full);
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.whyus__section .primary-cta-serSec::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    animation: whyusPulse 1.8s ease-out infinite;
    pointer-events: none;
}

@keyframes whyusPulse {
    0%   { box-shadow: 0 0 0 0 rgba(104, 90, 219, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(104, 90, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(104, 90, 219, 0); }
}

.whyus__section .primary-cta-serSec:hover {
    background: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(104, 90, 219, 0.35);
}

/* ===== Responsive — 1199px ===== */
@media (max-width: 1199px) {
    .whyus__section .secWrapper {
        max-width: 100%;
        gap: 24px;
    }
}

/* ===== Responsive — 991px (tablet) ===== */
@media (max-width: 991px) {
    .whyus__section .secWrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .whyus__card {
        padding: 26px 20px 32px;
    }
    .whyus__card::before {
        width: 60px;
        height: 56px;
        font-size: 32px;
        padding: 10px 12px 0 0;
    }
}

/* ===== Responsive — 767px (mobile) ===== */
@media (max-width: 767px) {
    .whyus__section .secWrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .whyus__card {
        border-radius: 16px;
        padding: 22px 18px 28px;
    }
    .whyus__card::before {
        width: 54px;
        height: 50px;
        font-size: 28px;
        padding: 8px 10px 0 0;
    }
    .whyus__section .primary-cta-serSec {
        margin-top: 36px;
    }
}

/* ===== Responsive — 575px (small mobile / scroll) ===== */
@media (max-width: 575px) {
    .whyus__section .secWrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) var(--color-card-border);
    }
    .whyus__section .secWrapper::-webkit-scrollbar { height: 4px; }
    .whyus__section .secWrapper::-webkit-scrollbar-track {
        background: var(--color-card-border);
        border-radius: 100rem;
    }
    .whyus__section .secWrapper::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 100rem;
    }
    .whyus__card {
        flex: 0 0 76%;
        scroll-snap-align: start;
        min-width: 0;
        border-radius: 16px;
    }
}
