:root {

  /* Spacing */
  --spacing: 10px;

  /* Typography */
  --font-family-text: 'inter-variable', sans-serif;
  --font-size-text: font-size: clamp(0.875rem, 0.8471rem + 0.1274vw, 1rem);
  --font-weight-text: 600;
  --line-height-text: 1.3;
  --letter-spacing-text: 0em;

  --font-family-header: 'peridot-pe-variable', sans-serif;
  --font-size-header: clamp(1.125rem, 1.041rem + 0.382vi, 1.5rem);
  --font-weight-header: 700;
  --line-height-header: 1.2;
  --letter-spacing-header: 0em;
}

.text-uppercase {
  font-family: var(--font-family-text);
  font-size: clamp(0.75rem, 0.7197rem + 0.1294vw, 0.875rem);
  font-weight: var(--font-weight-text);
  line-height: var(--line-height-text);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.text-regular {
  font-family: var(--font-family-text);
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-text);
}

.heading-regular {
  font-family: var(--font-family-header);
  font-size: var(--font-size-header);
  font-weight: var(--font-weight-header);
  line-height: var(--line-height-header);
  letter-spacing: var(--letter-spacing-header);
}

.row-center {
  justify-content: center;
}

.mw-250 {
  max-width: 250px;
}

.mw-200 {
  max-width: 200px;
}

.text-white {
  color: #ffffff;
}

.hidden {
  display: none !important;
}

.open {
  display: flex !important;
}

.team-grid {
  max-width: 1150px;
  margin-inline: auto;
  padding: 10px;
}

.team-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
}

.team-card {
  flex: 1 1 0;
  max-width: 33.333%;
}

.container {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 33.333%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  border-radius: 5px;
}

.container img {
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  height: auto;
  object-fit: cover;
  width: 100%;

}

.container-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0 0 0;

  h4 {
    margin: 0 0 5px 0;
  }
}

.container-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.container .container-content .icon {
  z-index: 5;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 5px;
}

.icon-minus {
  margin-top: 10px;
  margin-right: 4px;
}

.team-details-row {
  width: 100%;
  position: relative;
  padding: 3rem 1.5rem;
  margin: 1.5rem 0;
  background-color: #61AFEA;
  border-radius: 5px;

  h4 {
    margin: 0 0 5px 0;
  }
}

/* full‑width strip               */
.team-details-row.hidden {
  display: none;
}

.template-heading {
  flex-basis: 20%;
}

.template-desc {
  flex-basis: 80%;
}

.close-details {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}


@media screen and (max-width: 768px) {
  .team-card {
    flex: 1 1 0;
    max-width: 100%;
  }

  .container {
    flex: 1 1 calc(100% - 1rem);
    max-width: 100%;
    padding: 0 25px;
  }

  .team-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .team-details-row {
    flex-direction: column;
    padding: 25px;
    margin: 0 25px;
  }

  .template-heading {
    flex-basis: 100%;
  }

  .template-desc {
    flex-basis: 100%;
  }

}