/* Person Related Articles – mesma aparência do highlights, sem filtro/pesquisa */

.person-related-articles {
  position: relative;
  width: 100%;
  padding: 60px 0 8px 0;
  background-color: var(--color-white, #fff);
  overflow: hidden;
}

.person-related-articles__container {
  width: 100%;
  max-width: var(--container-max-width, 1440px);
  padding-left: var(--container-padding, 24px);
  padding-right: var(--container-padding, 24px);
  margin-left: auto;
  margin-right: auto;
}

.person-related-articles__header {
  margin-bottom: 1.5rem;
}

.person-related-articles__title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-family-base, 'Hurme Geometric Sans 1', sans-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-dark, #000);
  margin: 0;
}

.person-related-articles__title-icon {
  min-width: 0.5rem;
  flex-shrink: 0;
  display: flex;
}

.person-related-articles__title-icon svg {
  width: auto;
  height: 1.5rem;
}

/* Swiper: garantir que o slider funcione dentro do bloco */
.person-related-articles__swiper.swiper {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.person-related-articles__swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.person-related-articles__slide.swiper-slide {
  height: auto;
  min-height: 28rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.person-related-articles__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  background-color: var(--color-white, #fff);
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  position: relative;
}

.person-related-articles__card:hover {
  transform: translateY(-4px);
  text-decoration: none !important;
  color: inherit;
}

.person-related-articles__card-image {
  position: relative;
  width: 100%;
  height: 24.375rem;
  min-height: 24.375rem;
  overflow: hidden;
}

.person-related-articles__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.person-related-articles__card:hover .person-related-articles__card-image img {
  transform: scale(1.05);
}

.person-related-articles__card-content {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  justify-content: space-between;
}

.person-related-articles__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.person-related-articles__card-category {
  font-family: var(--font-primary, var(--font-family-base, 'Hurme Geometric Sans 1', sans-serif));
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-gray-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person-related-articles__card-date {
  font-family: var(--font-primary, var(--font-family-base, 'Hurme Geometric Sans 1', sans-serif));
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-gray-500, #6b7280);
}

.person-related-articles__card-title {
  font-family: var(--font-primary, var(--font-family-base, 'Hurme Geometric Sans 1', sans-serif));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark, #000);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-height: 0;
}

.person-related-articles__card-cta {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  flex-shrink: 0;
}

.person-related-articles__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.person-related-articles__progress {
  flex: 1;
  max-width: 28rem;
}

.person-related-articles__progress-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-light-gray, #e5e7eb);
  border-radius: 1px;
  overflow: hidden;
}

.person-related-articles__progress-fill {
  height: 100%;
  background-color: var(--color-primary, #000);
  width: 0%;
  transition: width 0.3s ease;
}

.person-related-articles__arrows {
  display: flex;
  gap: 0.5rem;
}

.person-related-articles__arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-light-gray, #e5e7eb);
  border-radius: 50%;
  background: var(--color-dark, #000);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.person-related-articles__arrow:hover:not(.swiper-button-disabled) {
  background-color: #333;
  transform: scale(1.05);
}

.person-related-articles__arrow:active:not(.swiper-button-disabled) {
  transform: scale(0.98);
}

.person-related-articles__arrow:focus-visible {
  outline: 2px solid var(--color-primary, #000);
  outline-offset: 2px;
}

.person-related-articles__arrow.swiper-button-disabled {
  background: var(--color-light-gray, #e5e7eb) !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.person-related-articles .swiper-pagination,
.person-related-articles .swiper-button-next,
.person-related-articles .swiper-button-prev {
  display: none;
}

@media (min-width: 640px) {
  .person-related-articles__card-title {
    font-size: 1.25rem;
  }

  .person-related-articles__container {
    padding-right: 0;

  }

  .person-related-articles__progress {
    max-width: 48rem;
  }

  .person-related-articles__arrows {
    padding-right: 32px;
   }
}

@media (min-width: 1024px) {
  .person-related-articles {
    padding: 120px 0 62px 0;
  }

  .person-related-articles__title-icon svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .person-related-articles__header {
    margin-bottom: 3.5rem;
  }

  .person-related-articles__title {
    font-size: 3.5rem;
  }

  .person-related-articles__container {
    padding-right: 0;

  }

  .person-related-articles__swiper {
    margin-bottom: 3rem;
  }

  .person-related-articles__swiper.swiper {
    margin-bottom: 3.5rem;
  }

  .person-related-articles__card-image {
    height: 28.75rem;
    min-height: 28.75rem;
  }

  .person-related-articles__card-title {
    font-size: 1.125rem;
  }

  .person-related-articles__card-cta {
    margin-top: 2rem;
    width: fit-content;
  }

  .person-related-articles__progress {
    max-width: 68rem;
  }

  .person-related-articles__arrows {
   padding-right: 80px;
  }

  .person-related-articles__arrow {
    width: 3.25rem;
    height: 3.25rem;
  }
  
}

@media (min-width: 1536px) {
  .person-related-articles__arrows {
    padding-right: 0;
   }
}