/* /var/www/relyn/static_src/css/team.css */

.team-section {
  width: 100%;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.team-shell {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 1840px;
  overflow: hidden;

  --blur-top: 46%;
  --blur-h: 1900px;
}

.team-blur-layer {
  position: absolute;
  left: 50%;
  top: var(--blur-top);
  transform: translate(-50%, -50%);
  width: 1920px;
  max-width: 100%;
  height: var(--blur-h);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 62, 178, 0.34) 0%,
    rgba(99, 62, 178, 0.20) 35%,
    rgba(0, 0, 0, 0.00) 72%
  );
  filter: blur(34px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.team-header {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: 77px;
}

.team-kicker {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.team-title {
  margin: 22px 0 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.18;
  color: #FFFFFF;
  padding: 0 24px;
}

.team-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 114px;
}

.team-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.team-row-2,
.team-row-3 {
  margin-top: 40px;
}

/* CARD */
.team-card {
  width: 330px;
  height: 400px;
  border-radius: 20px;
  border: 3px solid #633EB2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.has-js .team-card {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.85s ease, opacity 0.85s ease;
}

.has-js .team-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* INNER */
.team-card-inner {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
}

/* IMAGE */
.team-img-wrap {
  width: 100%;
  height: 265px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img {
  width: 294px;
  height: 265px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* NAME + ROLE */
.team-name {
  margin: 40px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
}

.team-role {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
  opacity: 0.95;
}

/* CTA BUTTON */
.team-cta-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 104px;
}

.team-cta {
  width: 230px;
  height: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFF;
  background-image: linear-gradient(135deg, #633EB2, #A697E0);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    filter 0.18s ease-out,
    background-image 0.18s ease-out;
}

.team-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.98);
  background-image: linear-gradient(135deg, #A697E0, #633EB2);
}


@media (max-width: 1500px) {
  .team-shell {
    height: auto;
    min-height: 1840px;
    padding-bottom: 100px;
  }

  .team-row {
    flex-wrap: wrap;
    padding: 0 24px;
    row-gap: 40px;
  }
}

/* ✅ LAPTOP + TABLET (LANDSCAPE) ONLY: smaller cards + smaller fonts,
      and keep exactly 2 cards in row-1, 4 cards in row-2, 4 cards in row-3 */
@media (max-width: 1500px) and (min-width: 769px) and (orientation: landscape) {
  .team-shell {
    min-height: 0;
    padding-bottom: 90px;
  }

  .team-kicker {
    font-size: 18px;
  }

  .team-title {
    font-size: 40px;
  }

  .team-grid {
    margin-top: 96px;
  }

  .team-row {
    flex-wrap: nowrap;
    gap: 18px;
    row-gap: 0;
  }

  .team-row-2,
  .team-row-3 {
    margin-top: 28px;
  }

  .team-card {
    width: 240px;
    height: 320px;
    border-radius: 18px;
    border: 2px solid #633EB2;
  }

  .team-card-inner {
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .team-img-wrap {
    height: 200px;
    border-radius: 10px;
  }

  .team-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
  }

  .team-name {
    margin: 26px 0 0;
    font-size: 18px;
  }

  .team-role {
    margin: 6px 0 0;
    font-size: 13px;
  }

  .team-cta-wrap {
    margin-top: 88px;
  }
}

@media (max-width: 768px) {
  .team-title {
    font-size: 32px;
  }
}
