:root {
    --primary--color: #ffffff;
    --accent-color: #2aaae0;
}
/*fun-facts-con*/
.fun-facts-con {
    padding-top: 100px;
    padding-bottom: 120px;
}

.fun-facts-box-item {
    transition-duration: .3s;
    transition-property: transform;
    transition-timing-function: ease-out;
}

.fun-facts-box-con .row>div {
    border: 1px solid #d6d6d6;
}

.fun-facts-item-content h2 {
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 0;
}

.fun-facts-item-title span {
    font-size: 28px;
    font-weight: 600;
    position: absolute;
    right: -24px;
    top: -5px;
}

.fun-facts-box-item {
    padding: 38px;
}

.fun-facts-item-content {
    padding-left: 20px;
}

.fun-facts-item-content p {
    font-size: 16px;
}

.fun-facts-box-con {
    padding-top: 70px;
}

.fun-facts-box-item:hover {
    background: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0px 20px 30px 0px rgb(0 0 0 / 20%);
    transform: translateY(-20px);
}

.fun-facts-box-item:hover img {
    filter: brightness(0) invert(1);
}

.fun-facts-box-item:hover h2 {
    color: var(--primary--color);
}

.fun-facts-box-item:hover span {
    color: var(--primary--color);
}

.fun-facts-box-item:hover p {
    color: var(--primary--color);
}

/*fun-facts-con*/

@media only screen and (max-width: 1250px) {

    .feature-box-item:hover,
    .fun-facts-box-item:hover,
    .professional-box-item:hover,
    .service-box-item:hover {
        left: 0;
    }
}

@media only screen and (max-width: 1199px) {
    .fun-facts-box-item {
        padding: 30px 18px;
    }

    .about-fun-facts-con {
        padding: 80px 25px 70px 25px;
    }
}

@media only screen and (max-width: 991px) {

    .feature-box-item:hover,
    .fun-facts-box-item:hover,
    .professional-box-item:hover,
    .service-box-item:hover {
        transform: scale(1);
        left: 0;
        bottom: 0;
        box-shadow: none;
    }

    .fun-facts-con {
        padding: 80px 0;
    }

    .fun-facts-box-con,
    .blog-posts {
        padding-top: 50px;
    }

    .fun-facts-item-title span {
        right: -24px;
    }

    .form-main-con p,
    .about-fun-facts-title h2,
    .professional-title p {
        margin-bottom: 45px;
    }

    .about-fun-facts-con {
        padding: 60px 25px;
    }

    .fun-facts-box-con .row>div:nth-child(2),
    .service-box-inner-con .row>div:nth-child(2) {
        border-right: 1px solid #d6d6d6 !important;
    }

    .about-fun-facts-con .fun-facts-box-con .row>div:nth-child(2) {
        border-color: var(--secondary--color) !important;
    }
}

@media only screen and (max-width: 767px) {
    .fun-facts-con {
        padding: 50px 0;
    }

    .fun-facts-box-con {
        padding-top: 30px;
    }

    .fun-facts-item-title span {
        right: -18px;
        top: 5px;
    }

    .fun-facts-item-title span {
        font-size: 18px;
    }

    .form-main-con p,
    .about-fun-facts-title h2,
    .professional-title p {
        margin-bottom: 35px;
    }

    .about-fun-facts-con {
        padding: 50px 25px;
    }

    .about-fun-facts-con .fun-facts-box-item {
        padding: 33px 18px;
    }
}

@media only screen and (max-width: 575px) {

    .feature-box-con,
    .fun-facts-box-con {
        padding-left: 6%;
        padding-right: 6%;
    }

    .form-main-con p,
    .about-fun-facts-title h2,
    .professional-title p {
        margin-bottom: 25px;
    }

    .fun-facts-con {
        padding: 40px 0;
    }

    .fun-facts-box-item {
        padding: 24px 7px;
    }

    .fun-facts-item-content {
        padding-left: 0;
    }

    .fun-facts-item-content h2 {
        line-height: 24px;
        margin-top: 8px;
    }

    .about-fun-facts-con .fun-facts-box-item {
        padding: 20px 7px;
    }

    .about-fun-facts-con {
        padding: 40px 15px;
    }
}