.tab{padding: 15px 0px;}
.tab .nav-tabs{
    border-bottom: none;
    position: relative;
    margin-bottom: 20px;   
}
.tab .nav-tabs li{
    margin-right: 60px;
    z-index: 1;
}
.tab .nav-tabs li:after{
    content: "";
    width: 100%;
    border: 1px solid #ccc6c6;
    position: absolute;
    top: 50%;
    right: -60%;
    z-index: -1;
}
.tab .nav-tabs li:last-child:after{
    border: none;
}
.tab .nav-tabs li a{
    display: block;
    padding: 10px 16px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #cfcfcf;
    text-transform: uppercase;
    border-radius: 0;
    margin-right: 0;
    border: 1px solid #cfcfcf;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover{
    color: #fff;
    border: 1px solid #396d7c;
    font-size: 15px;
}
.tab .nav-tabs li a:after{
    content: "";
    display: block;
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li.active a:after,
.tab .nav-tabs li a:hover:after{
    height: 100%;
    background: #396d7c;
}
.tab .tab-content{
    padding: 20px 20px;
    margin-top: 0;
    font-size: 14px;
    color: #000;
    line-height: 22px;
    width: 60%;
    text-align: center;
    margin: 0 auto;
    background: #fff;
    position: relative;
    z-index: 99;


-webkit-box-shadow: -1px 0px 36px -14px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 0px 36px -14px rgba(0,0,0,0.75);
box-shadow: -1px 0px 36px -14px rgba(0,0,0,0.75);

}
.tab .tab-content h3{
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 767px){
    .tab .nav-tabs li{ margin: 0 25px 0 0; }
}
@media only screen and (max-width: 479px){
    .tab .nav-tabs li{
        width: 100%;
        text-align: center;
        margin: 0 0 10px 0;
    }
    .tab .nav-tabs li:after{
        width: 0;
        height: 100%;
        top: auto;
        bottom: -60%;
        right: 50%;
    }
}