/*--------staf----------*/

.safe-d-staff {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c2c2c;
    line-height: 1.6;
    max-width: 100%;
  }

  .safe-d-staff h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    margin-top: 0;
    color: #cb4900;
    text-align: center;
    font-weight: 700;
  }

  .safe-d-staff h2 {
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: #2c2c2c;
    border-bottom: 4px solid #cb4900;
    padding-bottom: 0.75rem;
    font-weight: 700;
  }

  .staff-section {
    margin-bottom: 3rem;
  }

  .staff-member {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
  }

  .staff-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .staff-photo {
    flex-shrink: 0;
    width: 200px;
    height: auto;
  }

  .staff-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
  }

  .staff-info {
    flex: 1;
    min-width: 0;
  }

  .staff-info h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #2c2c2c;
    font-weight: 700;
  }

  .staff-title {
    font-weight: 700;
    color: #cb4900;
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .staff-affiliation {
    font-size: 0.9rem;
    color: #646469;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 500;
  }

  .staff-bio {
    font-size: 1rem;
    color: #2c2c2c;
    line-height: 1.7;
    margin: 0;
  }

  /* Accessibility: Focus states */
  .staff-photo img:focus-visible,
  a:focus-visible {
    outline: 3px solid #cb4900;
    outline-offset: 2px;
  }

  /* Tablet view */
  @media (max-width: 1024px) {
    .staff-member {
      gap: 1.5rem;
    }

    .staff-photo {
      width: 180px;
    }

    .safe-d-staff h2 {
      margin-top: 2.5rem;
      margin-bottom: 1.5rem;
    }
  }

  /* Mobile view */
  @media (max-width: 768px) {
    .safe-d-staff {
      padding: 0 1rem;
    }

    .safe-d-staff h1 {
      margin-bottom: 1.5rem;
    }

    .staff-member {
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
      padding-bottom: 1.5rem;
    }

    .staff-photo {
      width: 100%;
      max-width: 250px;
      margin: 0 auto;
    }

    .staff-info h3 {
      font-size: 1.1rem;
    }

    .staff-title {
      font-size: 0.95rem;
    }

    .staff-affiliation {
      font-size: 0.85rem;
    }

    .staff-bio {
      font-size: 0.95rem;
    }

    .safe-d-staff h2 {
      font-size: 1.4rem;
      margin-top: 2rem;
      margin-bottom: 1.25rem;
    }
  }

  /* Small mobile view */
  @media (max-width: 480px) {
    .safe-d-staff {
      padding: 0 0.75rem;
    }

    .safe-d-staff h1 {
      font-size: 1.5rem;
      margin-bottom: 1.25rem;
    }

    .safe-d-staff h2 {
      font-size: 1.2rem;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
    }

    .staff-member {
      gap: 1rem;
      margin-bottom: 1.5rem;
      padding-bottom: 1.25rem;
    }

    .staff-title {
      font-size: 0.9rem;
    }

    .staff-affiliation {
      font-size: 0.8rem;
    }

    .staff-bio {
      font-size: 0.9rem;
      line-height: 1.6;
    }
  }

  /* High contrast mode support */
  @media (prefers-contrast: more) {
    .safe-d-staff {
      color: #000;
    }

    .staff-affiliation {
      color: #333;
    }
  }

  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

/*--------Location-----------*/
/* Responsive images wrapper */
  .images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  /* On tablets and up, display side-by-side */
  @media (min-width: 768px) {
    .images-wrapper {
      flex-direction: row;
      justify-content: center;
      align-items: center;
    }
  }
  
  .image-container {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  
  .image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
  }
  
/*----- Join the Study --------------*/
 .contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #cb4900;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.contact-item a {
    font-size: 15px;
    color: #cb4900;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
    font-weight: 700;
}

.contact-item a:focus {
    outline: 2px solid #cb4900;
    outline-offset: 2px;
}