/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f9f9f9;
  color: #111;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  background: #0b3d91; /* Azul escuro Wcode */
  padding: 15px 0;
}

.header .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-size: 1.6em;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  color: #ffcc00;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav a {
  color: #e6eefc;
  text-decoration: none;
  font-size: 0.95em;
  transition: 0.3s;
}

.nav a:hover {
  color: #00a1ff;
}

/* ===== BANNER ===== */
.blog-banner {
  background: linear-gradient(135deg, #0b3d91 0%, #00a1ff 60%, #ffcc00 95%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.blog-banner h1 {
  font-size: 2.4em;
  margin-bottom: 15px;
}

.blog-banner p {
  font-size: 1.05em;
}

/* ===== PESQUISA ===== */
.search-section {
  text-align: center;
  padding: 30px 0;
  background: #fff;
}

.search-section input {
  width: 70%;
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid #d6e7ff;
  font-size: 1em;
  outline: none;
  transition: 0.25s;
  background: #fbfdff;
}

.search-section input:focus {
  border-color: #00a1ff;
  box-shadow: 0 4px 14px rgba(0,161,255,0.08);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.blog-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 90%;
  margin: 40px auto;
  gap: 30px;
}

/* ===== POSTS ===== */
.posts-area {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(11,61,145,0.06);
  transition: transform 0.28s, box-shadow 0.28s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(11,61,145,0.09);
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.post-content h2 {
  color: #0b3d91;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.post-content p {
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.85em;
  color: #777;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.btn-leia {
  align-self: flex-start;
  background: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.btn-leia:hover {
  background: #0b3d91;
  color: #fff;
  border: 1px solid #ffcc00;
}

/* ===== SIDEBAR ===== */
.sidebar {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(11,61,145,0.04);
  min-width: 260px;
}

.sidebar-box {
  margin-bottom: 30px;
}

.sidebar-box h3 {
  margin-bottom: 10px;
  color: #0b3d91;
  font-size: 1.08em;
  border-left: 4px solid #ffcc00;
  padding-left: 10px;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box ul li {
  margin: 8px 0;
}

.sidebar-box ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95em;
}

.sidebar-box ul li a:hover {
  color: #00a1ff;
}

.tags .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags .tag-list a {
  background: #f0f7ff;
  color: #0b3d91;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  transition: 0.18s;
}

.tags .tag-list a:hover {
  background: #00a1ff;
  color: #fff;
}

/* ===== FOOTER ===== */
.footer {
  background: #0b3d91;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9em;
  margin-top: 50px;
}

/* ===== BLOG INTRO ===== */
.blog-intro {
  background: linear-gradient(135deg, #003366, #0055a5);
  color: #fff;
  padding: 80px 20px;
}

.blog-intro .blog-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.blog-text {
  flex: 1 1 400px;
  padding: 20px;
}

.blog-text h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-text span {
  color: #ffcc00;
  font-weight: bold;
}

.blog-text p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.blog-btn {
  background: #ffcc00;
  color: #000;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.blog-btn:hover {
  background: #00a1ff;
  color: #fff;
}

.blog-image img {
  width: 350px;
  max-width: 100%;
  border-radius: 20px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
  .blog-container {
    flex-direction: column;
  }

  .posts-area, .sidebar {
    flex: 1 1 100%;
  }

  .search-section input {
    width: 85%;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    justify-content: center;
    margin-top: 10px;
  }

  .blog-banner h1 {
    font-size: 1.9em;
  }

  .blog-intro {
    padding: 60px 15px;
  }

  .blog-text h1 {
    font-size: 1.8rem;
  }

  .blog-image {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .blog-text h1 {
    font-size: 1.5rem;
  }

  .blog-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .search-section input {
    width: 95%;
  }

  .footer {
    font-size: 0.85em;
  }
}

/* ===== ESTILOS ADICIONAIS ===== */


/* Blog Posts */
.blog-posts {
  padding: 80px 10%;
  background: #f8fafc;
  text-align: center;
}

.blog-posts .section-title {
  font-size: 2rem;
  color: #003366;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-posts .section-subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
  text-align: left;
}

.post-title {
  font-size: 1.25rem;
  color: #003366;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-excerpt {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #fff;
  background: #003366;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #00509e;
}
