/* ==========================================================================
   Trainers page (trainers.php)
   Loaded after styles.css
   ========================================================================== */
.trainers {
  padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 8vw, 120px);
  background: #000;
}
.trainers__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.trainers__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trainers__filter {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.trainers__filter span {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.trainers__filter:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.trainers__filter.is-active {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.trainers__filter.is-active span {
  color: rgba(0, 0, 0, 0.55);
}
.trainers__count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* Trainer cards: photo left, bio right */
.trainers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.trainer {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s;
}
.trainer:hover {
  border-color: rgba(235, 190, 77, 0.55);
}
.trainer[hidden] {
  display: none;
}
.trainer__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: 50% 20%;
}
.trainer__body {
  padding: 24px 26px;
}
.trainer__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.trainer__loc svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}
.trainer__loc a {
  color: inherit;
  transition: color 0.2s;
}
.trainer__loc a:hover {
  color: #fff;
}
.trainer__name {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.trainer__role {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ebbe4d;
}
.trainer__bio {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* "Read full bio" dropdown */
.trainer__more {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.trainer__more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.trainer__more summary::-webkit-details-marker {
  display: none;
}
.trainer__more summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #ebbe4d;
  stroke-width: 2.2;
  transition: transform 0.25s;
}
.trainer__more summary:hover {
  color: #ebbe4d;
}
.trainer__more-close {
  display: none;
}
.trainer__more[open] .trainer__more-open {
  display: none;
}
.trainer__more[open] .trainer__more-close {
  display: inline;
}
.trainer__more[open] summary svg {
  transform: rotate(180deg);
}
.trainer__more p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  animation: trainerMore 0.3s ease both;
}
@keyframes trainerMore {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .trainers__list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .trainer {
    grid-template-columns: 1fr;
  }
  .trainer__photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .trainer__body {
    padding: 20px 22px;
  }
}
