/***********************************************************/ 
/*******************  RESPONSIVE STYLING *******************/
/********************** COLUMNS BLOCK **********************/
/***********************************************************/  

.row-team-member-wrapper {
  display: none; /* Initially hide all rows */
}

.row-team-member-wrapper:nth-child(-n+4) {
    display: block; /* Display the first four rows */
}

.team-members-wrapper{
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* For screens between 1100px and 1200px */
@media (max-width: 1200px) and (min-width: 900px) {
    .team-members-wrapper .team-member-column {
        width: 33.33%!important;
    }
}

/* For screens between 700px and 890px */
@media (max-width: 900px) and (min-width: 700px) {
    .team-members-wrapper .team-member-column {
        width: 50%!important;
    }
}


/* ON HOVER ONLY */

/* For screens between 700px and 890px */
@media (min-width: 1250px){

    .team-member-column .member-name {
        color: transparent;
        transition: color 0.3s ease-in-out;
        font-size: 20px;
        font-family: 'Roboto Bold';
    }
    }
    
    /* For screens between 700px and 890px */
    @media (min-width: 1250px){
    
    .team-member-column .group-name {
        color: transparent;
        transition: color 0.3s ease-in-out;
        font-size: 20px;
        font-family: 'Roboto Light';
    }
    }
    
    /* For screens between 700px and 890px */
    @media (min-width: 1250px){
    
    .team-member-column .member-position {
        color: transparent;
        line-height: 1.2;
        font-size: 20px;
        font-family: 'Roboto Light';
        transition: color 0.3s ease-in-out;
    }
    }
    
    /* For screens between 700px and 890px */
    @media (min-width: 1250px){
    
    .team-member-column .member-categories {
        color: transparent;
        font-size: 20px;
        font-family: 'Roboto Light';
        transition: color 0.3s ease-in-out;
    }
    }
    
    /* For screens below 700px */
    @media (max-width: 700px) {
        .team-members-wrapper .team-member-column {
            width: 50%!important;
        }
        .team-members-wrapper .team-member-column::before {
            display: block!important;
        }
    }

/* For screens between 700px and 890px */

@media (max-width: 900px){
.team-members-wrapper .team-member-column .member-info{
    bottom: 30px!important;
}
}

@media (min-width: 900px){
    .team-member-column{
        height: 460px;
    }
    }

@media (max-width: 900px){
.team-member-column{
    height: 260px;
}
}

@media (max-width: 1250px){

.team-member-column .member-name {
    color: white;
    transition: color 0.3s ease-in-out;
    font-size: 16px!important;
    font-family: 'Roboto Bold';
    margin-left: 20px;
    line-height: 1.4;
}
}

/* For screens between 700px and 890px */
@media (max-width: 900px){

.team-member-column .group-name {
    color: white;
    transition: color 0.3s ease-in-out;
    font-size: 20px;
    font-family: 'Roboto Light';
}
}

/* For screens between 700px and 890px */
@media (max-width: 900px){

.team-member-column .member-position {
    display: none;
}
}

/* For screens between 700px and 890px */
@media (max-width: 900px){

.team-member-column .member-categories {
    color: white;
    font-size: 20px;
    font-family: 'Roboto Light';
    transition: color 0.3s ease-in-out;
}
}

@media (min-width: 900px){
.team-members-wrapper .team-member-column .member-info{
padding-left: 20px;
}
}

/* For screens below 700px */
@media (max-width: 700px) {
    .team-members-wrapper .team-member-column {
        width: 50%!important;
    }
    .team-members-wrapper .team-member-column::before {
        display: block!important;
    }
}

/* CSS for team member columns */
.team-member-column {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 5px white, inset 0 0 0 10px white;
    gap: 20px;
}

@media (min-width: 1250px) {
/* Overlay effect on hover */
.team-member-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(42, 41, 90, 0.95) 20%, rgba(42, 41, 90, 0.15186915887850472) 65%, rgba(42, 41, 90, 0) 78%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: inset 0 0 0 5px white, inset 0 0 0 10px white;
}
}

@media (max-width: 1250px) {
.team-member-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(42, 41, 90, 0.95) 20%, rgba(42, 41, 90, 0.15186915887850472) 65%, rgba(42, 41, 90, 0) 78%);
    opacity: 1!important;
    transition: opacity 0.3s ease-in-out;
    box-shadow: inset 0 0 0 5px white, inset 0 0 0 10px white;
}
}

.team-member-column:hover::before {
    opacity: 1;
    box-shadow: inset 0 0 0 5px white, inset 0 0 0 10px white;
}

.team-members-wrapper .team-member-column .member-info{

    color: #fff; /* Change to your desired text color */
    position: absolute;
    bottom: 50px;
    right: 30px;
    max-width: 300px;
    text-align:right;
}

/* Show team member names on hover */
.team-member-column:hover .member-name {
    color: #fff; /* Change to your desired text color */
}

/* Show team member names on hover */
.team-member-column:hover .group-name {
    color: #fff; /* Change to your desired text color */
}

/* Show team member position on hover */
.team-member-column:hover .member-position {
    color: #fff; /* Change to your desired text color */
}

/* Show team member position on hover */
.team-member-column:hover .member-categories {
    color: #fff; /* Change to your desired text color */
}

@media (min-width: 1200px) {
    .block-titlesimple {
        width: 30%;
    }
  } 

  @media (min-width: 1200px) {
    .block-secondtitlesimple {
        width: 70%;
    }
  } 


@media (min-width: 1200px){
    .main-containersimple {
        display: flex;
        flex-direction: row;
    }
  } 

  @media (min-width: 900px) and (max-width: 1200px) {
    .main-containersimple {
        display: flex;
        flex-direction: row;
    }
  } 


  @media (min-width: 768px) and (max-width: 900px) {
    .main-containersimple {
        display: flex;
        flex-direction: column;
    }
  }   

  @media (min-width: 420px) and (max-width: 768px) {
    .main-containersimple {
        margin-top: 20%;
        display: flex;
        flex-direction: column;
    }
  } 

  @media (max-width: 420px){
    .main-containersimple {
        margin-top: 20%;
        display: flex;
        flex-direction: column;
    }
  } 

@media (min-width: 1200px) and (max-width: 1600px){
    .container1simple {
    margin-left: 24px;
    margin-right: 24px;
    display: flex;
        flex-direction: row;
    }
  } 

    .container1simple {
    margin-left: 24px;
    margin-right: 24px;
    }

@media (min-width: 1601px) and (max-width: 1650px) {
    .container1simple {
        margin-left: 24px;
    margin-right: 24px;
    max-width: 1600px;
    display: flex;
    flex-direction: row;
    }
  }  

  @media (min-width: 1650px){
    .container1simple {
    width: 1600px;
    margin: auto;
    display: flex;
    flex-direction: row;
    }
  } 
  
/* Text */


/* Subtitle */

@media (min-width: 1200px) {
    h2.block-secondtitlesimple{
        font-size: 36px;
        font-family: 'Moderat Extended Bold', 'Roboto Bold';
        line-height: 1.2;
    }
}

@media (min-width: 900px) and (max-width: 1200px) {
    h2.block-secondtitlesimple{
        font-size: 32px;
        font-family: 'Moderat Extended Bold', 'Roboto Bold';
        line-height: 1.2;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    h2.block-secondtitlesimple{
        font-size: 30px;
        font-family: 'Moderat Extended Bold', 'Roboto Bold';
        line-height: 1.2;
    }
}

@media (min-width: 420px) and (max-width: 768px) {
    h2.block-secondtitlesimple{
        font-size: 28px;
        font-family: 'Moderat Extended Bold', 'Roboto Bold';
        line-height: 1.2;
    }
}

@media (min-width: 300px) and (max-width: 420px) {
    h2.block-secondtitlesimple{
        font-size: 24px;
        font-family: 'Moderat Extended Bold', 'Roboto Bold';
        line-height: 1.2;
    }
}