/* ==========================================
   CUSTOM AI - WHY CHOOSE US
========================================== */

.custom-ai-why-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 120px 40px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-ai-why-overlay {
    position: absolute;
    inset: 0;
}

.custom-ai-why-container {
    position: relative;
    z-index: 2;

    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}


/* ==========================================
   HEADING
========================================== */

.custom-ai-why-heading {
    margin-bottom: 60px;
}

.custom-ai-why-heading-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.custom-ai-why-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F68B2D;
}

.custom-ai-why-subtitle {
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.custom-ai-why-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
}

.custom-ai-why-title .custom-ai-why-orange {
    color: #F68B2D;
}

.custom-ai-why-title .custom-ai-why-white {
    color: #ffffff;
}


/* ==========================================
   GRID
========================================== */

.custom-ai-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* ==========================================
   CARD
========================================== */

.custom-ai-why-card {
    position: relative;

    width: 100%;
    min-height: 200px;
    padding: 35px;

    overflow: hidden;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition: all .45s ease;
}

.custom-ai-why-card-content {
    position: relative;
    z-index: 2;
}

.custom-ai-why-card h3 {
    margin: 0 0 18px;

    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;

    transition: .4s;
}

.custom-ai-why-card p {
    margin: 0;

    color: rgba(255, 255, 255, .85);
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.8;

    transition: .4s;
}


/* ==========================================
   HOVER EFFECT
========================================== */

.custom-ai-why-card:not(.custom-ai-why-cta)::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        135deg,
        #FFD9BF 0%,
        #F7BE8B 45%,
        #F08A29 100%
    );

    opacity: 0;
    transition: opacity .45s ease;
}

.custom-ai-why-card:not(.custom-ai-why-cta):hover::before {
    opacity: 1;
}

.custom-ai-why-card:not(.custom-ai-why-cta):hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.custom-ai-why-card:not(.custom-ai-why-cta):hover h3 {
    color: #14306F;
}

.custom-ai-why-card:not(.custom-ai-why-cta):hover p {
    color: #343434;
}


/* ==========================================
   CTA CARD
========================================== */

.custom-ai-why-card.custom-ai-why-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #132A73;
    text-align: left;
}

.custom-ai-why-card.custom-ai-why-cta:hover {
    transform: translateY(-8px);
    background: #19368F;
}

.custom-ai-why-card.custom-ai-why-cta h3 {
    color: #fff;
}

.custom-ai-why-card.custom-ai-why-cta p {
    color: rgba(255, 255, 255, .82);
}


/* ==========================================
   BUTTON
========================================== */

.custom-ai-why-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 14px 24px;
    border-radius: 50px;

    background: #F68B2D;
    color: #111;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition: all .35s ease;
}

.custom-ai-why-btn svg {
    transition: transform .35s ease;
}

.custom-ai-why-btn:hover {
    background: #ffb062;
}

.custom-ai-why-btn:hover svg {
    transform: translateX(5px);
}


/* ==========================================
   PAGINATION — mobile only
========================================== */

.custom-ai-why-pagination {
    display: none;
}


/* ==========================================================
   LARGE LAPTOP
========================================================== */

@media (max-width: 1280px) {
    .custom-ai-why-section  { padding: 100px 40px; }
    .custom-ai-why-heading  { margin-bottom: 52px; }
    .custom-ai-why-title    { font-size: 56px; }
    .custom-ai-why-card     { padding: 32px; }
    .custom-ai-why-card h3  { font-size: 24px; }
}


/* ==========================================================
   TABLET — 2 columns
========================================================== */

@media (max-width: 1024px) {
    .custom-ai-why-section { padding: 90px 32px; }
    .custom-ai-why-heading { margin-bottom: 48px; }
    .custom-ai-why-title   { font-size: 46px; }
    .custom-ai-why-grid    { grid-template-columns: repeat(2, 1fr); }
    .custom-ai-why-card    { min-height: 190px; }
}


/* ==========================================================
   MOBILE — carousel
========================================================== */

@media (max-width: 768px) {

    .custom-ai-why-section {
        padding: 40px 0 46px;
    }

    .custom-ai-why-container {
        width: 100%;
    }

    .custom-ai-why-heading {
        margin-bottom: 26px;
        padding: 0 20px;
    }

    .custom-ai-why-heading-top {
        gap: 8px;
        margin-bottom: 12px;
    }

    .custom-ai-why-subtitle {
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .custom-ai-why-title {
        font-size: 26px;
        line-height: 1.25;
    }


    /* CAROUSEL */

    .custom-ai-why-grid {
        display: flex;
        grid-template-columns: none;

        gap: 12px;
        padding: 0 20px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .custom-ai-why-grid::-webkit-scrollbar {
        display: none;
    }

    .custom-ai-why-card {
        flex: 0 0 88%;

        min-height: auto;
        padding: 26px 24px 30px;

        scroll-snap-align: start;

        border: none;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .custom-ai-why-card:not(.custom-ai-why-cta)::before {
        opacity: 1;
    }

    .custom-ai-why-card:not(.custom-ai-why-cta) h3 {
        color: #14306F;
    }

    .custom-ai-why-card:not(.custom-ai-why-cta) p {
        color: #343434;
    }

    .custom-ai-why-card:hover,
    .custom-ai-why-card:not(.custom-ai-why-cta):hover {
        transform: none;
        box-shadow: none;
    }

    .custom-ai-why-card h3 {
        margin-bottom: 14px;
        font-size: 21px;
        line-height: 1.3;
    }

    .custom-ai-why-card p {
        font-size: 14px;
        line-height: 1.75;
    }

    .custom-ai-why-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }


    /* PROGRESS BARS */

    .custom-ai-why-pagination {
        display: flex;
        justify-content: center;
        gap: 6px;

        margin-top: 22px;
    }

    .custom-ai-why-page {
        width: 20px;
        height: 2px;

        background: rgba(255, 255, 255, .35);
        cursor: pointer;
    }

    .custom-ai-why-page.active {
        width: 28px;
        background: #F68B2D;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .custom-ai-why-section {
        padding: 34px 0 40px;
    }

    .custom-ai-why-heading {
        margin-bottom: 22px;
        padding: 0 18px;
    }

    .custom-ai-why-grid {
        padding: 0 18px;
    }

    .custom-ai-why-title {
        font-size: 23px;
    }

    .custom-ai-why-card {
        flex: 0 0 86%;
        padding: 24px 20px 26px;
    }

    .custom-ai-why-card h3 {
        font-size: 19px;
    }

    .custom-ai-why-card p {
        font-size: 16px;
    }

}