/* ========================================
   A2Z TEAM MEMBERS GRID
   ======================================== */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Section Container */
.a2z-team-grid-section {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  padding: 80px 24px 96px;
  box-sizing: border-box;
}

.a2z-team-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Team Grid */
.a2z-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
  gap: 40px;
  width: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
  .a2z-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .a2z-team-grid-section {
    padding: 88px 20px;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .a2z-team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .a2z-team-grid-section {
    padding: 80px 16px;
  }
}

/* Team Member Card */
.a2z-team-member-card {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

.a2z-team-member-card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.a2z-team-member-wrapper {
  width: 100%;
}

/* Circular Image Container */
.a2z-member-image-wrapper {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f8f8; /* Grey placeholder background */
  flex-shrink: 0;
}

/* Decorative Border Ring */
.a2z-member-border-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #E9E9E9;
  border-radius: 50%;
  transition: border-color 300ms ease;
  z-index: 2;
  pointer-events: none;
}

/* Hover Effect on Border */
.a2z-team-member-card:hover .a2z-member-border-ring {
  border-color: #0A0A0A;
}

/* Member Image */
.a2z-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

/* Name Container with Lines */
.a2z-member-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

/* Decorative Lines */
.a2z-name-line-left,
.a2z-name-line-right {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: #E9E9E9;
  display: block;
}

.a2z-name-line-left {
  margin-right: 12px;
}

.a2z-name-line-right {
  margin-left: 12px;
}

/* Member Name */
.a2z-member-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.375;
  color: #0A0A0A;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* Member Role */
.a2z-member-role {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: normal;
  text-align: center;
  margin: 0 0 12px 0;
}

/* Member Bio */
.a2z-member-bio {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
  color: #6F6F6F;
  text-align: center;
  margin: 0;
}

/* Responsive Image Sizes */
@media (max-width: 1023px) and (min-width: 768px) {
  .a2z-member-image-wrapper {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 767px) {
  .a2z-member-image-wrapper {
    width: 192px;
    height: 192px;
  }
  
  .a2z-member-name {
    font-size: 22px;
  }
}

/* Ensure images load properly */
.a2z-member-image-wrapper img {
  max-width: 100%;
  height: auto;
}

/* Accessibility improvements */
.a2z-team-member-card:focus-within {
  outline: 2px solid #0A0A0A;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Print styles */
@media print {
  .a2z-team-member-card {
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
  }
}

