/* ==============================================
   Seção de Notícias — News Section Widget
   Editorial · Responsivo · Elementor
   ============================================== */

/* ── Variáveis ─────────────────────────────── */
.nbs-section {
  --nbs-font-serif: 'Playfair Display', Georgia, serif;
  --nbs-font-sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --nbs-ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   WRAPPER DA SEÇÃO
   ═══════════════════════════════════════════ */
.nbs-section {
  position: relative;
  background: #f04e5a; /* sobrescrito pelo Elementor */
  padding: 40px;       /* sobrescrito pelo Elementor */
  font-family: var(--nbs-font-sans);
}

/* ═══════════════════════════════════════════
   CABEÇALHO — TÍTULO DA SEÇÃO
   ═══════════════════════════════════════════ */
.nbs-section-title {
  /* Defaults — sobrescritos pelo Elementor */
  font-family: var(--nbs-font-sans);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 28px 0;
  padding: 0;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   GRID — DESTAQUE + LATERAL
   ═══════════════════════════════════════════ */
.nbs-grid {
  display: flex;
  align-items: stretch;
  gap: 48px; /* sobrescrito pelo controle */
}

/* ═══════════════════════════════════════════
   POST DESTAQUE (coluna esquerda)
   ═══════════════════════════════════════════ */
.nbs-featured {
  flex: 0 0 62%; /* sobrescrito pelo controle */
  min-width: 0;
}

.nbs-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Imagem do destaque */
.nbs-featured-image-wrap {
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 16px;
}

.nbs-featured-image {
  width: 100%;
  height: 430px;    /* sobrescrito pelo Elementor */
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s var(--nbs-ease);
}

.nbs-featured-link:hover .nbs-featured-image { transform: scale(1.03); }

/* Corpo do destaque */
.nbs-featured-body { padding-top: 4px; }

.nbs-featured .nbs-cat {
  /* Defaults — Tipografia pelo Elementor */
  display: block;
  font-family: var(--nbs-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 10px;
}

.nbs-featured .nbs-post-title {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--nbs-font-serif);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111111;
  margin: 0 0 12px 0;
  padding: 0;
  transition: opacity 0.2s;
}

.nbs-featured-link:hover .nbs-featured .nbs-post-title { opacity: 0.75; }

.nbs-featured .nbs-excerpt {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--nbs-font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: #222222;
  margin: 0 0 14px 0;
  padding: 0;
}

.nbs-featured .nbs-meta {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--nbs-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

/* ═══════════════════════════════════════════
   DIVISOR VERTICAL
   ═══════════════════════════════════════════ */
.nbs-divider {
  flex-shrink: 0;
  width: 1px;  /* sobrescrito pelo Elementor */
  background: rgba(0,0,0,0.18);
  align-self: stretch;
}

/* ═══════════════════════════════════════════
   SIDEBAR (coluna direita)
   ═══════════════════════════════════════════ */
.nbs-sidebar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nbs-sidebar-item {
  flex: 1;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.nbs-sidebar-item:first-child { border-top: none; padding-top: 0; }
.nbs-sidebar-item:last-child  { padding-bottom: 0; }

.nbs-sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.nbs-sidebar-text { flex: 1; min-width: 0; }

/* Categoria lateral */
.nbs-sidebar-item .nbs-cat {
  /* Defaults — Tipografia pelo Elementor */
  display: block;
  font-family: var(--nbs-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 6px;
}

/* Título lateral */
.nbs-sidebar-item .nbs-post-title {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--nbs-font-serif);
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: #111111;
  margin: 0 0 8px 0;
  padding: 0;
  transition: opacity 0.2s;
}

.nbs-sidebar-link:hover .nbs-sidebar-item .nbs-post-title { opacity: 0.7; }

/* Meta lateral */
.nbs-sidebar-item .nbs-meta {
  /* Defaults — Tipografia pelo Elementor */
  font-family: var(--nbs-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
  padding: 0;
}

/* Thumbnail lateral */
.nbs-thumb {
  flex-shrink: 0;
  width: 110px;      /* sobrescrito pelo controle Tamanho do Thumbnail */
  height: 110px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: opacity 0.2s;
}

.nbs-sidebar-link:hover .nbs-thumb { opacity: 0.85; }

/* Separador dentro da meta */
.nbs-sep   { opacity: 0.45; }
.nbs-author,
.nbs-date,
.nbs-read-time { white-space: nowrap; }

/* ═══════════════════════════════════════════
   RODAPÉ — LINK VER MAIS
   ═══════════════════════════════════════════ */
.nbs-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.18);
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}

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

.nbs-more-link:hover { opacity: 0.6; }

/* ═══════════════════════════════════════════
   RESPONSIVO — TABLET (≤ 1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nbs-section { padding: 28px 24px; }

  .nbs-featured { flex: 0 0 55%; }

  .nbs-featured .nbs-post-title { font-size: 26px; }

  .nbs-sidebar-item .nbs-post-title { font-size: 15px; }

  .nbs-thumb { width: 90px; height: 90px; flex: 0 0 90px; }

  .nbs-grid { gap: 28px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVO — MOBILE (≤ 767px)
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
  .nbs-section { padding: 24px 18px; }

  /* Grid empilha: destaque acima, lateral abaixo */
  .nbs-grid {
    flex-direction: column;
    gap: 24px;
  }

  .nbs-featured { flex: none; width: 100%; }

  .nbs-divider { display: none; }

  /* Sidebar vira grid 2 colunas no mobile */
  .nbs-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .nbs-sidebar-item {
    border-top: none;
    border-left: 3px solid rgba(0,0,0,0.12);
    padding: 0 0 0 12px;
  }

  .nbs-sidebar-item:first-child { border-left-color: rgba(0,0,0,0.12); }

  /* Thumbnail some no mobile para não abarrotar */
  .nbs-thumb { display: none; }

  .nbs-featured .nbs-post-title  { font-size: 24px; }
  .nbs-section-title             { font-size: 24px; }
  .nbs-sidebar-item .nbs-post-title { font-size: 14px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVO — MOBILE PEQUENO (≤ 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .nbs-sidebar {
    grid-template-columns: 1fr;
  }

  .nbs-sidebar-item {
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.12);
    padding: 12px 0 0;
  }

  .nbs-sidebar-item:first-child { border-top: none; padding-top: 0; }
}

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

.nbs-section-title { animation: nbs-fade-in 0.4s ease both; }
.nbs-featured      { animation: nbs-fade-in 0.45s 0.05s ease both; }
.nbs-sidebar-item  { animation: nbs-fade-in 0.4s  0.10s ease both; }

@media (prefers-reduced-motion: reduce) {
  .nbs-section-title,
  .nbs-featured,
  .nbs-sidebar-item,
  .nbs-featured-image { animation: none !important; transition: none !important; }
}
