:root{ --main-color: #F74583; 
    text-transform: capitalize; }
.serviceBox{
    text-transform: capitalize; 
    color: var(--main-color);
    font-family: 'Nunito', sans-serif;
    text-align: center;
    padding: 50px 20px 70px;
    position: relative;
    z-index: 1;
}
.serviceBox:before{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}


.serviceBox:after{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}

/* .serviceBox::before{
    animation: test_dsf22 5s infinite;
}

@keyframes test_dsf22 {
    0%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
    50%{
        clip-path: polygon(0 0, 0% 0, 10% 0%, 50% 89%, 0 10%);
    }
    100%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
} */

.serviceBox:after{
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    top: 30px;
    bottom: 45px;
    left: 0;
    right: 0;
    /* clip-path: none; */
}
.serviceBox .service-icon{
    color: #888;
    font-size: 40px;
    margin: 0 auto 10px;
}
.serviceBox .title{
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin: 0 0 5px;
}
.serviceBox .description{
    color: #333;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.1px;
    margin: 0;
}
.serviceBox.purple{ --main-color: #9B3E8F; }
.serviceBox.blue{ --main-color: #3B4799; }
.serviceBox.lightblue{ --main-color: #3F9CD6; }
@media only screen and (max-width: 1199px){
    .serviceBox{ margin: 0 0 40px; }
}



/*  nth child class */

:root{ --main-color: #F74583; }
.serviceBox1{
    color: var(--main-color);
    font-family: 'Nunito', sans-serif;
    text-align: center;
    padding: 50px 20px 70px;
    position: relative;
    z-index: 1;
}
.serviceBox1:before{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    /* left: 30px;
    right: 30px; */
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}


.serviceBox1:after{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}

/* .serviceBox1::before{
    animation: test_dsf22 5s infinite;
}

@keyframes test_dsf22 {
    0%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
    50%{
        clip-path: polygon(0 0, 0% 0, 10% 0%, 50% 89%, 0 10%);
    }
    100%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
} */

.serviceBox1:after{
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    top: 30px;
    bottom: 45px;
    left: 0;
    right: 0;
    /* clip-path: none; */
}
.serviceBox1 .service-icon{
    color: #888;
    font-size: 40px;
    margin: 0 auto 10px;
}
.serviceBox1 .title{
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin: 0 0 5px;
}
.serviceBox1 .description{
    color: #333;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.1px;
    margin: 0;
}
.serviceBox1.purple{ --main-color: #9B3E8F; }
.serviceBox1.blue{ --main-color: #3B4799; }
.serviceBox1.lightblue{ --main-color: #3F9CD6; }
@media only screen and (max-width: 1199px){
    .serviceBox1{ margin: 0 0 40px; }
}


/* chil paddinmg remove */


:root{ --main-color: #F74583; }
.serviceBox2{
    color: var(--main-color);
    font-family: 'Nunito', sans-serif;
    text-align: center;
    padding: 17px 20px 22px;
    position: relative;
    z-index: 1;
}
.serviceBox2:before{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    /* left: 30px;
    right: 30px; */
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}


.serviceBox2:after{
    content: '';
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5) inset;
    position: absolute;
    /* left: 30px;
    right: 30px; */
    top: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
}

/* .serviceBox1::before{
    animation: test_dsf22 5s infinite;
}

@keyframes test_dsf22 {
    0%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
    50%{
        clip-path: polygon(0 0, 0% 0, 10% 0%, 50% 89%, 0 10%);
    }
    100%{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 89%, 0 100%);
    }
} */

.serviceBox2:after{
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    /* top: 30px;
    bottom: 45px; */
    left: 0;
    right: 0;
    /* clip-path: none; */
}
.serviceBox2 .service-icon{
    color: #888;
    font-size: 40px;
    margin: 0 auto 10px;
}
.serviceBox2 .title{
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin: 0 0 5px;
}
.serviceBox2 .description{
    color: #333;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.1px;
    margin: 0;
}
.serviceBox2.purple{ --main-color: #9B3E8F; }
.serviceBox2.blue{ --main-color: #3B4799; }
.serviceBox2.lightblue{ --main-color: #3F9CD6; }
@media only screen and (max-width: 1199px){
    .serviceBox2{ margin: 0 0 40px; }
}


