/* ==============================================
   ENW Grid Split – Grids do Meio Dividido
   Dark editorial grid · card título + thumb
   ============================================== */

.engs-section {
  --engs-font-serif: 'Playfair Display', Georgia, serif;
  --engs-font-sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --engs-red:        #e50000;
  --engs-white:      #ffffff;
  --engs-dim:        rgba(255,255,255,0.4);
  --engs-divider:    rgba(255,255,255,0.1);
  --engs-ease:       cubic-bezier(0.4, 0, 0.2, 1);

  background: #111111;
  padding: 40px 32px 48px;
  font-family: var(--engs-font-sans);
}

/* ═══════════════════════════════════════════
   CABEÇALHO
   ═══════════════════════════════════════════ */
.engs-header {
  margin-bottom: 0;
}

.engs-section-title {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--engs-font-sans);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--engs-white);
  margin: 0 0 24px 0;
  padding: 0;
  line-height: 1;
}

/* Linha divisória horizontal abaixo do título */
.engs-header-divider {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════ */
.engs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* sobrescrito pelo inline <style> */
  column-gap: 24px;
  row-gap: 0;
}

/* ═══════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════ */
.engs-card {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s var(--engs-ease);
}

.engs-card:hover {
  background: rgba(255,255,255,0.04);
}

.engs-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Inner: texto à esquerda, thumb à direita */
.engs-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 16px 20px 0;
  height: 100%;
}

/* ═══════════════════════════════════════════
   TEXTO DO CARD
   ═══════════════════════════════════════════ */
.engs-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Categoria */
.engs-cat {
  /* Defaults — Tipografia pelo Elementor */
  display: block;
  font-family: var(--engs-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--engs-red);
  margin-bottom: 8px;
  line-height: 1;
}

/* Título */
.engs-title {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--engs-font-serif);
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--engs-white);
  margin: 0 0 12px 0;
  padding: 0;
  transition: color 0.2s var(--engs-ease);
}

.engs-card:hover .engs-title {
  color: rgba(255,255,255,0.7);
}

/* Autor */
.engs-author {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--engs-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 4px 0;
  padding: 0;
}

/* Data */
.engs-date {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--engs-font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin: auto 0 0 0; /* empurra para baixo */
  padding: 0;
}

/* ═══════════════════════════════════════════
   THUMBNAIL (lado direito)
   ═══════════════════════════════════════════ */
.engs-thumb-wrap {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  height: 0;
  /* padding-bottom definido inline pelo ratio */
  overflow: hidden;
  border-radius: 4px;
  background: #2a2a2a;
  align-self: flex-start;
}

.engs-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--engs-ease), opacity 0.25s;
}

.engs-card:hover .engs-thumb {
  transform: scale(1.05);
  opacity: 0.88;
}

/* ═══════════════════════════════════════════
   RODAPÉ — LINK "MAIS NOTÍCIAS"
   ═══════════════════════════════════════════ */
.engs-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.engs-more-link {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--engs-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--engs-white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.engs-more-link:hover { opacity: 0.55; }

/* ═══════════════════════════════════════════
   RESPONSIVO — TABLET (≤ 1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .engs-section         { padding: 28px 20px 36px; }
  .engs-section-title   { font-size: 28px; }
  .engs-title           { font-size: 15px; }
  .engs-thumb-wrap      { flex: 0 0 110px; width: 110px; }
  .engs-card-inner      { gap: 12px; padding: 16px 12px 16px 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVO — MOBILE (≤ 767px)
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
  .engs-section         { padding: 24px 16px 32px; }
  .engs-section-title   { font-size: 24px; margin-bottom: 18px; }
  .engs-thumb-wrap      { flex: 0 0 90px; width: 90px; }
  .engs-card-inner      { gap: 10px; padding: 14px 10px 14px 0; }
  .engs-title           { font-size: 14px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVO — MOBILE PEQUENO (≤ 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .engs-thumb-wrap { flex: 0 0 72px; width: 72px; }
  .engs-title      { font-size: 13px; }
  .engs-cat        { font-size: 9px; }
}

/* ═══════════════════════════════════════════
   ANIMAÇÃO DE ENTRADA
   ═══════════════════════════════════════════ */
@keyframes engs-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.engs-section-title { animation: engs-rise 0.4s ease both; }

.engs-card:nth-child(1) { animation: engs-rise 0.4s 0.04s ease both; }
.engs-card:nth-child(2) { animation: engs-rise 0.4s 0.07s ease both; }
.engs-card:nth-child(3) { animation: engs-rise 0.4s 0.10s ease both; }
.engs-card:nth-child(4) { animation: engs-rise 0.4s 0.13s ease both; }
.engs-card:nth-child(5) { animation: engs-rise 0.4s 0.16s ease both; }
.engs-card:nth-child(6) { animation: engs-rise 0.4s 0.18s ease both; }
.engs-card:nth-child(n+7) { animation: engs-rise 0.4s 0.20s ease both; }

@media (prefers-reduced-motion: reduce) {
  .engs-section-title,
  .engs-card { animation: none !important; }
  .engs-thumb { transition: none !important; }
}
