.demo{
    padding: 2em 0;
}
a:hover,a:focus{
    outline: none;
    text-decoration: none;
}
.tab .nav-tabs{
    box-shadow: -1px 0 2px #6676ff;
    border-bottom: 0 none;
}
.tab .nav-tabs li{
    width: 24.85%;
    margin-right: 0.2%;
}
.tab .nav-tabs li:nth-child(4){
    margin-right: 0px;
}
.tab .nav-tabs li a{
    display: block;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: none;
    padding: 18px;
    background: #666769;
    border-radius: 0;
    margin: 0;
    position: relative;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:hover{
    background: #c7000b;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li.active a:focus,
.tab .nav-tabs li.active a:hover{
    border: none;
    background: #c7000b;
    color: #fff;
    transition: all 0.20s ease 0s;
}
.tab .nav-tabs li.active a:after{
    /*content: "";*/
    /*position: absolute;*/
    /*top: -30px;*/
    /*left: 38%;*/
    /*border: 15px solid transparent;*/
    /*border-bottom-color: #6676ff;*/
}
.tab .tab-content{
    font-size: 14px;
    color: #fff;
    /*background: #333;*/
    line-height: 25px;
    padding: 0px;
}
.tab .tab-content h3{
    font-size: 20px;
    color: #6676ff;
}
@media only screen and (max-width: 480px){
    .tab .nav-tabs li{
        width: 100%;
        margin-bottom: 2px;
    }
    .tab .nav-tabs li.active a:after{
        border: none;
    }
}