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

html,
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
}

header {
  text-align: center;
  padding-top: 20px;
  width: 100%;
  padding-bottom: 10px;
}

header h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #222;
  margin-bottom: 14px;
}

nav {
  background: #53B376;
  padding: 15px 0;
  width: 100%;
}

.nav-link {
  padding: 20px;
  text-decoration: none;
  color: #fff;
}

.nav-link:hover {
  color: #EAC27B;
}

main {
  display: grid;
  grid-template-columns: 0.4fr 0.3fr 0.3fr;
  grid-template-rows: auto auto auto auto auto;
  gap: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
}

/* Layout Grid */
.hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.hero img {
  width: 100%;
  border-radius: 12px;
}

.main-content {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.sidebar {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
}

.extra-content {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  background: #eaeaea;
  padding: 20px;
  border-radius: 12px;
}

.related-images {
  grid-column: 1 / 2;
  grid-row: 4;
  background: #e6f7f1;
  padding: 20px;
  border-radius: 12px;
}

.related-images img {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

.related-posts {
  grid-column: 2 / 3;
  grid-row: 4;
  background: #fff7e6;
  padding: 20px;
  border-radius: 12px;
}

footer {
  grid-column: 1 / 4;
  grid-row: 5;
  text-align: center;
  padding: 20px;
  background: #53B376;
  color: #fff;
  border-radius: 8px;
}

/* Tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
}

td a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

td a:hover {
  color: #EAC27B;
}

/* Responsivo */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero,
  .main-content,
  .sidebar,
  .extra-content,
  .related-images,
  .related-posts,
  footer {
    grid-column: 1;
  }
}
