/* ============================================================
   PEOPLE HUB — CONTENIDOR GENERAL
============================================================ */

.archive-people__inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
}

/* ============================================================
   HERO — 1/3 IMG + 2/3 TEXT
============================================================ */

.people-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin: 4rem auto 3rem;
  max-width: 90%;
  padding: 0 1rem;
}

.people-hero__img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  display: block;
}

.people-hero__title {
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  margin-bottom: 1rem;
  color: #383131;
}

.people-hero__text {
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  max-width: 760px;
  color: #383131;
}

@media (max-width: 860px) {
  .people-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .people-hero__img {
    margin: 0 auto 1.5rem;
    max-width: 260px;
  }
}

/* ============================================================
   PEOPLE HUB — FILTER BAR (igual que outputs)
============================================================ */

.people-filters-bar {
  max-width: 90%;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.people-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.people-filter label {
  font-weight: 600;
  font-size: 14px;
  color: #383131;
  white-space: nowrap;
}

.people-filter select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #575252;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: #383131;
  min-width: 180px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.people-filter select:hover,
.people-filter select:focus {
  border-color: #73EDFF;
  box-shadow: 0 0 0 2px rgba(115, 237, 255, 0.25);
  outline: none;
}

@media (max-width: 640px) {
  .people-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .people-filter {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
  }
  .people-filter select {
    width: 100%;
    min-width: 100%;
  }
}

/* ===========================================================
   PEOPLE GRID — Igual estil que Research Area (NO carrusel)
   =========================================================== */

/* Grid general */
.people-grid-ra {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 1440px) {
  .people-grid-ra {
      grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .people-grid-ra {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .people-grid-ra {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .people-grid-ra {
      grid-template-columns: 1fr;
  }
}

/* Targeta — mateixa base que .ra-person-card */
.ra-person-card--grid {
  background-color: #f9f3e7;
  border-radius: 24px;
  border: 1px solid #73edff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.8rem 1.2rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  max-width: 300px;
  height: 400px;
}

/* Hover igual que Research-Area */
.ra-person-card--grid:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Imatge circular amb mateixa transició */
.ra-person-card--grid .ra-person-card__photo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.ra-person-card--grid .ra-person-card__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

/* Hover: foto recupera el color */
.ra-person-card--grid:hover .ra-person-card__photo-wrap img {
  filter: grayscale(0%);
}

/* Nom */
.ra-person-card--grid .ra-person-card__name {
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: #383131;
  margin: 0.5rem 0 0.25rem;
  text-decoration: none !important;
}

/* Posició */
.ra-person-card--grid .ra-person-position {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #383131;
}

/* Link ocupa tota la targeta */
.ra-person-card--grid .ra-person-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

/* Evitar subratllats en hover */
.ra-person-card--grid .ra-person-card__name a,
.ra-person-card--grid .ra-person-card__name a:hover {
  text-decoration: none !important;
  color: #383131 !important;
}
