body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

p {
    text-align: justify;
}

/* Cabeçalho */
header {
  background: #03312E;
  color: white;
  padding: 1rem 0;
  display: flex;
  justify-content: center;  /* Centraliza o conteúdo do header horizontalmente */
  align-items: center;      /* Centraliza o conteúdo do header verticalmente */
  text-align: center;       /* Garantir que o conteúdo textual também seja centralizado */
}
header h1 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
}

header img {
  width: 100%;  /* A imagem ocupa 100% da largura do contêiner */
  max-width: 200px; /* Limita a largura máxima da imagem */
  height: auto; /* Mantém a proporção da imagem */
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffdd57;
}

/* Seções */
.section {
  padding: 2rem 0;
  background: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section:nth-child(even) {
  background: #f4f4f4;
}

.section h2 {
  text-align: center;
  color: #0078d7;
  margin-bottom: 1rem;
}

.section ul {
  list-style: square inside;
  padding-left: 1rem;
}

/* Formulário */
form {
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form button {
  background: #0078d7;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

form button:hover {
  background: #005bb5;
}

#form-status {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
}

/* Footer Styles */
footer {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      align-items: flex-start;
  }

  header nav ul {
      flex-direction: column;
      gap: 0.5rem;
  }
}

/* Container de Serviços */
.card-grid {
  display: flex;
  justify-content: center;  /* Centraliza os cards horizontalmente */
  gap: 2rem;  /* Espaço entre os cards */
  flex-wrap: wrap;  /* Permite que os cards quebrem linha se necessário */
  margin-top: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: calc(33% - 1.33rem);  /* Ajuste para exibir 3 cards por linha */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);  /* Efeito de elevação no hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0078d7;
}

.card p {
  font-size: 1rem;
  color: #333;
}

/* Responsividade: 2 cards em telas menores */
@media (max-width: 768px) {
  .card {
      width: calc(50% - 1rem);  /* 2 cards por linha em telas médias */
  }
}

/* Responsividade: 1 card por linha em telas pequenas */
@media (max-width: 480px) {
  .card {
      width: 100%;  /* 1 card por linha em telas pequenas */
  }
}

/* Responsividade */
@media (max-width: 768px) {
  header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  header img {
      margin: 0 0 0 0;
  }

  nav ul {
      flex-direction: column;
      align-items: center;
  }

  nav ul li {
      margin: 0.5rem 0;
  }

  .section {
      padding: 1.5rem 1rem;
  }

  form {
      padding: 1rem;
      margin: 1.5rem 0;
  }

  form input,
  form textarea {
      font-size: 1rem;
  }

  form button {
      padding: 0.6rem 1.2rem;
  }
  .card {
      width: 100%;  /* Exibe um card por linha em telas menores */
  }
}

@media (max-width: 480px) {
  header h1 {
      font-size: 1.5rem;
  }

  nav ul {
      flex-direction: column;
  }

  nav ul li {
      margin: 0.5rem 0;
  }

  .section {
      padding: 1rem;
  }

  .container {
      padding: 0;
  }

  form {
      padding: 1rem;
  }
  /* Seção do Blog */
#blog article {
  margin-bottom: 1.5rem;
}
#blog h3 {
  color: #0078d7;
}

/* Seção de Atualizações de Portfólio */
#portfolio-updates ul {
  padding-left: 1.5rem;
}
#portfolio-updates li {
  margin-bottom: 0.5rem;
}

/* Seção de Tutoriais */
#tutorials ul {
  padding-left: 1.5rem;
}
#tutorials a {
  color: #0078d7;
}

/* Seção de Dicas de Negócios */
#business-tips p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

/* Seção de Novidades e Depoimentos */
#testimonials p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}
}

