/* =====================================================================
   Seção Eventos — Seminários no IEA e Congressos e participações
   Paleta do site: #0E1B2A · #3565a0 · #96b5dc · #c2d4eb
   ===================================================================== */
:root {
  --ev-tinta: #0E1B2A;
  --ev-azul: #3565a0;
  --ev-claro: #96b5dc;
  --ev-nevoa: #c2d4eb;
  --ev-fundo: #f4f7fb;
  --ev-serif: Georgia, "Times New Roman", serif;
}

/* ---------- Cabeçalho das páginas ---------- */
#title-block-header .title { font-family: var(--ev-serif); color: var(--ev-tinta); }
#title-block-header .subtitle { color: #4a5a6d; font-size: 1.05rem; max-width: 60ch; }
.sem-titulo .anchorjs-link, .lt-titulo .anchorjs-link { display: none !important; }

/* ---------- Seminários no IEA: grade de cards ---------- */
.sem-grid {
  display: grid;
  /* no máximo 3 colunas, mínimo 250px por card */
  grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 3.5rem) / 3)), 1fr));
  gap: 1.75rem;
  padding: 0;
  margin-top: 1rem;
}
.sem-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--ev-nevoa);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sem-card:hover {
  border-color: var(--ev-claro);
  box-shadow: 0 6px 18px rgba(14, 27, 42, .08);
  transform: translateY(-2px);
}
.sem-capa {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ev-tinta), var(--ev-azul));
  overflow: hidden;
}
.sem-capa img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85);
  transition: filter .2s;
}
.sem-card:hover .sem-capa img { filter: none; }
.sem-play {
  position: absolute; left: 1rem; bottom: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(14, 27, 42, .78);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.sem-play::after {
  content: ""; position: absolute; left: 16px; top: 12px;
  border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}
.sem-corpo { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.sem-quando { margin: 0 0 .35rem; font-size: .85rem; color: var(--ev-azul); font-variant-numeric: tabular-nums; }
.sem-titulo { font-family: var(--ev-serif); font-size: 1.12rem; line-height: 1.35; margin: 0 0 .6rem; font-weight: normal; }
.sem-titulo a { color: var(--ev-tinta); text-decoration: none; }
.sem-titulo a:hover { color: var(--ev-azul); }
.sem-pessoas { font-size: .88rem; color: #4a5a6d; margin: 0 0 .9rem; line-height: 1.45; }
.sem-temas { margin-top: auto; display: flex; flex-wrap: wrap; gap: .35rem; }
.sem-temas p { margin: 0; display: contents; }
.sem-tema, .lt-tipo {
  display: inline-block;
  font-size: .75rem; line-height: 1;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: var(--ev-fundo);
  color: var(--ev-azul);
  border: 1px solid var(--ev-nevoa);
  cursor: pointer;
}
.sem-tema:hover, .lt-tipo:hover { background: var(--ev-nevoa); }

/* ---------- Congressos e participações: linha do tempo ---------- */
.linha-tempo { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.lt-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: 1.75rem;
}
.lt-ano {
  font-family: var(--ev-serif);
  font-size: 1.9rem; line-height: 1;
  color: var(--ev-azul);
  text-align: right;
  padding-top: 1.1rem;
  visibility: hidden;
}
.lt-item.abre-ano .lt-ano { visibility: visible; }
.lt-item.abre-ano .lt-conteudo { border-top: 1px solid var(--ev-nevoa); }
.lt-item.abre-ano:first-child .lt-conteudo { border-top: 0; }
.lt-conteudo {
  position: relative;
  border-left: 2px solid var(--ev-nevoa);
  padding: .9rem 0 1.1rem 1.5rem;
}
.lt-conteudo::before {                        /* marcador na linha */
  content: ""; position: absolute; left: -7px; top: 1.45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ev-azul);
}
.previsto .lt-conteudo::before { background: var(--ev-azul); }
.previsto .lt-conteudo { border-left-style: dashed; }
.lt-quando { margin: 0 0 .25rem; font-size: .85rem; color: #4a5a6d; }
.lt-selo {
  display: inline-block; margin-right: .5rem;
  padding: .15rem .5rem; border-radius: 3px;
  background: var(--ev-tinta); color: #fff; font-size: .75rem;
}
.lt-titulo { font-family: var(--ev-serif); font-size: 1.15rem; font-weight: normal; margin: 0 0 .3rem; color: var(--ev-tinta); }
.lt-membros { margin: 0 0 .3rem; font-weight: 600; font-size: .92rem; color: var(--ev-tinta); }
.lt-conteudo p:empty { display: none; }
.lt-detalhe { margin: 0 0 .6rem; font-size: .92rem; color: #334155; max-width: 72ch; line-height: 1.55; }

@media (max-width: 640px) {
  .lt-item { grid-template-columns: 1fr; }
  .lt-ano { text-align: left; padding: 1.2rem 0 .2rem; display: none; }
  .lt-item.abre-ano .lt-ano { display: block; }
  .lt-conteudo { margin-left: .4rem; }
}

/* ---------- Página de cada seminário ---------- */
.quarto-video { border-radius: 6px; overflow: hidden; margin-bottom: 1.5rem; }
.evento-ficha {
  display: grid; grid-template-columns: 8rem 1fr;
  gap: .55rem 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--ev-fundo);
  border-left: 3px solid var(--ev-azul);
  border-radius: 0 6px 6px 0;
  margin: 0 0 1.5rem;
}
.evento-ficha dt { font-weight: 600; color: var(--ev-tinta); margin: 0; }
.evento-ficha dd { margin: 0; color: #334155; line-height: 1.55; }
.evento-acoes { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-evento {
  display: inline-block; padding: .55rem 1rem; border-radius: 4px;
  background: var(--ev-azul); color: #fff !important; text-decoration: none;
  font-size: .9rem; border: 1px solid var(--ev-azul);
}
.btn-evento:hover { background: var(--ev-tinta); border-color: var(--ev-tinta); }
.btn-evento.secundario { background: transparent; color: var(--ev-azul) !important; }
.btn-evento.secundario:hover { background: var(--ev-fundo); }
@media (max-width: 640px) { .evento-ficha { grid-template-columns: 1fr; } .evento-ficha dd { margin-bottom: .5rem; } }

/* Na página inicial os temas são só rótulos (não há filtro de categorias) */
#listing-home-seminarios .sem-tema { pointer-events: none; }
.lt-conteudo > p:last-child { margin-bottom: 0; }

