/* ==========================================================================
   SaeSpartner — Our Team Section
   ========================================================================== */

.team-section {
    padding: 6rem 2rem;
    background: var(--bg-white);
}

.team-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-light);
    border: 1px solid rgba(116, 180, 217, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.team-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* New Team Card (Professional Template) */
.card {
  margin: auto;
  width: 100%; /* Let grid handle width */
  background-color: #fefefe;
  border-radius: 1rem;
  padding: 0.5rem;
  color: #141417;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.card__hero {
  background-color: #fef4e2;
  border-radius: 0.5rem;
  border: 1px solid rgb(240, 229, 212);
  padding: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card__hero .card__job-title {
  margin: 2rem 0;
  padding-right: 2rem;
}
.card__job-title {
  line-height: 1.3em;
  font-size: 1.4rem; /* Adjusted for names */
  font-weight: 800;
  margin-bottom: 0;
}
.card__icon {
  background-color: white;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}
.card__icon:hover {
  background-color: var(--primary);
  color: white !important;
}
.card__icon a {
    text-decoration: none;
}
.card__hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  font-weight: 700;
}
.card__footer {
  display: flex;
  justify-content: flex-start;
  align-items: start;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0.75rem 0.25rem;
  row-gap: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 340px) {
  .card__footer {
    flex-direction: column; /* Better for long designations */
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
  }
}
.card__job-summary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
.card__job {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.card__btn {
  width: 100%;
  font-weight: 500;
  border: none;
  display: block;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #141417;
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}
.card__btn:hover {
  background-color: var(--primary);
}
@media (min-width: 340px) {
  .card__btn {
    width: max-content;
  }
}
.view_save {
  justify-items: center;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 2px;
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 0.5rem;
    }
}
