/* ═══════════════════════════════════════════════════════════════
   FEDESPMG · sub-pages.css  —  Mobile-first
   Page hero · Breadcrumb · Person cards · Timeline · News filters
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE HERO (interna) ─────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  padding: calc(var(--nav-h) + 40px) 0 56px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(200,32,30,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(47,74,147,0.3) 0%, transparent 65%);
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 800px;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}
.page-hero h1 em { color: var(--red-500); font-weight: inherit; }
.page-hero p {
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  text-wrap: pretty;
}
.page-hero .eyebrow {
  color: var(--red-500);
}
.page-hero .eyebrow::before { background: var(--red-500); }

@media (min-width: 1024px) {
  .page-hero { padding: calc(var(--nav-h) + 64px) 0 80px; }
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: 0.4; }
.breadcrumb span.current {
  color: #fff; font-weight: 600;
}
/* Light variant on light pages */
.breadcrumb-light {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb-light a { color: var(--text-muted); }
.breadcrumb-light a:hover { color: var(--text); }
.breadcrumb-light span.current { color: var(--text); }

/* ── SECTION (page body) ─────────────────────────────────── */
.page-section {
  padding: 64px 0;
}
.page-section + .page-section { padding-top: 0; }
@media (min-width: 1024px) {
  .page-section { padding: 80px 0; }
}

.page-section-title {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.page-section-title-num {
  font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
  font-size: 13px; font-weight: 600;
  color: var(--red-600);
  letter-spacing: 0.08em;
}
.page-section-title h2 {
  font-size: clamp(22px, 2.5vw + 12px, 32px);
  margin: 0;
  flex: 1;
}
.page-section-title h2 em { color: var(--red-600); }

@media (min-width: 768px) {
  .page-section-title { margin-bottom: 36px; padding-bottom: 20px; }
}

/* ── PERSON CARDS (Estrutura) — todos iguais, equidade ──── */
.persons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .persons-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1024px) { .persons-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.person-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  position: relative;
}
.person-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.person-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.person-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.person-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.person-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.person-meta-item .ico {
  color: var(--text-muted);
  flex-shrink: 0;
}
.person-meta-item a {
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.person-meta-item a:hover { color: var(--red-600); }

@media (min-width: 768px) {
  .person-card { padding: 24px; min-height: 180px; }
  .person-name { font-size: 17px; }
}

/* ── DIRETORIA group subtitles ───────────────────────────── */
.group-subtitle {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.group-subtitle::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

.group-block + .group-block { margin-top: 40px; }

/* ── VALUE CARDS (Quem Somos) ────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.3s var(--ease);
}
.value-card:hover {
  border-color: var(--red-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.value-card .card-icon {
  background: var(--red-50); color: var(--red-600);
  margin-bottom: 18px;
}
.value-card h3 {
  font-size: 19px; margin-bottom: 10px;
}
.value-card p {
  font-size: 14.5px; line-height: 1.65;
  color: var(--text-soft);
}

/* ── TIMELINE (Quem Somos · histórico institucional) ────── */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute; top: 8px; bottom: 8px;
  left: 10px; width: 1.5px;
  background: var(--border);
}
.timeline-item {
  position: relative; padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -23px; top: 6px;
  width: 12px; height: 12px;
  background: var(--red-600);
  border: 3px solid var(--bg);
  border-radius: var(--r-full);
  box-shadow: 0 0 0 1.5px var(--red-600);
}
.timeline-year {
  font-size: 13px; font-weight: 700;
  color: var(--red-600);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 17px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.timeline-text {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-soft);
}
@media (min-width: 768px) {
  .timeline { padding-left: 36px; }
  .timeline::before { left: 14px; }
  .timeline-item::before { left: -27px; }
  .timeline-title { font-size: 18px; }
}

/* ── NEWS LISTING PAGE ───────────────────────────────────── */
.news-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.news-filter {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  min-height: 36px;
  display: inline-flex; align-items: center; gap: 8px;
}
.news-filter:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.news-filter.active {
  background: var(--navy-900); color: #fff;
  border-color: var(--navy-900);
}
.news-filter-count {
  font-size: 11px; opacity: 0.7;
  padding: 1px 7px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-full);
}
.news-filter:not(.active) .news-filter-count {
  background: rgba(10,18,40,0.06);
}

/* News listing grid uses .news-grid + .news-card from pages.css */
.news-listing {
  margin-bottom: 48px;
}

.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.pagination-btn {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  font-size: 14px; font-weight: 500;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.pagination-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.pagination-btn.active {
  background: var(--navy-900); color: #fff;
  border-color: var(--navy-900);
}
.pagination-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}

/* ── INFO BLOCK (sidebar / cta inside pages) ─────────────── */
.info-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.info-block-icon {
  width: 40px; height: 40px;
  background: var(--red-100); color: var(--red-600);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-block h3 {
  font-size: 17px; margin-bottom: 8px;
}
.info-block p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-soft); margin-bottom: 16px;
}
.info-block .btn { width: 100%; }
