/* Reseta margens e paddings */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background-color: #181a2a;
  color: white;
}

/* CABEÇALHO */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

header nav ul {
  display: flex;
  gap: 3rem;
}

ul li {
  list-style: none;
}

ul li a {
  text-decoration: none;
  color: white;
}

header input {
  border-radius: 0.5rem;
  padding: 0.8rem;
  background-color: #242535;
  border: none;
}



/* MAIN */
main {
    padding: 2.0rem;
}
.Banner_Principa {
  position: relative;
}

.Banner_Principa img {
  width: 100%;
  height: 40rem;
  filter: brightness(50%);
  object-fit: cover;
}

.text_titulo {
  position: absolute;
  top: 50%;
  left: 10rem;
  transform: translateY(-50%);
  width: 35rem;
  font-size: 2.5rem;
  z-index: 10;
}


.blogs_container h1:nth-child(1){
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Estilo do card */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Estilo do card */
.card {
  flex: 1 1 30%; 
  min-width: 250px; 
  max-width: 320px; 
  background-color: #242535;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

/* Título dentro do card */
.card h1 {
  font-size: 1.8rem;
  margin-bottom: 10px; /* Ajuste o margin conforme necessário */
}

.card a {
  color: #00bcd4;
  text-decoration: none;
}

/* Tag dentro do card */
.card .tag {
  font-size: 1.4rem;
  margin-bottom: 15px; 
}

/* Ajuste no container dos links */
.formatacao_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  gap: 5px; 
  height: 100%;
}

/* Links estilizados */
.links {
  text-decoration: none;
  color: #00bcd4;
  margin-bottom: 5px; 
}

.links:hover {
  text-decoration: underline;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
  .card {
    flex: 1 1 45%; /* 2 cards por linha em telas médias */
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 100%; /* 1 card por linha em telas pequenas */
  }
}

