.page-header {
  text-align: center;
  padding-top: 60px;
}

/* .overlay-dark {
  position: absolute;
  background-color: rgba(0,0,0,0.4);
  width: 100%;
  height: inherit;
} */

.header-text {
  max-width: 1180px;
  padding: 20px 20px 70px;
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 100%;
}

.header-text h1, .header-text h4 {
  font-family: 'Questrial',Helvetica,Arial,Lucida,sans-serif;
  text-transform: uppercase;
  color: #FFFFFF !important;
  text-align: left;
}

.header-text h1 {
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1.1em;
  padding: 0px 20px 0 0;
  font-weight: 500;
}

.header-text h4 {
  font-size: 16px;
  letter-spacing: 3px;
  line-height: 1.2em;
  font-weight: 700;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  padding: 18px;
  max-width: 1200px;
  margin: 0 auto 5em;
  justify-content: center;
}

.team-member-page-blurb {
  max-width: 1000px;
  margin: 10px auto 50px;
  font-size: 18px;
  color: inherit;
  padding: 0 20px;
  line-height: 1.7rem;
  text-align: center;
}

.team-member-link {
  position: relative;
  margin: 15px;
  width: 28%;
  text-decoration: none;
  color: inherit;
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  min-height: 350px;
  max-height: 350px;
  object-fit: cover;
}

.team-member-link:hover .post-thumbnail img {
  filter: grayscale(0%);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 10px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-member-link:hover .overlay {
  opacity: 1;
}

.entry-title {
  padding-bottom: 0;
}

.entry-title, .position {
  margin: 0;
  color: #fff;
}

.et_builder_inner_content .et_pb_section_0.et_pb_section .et_pb_text_0 {
  margin-bottom: 0 !important;
}

@media screen and (min-width: 769px) and (max-width: 981px) {
  .team-member-link {
    width: 45%;
  }

  .post-thumbnail img {
    max-height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .team-member-link {
    width: 85%;
    max-width: 350px; 
  }

  .header-text h1 {
    font-size: 45px;
  }
}

@media screen and (max-width: 560px) {
  .header-text h1 {
    font-size: 38px;
  }
}

/*** Expand the content area to fullwidth ***/
@media (min-width: 981px) {
  #left-area {
    width: 100%;
    padding: 23px 0px 0px !important;
    float: none !important;
  }

  .et_right_sidebar #main-content .container::before {
    display: none !important;
  }
}


/*** Single Team Member Page ***/

.team-member-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 900px;
  margin: 20px auto 50px;
  padding: 0 20px;
}

.team-member-thumbnail {
  flex-basis: 40%;
  min-width: 360px;
}

.team-member-info {
  flex-grow: 1;
  color: #000;
  font-size: 16px;
}

.team-member-title {
  font-weight: bold;
  font-size: 36px;
}

.team-member-info .position {
  font-weight: bolder;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 16px;
}

.breadcrumbs {
  margin: 20px auto;
  font-size: 18px;
  max-width: 900px;
  padding: 0 20px;
}

.team-member-email, .team-member-linkedin {
  padding-bottom: 0;
  font-weight: 600;
}

.team-member-linkedin {
  margin-bottom: 10px;
}

.team-category-section {
  margin-bottom: 40px;
}
.team-category-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.team-member-item {
  flex-basis: calc(33.333% - 20px);
}