.humanity {
    margin: 50px 300px;
}

.humanity .col {
    width: calc(20% - 20px);
    margin: 0 10px;
}

.humanity .tablinks {
    font-size: 17px;
    font-weight: 700;

}

.humanity .tablinks:hover {
    color: rgb(240, 79, 29);
}


.img-slider .col {
    width: calc(33.33% - 20px);
    margin: 0 10px;
    position: relative;
}

.img-slider .col figure img {
    width: 100%;
    padding: 10px 0px;
    height: 300px;
    object-fit: cover;
}


.img-slider .col .text-content a{
    position: absolute;
    top: 40%;
    left: 110px;
}

.img-slider .col .text-content h4 {
    color: #fff;
    position: absolute;
    left: 30px;
    right: 15px;
}

.btn8 {
    padding: 12px 20px;
    border-radius: 5px;
    border: 2px solid rgb(240, 79, 29);
    background: rgb(240, 79, 29);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all .5s ease-in-out;
}

.btn8:hover {
    background-color: transparent;
    border: 2px solid rgb(240, 79, 29);
    color: rgb(240, 79, 29);
}

/*slider*/
.img-slider .col .opacity:nth-of-type(1) {
    position: relative;
}

.img-slider .col .opacity:nth-of-type(1)::after {
    transform: translate(-50%, -50%) scaleY(0);
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    width: 100%;
    height: 95%;
    transform-origin: top;
    background: #0000009e;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.img-slider .col .opacity:nth-of-type(1):hover::after {
    transform: translate(-50%, -50%) scaleY(1);
}

.img-slider .col .opacity:nth-of-type(1) .btn8 {
    position: absolute;
    top: 40%;
    left: 30%;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: all .5s ease-in-out;
}

.img-slider .col .opacity:nth-of-type(1):hover .btn8 {
    visibility: visible;
    opacity: 1;
}

.img-slider .col .opacity:nth-of-type(1) .heading {
    position: absolute;
    top: 75%;
    color: #fff;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: all .5s ease-in-out;
}

.img-slider .col .opacity:nth-of-type(1):hover .heading {
    visibility: visible;
    opacity: 1;
}
#footer-space{
    margin-top: 30px;
}
.tab .col .tablinks{
    padding-bottom: 10px;
}
.active{
    color: rgb(240, 79, 29);
    border-bottom: 2px solid rgb(240, 79, 29);
}

/* media query for tablet screen */
@media screen and (max-width:1024px) {
    .humanity {
        margin: 30px 125px;
    }

    .humanity p a {
        font-size: 15px;
    }

    .img-slider .col figure img {
        height: 200px;
    }

    .img-slider .col h4 {
        line-height: 20px;
        font-size: 14px;
        margin-top: 10px;
        left: 15px;
    }
    .img-slider .col .opacity:nth-of-type(1) .btn8{
        top: 30%;
        left: 20%;
    }
    .img-slider .col .opacity:nth-of-type(1) .heading{
        top: 66%;
    }
}



/* media query for mobile screen */
@media screen and (max-width:767px) {
    .humanity {
        margin: 10px 0px;
    }

    .humanity .col {
        margin: 0 8px;
    }

    .humanity p a {
        font-size: 10px;
        font-weight: 700;
    }

    .img-slider .col {
        width: 100%;
    }
    .img-slider .col .opacity:nth-of-type(1) .btn8{
        left: 30%;
    }
    .img-slider .col .opacity:nth-of-type(1) .heading{
        top: 64%;
        left: 20px;
    }
}