/* Seção principal */
.obituario-section {
  padding: 70px 0;
  background: linear-gradient(to bottom, #f8f9fb, #edf0f5);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
}
.img-fluid{
  border-radius: 12px 12px 12px 12px;
}
/* Card */
.card-obituario {
  width: 100%;
  max-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}
/* nome dos falecidos nos cards*/
.member-info h4 {
  font-family: 'Merriweather', serif; /* Elegante e legível */
  font-weight: 600;
  color: #2c2c2c;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 5px;
  line-height: 1.3;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

.card-obituario:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-obituario img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  transition: filter 0.3s ease;
  filter: grayscale(10%) contrast(1.05);
  border-radius: 12px 12px 12px 12px;
  margin-top: 10px;
  cursor: pointer;
}

.card-obituario h5 {
  margin: 15px 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  font-family: 'Merriweather', serif;
  line-height: 1.3;
}

/* Resultado da busca */
#search-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

/* Formulário */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.newsletter-form input[type="text"] {
  flex: 1 1 320px;
  padding: 12px 18px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #2c3e50;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.newsletter-form input[type="text"]::placeholder {
  color: #999;
  font-weight: 400;
}

.newsletter-form input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

/* Botão */
.newsletter-form input[type="submit"] {
  padding: 12px 28px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-form input[type="submit"]:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.2);
}

.newsletter-form input[type="submit"]:active {
  background-color: #004999;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
/* nome dos falecidos nos cards*/

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .member-info h4 {
    font-size: 1.1rem;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .member-info h4 {
    font-size: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .member-info h4 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="submit"] {
    width: 100%;
    flex: unset;
  }

  #search-results {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .newsletter-form input[type="text"] {
    flex: 1 1 400px;
  }

  .newsletter-form input[type="submit"] {
    flex: 0 0 auto;
  }
}



