@media (min-width: 768px) {
  .trainer {
    padding: 3rem 4rem;
  }
}

.trainer__inner {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .trainer__inner {
    flex-direction: row;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
}

.trainer__content {
  flex: 1;
  padding: 3rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .trainer__content {
    padding: 4rem;
  }
}

.trainer__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.trainer__text {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--primary-foreground), transparent 15%);
}

.trainer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.trainer__social-link {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.trainer__social-link:hover {
  opacity: 1;
}

.trainer__social-link img {
  display: block;
  object-fit: contain;
}

.trainer__social-link--linkedin img {
  width: 2.4rem;
  height: 2.4rem;
}

.trainer__social-link--cialdini img {
  width: 4.6rem;
  height: 4.6rem;
}

.trainer__figure {
  flex: 1;
  min-height: 20rem;
}

@media (min-width: 768px) {
  .trainer__figure {
    align-self: stretch;
  }
}

.trainer__photo {
  position: relative;
  width: 100%;
  height: 100%;
}

.trainer__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer__badge {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 8rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-lg));
}
