
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 5%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 5%;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 10px 0;
  }

  nav a {
    padding: 10px 5%;
    border-top: 1px solid #eee;
  }

  nav.active {
    display: flex;
  }

  .subscribe-btn {
    margin-top: 10px;
    width: 100%;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.subscribe-btn {
  background: black;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  background: url('39.jpeg') no-repeat center/cover;
  color: white;
  padding: 200px 5% 50px;
  position: relative;
  text-align: left;
}

.hero .tag {
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  opacity: 0.9;
}

/* CATEGORIES */
.categories {
  padding: 60px 5%;
}

.categories h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #f5f5f5;
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-text {
  padding: 20px;
  background-color: white;
}

.card-text h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #111;
}

.card-text p {
  font-size: 0.95rem;
  color: #444;
}

/* POPULAR POSTS */
.popular-posts {
  padding: 40px 5%;
}

.popular-posts ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 1rem;
}

/* NEWSLETTER */
.newsletter {
  background: #111;
  color: white;
  text-align: center;
  padding: 80px 5%;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.newsletter p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: 10px;
  border-radius: 30px;
  border: none;
  width: 300px;
  max-width: 100%;
}

.newsletter button {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
  font-weight: bold;
}

/* FEATURED ARTICLE */
.featured-article {
  padding: 60px 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.featured-article .post {
  flex: 2;
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 15px;
}

.featured-article .post h3 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.featured-article .author {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article .author p {
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
  }

  .category-list {
    flex-direction: column;
    align-items: center;
  }

  .featured-article {
    flex-direction: column;
  }

  .hero {
    padding: 120px 5% 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
.contact {
  padding: 80px 5%;
  background: #f9f9f9;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 30px;
  opacity: 0.8;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact button {
  padding: 15px;
  background: black;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.contact button:hover {
  background: #333;
}
/* Menu Hamburguer - Toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
}

/* Esconde o menu em telas pequenas */
#nav-menu {
  display: flex;
  gap: 20px;
}

/* Versão responsiva */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  #nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px; /* ajusta abaixo do header */
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 9;
  }

  #nav-menu a {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    width: 100%;
  }

  #nav-menu.active {
    display: flex;
  }

  .subscribe-btn {
    width: 100%;
    margin-top: 10px;
  }
}
