/* File: blog_src/content/editorial/editorial-team.css */
/* === eQualle Editorial Team — responsive grid, namespaced (2025-11) === */

/* Контейнер страницы: создаём неймспейс, чтобы перебить стили темы */
.eq-editorial { margin-top: 0.5rem; }

/* Сетка карточек авторов: стабильные ряды на десктопе, авто-перенос ниже */
.eq-editorial .authors{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

/* Сброс возможных глобальных правил темы на .author */
.eq-editorial .author{
  display: flex !important;          /* вертикальная карточка */
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.eq-editorial .author:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Изображение и тексты внутри карточки */
.eq-editorial .author img{
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  margin-bottom: .8rem;
}

.eq-editorial .author h4{
  margin: .4rem 0 .2rem;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--brand-blue, #7BB661);
}

.eq-editorial .author p{
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--secondary-text, #cfcfcf);
  text-align: justify;
  max-width: 95%;
}

/* ======= Брейкпоинты ======= */
/* 3 колонки на широких планшетах */
@media (max-width: 1200px){
  .eq-editorial .authors{
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}
/* 2 колонки на планшетах и малых ноутбуках */
@media (max-width: 900px){
  .eq-editorial .authors{
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}
/* 1 колонка на мобильных */
@media (max-width: 600px){
  .eq-editorial .authors{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
