/* TEAM PAGE STYLES */

/* Banner */
#banner {
    height: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Responsive Video */
  .video {
    width: 100%;
    max-width: 1440px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
  }
  
  #employees {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }
  
  /* Each employee section (default: side by side) */
  .employee-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
  }
  
  .employee-image {
    flex: 1;
    max-width: 300px;
    height: auto;
    object-fit: contain;
  }
  
  .employee-text {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .employee-text h2 {
    margin: 0;
  }
  
  .employee-text p {
    line-height: 1.7;
  }
  
  /* ===== Responsive Breakpoints ===== */
  
  /* Tablet: stack vertically, headshot always first */
  @media (max-width: 1024px) {
    .employee-section {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 2rem;
    }
  
    /* Ensure image is always on top */
    .employee-section .employee-image {
      order: -1;
      max-width: 60%;
    }
  
    .employee-text {
      align-items: center;
      width: 100%;
      padding: 0 1rem;
    }
  
    /* Add breathing room around video */
    .video {
      padding: 1.5rem;
    }
  }
  
  /* Mobile: full-width images, tighter text spacing */
  @media (max-width: 640px) {
    .employee-section .employee-image {
      max-width: 100%;
    }
  
    .employee-text {
      padding: 0 1rem;
      gap: 1rem;
    }
  
    .employee-text h2 {
      font-size: 1.6rem;
    }
  
    .employee-text p {
      font-size: 1rem;
      line-height: 1.6;
    }
  
    .video {
      padding: 1rem;
    }
  }
  