/* ==========================================================
   page-index.css — Estilos exclusivos da página inicial
   ========================================================== */

/* ── SECTION LABEL ────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 18px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── FEATURED SECTION ─────────────────────────────────────── */
.featured { padding: 48px 0 0; }

.featured-row1 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

.featured-row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── BASE CARD ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── HERO CARD ────────────────────────────────────────────── */
.card-hero { display: flex; flex-direction: column; }
.card-hero .thumb { height: 340px; overflow: hidden; position: relative; }
.card-hero .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-hero:hover .thumb img { transform: scale(1.03); }
.card-hero .body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-hero h2 { font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--text); }
.card-hero h2 a:hover { color: var(--brand); }
.card-hero p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.card-meta span { display: flex; align-items: center; gap: 5px; }

/* ── SIDEBAR CARDS ────────────────────────────────────────── */
.card-sidebar { display: flex; flex-direction: column; gap: 16px; }

.card-sm {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow .2s, transform .2s;
}
.card-sm:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-sm .thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.card-sm .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-sm .info { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-sm h3 { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.card-sm h3 a:hover { color: var(--brand); }
.card-sm .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; }

/* ── MEDIUM CARDS ─────────────────────────────────────────── */
.card-md { display: flex; flex-direction: column; }
.card-md .thumb { height: 200px; overflow: hidden; }
.card-md .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-md:hover .thumb img { transform: scale(1.04); }
.card-md .body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-md h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.card-md h3 a:hover { color: var(--brand); }
.card-md p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-md .footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.btn-see {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-see:hover { background: var(--brand-light); }

/* ── POST CARDS (latest) ──────────────────────────────────── */
.latest { padding-bottom: 64px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-post { display: flex; flex-direction: column; }
.card-post .thumb { height: 180px; overflow: hidden; }
.card-post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-post:hover .thumb img { transform: scale(1.04); }
.card-post .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-post h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.card-post h3 a:hover { color: var(--brand); }
.card-post p { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-post .meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-top: auto; }

/* ── PROMO BANNER ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0 0 48px; }

.promo-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 48px;
}
.promo-banner .text h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.promo-banner .text p { font-size: 14px; color: rgba(255,255,255,.85); }

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  border: none;
  border-radius: 99px;
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s;
  text-decoration: none;
}
.btn-promo:hover { transform: scale(1.03); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-row1 { grid-template-columns: 1fr; }
  .card-sidebar { flex-direction: row; }
  .card-sm { flex: 1; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .featured-row2 { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
  .card-sidebar { flex-direction: column; }
}
