/* ============================================================
   WebWynk Team Manager — front-end styles (dark navy + blue)
   Everything is scoped under .wwtm so themes / Elementor can't
   restyle it. !important is used only where theme link, heading
   and button styles would otherwise win.
   ============================================================ */

.wwtm {
  --wwtm-bg: #050d1f;
  --wwtm-card: #0a1530;
  --wwtm-line: rgba(255,255,255,0.09);
  --wwtm-text: #e8edf5;
  --wwtm-muted: #7a8fad;
  --wwtm-soft: #9aafc4;
  --wwtm-blue: #0070E0;
  --wwtm-sky: #5eb3ff;
  --wwtm-navy: #003087;

  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wwtm-bg);
  color: var(--wwtm-text);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding: 80px 20px 100px;
  text-align: left;
}

.wwtm, .wwtm *, .wwtm *::before, .wwtm *::after { box-sizing: border-box; }

.wwtm h1, .wwtm h2, .wwtm h3, .wwtm p, .wwtm ul, .wwtm li { margin: 0; padding: 0; }
.wwtm img { max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.wwtm svg { display: block; }

/* background glows */
.wwtm::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  width: 760px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,112,224,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.wwtm::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -120px;
  width: 440px; height: 440px;
  background: radial-gradient(ellipse at center, rgba(0,48,135,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.wwtm-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

.wwtm-embed { padding: 0 !important; background: transparent !important; }
.wwtm-embed::before, .wwtm-embed::after { display: none; }

/* ---------- reveal on scroll ---------- */
@keyframes wwtm-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wwtm-js .wwtm-reveal { opacity: 0; }
.wwtm-js .wwtm-reveal.wwtm-in {
  opacity: 1;
  animation: wwtm-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- section heading ---------- */
.wwtm-head { text-align: center; margin-bottom: 56px; }

.wwtm-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wwtm-blue);
  background: rgba(0,112,224,0.1);
  border: 1px solid rgba(0,112,224,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.wwtm .wwtm-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.wwtm-title span,
.wwtm-hero-title span {
  background: linear-gradient(135deg, #0070E0, #5eb3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wwtm .wwtm-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--wwtm-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.wwtm .wwtm-empty {
  text-align: center;
  color: var(--wwtm-muted);
  padding: 40px 0;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.wwtm-team-grid {
  --wwtm-gap: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wwtm-gap);
}

.wwtm-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - var(--wwtm-gap) * (var(--wwtm-cols, 3) - 1)) / var(--wwtm-cols, 3));
  max-width: calc((100% - var(--wwtm-gap) * (var(--wwtm-cols, 3) - 1)) / var(--wwtm-cols, 3));
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--wwtm-card), var(--wwtm-card)) padding-box,
    linear-gradient(150deg, rgba(0,112,224,0.55), rgba(255,255,255,0.07) 38%, rgba(255,255,255,0.04) 70%, rgba(0,112,224,0.25)) border-box;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.wwtm-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px -24px rgba(0,112,224,0.55), 0 0 0 1px rgba(0,112,224,0.25);
}

.wwtm-team-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0a1a3a;
}

.wwtm .wwtm-team-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.92);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.wwtm-team-card:hover .wwtm-team-media img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1);
}

/* fade the photo into the card body */
.wwtm-team-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,31,0.15) 0%, rgba(10,21,48,0) 35%, var(--wwtm-card) 100%),
    linear-gradient(135deg, rgba(0,112,224,0.22), transparent 55%);
  pointer-events: none;
}

/* placeholder when no image */
.wwtm-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(0,112,224,0.45), transparent 60%),
    linear-gradient(135deg, #0a2a66, #050d1f);
}
.wwtm-ph .wwtm-ico svg { width: 72px; height: 72px; fill: none; stroke: #5eb3ff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

/* member-count badge */
.wwtm .wwtm-count {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #ffffff;
  background: rgba(5,13,31,0.72);
  border: 1px solid rgba(94,179,255,0.35);
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.wwtm-count i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3da0ff;
  box-shadow: 0 0 0 3px rgba(0,112,224,0.25), 0 0 12px #0070E0;
  display: inline-block;
}

.wwtm-team-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 4px 26px 26px;
  margin-top: -6px;
}

.wwtm .wwtm-team-title {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.wwtm .wwtm-team-title a,
.wwtm .wwtm-team-title a:link,
.wwtm .wwtm-team-title a:visited,
.wwtm .wwtm-team-title a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.wwtm .wwtm-team-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wwtm-muted);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "View All Members" button — colours locked against theme link styles */
.wwtm a.wwtm-btn,
.wwtm a.wwtm-btn:link,
.wwtm a.wwtm-btn:visited,
.wwtm a.wwtm-btn:hover,
.wwtm a.wwtm-btn:focus,
.wwtm a.wwtm-btn:active {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #003087 0%, #0070E0 100%);
  border: 0;
  box-shadow: 0 6px 22px rgba(0,112,224,0.32);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-position 0.4s ease;
  background-size: 160% 100%;
  background-position: 0 0;
}

.wwtm a.wwtm-btn:hover,
.wwtm a.wwtm-btn:focus-visible {
  background-position: 100% 0;
  box-shadow: 0 10px 32px rgba(0,112,224,0.55);
}

.wwtm a.wwtm-btn:focus-visible { outline: 2px solid #5eb3ff; outline-offset: 3px; }

.wwtm-btn .wwtm-ico svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s ease;
}
.wwtm-btn:hover .wwtm-ico svg { transform: translateX(5px); }

/* ============================================================
   TEAM PAGE — hero
   ============================================================ */
.wwtm-teampage { padding: 0; }

.wwtm-hero {
  position: relative;
  padding: 110px 20px 90px;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--wwtm-line);
}

.wwtm-hero.wwtm-has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,31,0.78) 0%, rgba(5,13,31,0.9) 70%, #050d1f 100%),
    linear-gradient(135deg, rgba(0,48,135,0.55), rgba(0,112,224,0.15));
}

.wwtm-hero-inner { display: flex; flex-direction: column; align-items: center; }

.wwtm .wwtm-hero-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 18px;
}

.wwtm .wwtm-hero-desc {
  max-width: 640px;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--wwtm-soft);
  margin-bottom: 30px;
}

.wwtm .wwtm-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--wwtm-soft);
  padding: 10px 20px 10px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--wwtm-line);
}
.wwtm-hero-count .wwtm-ico svg { width: 20px; height: 20px; fill: none; stroke: #5eb3ff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wwtm-hero-count b { color: #ffffff; font-size: 18px; font-weight: 700; }

.wwtm a.wwtm-back,
.wwtm a.wwtm-back:link,
.wwtm a.wwtm-back:visited,
.wwtm a.wwtm-back:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wwtm-soft) !important;
  text-decoration: none !important;
  margin-bottom: 30px;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--wwtm-line);
  background: rgba(255,255,255,0.03);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.wwtm a.wwtm-back:hover {
  color: #ffffff !important;
  border-color: rgba(0,112,224,0.55);
  background: rgba(0,112,224,0.14);
}
.wwtm-back .wwtm-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   MEMBERS — full-width rows: photo left, text right
   ============================================================ */
.wwtm-members-section { position: relative; padding: 80px 20px 100px; }

.wwtm-member-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wwtm-member {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 16px 56px 16px 16px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--wwtm-line);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.45s ease, background 0.35s ease;
}

/* soft glow on the text side */
.wwtm-member::after {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,112,224,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.wwtm-member:hover {
  transform: translateY(-5px);
  border-color: rgba(0,112,224,0.5);
  background: linear-gradient(165deg, rgba(0,112,224,0.12) 0%, rgba(255,255,255,0.025) 100%);
  box-shadow: 0 26px 54px -26px rgba(0,112,224,0.5);
}
.wwtm-member:hover::after { opacity: 1; }

.wwtm-member-photo {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1a3a;
}

.wwtm .wwtm-member-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95) brightness(0.96);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
.wwtm-member:hover .wwtm-member-photo img { transform: scale(1.05); filter: saturate(1.05) brightness(1.03); }

.wwtm-member-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,13,31,0.5) 100%);
  pointer-events: none;
}

.wwtm-member-body { position: relative; z-index: 1; text-align: left; }

.wwtm .wwtm-member-name {
  font-family: 'Jost', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin: 0 0 10px;
}

.wwtm .wwtm-role {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #9fd0ff;
  background: rgba(0,112,224,0.14);
  border: 1px solid rgba(0,112,224,0.35);
  padding: 6px 16px;
  border-radius: 100px;
}

.wwtm-bar {
  display: block;
  width: 44px;
  height: 3px;
  margin: 22px 0 20px;
  border-radius: 100px;
  background: linear-gradient(90deg, #0070E0, #5eb3ff);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wwtm-member:hover .wwtm-bar { width: 96px; }

.wwtm .wwtm-member-bio {
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.75;
  color: var(--wwtm-soft);
  max-width: 680px;
}

/* ---------- explore other teams ---------- */
.wwtm-others {
  margin-top: 72px;
  padding: 26px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--wwtm-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.wwtm .wwtm-others-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4d6080;
}

.wwtm-others-list { display: flex; flex-wrap: wrap; gap: 10px; }

.wwtm a.wwtm-pill,
.wwtm a.wwtm-pill:link,
.wwtm a.wwtm-pill:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wwtm-soft) !important;
  text-decoration: none !important;
  padding: 9px 12px 9px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--wwtm-line);
  transition: all 0.28s ease;
}
.wwtm a.wwtm-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: rgba(0,112,224,0.2);
  color: #7eb8ff;
}
.wwtm a.wwtm-pill:hover {
  color: #ffffff !important;
  border-color: rgba(0,112,224,0.55);
  background: rgba(0,112,224,0.16);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wwtm-team-grid { --wwtm-cols: 2 !important; }
  .wwtm-member { gap: 32px; padding-right: 36px; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .wwtm { padding: 56px 16px 72px; }
  .wwtm-head { margin-bottom: 40px; }
  .wwtm-hero { padding: 76px 16px 60px; }
  .wwtm-members-section { padding: 56px 16px 72px; }
  .wwtm-team-grid { --wwtm-gap: 20px; }
  .wwtm-member-list { gap: 20px; }
  .wwtm-others { margin-top: 52px; padding: 22px 20px; }
}

@media (max-width: 768px) {
  .wwtm-member { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 14px 14px 30px; border-radius: 24px; }
  .wwtm-member-photo { aspect-ratio: 4 / 3.4; max-width: 100%; }
  .wwtm-member-body { padding: 0 8px; }
}

@media (max-width: 640px) {
  .wwtm-team-grid { --wwtm-cols: 1 !important; max-width: 460px; margin: 0 auto; }
  .wwtm .wwtm-team-title { font-size: 24px; }
  .wwtm-others { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .wwtm-js .wwtm-reveal { opacity: 1; }
  .wwtm-js .wwtm-reveal.wwtm-in { animation: none; }
  .wwtm-team-card, .wwtm-member, .wwtm .wwtm-team-media img, .wwtm-btn .wwtm-ico svg, .wwtm-bar { transition: none !important; }
}
