/* Meet the Language Enthusiasts — Our Team card layout */

.hop-team-enthusiasts {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 45%, #ffffff 100%);
  overflow: hidden;
  isolation: isolate;
}

.hop-team-enthusiasts .container {
  position: relative;
  z-index: 1;
}

.hop-team-enthusiasts__header {
  max-width: 720px;
  margin: 0 auto 12px;
}

.hop-team-enthusiasts__header h6 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hop-team-enthusiasts__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.hop-team-enthusiasts__header h2 .fm-sec {
  color: var(--hop-primary, #F26522);
}

.hop-team-enthusiasts__header p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto;
}

.hop-team-enthusiasts__line {
  width: 72px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 55%, #F26522 100%);
}

.hop-team-enthusiasts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  padding-top: 56px;
  margin-top: 8px;
}

.hop-team-card {
  position: relative;
  padding-top: 52px;
  min-width: 0;
}

.hop-team-card__shape {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 86%;
  height: calc(100% - 20px);
  transform: translateX(-50%) rotate(-7deg);
  border-radius: 28px;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hop-team-card--accent-blue .hop-team-card__shape {
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
}

.hop-team-card--accent-green .hop-team-card__shape {
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 100%);
}

.hop-team-card--accent-teal .hop-team-card__shape {
  background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 100%);
}

.hop-team-card--accent-orange .hop-team-card__shape {
  background: linear-gradient(145deg, #fdba74 0%, #F26522 100%);
}

.hop-team-card__inner {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 22px;
  padding: 64px 22px 28px;
  margin-top: 8px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.45s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hop-team-card:hover .hop-team-card__inner {
  transform: translateY(-10px);
  box-shadow: 0 28px 50px rgba(242, 101, 34, 0.14);
}

.hop-team-card:hover .hop-team-card__shape {
  transform: translateX(-50%) rotate(-4deg) scale(1.03);
}

.hop-team-card__avatar {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  z-index: 2;
  background: #e2e8f0;
}

.hop-team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hop-team-card:hover .hop-team-card__avatar img {
  transform: scale(1.08);
}

.hop-team-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0 6px;
  line-height: 1.3;
}

.hop-team-card__role {
  font-size: 0.88rem;
  font-style: italic;
  color: #94a3b8;
  margin: 0 0 14px;
}

.hop-team-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hop-team-enthusiasts__empty,
.hop-team-enthusiasts__error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .hop-team-enthusiasts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 48px;
    gap: 28px 24px;
  }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
  .hop-team-enthusiasts {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .hop-team-enthusiasts__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 40px;
    gap: 36px;
  }

  .hop-team-card {
    padding-top: 54px;
  }

  .hop-team-card__avatar {
    width: 104px;
    height: 104px;
  }

  .hop-team-card__inner {
    padding: 56px 20px 24px;
  }
}
