/* Anayanex — Team grid (3-col, portrait cards) */
.wpr-team-area.ax-team-area .section-bottom-inner {
  padding-bottom: 8px;
}

.ax-team-grid {
  --ax-team-gap: 24px;
}

.ax-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.ax-team-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 16px rgba(0, 76, 255, 0.1),
    0 24px 48px rgba(15, 23, 42, 0.16);
}

.ax-team-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111827;
}

.ax-team-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: grayscale(0.15) contrast(1.02);
}

.ax-team-card:hover .ax-team-card__media img {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1.04);
}

.ax-team-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0) 28%, rgba(11, 18, 32, 0.55) 62%, rgba(11, 18, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 76, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ax-team-card:hover .ax-team-card__shade {
  opacity: 0.92;
}

.ax-team-card__initials {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ax-team-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 22px 24px;
  color: #fff;
}

.ax-team-card__accent {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #004CFF 0%, #00E0FF 100%);
  box-shadow: 0 0 16px rgba(0, 224, 255, 0.45);
  transform-origin: left center;
  transition: width 0.4s ease;
}

.ax-team-card:hover .ax-team-card__accent {
  width: 56px;
}

.ax-team-card__name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff !important;
  text-transform: none !important;
}

.ax-team-card__role {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Hiring strip under the 3-col grid */
.ax-team-hire {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 18px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(0, 76, 255, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #151e32 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  flex-wrap: wrap;
}

.ax-team-hire__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-transform: none !important;
  line-height: 1.25;
  white-space: normal;
}

@media (min-width: 768px) {
  .ax-team-hire__title {
    white-space: nowrap;
  }
}

.ax-team-area .section-title-area .sub-title::after,
.ax-team-area .section-title-area .sub-title::before {
  display: none !important;
  content: none !important;
}

.ax-team-hire__desc {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7) !important;
  text-transform: none !important;
}

.ax-team-hire__btn {
  flex-shrink: 0;
  min-width: 160px;
  justify-content: center;
}

/* Neutralize old staggered layout inside redesigned section */
.wpr-team-area.ax-team-area .team-wrapper,
.wpr-team-area.ax-team-area .team-apply-wrapper {
  display: none !important;
}

@media (max-width: 991px) {
  .ax-team-card__name {
    font-size: 20px;
  }

  .ax-team-hire {
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  .ax-team-card__media {
    aspect-ratio: 3 / 4;
  }

  .ax-team-hire {
    flex-direction: column;
    align-items: flex-start;
  }

  .ax-team-hire__btn {
    width: 100%;
  }

  .ax-team-card__body {
    padding: 18px 18px 20px;
  }

  .ax-team-area .section-title {
    font-size: clamp(26px, 7vw, 34px) !important;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .ax-team-card__media {
    aspect-ratio: 16 / 10;
  }
}
