.blocker {
  z-index: 9999 !important;
}

.team-member-items {
  display:flex;
  flex-wrap: wrap;
}

.team-member-card {
  position: relative;
  width:25%;
  padding:10px;
  z-index: 1;
}

.team-member-card.hidden {
 display: none !important; 
}

/* Team member info - positioned below image, not overlaid */
.team-member-info {
  padding: 20px 0 0 0;
  position: relative;
  text-align: left;
}

.bio-popup-text--head {
  align-items: flex-start;
  display: flex;
  padding-bottom: 1em;
}

.bio-popup-name-title, .bio-popup-logos {
  flex-basis: 50%;
}

.bio-popup-logos {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.bio-popup-logos img {
  height:max-content;
  margin-left: 2%;
  max-width: 48%;
  width: 150px;
}

.team-member-info h3, .bio-popup-text h3 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px;
}

/* Name styling - bold, dark blue */
.team-member-info h3 {
  color: #006083;
  font-weight: 700;
}

/* Image container - rounded top corners only, sharp bottom */
.team-member-item__image {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.bio-popup-image-wrapper {
  overflow:hidden;
  width: 100%;
}

.bio-popup-vf-top-rated {
  margin-top: -25px;
  overflow:hidden;
  width: 100%;
}

.bio-popup-vf-top-rated img {
  height: auto;
  width: 100%;
}

.bio-popup-vouchedfor {
  float:left;
  padding-top: 2em;
  width: 60%;
}

.bio-popup-chartered {
  float: left;
  padding-left: 10px;
  padding-top: 2em;
  text-align: center;
  width: 40%;
}

/* Gradient overlay on hover - dark blue with 60% opacity */
.team-member-item__image:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(0, 96, 131, 0.60) 0%, rgba(0, 96, 131, 0.60) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

/* Show gradient overlay on card hover */
.team-member-card:hover .team-member-item__image:before {
  opacity: 1;
}

.team-member-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
  display: block;
  object-position: top;
}

/* Job title styling - regular weight, dark blue */
.team-member-info .job-title, .bio-popup-text .job-title {
  font-size: 1.2em;
  line-height: 1.2em;
  color: #006083;
  font-weight: 400;
  margin: 0;
}

.bio-popup-text .job-title {
  margin: 0;
}

/* Remove hover scale effect for 2025 design */
.team-member-card:hover .team-member-item__image img {
  transform: none;
}

/* Read bio button overlay - white box with dark blue text, positioned over bottom portion of image */
/* Hidden by default, shown on hover */
.team-member-item__read-bio {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

/* Show read bio button on card hover */
.team-member-card:hover .team-member-item__read-bio {
  opacity: 1;
  pointer-events: auto;
}

.team-member-item__read-bio a {
  color: #006083;
  text-decoration: none;
  font-weight: 400;
  display: block;
  pointer-events: auto;
}

.team-member-item__read-bio a:hover {
  text-decoration: underline;
}

.modal {
  max-width: 1000px;  
  padding: 2em;
}

.modal.narrow-popup {
  max-width: 620px;
}

.close-modal {
  background-image: none !important;
  background-color: #006083 !important; 
  line-height: 28px !important;
  position: relative;
  text-indent: -9999px; /* Hide any existing text */
  overflow: hidden;
}

/* Add FontAwesome close icon (X) to the close button */
.close-modal::before {
  content: "\f00d"; /* FontAwesome times icon (fa-times) */
  font-family: "Font Awesome 6 Free", "FontAwesome", fontawesome;
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  text-indent: 0; /* Reset text indent for the icon */
}

.close-modal:hover {
  background-color: #29235c !important; 
}

.bio-popup-image {
  height: 380px;
  background-size:cover !important;
}

.bio-popup-text {
  padding: 0 2em;
}

.contact-email i, .contact-phone i {
  padding-right: 5px;
}

.contact-email {
  padding-right: 20px;
  display: inline-block;
}

.contact-phone {
  display: inline-block;
}

/* Category filter container */
.category-filter{
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 40px;
}

/* Filter wrapper - flexbox layout */
.category-filter__wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Filter by label */
.category-filter__label {
  color: #00a19a;
  font-size: 1em;
  margin: 0;
  font-weight: 400;
}

/* Dropdown wrapper for custom styling */
.category-filter__dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* Custom dropdown styling */
.category-filter__dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  border: 1px solid #00a19a;
  color: #00a19a !important;
  padding: 10px 40px 10px 15px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  min-width: 200px;
  font-family: inherit;
}

/* Ensure dropdown options maintain teal color */
.category-filter__dropdown option {
  color: #00a19a;
  background-color: #ffffff;
}

/* Dropdown arrow icon */
.category-filter__dropdown-wrapper::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #00a19a;
  pointer-events: none;
  font-size: 0.8em;
}

/* Dropdown hover state */
.category-filter__dropdown:hover {
  border-color: #006083;
}

/* Dropdown focus state */
.category-filter__dropdown:focus {
  outline: none;
  border-color: #006083;
  box-shadow: 0 0 0 2px rgba(0, 96, 131, 0.2);
  color: #00a19a !important;
}

/* Ensure text stays teal when dropdown is active/open */
.category-filter__dropdown:active,
.category-filter__dropdown:focus,
.category-filter__dropdown:focus-visible {
  color: #00a19a !important;
}

/* Clear filters button - hidden by default */
.category-filter__clear {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #00a19a;
  font-size: 1em;
  cursor: pointer;
  padding: 10px 15px;
  margin-left: auto;
  font-family: inherit;
  transition: color 0.2s ease;
}

/* Clear filters button hover */
.category-filter__clear:hover {
  color: #006083;
}

/* Clear filters icon (X in circle) */
.category-filter__clear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #00a19a;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.category-filter__clear:hover .category-filter__clear-icon {
  background-color: #006083;
}

/* Clear filters text */
.category-filter__clear-text {
  font-weight: 400;
}

@media ( max-width:1280px){

.category-filter-container{
    flex-direction:column;
  }

  .team-member-info h3 {
    font-size: 24px;
  }

  .team-member-info {
    padding: 20px 0 0 0;
  }

  /* Adjust filter layout on smaller screens */
  .category-filter__wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-filter__clear {
    margin-left: 0;
  }

}

@media(max-width:980px){

  .bio-popup-text--head {
    flex-direction: column;
  }

  .bio-popup-name-title, .bio-popup-logos {
    flex-basis: 100%;
    width: 100%;
  }

  .bio-popup-logos {
    justify-content: flex-start;
    padding-top: 2em;
  }

  /* Read bio button remains visible on mobile */
  .team-member-item__read-bio {
    padding: 10px 12px;
  }

  .team-member-card {
    width: 50%;
  }
}

@media(max-width:767px){
  .modal {
   margin-top: 100px; 
  }
  
  .bio-popup-image {
    background-size: contain !important;
  }
  
  .bio-popup-text {
    padding: 2em 0 0 0;
  }
  
  .team-member-card {
    width: 100%;
  }

  /* Mobile filter adjustments */
  .category-filter {
    padding-bottom: 30px;
  }

  .category-filter__dropdown {
    width: 100%;
    min-width: 100%;
  }

  .category-filter__wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filter__clear {
    margin-left: 0;
    justify-content: center;
  }
  
}

@media(max-width:480px){
  .bio-popup-image {
    height: 300px;
  }
}

@media(min-width:1600px){
.team-member-item__image {
  max-height: 420px;
}
