:root{
    --main-color:#fb0000;
    --secondary-color: #000;
    --black: #000; 
    --white: #fff;
    --light-grey: #E6E6E6;
    --grey: #666; 
    --border-radius-1: 0.5rem;
    --border-radius-2: 1rem;
    --border: 0.1rem solid rgba(0, 0, 0, 0.1);
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}


html{
    font-size: 62.5%;
}


/*----- 02- Tab Informatin -----*/
.tab-buttons{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    list-style-type: none;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-buttons .button{
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1.5rem 3rem;
    color: var(--white);
    background-color: var(--secondary-color);
    text-transform: uppercase;
    border-radius: var(--border-radius-2);
    text-align: center;
}

.tab-buttons .button:hover,
.tab-buttons .button.active{
    background-color: var(--main-color);        
    -webkit-box-shadow: var(--box-shadow);
            box-shadow: var(--box-shadow);
    cursor: pointer;
}

/*----- 1- Team -----*/
.team .box-container{
    display: -ms-grid;
    display: grid;
	-ms-grid-columns: (minmax(25rem, 1fr))[auto-fill];
	    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 1rem;  
}

.team .tab-buttons{
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-top: 2rem;
}

.team .sub-heading h3{
    font-size: 2rem;  
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.05rem;
    line-height: 1;
    padding-bottom: 2rem;
}

.team .team-gallery{
    padding: 2rem 0;
}

.team .team-gallery:last-child{
    padding-bottom: 0;
}

.team-item{
    overflow: hidden;
    position: relative;
    border-bottom: 0.4rem solid var(--main-color);
    -webkit-box-shadow: var(--box-shadow);
            box-shadow: var(--box-shadow);
}

.team-item .team-image{
    position: relative;
    overflow: hidden;
    height: 40rem;
}

.team-item .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item .icon-container{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center; 
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    padding-bottom: 4rem;
    position: absolute;
    top: 0;
    right: -100%;
    background-color: var(--main-color);
    -webkit-clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 80%);
            clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 80%);
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    -o-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
    z-index: 2;
}

.team-item:hover .icon-container{
    right: 0;
}

.team-item .icon-container a{
    height: 3.5rem;
    width: 3.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center; 
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: var(--white);
    background-color: var(--secondary-color);
    border: 0.2rem solid var(--secondary-color);
    -webkit-box-shadow: var(--box-shadow);
            box-shadow: var(--box-shadow);
    border-radius: 50%;
    font-size: 1.5rem;
  }
  
.team-item .icon-container a:hover{
    color: var(--black);
    background-color: transparent;
  }
  
  .team-item .team-content{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    background:         linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.team-item .team-content span{
    font-size: 2rem;
    color: var(--white);
}

.team-item .team-content h3{
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
}

.team-item .team-content h3:hover{
    color: var(--main-color);
}

.team-item .team-content p{
  font-size: 1.6rem;
  font-weight: 500;
  padding-top: 0.7rem;
  color: var(--white);
  text-transform: uppercase;
}