/* === Reset e Fundamentos === */
/* Remove margens e paddings padrão e ajusta o box-sizing. */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  /* Habilita a rolagem suave para links de âncora (#) */
  scroll-behavior: smooth;
  /* Oculta a barra de rolagem para Firefox */
  scrollbar-width: none;
}

/* Oculta a barra de rolagem para navegadores WebKit (Chrome, Safari, etc.) */
::-webkit-scrollbar {
  display: none;
}
body {
  /* Estilos base para o corpo da página */
  min-height: 100vh;
  color: #1f1b24;
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 400; /* Peso padrão para o texto */
  line-height: 1.6;
  overflow-x: hidden; /* Prevenir rolagem horizontal */
  /* Oculta a barra de rolagem para IE e Edge */
  -ms-overflow-style: none;
}
h1,
h2,
h3,
h4 {
  /* Estilos base para todos os títulos */
  font-weight: 600; /* Peso para títulos */
  color: #2a2438;
  line-height: 1.3;
}
p {
  color: #413a4f;
}

/* === Variáveis de Cor (Tokens) === */
/* Define as cores principais do site para fácil reutilização e manutenção. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --muted: #8b927f;
  --primary: #556b2f;
  --primary-50: #eef2e7;
  --primary-100: #e1e8d7;
  --accent: #d4af37;
  --text: #26301e;
  --text-soft: #4c5840;
  --border: #e6eadf;
  --shadow: 0 10px 30px rgba(38, 48, 30, 0.08);

  /* Fontes */
  --font-body: "Inter", sans-serif;
  --font-display: "Inter", sans-serif;
}

/* === Utilitários de Layout === */
main {
  padding-top: 0;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid-2 {
  /* Layout de duas colunas */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2rem;
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header .section-subtitle {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* === Seção Hero (Principal) === */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 0;
  background-image: linear-gradient(
      rgba(38, 48, 30, 0.6),
      rgba(38, 48, 30, 0.6)
    ),
    url("../images/dr-gabriel.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: right;
  height: 820px;
}

.hero-content {
  max-width: 760px;
  margin: 0 0 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700; /* Destaque extra para o h1 principal */
  color: #fff;
  margin-bottom: 16px;
}

.subtitle {
  color: #f0f0f0;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.cta-group-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  margin-top: 24px;
}

.cta-group-hero .btn {
  width: 100%;
  max-width: 320px; /* Limita a largura dos botões */
}

.cta-group-atendimento {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
}

/* === Botões === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 200ms ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap; /* Impede que o texto do botão quebre em duas linhas */
  line-height: 1; /* Garante que a altura da linha do texto não interfira no alinhamento */
}

.btn svg {
  width: 1em; /* Ajustado para o mesmo tamanho da fonte do botão */
  height: 1em; /* Ajustado para o mesmo tamanho da fonte do botão */
  margin-right: 8px;
  flex-shrink: 0; /* Impede que o ícone seja espremido */
}

.btn-primary {
  /* Botão principal com gradiente na borda */
  background: linear-gradient(transparent, transparent) padding-box,
    linear-gradient(90deg, var(--primary), #6b8f3a) border-box;
  color: #fff;
}

.cta-group-hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-group-atendimento .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* === Seção Sobre === */
.focus-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}
.focus-list li::before {
  content: "\2713"; /* checkmark */
  color: var(--primary);
  font-weight: bold;
}
.about-media {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.photo,
.about-media picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top center;
}
.photo-doctor {
  background: url("../images/dr-gabriel-jaleco.webp") top/cover no-repeat;
}
.caption {
  color: var(--muted);
}

/* === Seção Especialidades (Cards) === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%; /* Garante que todos os cards tenham a mesma altura */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(38, 48, 30, 0.12);
}
.card-media {
  /* Área da imagem do card */
  height: 160px;
  background-color: var(
    --primary-50
  ); /* Cor de fundo enquanto a imagem carrega */
  background-size: cover;
  background-position: center;
}
.img-prenatal {
  background-image: url("../images/especialidade-pre-natal.webp");
}
.img-parto {
  background-image: url("../images/especialidade-parto.webp");
}
.img-endometriose {
  background-image: url("../images/especialidade-endometriose.webp");
}
.img-menopausa {
  background-image: url("../images/especialidade-menopausa.webp");
}
.img-cirurgia {
  background-image: url("../images/especialidade-cirurgia.webp");
}
.img-exames {
  background-image: url("../images/especialidade-exames.webp");
}
.img-planejamento {
  background-image: url("../images/especialidade-planejamento.webp");
}
.img-implantes {
  background-image: url("../images/especialidade-implantes.webp");
}
.img-cirurgia-intima {
  background-image: url("../images/especialidade-cirurgia-intima.webp");
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  flex-grow: 1;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex; /* Garante que o link ocupe todo o espaço do card */
}
.card h3 {
  font-size: 1.15rem;
}
.card p {
  color: var(--text-soft);
}

/* === Carrossel (Swiper.js) === */
.carousel-container {
  position: relative;
  margin-top: 32px;
  padding: 0 40px; /* Espaço lateral para os botões */
  --swiper-navigation-color: var(--primary);
  --swiper-pagination-color: var(--primary);
  --swiper-navigation-size: 22px; /* Ajusta o tamanho do ícone da seta */
}

.swiper-slide {
  height: auto; /* Permite que o card defina a altura */
  display: flex;
}

.swiper-button-next, /* Botões de navegação (setas) */
.swiper-button-prev {
  color: var(--primary);
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow);
  /* Posiciona os botões verticalmente no centro da área dos slides */
  top: 45%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev {
  /* Posiciona fora da área do carrossel */
  left: -20px;
}
.swiper-button-next {
  /* Posiciona fora da área do carrossel */
  right: -20px;
}

.carousel-container .swiper-pagination-bullet {
  /* Bolinhas da paginação */
  background-color: var(--primary);
  opacity: 0.5;
}

.carousel-container .swiper-pagination-bullet-active {
  background-color: var(--primary);
  opacity: 1;
}

.carousel-container .swiper-pagination {
  position: relative; /* Garante que não seja absoluto */
  bottom: auto; /* Reseta a posição padrão */
  margin-top: 24px; /* Adiciona espaço entre os cards e a paginação */
}

/* === Seção Atendimento === */
.care .contact-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.care-media .clinic {
  background: linear-gradient(135deg, #fff, #f1f0f6);
}

/* === Páginas de Conteúdo (Templates) === */
.page-header {
  padding: 64px 0;
  background: var(--primary-50);
  text-align: center;
}
.page-header h1 {
  font-size: 2.4rem;
}
.page-header p {
  color: var(--text-soft);
  max-width: 600px;
  margin: 8px auto 0;
}

.content-area {
  padding: 64px 24px;
  max-width: 800px; /* Define uma largura máxima para leitura confortável */
  margin: 0 auto; /* Centraliza o container */
}

/* Em telas maiores que 1200px, usamos 65% da largura da tela */
@media (min-width: 1230px) {
  .content-area {
    max-width: 65%;
  }
}

.content-area h2 {
  margin-top: 32px;
  margin-bottom: 8px;
}
.content-area h3 {
  margin-top: 24px;
  margin-bottom: 4px;
}

.content-area ul {
  list-style-position: inside;
  margin-left: 8px;
  margin-bottom: 16px;
}

.video-container {
  /* Container responsivo para vídeos do YouTube */
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 32px;
  border-radius: 12px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content-image {
  width: 100%;
  max-width: 100%;
}

.content-cta a {
  width: 100%;
  max-width: 250px;
}

.content-cta {
  /* Bloco de chamada para ação no final dos artigos */
  background-color: var(--primary-50);
  padding: 24px;
  border-radius: 12px;
  margin-top: 48px;
  text-align: center;
  gap: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-area .ql-editor h2,
.content-area #post-content h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 1.8rem; /* Tamanho para subtítulos dentro do post */
}

.content-area .ql-editor a,
.content-area #post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.content-area .ql-editor img,
.content-area #post-content img {
  max-width: 100%;
  object-fit: contain;
  max-height: 500px; /* Limita a altura */
  display: block; /* Permite o uso de margem automática */
  margin: 24px auto; /* Centraliza a imagem horizontalmente */
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.content-area #post-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Mantém a proporção 16:9 do vídeo */
  border-radius: 12px;
  margin: 24px 0;
  border: none;
}
/* === FAQ (Acordeão) === */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: none;
}

.faq-question {
  /* Botão da pergunta */
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2a2438;
  font-family: inherit;
}
.faq-icon {
  /* Ícone de "+" que vira "x" */
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  /* Container da resposta (para animação) */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.faq-answer.is-open {
  grid-template-rows: 1fr;
}

/* === Seção FAQ na Home === */
.faq-list-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-more-link {
  text-align: center;
  margin-top: 32px;
}
.faq-more-link .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}
/* === Página do Blog === */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 64px 0;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(38, 48, 30, 0.12);
}
.post-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.post-card-body {
  padding: 20px;
}
.post-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* === Blog: Post em Destaque e Busca === */
.featured-post-section {
  margin-bottom: 48px;
}
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}
.featured-post:hover {
  box-shadow: var(--shadow);
}
.featured-post-image {
  height: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}
.featured-post-body {
  padding: 32px;
}
.featured-post-body h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.blog-search-section {
  margin-bottom: 48px;
}
#blog-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}
#blog-search-input {
  /* Campo de texto da busca */
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px 0 0 8px;
  background-color: #fff;
}
#blog-search-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  z-index: 2;
}
#blog-search-form button {
  /* Botão de pesquisar com ícone de lupa */
  padding: 0;
  width: 50px; /* Largura fixa para o ícone */
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: #fff;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 500;
  display: grid;
  place-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  font-size: 0; /* Esconde qualquer texto residual */
}

/* === Modal de Cookies === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-backdrop.show {
  display: flex;
}
.modal {
  background: #fff;
  color: var(--text);
  width: min(560px, calc(100% - 48px));
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal header {
  background: var(--primary-50);
  color: var(--text);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal header h3 {
  font-weight: 600;
  font-size: 1.1rem;
}
.modal .modal-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.modal .modal-actions {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fafafa;
  border-top: 1px solid var(--border);
}
.btn-neutral {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-accept {
  background: var(--primary);
  color: #fff;
}

/* === Seção de Contato === */
.contact-section {
  background-color: var(--bg);
}

.contact-content {
  max-width: 700px;
  margin: 2rem auto 0;
}

/* Estilo geral para grupos de formulário */
.form-group {
  margin-bottom: 1rem;
}

/* Estilo geral para campos de formulário */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-content .btn {
  width: 100%;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

/* ======================================== */
/* =========== YouTube Section ========== */
/* ======================================== */

.youtube-carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px; /* Espaço para as setas */
}

.youtube-carousel-container .swiper-button-prev,
.youtube-carousel-container .swiper-button-next {
  color: var(--primary);
}

.youtube-carousel-container .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

.youtube-carousel-container .swiper-pagination {
  position: relative;
  margin-top: 24px;
}

/* ======================================== */
/* ========== Testimonials Section ========== */
/* ======================================== */

.testimonials-section {
  padding: 80px 0;
  background-color: var(--surface);
}

.testimonials-carousel {
  padding: 20px 0; /* Espaço para a sombra do card não ser cortada */
}

.testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.testimonial-content {
  flex-grow: 1;
}

.testimonial-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 24px 0;
}

.testimonial-author h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 4px 0;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* === Media Queries (Responsividade) === */

/* Tablet e telas menores (abaixo de 1080px) */
@media (max-width: 1080px) {
  main {
    padding-top: 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero .btn {
    padding: 14px 18px;
    font-size: 1rem;
  }
  .hero .btn svg {
    margin-right: 8px;
  }
  .cta-group-atendimento {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post-image {
    height: 220px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Faz o conteúdo ocupar toda a altura do container */
  }
  .cta-group-hero {
    margin-top: auto; /* Empurra os botões para o final do container flex */
  }
}

/* Celular (abaixo de 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  .subtitle {
    font-size: 1rem;
    text-align: center;
  }
  .hero {
    position: relative; /* já definido, reforça para segurança */
  }

  /* Layout dos botões da hero em telas pequenas: posicionados no fundo da
     seção, ocupando o espaço horizontal disponível e sem quebrar linha. */
  .cta-group-hero {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px; /* espaço entre os botões e a borda inferior */
    transform: none;
    margin-top: 0; /* remove margem automática aplicada em breakpoints maiores */
    z-index: 5; /* garante que os botões fiquem sobrepostos ao background */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* evita quebra */
  }

  /* Faz os botões dividirem o espaço disponível e encolherem corretamente */
  .cta-group-hero .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  .focus-list {
    grid-template-columns: 1fr;
  }
  .card-media {
    height: 140px;
  }
  .carousel-container .swiper-button-prev,
  .carousel-container .swiper-button-next,
  .youtube-carousel-container .swiper-button-prev,
  .youtube-carousel-container .swiper-button-next {
    display: none; /* Esconde as setas em telas pequenas */
  }

  /* Estilos de imagem apenas para mobile */
  .content-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .photo,
  .about-media picture img {
    width: 100%;
    height: auto;
    aspect-ratio: unset;
    object-fit: contain;
    object-position: top center;
  }

  .caption {
    text-align: center;
    margin-top: 12px;
  }
}

/* ============================================== */
/* =========== Estilos da Newsletter ============ */
/* ============================================== */

/* Ajuste fino para dispositivos muito estreitos (ex.: 393px de largura)
   — reduz tipografia principal em ~1pt para melhorar legibilidade e evitar
   quebras inesperadas. */
@media (max-width: 393px) {
  .hero h1 {
    font-size: calc(1.8rem - 0.083333rem); /* 1pt = 1.333px = 0.083333rem */
  }
  .subtitle {
    font-size: calc(1rem - 0.083333rem);
  }
  .cta-group-hero .btn {
    font-size: calc(0.9rem - 0.083333rem);
    padding: 10px 14px;
  }
}

.newsletter-section {
  background-color: #f8f9fa; /* Um fundo suave para destacar a seção */
  border-top: 1px solid var(--border, #e6eadf);
  border-bottom: 1px solid var(--border, #e6eadf);
  padding: 60px 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h3 {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 2rem;
  color: var(--text-dark, #26301e);
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: var(--text-soft, #4c5840);
  margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
  display: flex;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-message {
  margin-top: 1rem;
  font-weight: 500;
  min-height: 1.5em; /* Evita que o layout "pule" quando a mensagem aparece */
}

.newsletter-message.success {
  color: var(--primary, #556b2f);
}

.newsletter-message.error {
  color: #d9534f; /* Tom de vermelho para erros */
}

/* ============================================== */
/* =========== Estilos da Galeria de Mídia ====== */
/* ============================================== */

.media-item {
  position: relative;
  cursor: pointer;
}

.delete-media-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-item:hover .delete-media-btn {
  opacity: 1;
}

/* ============================================== */
/* ======== Seção de Posts Relacionados ========= */
/* ============================================== */

.related-posts-section {
  padding-top: 64px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

/* ============================================== */
/* =========== CTA abaixo do vídeo ============== */
/* ============================================== */

.video-cta {
  text-align: center;
  margin: -16px 0 48px 0;
}

.video-cta.no-video {
  margin: 0 0 48px 0;
}

/* ============================================== */
/* =========== Estilos da Galeria de Mídia ====== */
/* ============================================== */

.media-item {
  position: relative;
  cursor: pointer;
}

.delete-media-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2; /* Garante que o botão fique sobre a imagem */
}

.media-item:hover .delete-media-btn {
  opacity: 1;
}
