@import "styles.css";

h1 {
    color: var(--primary-color);
    background-color: var(--gray-300);

}

.about__page {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-bottom: 30px;
}

.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: var(--normal-font-size);

}

.about__text h2 {
    font-size: var(--h1-font-size);
    color: var(--primary-color-dark);
    font-weight: var(--font-semi-bold);
    text-align: center;
    font-family: var(--serif-family);
}

.about__text p {
  text-align: center;
  font-size: var(--normal-font-size);
  padding: 0 20px;
}


.about__image img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.link { 
  padding: 10px;
  width: max-content;
  border-radius: 4px;
  border: 2px solid transparent;
  outline: none;
  background-color: var(--primary-color);
  color: var(--gray-100);
  font-size: var(--normal-font-size);
  cursor: pointer;
  transition: all .3s ease;
}

.link:hover {
  border: 2px solid var(--secondary-color);
  background-color: transparent;
  color: var(--secondary-color-dark);
}

.our-team {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
}

.teamContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
}

.container .our-team h2{
  font-size: var(--h1-font-size);
  color: var(--primary-color-dark);
  font-weight: var(--font-semi-bold);
  text-align: center;
  font-family: var(--serif-family);
}

.team-member {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  gap: 5px;
  text-align: center;
  width: 45%;
}

.team-member:hover {
    transition: all .3s ease-in-out;
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.team-member img {
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-color-dark);
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--secondary-color-dark);
}
  
.team-member p {
  font-weight: var(--font-regular);
  font-size: var(--normal-font-size);
  color: var(--gray-900);
}

.social-media {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
} 

.social-media a {
    margin-right: 5px;
    color: hsl(203, 11%, 29%);
    font-size: 20px;
}
  
  /* Media Queries */
  @media screen and (min-width: 768px) {
    .about__page{
       flex-direction: row;
       padding: 2rem;
    }
    .about__text {
        flex: 1;
        margin: 2rem;
      }
    
    .about__text p{
       text-align: justify;
       font-size: var(--normal-font-size);
       padding: 0;
    }
    .about__image img {
        height: 280px;
      }
    
    .team-member {
      width: 31%;

    }

    .social-media {
      width: 0;
      gap: 20px;
    } 

    #core {
      margin: 4rem;
    }
  }
  
  @media screen and (min-width: 1024px) {
    .about__text {
      margin: 2rem 4rem;
    }

    .about__text h2{
      font-size: var(--big-font-size);
    }

    .about__text p{
      font-size: var(--h3-font-size);
    }
    
    .about__image img {
      height: 250px;
    }

    .container .our-team h2{
      font-size: var(--big-font-size);
    }

    .teamContainer {
      gap: 20px;
  }

    .team-member {
      padding: 10px 0;
      width: 23%;
    }

    .team-member img {
      width: 200px;
      height: 200px;
  }
  
  .team-member h3 {
    font-size: var(--h2-font-size);
  }
    
  .team-member p {
    font-size: var(--h3-font-size);
  }
  }
  
  @media screen and  (min-width: 1244px) {
    .about__text {
        margin: 2rem 6rem;
      }
    
      .about__image img {
        width: 450px;
        height: 300px;
      }
    .team-member {
      /* width: 18%; */
    }
  }
  
  @media  screen and (max-width: 350px) {
    .team-member {
      width: 100%;
    }
  }