:root {
  --primary-color: #ff6b81;
  --secondary-color: #4fb8e7;
  --yellow-color: #ffd15c;
  --navy-color: #1e3d59;
  --white: #ffffff;
  --gray-light: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--navy-color);
  background-color: var(--white);
}
  .whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
  }

  .whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .whatsapp-link:hover {
    background-color: #128c7e;
    transform: scale(1.1);
  }

  .whatsapp-link i {
    font-size: 32px;
    color: white;
  }

  @media (max-width: 768px) {
    .whatsapp-float {
      bottom: 20px;
      right: 20px;
    }
  }
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  margin-right: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  color: #2C3E50;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #2C3E50;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 16px;
}

.main-nav ul li a:hover {
  color: #ff6b81;
}

/* Título principal */
.blog-title {
  font-size: 36px;
  font-weight: 700;
  color: #2C3E50;
  text-align: center;
  margin: 60px 0 30px;
}

/* Subtítulo */
.subtitulo .pincel {
  font-size: 28px;
  font-weight: 600;
  color: #2C3E50;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #ff6b81;
  display: inline-block;
  padding-bottom: 5px;
}

/*TESTE BLOG */

.blog-saude-hero {
  position: relative;
  height: 320px; /* altura tipo capa de Facebook */
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 20px;
}

.hero-imagem-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-imagem {
  width: 140%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* antes era 75% center */
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  z-index: 1;
}

/* centralizar conteúdo */
.hero-textos {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal */
  justify-content: center; /* vertical */
  text-align: center;
  gap: 16px;
  padding: 20px;
}

/* título e data */
.blog-saude-codigo {
  font-size: 14px;
  color: #333;
}

.blog-saude-titulo {
  font-size: 36px;
  color: #1e3d59;
  font-weight: 700;
}

/* botões */
.blog-saude-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filtro-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  color: #1e3d59;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-btn:hover {
  background: #f0f0f0;
}















/* NOVO: Cabeçalho de seção elegante */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 60px 0 5px;
  padding: 10px 0; /* <- espaçamento interno acima e abaixo */
}


.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2C3E50;
  text-transform: uppercase;
}

.section-line {
  width: 30px;
  height: 4px;
  background-color: #ff6b81;
  border-radius: 2px;
}



.carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: var(--gray-light);
}

.carousel-track {
  display: flex;
  animation: scrollCarousel 60s linear infinite;
  width: max-content;
}

.video-slide {
  flex: 0 0 auto;
  width: 260px;
  height: 380px;
  margin: 10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.servicos-section {
  background-color: #f7f7f7; /* azul clarinho suave */
  padding: 100px 40px;
  margin-top: -10px;
}


/* Grade de eventos */

.eventos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.icon-evento-topo {
  max-width: 70px;
  margin-bottom: 10px;
}

.eventos-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-color);
  text-transform: uppercase;
  position: relative;
}

.eventos-header .section-line {
  display: inline-block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 10px;
  border-radius: 2px;
}


.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px 50px;
}


.evento-card {
  width: 300px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #d3a56140;
  text-align: center;
}

.evento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.evento-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.evento-card h3,
.evento-info h3 {
  padding: 15px 10px;
  font-size: 18px;
  color: #2C3E50;
  margin: 0;
}

.evento-info {
  padding: 15px;
  background-color: #fff;
}



.section-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px; /* aumente para descer mais */
  margin-bottom: 0;
}

.divider-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  transform: translateY(20px); /* força o SVG a descer visualmente */
}

.section-divider-baixo {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  top: -60px; /* Sobe o SVG */
  margin-bottom: -40px; /* evita espaçamento antes do "Nossos Eventos" */
  z-index: 2;
}

.divider-image-baixo {
  width: 100%;
  max-width: 100%;
  height: auto;
  transform: none; /* remove qualquer translate anterior */
}



/* Blog / Notícias */

.noticias-section {
  padding: 60px 20px 60px; /* top | lateral | bottom (antes estava 100px) */
  background-color: #f7f7f7;
  background-image: url('../img/background_passaro.png');
  background-repeat: repeat;
  background-size: 500px auto;
  background-position: center top;
  position: relative;
}


.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}



.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  margin-top: -30px;
}

.section-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: #4fb8e7;
  margin: 0 10px;
}

.section-header h2 {
  font-size: 36px;
  color: #2C3E50;
  font-weight: 700;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* Modal estilo Story */
.story-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.story-content {
  position: relative;
  width: 320px;
  height: 568px;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.story-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.close-story {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

#blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -60px;
}

.blog-card {
  width: 320px;
  background-color: #ffffffee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-date {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content h3 {
  font-size: 20px;
  color: #2C3E50;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.blog-content p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}


/* Botão LEIA MAIS Padronizado */
.blog-card .read-more,
.blog-card .read-more-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 0;
    text-align: right;
    color: #4fb8e7;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 20px;
    align-self: flex-end;
}

.blog-card .read-more:hover,
.blog-card .read-more-button:hover {
    color: #3aa8e0;
    text-decoration: underline;
}

.blog-card .read-more::after,
.blog-card .read-more-button::after {
    content: '»';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.blog-card .read-more:hover::after,
.blog-card .read-more-button:hover::after {
    transform: translateX(3px);
}

/* Estilos do Modal */
.modal-noticia {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-noticia-content {
  background: #fff;
  padding: 0;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto; /* Mantém a funcionalidade de scroll */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge */
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  position: relative;
}

/* Esconde a scrollbar para Chrome, Safari e Opera */
.modal-noticia-content::-webkit-scrollbar {
  display: none;
}

.modal-header {
  padding: 25px 30px 15px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  border-radius: 16px 16px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-noticia-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
}

.modal-noticia-content .modal-data {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 0;
  font-weight: 400;
}

.modal-body {
  padding: 25px 30px;
}

.modal-noticia-content p {
  font-size: 16px;
  color: #34495e;
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  transform: scale(1.1);
}

/* Css do carrossel do modal de notícias */
.carrossel-container {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    width: 70%;
    height: 70%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #f5f5f5;
    min-height: 200px;
    align-self: center;
}

.carrossel {
    display: flex;
    height: 300px;
    position: relative;
    width: 100%;
}

.carrossel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carrossel-img.active {
    opacity: 1;
    z-index: 0;
}

/* Garante que o container do carrossel tenha altura suficiente */
.carrossel-container {
    height: 300px;
    position: relative;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .carrossel-container {
        height: 200px;
    }
}

.carrossel-img.active {
    opacity: 1;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.carrossel-indicadores {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
    position: relative; /* Mude de absolute para relative */
    margin-top: -30px; /* Ajuste conforme necessário */
    padding-bottom: 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
}

.indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.2);
}

.indicador.active {
    background: #4fb8e7;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carrossel {
        height: 200px;
    }
    
    .carrossel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .blog-title,
  .subtitulo .pincel,
  .section-header h2 {
    font-size: 24px;
  }

  .evento-card,
  .blog-card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .blog-content p {
    font-size: 13px;
  }

  .main-nav ul li a {
    font-size: 15px;
  }
}