/* ==========================
   WP Blog Latest Posts - Base visual refinado
   ========================== */

.section-blog,
.section-blog * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wblp-section.section-blog {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0 20px;
  gap: 20px;
  font-family: 'D-DIN', sans-serif;
}

/* ====== Estrutura das colunas ====== */
.wblp-section .column {
  width: 100%;
}

/* ====== Imagens ====== */
.wblp-section .img-principal {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 350px;
  background-color: #d8d8d8;
  border-radius: 4px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wblp-section .img-principal:hover {
  transform: scale(1.02);
}

/* ====== Metainfos ====== */
.wblp-meta {
  margin: 10px 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wblp-meta span {
  font-weight: 400;
  font-size: 12px;
  color: #ffb703; /* amarelo padrão */
  line-height: 100%;
}

.wblp-meta strong {
  color: #333;
}

/* ====== Títulos ====== */
.wblp-section h3 {
  margin: 8px 0;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.wblp-section h3 a {
  color: inherit;
  text-decoration: none;
}

.wblp-section h3:hover {
  color: #ffb703;
}

/* ====== Texto ====== */
.wblp-section p {
  font-weight: 400;
  font-size: 13px;
  color: #a4a4a4;
  line-height: 1.4;
}

/* ===============================
   Última coluna - Posts antigos
   =============================== */

/* ===============================
   Posts principais - link envolvendo todo o card
   =============================== */
.post-principal {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-principal .meta {
  margin: 10px 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ffb703;
}

.post-principal h3 {
  margin: 8px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #000;
}

.post-principal h3:hover {
  color: #ffb703;
}

.post-principal p {
  font-size: 13px;
  color: #a4a4a4;
  line-height: 1.4;
  margin: 0;
}

.old-post {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
  text-decoration: none;
}

.old-post img.img-secondary {
  width: 35%;
  min-height: 50px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #d8d8d8;
}

.old-post .text {
  width: 63%;
}

.old-post .text h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 5px 0;
  color: #000;
}

.old-post .text h3 a {
  color: inherit;
  text-decoration: none;
}

.old-post .text p {
  font-size: 12px;
  color: #a4a4a4;
  line-height: 1.3;
  margin: 0;
}

.old-post .text span {
  font-size: 11px;
  color: #ffb703;
  margin-right: 4px;
}

/* ====== Responsividade ====== */
@media (max-width: 980px) {
  .wblp-section.section-blog {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
  }

  .wblp-section.section-blog > .column:nth-child(2) {
    display: none !important;
  }

  .wblp-section.section-blog > .column:nth-child(1) {
    grid-column: 1 / 2;
  }

  .wblp-section.section-blog > .column:nth-child(3):not(.column--mobile-only) {
    grid-column: 2 / 3;
  }

  .wblp-section.section-blog > .column.column--mobile-only {
    display: none;
  }
}

/* ====== Mobile ====== */
@media (max-width: 780px) {
  .wblp-section.section-blog {
    display: block;
    padding: 0;
  }

  .wblp-section.section-blog > .column {
    margin-bottom: 18px;
  }

  .wblp-section .img-principal {
    max-width: 100%;
    height: auto;
  }
}
