/* Mobile-only fix for Team page - Vertical/Tall layout instead of horizontal */
@media (max-width: 767px) {
  /* Make main content stack vertically */
  .main-content {
    flex-direction: column !important;
    gap: 30px !important;
  }
  
  /* Make team grid single column */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Stack each team member vertically (photo on top, info below) */
  .team-member {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
    padding: 20px !important;
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
  }
  
  /* Center the profile photo */
  .member-photo {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
  }
  
  /* Center member info */
  .member-info {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Center member name */
  .member-name {
    text-align: center !important;
    font-size: 20px !important;
    margin-bottom: 5px !important;
  }
  
  /* Center credentials */
  .member-credentials {
    text-align: center !important;
    display: block !important;
    margin-bottom: 8px !important;
  }
  
  /* Center title */
  .member-title {
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  
  /* Center description */
  .member-description {
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  
  /* Center and resize logos */
  .member-logos {
    justify-content: center !important;
    width: 100% !important;
  }
  
  .member-logos img {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  
  /* Sidebar - full width on mobile */
  .sidebar {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 20px !important;
  }
  
  /* Advisory board styling */
  .advisor-item {
    text-align: left !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .advisor-name {
    font-size: 16px !important;
    margin-bottom: 5px !important;
  }
  
  .advisor-title {
    font-size: 13px !important;
  }
  
  /* Consultants grid - keep 2 columns but adjust */
  .consultants-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Container padding adjustment */
  .container[style*="max-width: 1400px"] {
    padding: 20px !important;
  }
}

/* For very small phones */
@media (max-width: 375px) {
  .team-member {
    padding: 15px !important;
  }
  
  .member-photo {
    width: 100px !important;
    height: 100px !important;
  }
  
  .member-name {
    font-size: 18px !important;
  }
  
  .member-logos img {
    max-width: 150px !important;
  }
}