/*==================================================
WHY CHOOSE SECTION
==================================================*/

.why-section {
    padding: 110px 0;
    background: #ffffff;
}

.why-section .container {
    position: relative;
}


/*==================================================
SECTION HEADING
==================================================*/

.why-section .section-heading {
    margin-bottom: 60px;
}

.why-section .section-heading span {
    display: inline-block;

    color: #0F4C81;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.why-section .section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;

    color: #1E293B;

    margin: 15px 0;
}

.why-section .section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: #64748B;

    font-size: 17px;
    line-height: 1.7;
}


/*==================================================
WHY CARD
==================================================*/

.why-card {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 310px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    background: #fff;

    border-radius: 24px;

    padding: 42px 30px;

    text-align: center;

    overflow: hidden;

    border: 1px solid #edf2f7;

    box-shadow: 0 15px 40px rgba(15, 76, 129, .05);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}


/*==================================================
TOP ANIMATION LINE
==================================================*/

.why-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 5px;

    background: #0F4C81;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .4s ease;
}

.why-card:hover {
    transform: translateY(-10px);

    box-shadow: 0 25px 60px rgba(15, 76, 129, .12);

    border-color: rgba(15, 76, 129, .12);
}

.why-card:hover::before {
    transform: scaleX(1);
}


/*==================================================
ICON
==================================================*/

.why-icon {
    width: 90px;
    height: 90px;

    flex: 0 0 90px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: #EAF4FF;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background .4s ease,
        transform .4s ease;
}

.why-icon i {
    font-size: 40px;
    line-height: 1;

    color: #0F4C81;

    transition: color .4s ease;
}

.why-card:hover .why-icon {
    background: #FFC107;

    transform: rotate(10deg);
}

.why-card:hover .why-icon i {
    color: #0F4C81;
}


/*==================================================
TITLE
==================================================*/

.why-card h4 {
    margin: 0 0 14px;

    color: #0F4C81;

    font-size: 22px;
    line-height: 1.3;

    font-weight: 700;

    overflow-wrap: anywhere;
}


/*==================================================
DESCRIPTION
==================================================*/

.why-card p {
    margin: 0;

    color: #666;

    font-size: 16px;
    line-height: 1.75;

    max-width: 360px;
}


/*==================================================
TABLET
==================================================*/

@media (max-width: 991px) {

    .why-section {
        padding: 80px 0;
    }

    .why-section .section-heading {
        margin-bottom: 45px;
    }

    .why-section .section-heading h2 {
        font-size: 36px;
    }

    .why-section .section-heading p {
        font-size: 16px;
    }

    .why-card {
        min-height: 290px;

        padding: 35px 25px;
    }

    .why-icon {
        width: 78px;
        height: 78px;
        flex-basis: 78px;

        margin-bottom: 20px;
    }

    .why-icon i {
        font-size: 34px;
    }

    .why-card h4 {
        font-size: 20px;
    }

    .why-card p {
        font-size: 15px;
        line-height: 1.7;
    }

}


/*==================================================
MOBILE
==================================================*/

@media (max-width: 576px) {

    .why-section {
        padding: 60px 0;
    }

    .why-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Section heading */

    .why-section .section-heading {
        margin-bottom: 30px;
    }

    .why-section .section-heading span {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .why-section .section-heading h2 {
        font-size: 30px;
        line-height: 1.2;

        margin: 10px 0;
    }

    .why-section .section-heading p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* Grid */

    .why-section .row {
        --bs-gutter-x: 14px;
        --bs-gutter-y: 14px;
    }


    /* Card */

    .why-card {
        min-height: 0;

        height: 100%;

        padding: 28px 18px;

        border-radius: 18px;

        box-shadow: 0 10px 30px rgba(15, 76, 129, .06);
    }

    .why-card:hover {
        transform: translateY(-5px);
    }


    /* Icon */

    .why-icon {
        width: 62px;
        height: 62px;

        flex-basis: 62px;

        margin-bottom: 16px;
    }

    .why-icon i {
        font-size: 27px;
    }


    /* Title */

    .why-card h4 {
        font-size: 17px;
        line-height: 1.3;

        margin-bottom: 9px;
    }


    /* Description */

    .why-card p {
        font-size: 13px;
        line-height: 1.55;
    }

}


/*==================================================
VERY SMALL MOBILE
==================================================*/

@media (max-width: 380px) {

    .why-section {
        padding: 50px 0;
    }

    .why-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .why-section .section-heading h2 {
        font-size: 28px;
    }

    .why-section .section-heading p {
        font-size: 14px;
    }

    .why-section .row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }

    .why-card {
        padding: 23px 12px;

        border-radius: 16px;
    }

    .why-icon {
        width: 54px;
        height: 54px;

        flex-basis: 54px;

        margin-bottom: 12px;
    }

    .why-icon i {
        font-size: 23px;
    }

    .why-card h4 {
        font-size: 15px;
        margin-bottom: 7px;
    }

    .why-card p {
        font-size: 12px;
        line-height: 1.5;
    }

}