/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  background: url('../assets/fundo-hero.png') center center no-repeat;
  background-size: cover;
  min-height: 570px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: linear-gradient(to bottom, transparent 25%, #ffffff 100%);
  pointer-events: none;
}

.hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 570px;
  position: relative;
  z-index: 1;
}

/* Conteudo do hero - lado esquerdo */
.hero-content {
  max-width: 520px;
  padding: 30px 0 80px;
}

/* Container para alternância de headlines */
.hero-headlines-container {
  position: relative;
  min-height: 6.5em;
  margin-bottom: 35px;
}

/* Headline com destaque */
.hero-headline {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2b3c;
  margin-bottom: 0;
  text-align: center;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
}

.hero-headline.active {
  animation: headlineIn 1s ease-out forwards;
}

.hero-headline.exit {
  animation: headlineOut 1s ease-in forwards;
}

@keyframes headlineIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes headlineOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

.hero-headline .highlight {
  position: relative;
  z-index: 1;
}

.hero-headline .highlight::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 0;
  height: 95%;
  background: linear-gradient(90deg, rgba(125, 174, 209, 0.137) 0%, rgba(74, 144, 184, 0.1) 100%);
  z-index: -1;
  border-radius: 3px;
  transform: skewX(-2deg);
}

.hero-headline.marked .highlight::after {
  animation: markerHighlight 0.5s ease-out forwards;
}

@keyframes markerHighlight {
  from {
    width: 0;
  }
  to {
    width: 105%;
  }
}

/* Informacoes do medico */
.hero-info {
  margin-bottom: 20px;
  text-align: center;
}

.hero-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 4px;
}

.hero-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a7a9c;
  margin-bottom: 4px;
}

.hero-credentials {
  font-size: 0.9rem;
  color: #6b8a9e;
}

/* Descricao */
.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #556677;
  margin-bottom: 30px;
  text-align: center;
}

/* Botoes do hero */
.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #3d7a9e;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(61, 122, 158, 0.3);
}

.btn-hero-primary:hover {
  background: #2d6a8e;
  transform:var(--light);
  box-shadow: 0 6px 20px rgba(61, 122, 158, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: transparent;
  color: #3d7a9e;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #d0dce5;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  border-color: #3d7a9e;
  background: rgba(61, 122, 158, 0.05);
}

/* Imagem do hero - lado direito, colada no fim */
.hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

.hero-image img {
  width: 640px;
  height: auto;
  object-fit: contain;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 50px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 75px), transparent 100%);
}

/* RESPONSIVO - HERO */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 0;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 10px 0 30px;
    order: 1;
  }

  .hero-headlines-container {
    min-height: 5.5em;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    width: 400px;
  }
}

@media (max-width: 600px) {
  .hero-wrapper {
    padding: 30px 20px 0;
  }

  .hero-headlines-container {
    min-height: 4.5em;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-name {
    font-size: 1.3rem;
  }

  .hero-image img {
    width: 320px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-headlines-container {
    min-height: 4em;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-image img {
    width: 280px;
  }
}

.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  margin: 20px auto;
}

/* ============================
   SOBRE
   ============================ */

.about-modern {
  background: url('../assets/fundo-hero2-invertido.png') center center no-repeat;
  background-size: cover;
  padding: 5px;
  position: relative;
}

.about-header {
  display: flex;
  align-items: flex-start;  
  justify-content: center;
  gap: 50px;
  margin-bottom: 0px;
}

.about-header-content {
  flex: 1;
}

.about-header-text {
  display: flex;
  align-items:center;
  justify-content: center;
  gap: 0px;
  margin-bottom: 0px;
  margin-top: 20px;
  width: 100%;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  width: 280px;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
}

.about-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 0px;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

.about-subtitle {
  font-size: 1.15rem;
  color: #4a6175;
  line-height: 1.7;
  text-align: justify;
}

/* Responsivo About */
@media (max-width: 768px) {
  .about-header-text {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about-image img {
    width: 200px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  }

  .about-title {
    text-align: center;
  }
}

.about-image-box {
  display: flex;
  justify-content: flex-start;
  flex-shrink: 1;
}

.about-google-card {
  max-width: 280px;
  height: auto;
}

.about-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, transparent 30%, rgba(255, 255, 255, 0.5) 50%, #ffffff 100%);
  z-index: 0;
}

.about-modern > * {
  position: relative;
  z-index: 1;
}

/* Google Reviews Component */
.google-reviews-section {
  margin-bottom: 50px;
  padding-top: 20px;
}

.google-reviews-section .reviews-empty-text {
  margin: 0 0 16px;
  font-family: 'Inter', sans-serif;
  color: #4d5b66;
  text-align: center;
}

.google-reviews-section:not(.reviews-empty) .reviews-empty-text {
  display: none;
}

.google-reviews-section.reviews-empty .reviews-swiper {
  display: none;
}

/* Swiper Reviews */
.reviews-swiper {
  padding-bottom: 50px;
  margin-bottom: 32px;
}

.reviews-swiper .swiper-pagination-bullet {
  background: var(--secondary);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.reviews-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary);
}

.reviews-swiper .swiper-button-prev,
.reviews-swiper .swiper-button-next {
  color: var(--secondary);
  transition: color 0.25s ease;
}

.reviews-swiper .swiper-button-prev:hover,
.reviews-swiper .swiper-button-next:hover {
  color: var(--primary);
}

.reviews-swiper .swiper-button-prev::after,
.reviews-swiper .swiper-button-next::after {
  font-size: 24px;
}

.reviews-swiper .swiper-slide {
  height: auto;
}

.review-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(2, 63, 95, 0.08);
  box-shadow: 0 6px 22px rgba(2, 63, 95, 0.08);
  padding: 26px 24px;
  min-height: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.review-stars {
  color: #f4c150;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}

.review-text {
  --review-lines: 6;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-style: italic;
  color: #1a2b3c;
  line-height: 1.65;
  margin: 0;

  /* Truncamento (evita cards muito altos) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--review-lines);
  overflow: hidden;

  /* Altura consistente mesmo com textos curtos */
  min-height: calc(1em * 1.65 * var(--review-lines));
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-author {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
}

.review-more {
  appearance: none;
  border: 1px solid rgba(61, 122, 158, 0.22);
  background: rgba(61, 122, 158, 0.06);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.review-more:hover {
  background: rgba(61, 122, 158, 0.1);
  border-color: rgba(61, 122, 158, 0.35);
}

.review-more:focus-visible {
  outline: 3px solid rgba(61, 122, 158, 0.35);
  outline-offset: 2px;
}

/* Modal (dialog) para leitura completa sem mexer no layout do Swiper */
.review-dialog {
  border: none;
  padding: 0;
  background: transparent;

  /* Importante: NÃO forçar display aqui.
     <dialog> fechado é display:none por padrão.
     Se definirmos display:flex, ele aparece “aberto” mesmo sem o atributo [open]. */

  max-width: min(680px, calc(100vw - 32px));
  width: 100%;
  z-index: 10000;
}

/* Garante que dialog fechado não fica visível mesmo com outras regras */
.review-dialog:not([open]) {
  display: none !important;
}

/* Só quando estiver aberto, centraliza o painel */
.review-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Backdrop opaco (aplica-se quando aberto via showModal()) */
.review-dialog::backdrop,
dialog::backdrop {
  background: rgba(10, 20, 30, 0.6);
}

.review-dialog__panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(2, 63, 95, 0.12);
  box-shadow: 0 18px 60px rgba(2, 63, 95, 0.24);
  padding: 22px 20px 18px;
  position: relative;

  /* Evita o painel “vazar” em telas baixas; mantém scroll interno */
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.review-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(2, 63, 95, 0.12);
  background: #ffffff;
  color: #1a2b3c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.review-dialog__close:focus-visible {
  outline: 3px solid rgba(61, 122, 158, 0.35);
  outline-offset: 2px;
}

.review-dialog__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 46px; /* espaço do botão fechar */
  margin-bottom: 14px;
}

.review-dialog__stars {
  color: #f4c150;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.review-dialog__author {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--secondary);
}

.review-dialog__text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a2b3c;
  white-space: pre-wrap;
}

/* Rodape com estrelas e botao */
.reviews-footer {
  text-align: center;
}

.reviews-footer .rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.reviews-footer .rating-stars .star {
  font-size: 1.8rem;
  color: #f4c150;
}

.reviews-footer .rating-count {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.reviews-footer .rating-count strong {
  color: var(--primary);
}

.btn-google-reviews {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-google-reviews:hover {
  background: var(--secondary);
  transform:var(--light);
}

/* Responsividade Swiper Reviews */
@media (max-width: 768px) {
  .reviews-swiper .swiper-button-prev,
  .reviews-swiper .swiper-button-next {
    display: flex;
  }
}

@media (max-width: 600px) {
  .google-reviews-section {
    padding-top: 30px;
  }

  .reviews-swiper {
    padding-bottom: 42px; /* mais compacto no mobile */
    margin-bottom: 24px;
  }

  .reviews-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 7px;
  }

  .review-card {
    padding: 24px 20px;
    box-shadow: 0 8px 22px rgba(2, 63, 95, 0.12);
    border: 1px solid rgba(2, 63, 95, 0.08);
  }

  .review-text {
    font-size: 0.9rem;
    --review-lines: 5; /* reduz altura em telas pequenas */
  }

  .review-footer {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .reviews-footer .rating-stars .star {
    font-size: 1.5rem;
  }
}

.about-image-quotes {
  flex-shrink: 0;
}

.about-image-quotes img {
  width: 280px;
  height: auto;
  display: block;
  padding-left: 10px;
}


/* Duas colunas */
.about-two-columns {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 60px;
  align-items: start;
}

/* Texto principal */
.about-text p {
  font-size: 1.15rem;
  color: #4a4a4a;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Cards laterais */
.about-two-columns {
  display: grid;
  grid-template-columns: 1fr 350px;
  /* texto | cards */
  gap: 60px;
  align-items: start;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.info-card {
  background: #f7f9fc;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px
}

/* ============================
   TIMELINE MODERNA
   ============================ */

.quote {
  font-size: 1.2rem;
  font-style: normal;
  color: #444;
  padding: 0px 20px;
  margin-left: 20px;
  background: none; 
  border-radius: 8px;
  text-align: left;
}

.timeline-container {
  position: relative;
  padding-left: 35px;
  margin: 0px 0;
}

/* Linha vertical */
.timeline-container::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 82, 125, 0.2),
      rgba(0, 82, 125, 0.05));
  border-radius: 2px;
}

/* Cada item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Conteúdo */
.timeline-content {
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.timeline-content:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.timeline-content h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
  text-align: left;
}

.timeline-content p {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 600px) {
  .timeline-container {
    padding-left: 25px;
  }

  .timeline-content {
    padding: 16px 18px;
  }

  .quote {
  font-size: 1.0rem;
  }

}



/* ==========================================================================
   SERVICES
   ========================================================================== */

.section-kicker {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
  margin-top: 10px;
  position: relative;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #7daed1 0%, #4a90b8 100%);
  border-radius: 2px;
}

.section-services {
  background: linear-gradient(180deg, #f0f5f9 0%, #e8f1f8 100%);
  padding: 70px 0 70px;
}

.services-header {
  text-align: center;
  margin-bottom: 28px;
}

.services-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

.services-subtitle {
  font-size: 1.05rem;
  color: #5a6a7a;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 36px;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(2, 63, 95, 0.08);
  border-radius: 18px;
  padding: 22px 22px;
  display: grid;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 6px;
  box-shadow: 0 10px 22px rgba(2, 63, 95, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 16px 32px rgba(2, 63, 95, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3f8;
  color: #b08a4b;
  font-size: 1.35rem;
  grid-row: 1 / span 2;
  grid-column: 1;
}

.service-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2b3c;
  margin: 0;
  grid-column: 2;
}

.service-desc {
  font-size: 0.95rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0;
  grid-column: 2;
}

.service-card .service-title,
.service-card .service-desc {
  margin-left: 0;
}

.btn-primary-alt {
  display: inline-block;
  padding: 16px 32px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.btn-primary-alt:hover {
  background: var(--primary);
  transform:var(--light);
}

/* ==========================================================================
   LOCATION
   ========================================================================== */

.section-location {
  background: linear-gradient(180deg, #e8f1f8 0%, #f0f5f9 100%);
  padding: 50px 0 80px;
}

.location-header {
  text-align: center;
  margin-bottom: 20px;
}

.location-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
  text-align: center;
}

.location-content {
  max-width: 900px;
  margin: 0 auto;
}

.location-info {
  text-align: center;
  margin-bottom: 50px;
}

.location-info h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 12px;
}

.location-info p {
  font-size: 1.1rem;
  color: #5a6a7a;
  line-height: 1.7;
  margin-bottom: 24px;
}

.location-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.location-gallery img {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(74, 144, 184, 0.12);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.location-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(74, 144, 184, 0.18);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;

  /* Para deep-links / scrollIntoView(): evita que o item fique escondido sob o header sticky */
  scroll-margin-top: var(--faq-scroll-margin-top, 140px);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(67, 129, 164, 0.08);
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  text-align: justify;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 14px 20px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ==========================================================================
  DICAS DE SAUDE MENTAL
   ========================================================================== */

.section-tips {
  background: linear-gradient(180deg, #f0f5f9 0%, #e8f1f8 100%);
  padding: 60px 0;
}

.tips-header {
  text-align: center;
  margin-bottom: 50px;
}

.tips-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
  text-align: center;
}

.tips-subtitle {
  font-size: 1.1rem;
  color: #5a6a7a;
  max-width: 450px;
  margin: 24px auto 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-tips {
    padding: 60px 0;
  }

  .tips-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
  text-align: center;
}

  .tips-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.blog-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: grayscale(30%);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-content p {
  font-size: 0.9rem;
  color: #5a6a7a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: auto;
  align-self: flex-start;
}

.blog-card-cta-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-cta-icon {
  transform: translateX(2px);
}

.blog-loading,
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #5a6a7a;
  font-size: 0.95rem;
  padding: 20px;
}

/* ==========================================================================
   PUBLICACOES
   ========================================================================== */

.publications-section {
  background: #ffffff;
  padding: 20px 0 70px;
}

.publications-header {
  text-align: center;
  margin-bottom: 32px;
}

.publications-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.publications-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 16px;
}

.publications-subtitle {
  font-size: 1.05rem;
  color: #5a6a7a;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 18px;
  align-items: center;
  background: #f8fbff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(67, 129, 164, 0.12);
  box-shadow: 0 10px 26px rgba(74, 144, 184, 0.08);
}

.publication-cover {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.publication-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publication-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Em .publication-info (flex-column), o padrão é "stretch".
     Centralizamos o badge sem esticar e mantemos o texto centrado. */
  align-self: center;

  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(67, 129, 164, 0.12);
  color: #1a2b3c;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 10px;
}

.publication-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
}

.publication-role {
  font-size: 0.95rem;
  color: #3d5368;
  margin-bottom: 8px;
  line-height: 1.6;
}

.publication-ref {
  font-size: 0.85rem;
  color: #6a7a88;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1024px) {
  .about-header {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-header-content {
    max-width: 100%;
  }

  .about-subtitle {
    text-align: center;
  }

  .quote-icon {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .about-google-card {
    max-width: 280px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .about-images img {
    max-width: 200px;
  }

  .services-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-title {
    font-size: 1.9rem;
  }

  .about-subtitle {
    font-size: 1.05rem;
  }

  .about-google-card {
    max-width: 260px;
  }

  .section-services {
    padding: 50px 0 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-title {
    font-size: 1.8rem;
  }

  .services-subtitle {
    font-size: 1rem;
  }

  .service-card {
    grid-template-columns: 40px 1fr;
    padding: 18px 18px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .section-location {
    padding: 20px;
  }

  .location-gallery {
    gap: 16px;
  }

  .publications-title {
    font-size: 1.8rem;
  }

  .publications-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .publication-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .publication-cover {
    max-width: 220px;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .location-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-images {
    flex-direction: column;
    align-items: center;
  }
}
