/* ============================================================
   SINGLE PEOPLE — Layout principal
============================================================ */

.single-people .person-page {
  max-width: 90%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #383131;
  font-family: Inter, sans-serif;
}

/* GRID 1/3 + 2/3 */
.people-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 4rem;
}

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

  /* Centrar la foto en mòbil */
  .people-photo-wrap {
    margin: 0 auto;
  }

  /* Ocultar website, socials, researcher_active_years i profile de la columna esquerra en mòbil */
  .people-left .people-website,
  .people-left .people-socials,
  .people-left > .people-prof-item,
  .people-left .people-profile {
    display: none;
  }

  /* Mostrar el profile--mobile amb ample complet */
  .people-profile--mobile {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Ocultar el profile--mobile en desktop */
.people-profile--mobile {
  display: none;
}

@media (max-width: 960px) {
  .people-profile--mobile {
    display: block;
  }
}

/* ============================================================
   COLUMN LEFT (foto, email, socials, profile)
============================================================ */

.people-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Foto */
.people-photo-wrap {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
}

.people-photo-wrap img,
.people-photo-wrap .person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.people-email__icon {
  width: 20px;
  height: 16px;
  display: block;
  margin-left: 25px;
}

/* Email */
.people-email a {
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  text-decoration: none;
  color: #000000;
}
.people-email a:hover {
  text-decoration: underline;
}

/* Email inline (columna dreta) */
.people-email--inline {
  margin: 1.5rem 0 2rem;
}

.people-email--inline .people-email__icon {
  margin-left: 0;
}

/* Website */
.people-website a {
  font-size: 15px;
  color: #0061a8;
  text-decoration: underline;
}

/* Socials */
.people-socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.people-socials a {
  color: #0061a8;
  font-weight: 500;
  text-decoration: none;
}
.people-socials a:hover {
  text-decoration: underline;
}

/* Profile Group */
.people-profile {
  border-top: 1px solid #a59e97;
  border-bottom: 1px solid #a59e97;
  padding: 1.5rem 1.25rem;
  width: 300px;
}

.people-prof-item {
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  margin-bottom: 1rem;
  color: #000000;
  max-width: 300px;
}
.people-prof-item strong {
  font-weight: 800;
  font-style: Bold;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  color: #575252;
}
.people-prof-item br + span,
.people-prof-item dd {
  color: #383131;
}

.people-prof-item a {
  text-decoration: underline;
  color: #000000;
}

.people-prof-item p {
  width: 300px;
}

.oh_yeah {
  margin-bottom: -10px;
}

/* ============================================================
   COLUMN RIGHT (tags, name, bio, content)
============================================================ */

.people-right {
  min-width: 0;
}

/* En mòbil, utilitzar flexbox per canviar l'ordre */
@media (max-width: 960px) {
  .people-right {
    display: flex;
    flex-direction: column;
  }

  .people-bio {
    order: 1;
  }

  .people-profile--mobile {
    order: 2;
  }

  .people-content {
    order: 3;
  }

  .people-accordions {
    order: 4;
  }
}

/* TAGS */
.people-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.6rem;
  margin-top: 1.6rem;
}

.people-tag {
  background: #dcd6cc;
  border-radius: 40px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 14px;
  color: #383131 !important;
  text-decoration: none !important;
}

.people-tag:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* NOM */
.people-name {
  font-weight: 700;
  font-size: 52px;
  line-height: 60px;
  margin: 0 0 0.5rem;
}

/* POSICIÓ + FACULTAT */
.people-position,
.people-faculty {
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0px;
  margin-top: 1.6rem;
}

/* SECCIÓ */
.people-section-title {
  font-weight: 700;
  font-size: 28px;
  margin: 2.5rem 0 1rem;
  color: #383131;
}

/* SHORT BIO */
.people-bio {
  font-weight: 400;
  font-style: Regular;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0px;
  margin: 3rem 0;
}
.people-bio p {
  margin-bottom: 1rem;
}

/* CONTENT */
.people-content {
  margin-top: 2rem;
  font-size: 16px;
  line-height: 1.7;
}
.people-content p {
  margin-bottom: 1.2rem;
}

/* PUBLICACIONS */
.people-pub-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.people-pub-list li {
  margin-bottom: 0.6rem;
}
.people-pub-list a {
  color: #383131;
  font-weight: 500;
  text-decoration: none;
}
.people-pub-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER BACK LINK
============================================================ */

.people-footer {
  margin-top: 3rem;
  text-align: right;
}

.people-back {
  color: #0061a8;
  font-weight: 600;
  text-decoration: none;
}
.people-back:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */

@media (max-width: 768px) {
  .people-name {
    font-size: 36px;
    line-height: 44px;
  }
  .people-position,
  .people-faculty {
    font-size: 16px;
  }
  .people-photo-wrap {
    width: 180px;
    height: 180px;
  }
}

/* === ACCORDIONS NUEVO ESTILO PREVIEW === */

.accordion-item {
  border-bottom: 1px solid #ccc;
  padding: 1.5rem 0;
  position: relative;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  color: #383131;
}

/* --- contenido con preview --- */
.accordion-content {
  overflow: hidden;
  max-height: 400px; /* preview — AJUSTABLE */
  transition: max-height 0.4s ease;
  position: relative;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
}

/* efecto degradado al final del preview */
.accordion-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(transparent, #f9f3e7);
  pointer-events: none;
}

/* cuando está expandido → quitar degradado */
.accordion-header[aria-expanded="true"] + .accordion-content::after {
  display: none;
}

.accordion-inner {
  padding: 1rem 0 1.2rem;
}

/* --- BOTÓN VIEW MORE --- */
.accordion-toggle {
  margin-top: 12px;
  background: none;
  border: none;
  color: #575252;
  font-family: Inter;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;

  cursor: pointer;
  padding: 0.5rem 0;
}

.accordion-toggle:hover {
  text-decoration: underline;
}
