/**
 * Ciência e Saúde page — hero and layout (featured block uses page-home-figma .hf-science-health).
 */

.hf-ciencia-hero {
  align-items: stretch;
  background-color: lightgray;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 2px solid #fff;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  display: flex;
  height: 204px;
  justify-content: center;
  margin-top: 0;
  position: relative;
  width: 100%;
}

/* Inner wrapper: full hero height; column stacks breadcrumb + title bar like before. */
.hf-ciencia-hero__wrap {
  width: 100%;
  max-width: 1440px;
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  position: relative;
}

.hf-ciencia-hero__breadcrumb {
  color: #FFF;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  left: 262px;
  line-height: normal;
  position: absolute;
  top: 16px;
  z-index: 1002;
}

.hf-ciencia-hero__breadcrumb a {
  color: #FFF;
  text-decoration: none;
  white-space: nowrap;
}

.hf-ciencia-hero__breadcrumb span {
  font-weight: 600;
  margin: 0 6px;
}

@media (max-width: 1180px) {
  .hf-ciencia-hero {
    margin-top: -136px;
  }

  .hf-ciencia-hero__breadcrumb {
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
  }
}

/* Hero title bar: explicit rules so they win over generic .hf-science-health__header (incl. after wrap). */
.hf-ciencia-hero .hf-ciencia-hero__wrap .hf-science-health__header {
  align-items: center;
  background: #005abc;
  border-radius: 20px 20px 0 0;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  height: 60px;
  justify-content: center;
  margin-bottom: 0;
  max-width: 430px;
  position: relative;
  width: 100%;
}

.hf-ciencia-hero .hf-ciencia-hero__wrap .hf-science-health__header .hf-ciencia-hero__shield {
  border-radius: 0;
  display: block;
  height: 27px;
  left: 50%;
  object-fit: contain;
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  width: 32px;
}

.hf-ciencia-hero .hf-ciencia-hero__wrap .hf-science-health__header h1 {
  color: #fff;
  font-family: var(--chamyto-font-magra);
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  text-align: center;
}

.hf-ciencia-page__featured.hf-science-health {
  margin-top: 0;
  padding-top: 48px;
}

.hf-ciencia-page__featured .hf-science-health__header {
  align-items: center;
  background: none;
  border-radius: 0;
  display: flex;
  height: auto;
  justify-content: center;
  max-width: none;
  padding: 0;
  position: static;
  width: fit-content;
}

.hf-ciencia-page__featured .hf-science-health__header h2 {
  color: #005abc;
  font-family: "Inter", Arial, sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
  text-align: center;
}

.hf-ciencia-other {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 48px 20px 56px;
  width: 100%;
}

.hf-ciencia-other__wrapper {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  max-width: 1440px;
  width: 100%;
}

.hf-ciencia-other__banner {
  align-items: flex-end;
  background-color: #1a1a1a;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60.07%),
    url("../assets/images/bg-other-publications.jpg");
  background-position: center, 50% 50%;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  box-sizing: border-box;
  display: flex;
  height: 150px;
  justify-content: center;
  max-width: 1170px;
  padding-bottom: 20px;
  width: 100%;
}

.hf-ciencia-other__banner-label {
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 23px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
  text-align: center;
}

.hf-ciencia-other__contents {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  max-width: 1170px;
  width: 100%;
}

.hf-ciencia-other__list {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.hf-ciencia-other__contents .hf-science-health__actions {
  margin-top: 20px;
}

.hf-ciencia-other__contents > .hf-science-health__empty:first-child {
  margin-top: 0;
}

.hf-ciencia-other-item {
  background: #fff;
  border-radius: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  height: 220px;
  max-width: 970px;
  overflow: hidden;
  width: 100%;
}

.hf-ciencia-other-item__thumbnail {
  background-color: lightgray;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 15px 0 0 15px;
  flex-shrink: 0;
  height: 220px;
  width: 320px;
}

.hf-ciencia-other-item__body.hf-science-health-card__body {
  align-self: stretch;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  min-height: 0;
  min-width: 0;
  padding: 18px 22px 18px 20px;
}

.hf-ciencia-other-item__body .hf-science-health-card__actions {
  margin-top: auto;
}

.hf-ciencia-other-item__body .hf-science-health-card__title {
  margin-top: 8px;
}

.hf-ciencia-other-item__body .hf-science-health-card__title a {
  -webkit-line-clamp: 2;
}

.hf-ciencia-other-item__body .hf-science-health-card__description {
  -webkit-line-clamp: 2;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .hf-ciencia-hero .hf-ciencia-hero__wrap .hf-science-health__header {
    height: 51px;
    max-width: none;
    width: 196px;
  }

  .hf-ciencia-hero .hf-ciencia-hero__wrap .hf-science-health__header h1 {
    font-size: 14px;
  }

  .hf-ciencia-page__featured.hf-science-health {
    padding-top: 32px;
  }

  .hf-ciencia-other {
    padding: 0 0 118.11px;
  }

  .hf-ciencia-other__banner {
    height: 120px;
  }

  .hf-ciencia-other__banner-label {
    font-size: 20px;
  }

  .hf-ciencia-other__contents {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hf-ciencia-other__contents .hf-science-health__actions {
    margin-top: 0;
  }

  .hf-ciencia-other-item {
    flex-direction: row;
    height: 170px;
    max-width: min(320px, 100%);
  }

  .hf-ciencia-other-item__thumbnail {
    border-radius: 15px 0 0 15px;
    height: 170px;
    width: 130px;
  }

  .hf-ciencia-other-item__body.hf-science-health-card__body {
    justify-content: flex-start;
    padding: 15px 16px;
  }

  .hf-ciencia-other-item__body .hf-science-health-card__description,
  .hf-ciencia-other-item__body .hf-science-health-card__actions {
    display: none;
  }

  .hf-ciencia-other-item__body .hf-science-health-card__title {
    margin-top: 4px;
  }

  .hf-ciencia-other-item__body .hf-science-health-card__title a {
    font-size: 14px;
    line-height: 18px;
    -webkit-line-clamp: 4;
  }
}

/* "Mais publicações" uses <button> for AJAX load-more */
button.hf-ciencia-other__more-button.hf-science-health__more-button {
  cursor: pointer;
  font: inherit;
}

button.hf-ciencia-other__more-button.hf-science-health__more-button:disabled {
  cursor: wait;
  opacity: 0.85;
}

/* From 769px up: lighter pull to offset global footer margin. */
@media (min-width: 769px) {
  .hf-ciencia-page {
    margin-bottom: -100px;
  }
}

/* Mobile (viewport width up to 768px): offset global footer margin. */
@media (max-width: 768px) {
  .hf-ciencia-page {
    margin-bottom: -182px;
  }
}
