#lms-team{
  background: var(--primary);
  padding: 4rem 0;
}

.lms-team__wrap{
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1rem;
}

.lms-team__header{
  padding: 1rem 0;
  text-align: center;
}

.lms-team__title{
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: .6rem;
}

.lms-team__sub{
  max-width: 760px;
  margin: 0 auto;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-1);
}

/* List */
.lms-team__list{
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

/* Row card */
.lms-team__row{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.4rem;
  align-items: center;

  background: #FFFFFF;
  border: 3px solid var(--text-1);
  border-radius: 14px;
  padding: 1.2rem;
}

/* Alternate rows with strong color blocks */
.lms-team__row.is-flipped{
  grid-template-columns: 1fr 360px;
}

.lms-team__row.is-flipped .lms-team__media{
  order: 2;
}

.lms-team__row.is-flipped .lms-team__content{
  order: 1;
}

/* Media */
.lms-team__imgWrap{
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--secondary-1);
  background: var(--secondary-1);
}

.lms-team__img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Content */
.lms-team__content{
  padding: .2rem .4rem;
}

.lms-team__badge{
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-2);
  background: var(--secondary-2);
  border: 2px solid var(--secondary-2);
}

.lms-team__name{
  margin: .7rem 0 .4rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-1);
}

.lms-team__bio{
  margin: 0 0 .9rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-1);
}

.lms-team__bullets{
  margin: 0;
  padding-left: 1rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--text-1);
}

.lms-team__bullets li{
  margin-bottom: .45rem;
}

/* Footer note */
.lms-team__footer{
  padding-top: 1.5rem;
  text-align: center;
}

.lms-team__note{
  max-width: 760px;
  margin: 0 auto;
  font-weight: 600;
  color: var(--text-1);
}

/* Responsive */
@media (max-width: 992px){
  .lms-team__row,
  .lms-team__row.is-flipped{
    grid-template-columns: 1fr;
  }

  .lms-team__img{
    height: 280px;
  }
}