/* 🔹 Team Page Styles */
.team-page {
  min-height: 100vh;
  background: var(--color-black);
  padding: 0;
  font-family: var(--font-family);
  text-align: center;
}

/* SECTION 1: HEADER (BLACK BACKGROUND) */
.team-header-section {
  padding: 6rem 1.5rem 5rem 1.5rem;
  background: var(--color-black);
  color: var(--color-cream);
}

.team-title {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.team-title::after {
  content: "";
  display: block;
  width: 5rem;
  height: 4px;
  margin: 14px auto 0;
  background: var(--color-brand);
  border-radius: 2px;
}

.team-subtitle {
  font-size: 1.2rem;
  color: rgba(244, 241, 234, 0.8);
  max-width: 720px;
  margin: 1.5rem auto 0 auto;
  line-height: 1.7;
}

.team-subtitle span {
  color: var(--color-black);
  background: var(--color-brand);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-weight: 800;
}

/* SECTION 2: TEAM MEMBERS GRID (CREAM BACKGROUND) */
.team-grid-section {
  background: var(--color-cream);
  color: var(--color-black);
  padding: 6rem 1.5rem 7rem 1.5rem;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Team Card (Cream Card with Brand Yellow Details) */
.team-card {
  position: relative;
  background: var(--color-cream);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

/* Member Image */
.team-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-pill);
  border: 4px solid var(--color-brand);
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Name */
.team-card h2 {
  font-size: 1.5rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* Role Badge */
.team-card h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
  background: var(--color-brand);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

/* Description */
.team-card p {
  color: #444444;
  line-height: 1.65;
  font-size: 0.98rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Social Buttons */
.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.team-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-black);
  border: 1px solid var(--color-black);
  color: var(--color-cream);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.team-socials a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-yellow);
}

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

  .team-grid-section {
    padding: 4rem 1rem;
  }
}
