/* ============================================================
   educacao-sistema-financeiro-nacional.css
   Página: Educação / Sistema Financeiro Nacional
   Depende de: main-educacao.css + variáveis globais de tema
   ============================================================ */

/* ── VISUAL: ORGANOGRAMA DO SFN ───────────────────────────── */
.visual-section {
  margin: 3.5rem 0;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(0, 200, 83, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(201, 168, 76, 0.10), transparent 32%),
    var(--bg-2, #0f1512);
  border-top: 1px solid var(--muted-3, rgba(255,255,255,0.10));
  border-bottom: 1px solid var(--muted-3, rgba(255,255,255,0.10));
}

.visual-section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.visual-label {
  color: var(--green, #00c853);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.6rem;
}

.visual-title {
  color: var(--white, #ffffff);
  font-family: var(--font-display, serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 2rem;
}

.sfn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sfn-pilar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sfn-conselho,
.sfn-executor {
  border: 1px solid var(--muted-3, rgba(255,255,255,0.12));
  background: var(--bg-card, rgba(255,255,255,0.04));
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.sfn-conselho {
  padding: 1.35rem;
  min-height: 178px;
}

.sfn-conselho.cmn {
  border-color: var(--green-border, rgba(0,200,83,0.32));
  background: linear-gradient(180deg, rgba(0,200,83,0.12), rgba(0,200,83,0.03));
}

.sfn-conselho.cnsp {
  border-color: var(--gold-border, rgba(201,168,76,0.34));
  background: linear-gradient(180deg, rgba(201,168,76,0.13), rgba(201,168,76,0.03));
}

.sfn-conselho.cnpc {
  border-color: rgba(126, 151, 255, 0.34);
  background: linear-gradient(180deg, rgba(126,151,255,0.13), rgba(126,151,255,0.03));
}

.sfn-sigla {
  font-family: var(--font-display, serif);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.sfn-conselho.cmn .sfn-sigla { color: var(--green, #00c853); }
.sfn-conselho.cnsp .sfn-sigla { color: var(--gold, #c9a84c); }
.sfn-conselho.cnpc .sfn-sigla { color: #7e97ff; }

.sfn-nome {
  color: var(--white, #ffffff);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.sfn-desc {
  color: var(--muted-1, rgba(255,255,255,0.72));
  font-size: 0.88rem;
  line-height: 1.55;
}

.sfn-seta {
  width: 2px;
  height: 34px;
  margin: 0.35rem auto;
  background: var(--muted-3, rgba(255,255,255,0.18));
  position: relative;
}

.sfn-seta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--muted-3, rgba(255,255,255,0.18));
}

.sfn-executores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  flex: 1;
}

.sfn-executor {
  padding: 1.1rem;
}

.sfn-exec-sigla {
  color: var(--green, #00c853);
  font-family: var(--font-display, serif);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.sfn-pilar:nth-child(2) .sfn-exec-sigla { color: var(--gold, #c9a84c); }
.sfn-pilar:nth-child(3) .sfn-exec-sigla { color: #7e97ff; }

.sfn-exec-nome {
  color: var(--white, #ffffff);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.sfn-exec-desc {
  color: var(--muted-1, rgba(255,255,255,0.72));
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ── COMPONENTES DE APOIO DA PÁGINA ─────────────────────── */

.pull-quote {
  margin: 2.5rem 0;
  padding: 1.65rem 1.8rem;
  border-left: 4px solid var(--green, #00c853);
  border-radius: 16px;
  background: var(--bg-card, rgba(255,255,255,0.04));
}

.pull-quote p {
  margin: 0;
  color: var(--white, #ffffff);
  font-family: var(--font-display, serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--green-border, rgba(0,200,83,0.28));
  background: linear-gradient(135deg, rgba(0,200,83,0.11), rgba(201,168,76,0.08));
}

.article-cta h3 {
  margin: 0 0 0.35rem;
}

.article-cta p {
  margin: 0;
}

/* ── LIGHT MODE ─────────────────────────────────────────── */
html.light-mode .visual-section,
html[data-theme="light"] .visual-section {
  background:
    radial-gradient(circle at top left, rgba(0, 200, 83, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(201, 168, 76, 0.12), transparent 32%),
    #f4f7f5;
}

html.light-mode .visual-title,
html[data-theme="light"] .visual-title,
html.light-mode .sfn-nome,
html[data-theme="light"] .sfn-nome,
html.light-mode .sfn-exec-nome,
html[data-theme="light"] .sfn-exec-nome,
html.light-mode .pull-quote p,
html[data-theme="light"] .pull-quote p {
  color: #132019;
}

html.light-mode .sfn-conselho,
html[data-theme="light"] .sfn-conselho,
html.light-mode .sfn-executor,
html[data-theme="light"] .sfn-executor,
html.light-mode .pull-quote,
html[data-theme="light"] .pull-quote {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(19,32,25,0.08);
}

html.light-mode .sfn-desc,
html[data-theme="light"] .sfn-desc,
html.light-mode .sfn-exec-desc,
html[data-theme="light"] .sfn-exec-desc {
  color: #526158;
}

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sfn-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .sfn-conselho {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .visual-section {
    margin: 2.5rem 0;
    padding: 2.25rem 1rem;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .warning-box {
    flex-direction: column;
  }
}
