/*
  Patient blog — DS2 shell (renewal-ds2-about-contact + renewal-design-system-v2).
  Base: contact-ds2.css (header, footer rail, hero layers, reveals, tokens).
*/

@import url("../contact-ds2.css");

/* Hero — imagem de paciente um pouco mais legível que o default DS2 (0.08) */
.ds2-page .ds2-hero--blog .ds2-hero__bg img {
  opacity: 0.14;
}

/* Secção artigos */
.ds2-page .blog-articles {
  padding: 4rem 0;
  background: linear-gradient(165deg, #f7fafd 0%, #fff 45%, #f0f9ff 100%);
}

@media (min-width: 768px) {
  .ds2-page .blog-articles {
    padding: 6rem 0;
  }
}

.ds2-page .blog-articles__head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: var(--layout-max);
  width: min(100%, var(--layout-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}

.ds2-page .blog-articles__head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 300;
  color: var(--renewal-text);
}

.ds2-page .blog-articles__head p {
  margin: 0 auto;
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--layout-max);
  width: min(100%, var(--layout-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .ds2-page .blog-layout {
    grid-template-columns: 1fr 1fr min(280px, 32%);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .ds2-page .blog-layout__main {
    grid-column: span 2;
  }
}

.ds2-page .blog-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ds2-page .blog-filter-bar.is-visible {
  display: flex;
}

.ds2-page .blog-filter-bar p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-filter-bar .font-medium {
  font-weight: 600;
  color: var(--renewal-text);
}

.ds2-page .blog-filter-bar a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--renewal-blue);
  text-decoration: none;
}

.ds2-page .blog-filter-bar a:hover {
  color: #005bcc;
  text-decoration: underline;
}

.ds2-page .blog-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ds2-page .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ds2-page .blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ds2-border-color);
  border-radius: 0.75rem;
  background: #fff;
  transition: box-shadow 0.35s var(--ds2-ease), border-color 0.3s var(--ds2-ease), transform 0.35s var(--ds2-ease);
}

.ds2-page .blog-card:hover {
  border-color: rgb(0 115 255 / 0.25);
  box-shadow: 0 16px 40px -12px rgb(0 115 255 / 0.1);
  transform: translateY(-2px);
}

.ds2-page .blog-card.is-hidden {
  display: none;
}

.ds2-page .blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.ds2-page .blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ds2-ease);
}

.ds2-page .blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}

.ds2-page .blog-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.92);
  color: var(--renewal-text);
}

.ds2-page .blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  flex: 1;
}

.ds2-page .blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}

.ds2-page .blog-card__title a {
  color: var(--renewal-text);
  text-decoration: none;
}

.ds2-page .blog-card__title a:hover {
  color: var(--renewal-blue);
}

.ds2-page .blog-card:hover .blog-card__title a {
  color: var(--renewal-blue);
}

.ds2-page .blog-card__excerpt {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--renewal-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds2-page .blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid #f3f4f6;
}

.ds2-page .blog-card__author img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
}

.ds2-page .blog-card__author-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--renewal-text);
}

.ds2-page .blog-card__author-role {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ds2-page .blog-card__tags span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--renewal-blue);
}

.ds2-page .blog-empty {
  display: none;
  padding: 3rem env(safe-area-inset-right, 0px) 3rem env(safe-area-inset-left, 0px);
  text-align: center;
}

.ds2-page .blog-empty.is-visible {
  display: block;
}

.ds2-page .blog-empty p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-empty a {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--renewal-blue);
  text-decoration: none;
}

.ds2-page .blog-empty a:hover {
  color: #005bcc;
  text-decoration: underline;
}

.ds2-page .blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ds2-page .blog-sidebar--widget {
  width: 100%;
}

@media (min-width: 1024px) {
  .ds2-page .blog-sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

.ds2-page .blog-side-card {
  border: 1px solid var(--ds2-border-color);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
  transition: box-shadow 0.35s var(--ds2-ease);
}

.ds2-page .blog-side-card:hover {
  box-shadow: 0 12px 32px -12px rgb(0 115 255 / 0.08);
}

.ds2-page .blog-side-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--renewal-text);
}

.ds2-page .blog-side-card--cta {
  background: linear-gradient(165deg, rgb(0 115 255 / 0.06), rgb(5 200 50 / 0.05));
}

.ds2-page .blog-side-card--cta p {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--renewal-text-muted);
}

.ds2-page .blog-side-card--cta .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0.5rem;
  background: var(--renewal-blue);
  color: #fff;
  text-decoration: none;
  border: none;
}

.ds2-page .blog-side-card--cta .btn:hover {
  background: #005bcc;
  color: #fff;
  text-decoration: none;
}

.ds2-page .blog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds2-page .blog-cat-list a {
  display: block;
  margin: 0 -0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s var(--ds2-ease);
}

.ds2-page .blog-cat-list a:hover {
  background: #f9fafb;
}

.ds2-page .blog-cat-list a.is-active {
  background: rgb(0 115 255 / 0.1);
}

.ds2-page .blog-cat-list a.is-active .blog-cat-name {
  color: var(--renewal-blue);
}

.ds2-page .blog-cat-name {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--renewal-text);
}

.ds2-page .blog-cat-list a:hover .blog-cat-name {
  color: var(--renewal-blue);
}

.ds2-page .blog-cat-desc {
  margin: 0.25rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--renewal-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ds2-page .blog-card,
  .ds2-page .blog-card__media img {
    transition: none !important;
  }

  .ds2-page .blog-card:hover {
    transform: none;
  }

  .ds2-page .blog-card:hover .blog-card__media img {
    transform: none;
  }
}
/* ─── Single article ─── */
body.blog-patients-single {
  background: linear-gradient(165deg, #eef6ff 0%, #f7fafd 38%, rgb(240 249 255 / 0.92) 72%, #f9fafb 100%);
  min-height: 100vh;
}

body.blog-patients-single .elementor-location-single,
body.blog-patients-single .elementor-location-single > .elementor-section {
  background: transparent !important;
}

.ds2-page .bp-single {
  padding: 5rem 0 6rem;
  background: transparent;
}

@media (min-width: 768px) {
  .ds2-page .bp-single {
    padding: 6.5rem 0 8rem;
  }
}

.ds2-page .bp-single__inner {
  max-width: var(--layout-max);
  width: min(100%, var(--layout-max));
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.ds2-page .bp-single__back {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0073ff;
  text-decoration: none;
}

.ds2-page .bp-single__back:hover {
  color: #005bcc;
}

.ds2-page .bp-single__head {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ds2-page .bp-single__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(0 115 255 / 0.1);
  color: #0073ff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
}

.ds2-page .bp-single__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #111827;
  text-align: center;
}

.ds2-page .bp-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #6b7280;
}

.ds2-page .bp-single__media {
  margin: 0 auto 2.5rem;
  max-width: 48rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(17 24 39 / 0.08);
}

.ds2-page .bp-single__media img {
  display: block;
  width: 100%;
  height: auto;
}

.ds2-page .bp-single__content {
  max-width: 48rem;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.ds2-page .bp-single__content > *:first-child {
  margin-top: 0;
}

.ds2-page .bp-single__content > *:last-child {
  margin-bottom: 0;
}

.ds2-page .bp-single__content p {
  margin: 0 0 1.25rem;
  text-align: justify;
  text-justify: inter-word;
}

.ds2-page .bp-single__content h2,
.ds2-page .bp-single__content h3 {
  margin: 2rem 0 1rem;
  font-family: var(--font-heading);
  font-weight: 400;
  color: #111827;
  text-align: center;
}

.ds2-page .bp-single__lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: #4b5563;
  text-align: justify;
  text-justify: inter-word;
}

.ds2-page .bp-single__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.ds2-page .bp-single__author img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.ds2-page .bp-single__author img[src*="renewal-symbol"],
.ds2-page .bp-card__author img[src*="renewal-symbol"],
.ds2-page .blog-card__author img[src*="renewal-symbol"] {
  display: block;
  flex-shrink: 0;
  object-fit: contain !important;
  object-position: center center;
  padding: 0.4rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.ds2-page .bp-single__author-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.ds2-page .bp-single__author-role {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #6b7280;
}

.ds2-page .bp-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 1.5rem auto 0;
  justify-content: center;
}

.ds2-page .bp-single__tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f3f4f6;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: #4b5563;
}

.ds2-page .bp-single__editor-note {
  padding: 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  color: #6b7280;
}
