/* ---- Separadores (tabs) dentro dos cards de formacao ---- */
/* Colar no fim do ficheiro formacao.css no servidor */

.formacao-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin: 16px 0 0;
    gap: 0;
}
.formacao-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.3;
}
.formacao-tab-btn:hover {
    color: #003366;
}
.formacao-tab-btn.formacao-tab-ativo {
    color: #003366;
    border-bottom-color: #003366;
}
.formacao-tab-panel {
    display: none;
}
.formacao-tab-panel.formacao-tab-ativo {
    display: block;
    padding: 16px 0;
}
/* ---- Separadores (tabs) ---- */
.formacao-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin: 16px 0 0;
}
.formacao-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.formacao-tab-btn:hover { color: #003366; }
.formacao-tab-btn.formacao-tab-ativo {
    color: #003366;
    border-bottom-color: #003366;
}
.formacao-tab-panel { display: none !important; }
.formacao-tab-panel.formacao-tab-ativo {
    display: block !important;
    padding: 16px 0;
}
.formacao-card {
  background: #f5f5f3;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 12px;
  border: none;
}
.formacao-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}
.formacao-card-toggle {
  font-size: 2em !important;
}
.formacao-thumb {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}
/* =========================================================
   ORDEM CRONOLÓGICA DOS CARTÕES DE FORMAÇÃO
   ========================================================= */

.formacao-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.formacao-wrapper .formacao-card {
    order: initial !important;
}