/* CSS ESPECÍFICO PARA O ACCORDION */
.topic-container {
  margin: 35px 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.topic-container details {
  border: none;
  background: transparent;
}

.topic-container summary {
  cursor: pointer;
  position: relative;
  padding: 15px 60px 15px 20px;
  background: linear-gradient(to right, var(--primary) 0%, #003366 100%);
  color: white;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  user-select: none;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Remove marcador padrão do summary */
.topic-container summary::-webkit-details-marker {
  display: none;
}

.topic-container summary::marker {
  display: none;
}

.topic-container summary:hover {
  background: linear-gradient(to right, #004494 0%, #002244 100%);
}

.topic-container summary:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* SVG Seta Indicadora */
.topic-container summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotação da seta quando aberto */
.topic-container details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Título do tópico */
.topic-title {
  flex: 1;
  min-width: 200px;
}

/* Metadados do tópico */
.topic-meta {
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

/* Conteúdo do accordion */
.topic-content {
  background: white;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    padding 0.3s ease;
}

.topic-container details[open] .topic-content {
  max-height: 5000px;
  opacity: 1;
  padding: 25px 30px;
  border-top: 3px solid var(--primary-light);
}

/* Animação suave ao abrir */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-container details[open] .topic-content > * {
  animation: slideDown 0.3s ease-out;
}

/* Mantenha seu CSS existente abaixo */

/* ESTILOS PARA TABELA DE CERTIFICA��O */
.certification-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.certification-table thead {
  background: linear-gradient(to right, var(--primary) 0%, #003366 100%);
  color: white;
}

.certification-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
}

.certification-table th:first-child {
  width: 60%;
}

.certification-table th:not(:first-child) {
  text-align: center;
}

.certification-table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: var(--transition);
}

.certification-table tbody tr:hover {
  background-color: var(--primary-light);
}

.certification-table tbody tr:last-child {
  border-bottom: none;
}

.certification-table td {
  padding: 14px 20px;
  vertical-align: top;
}

.certification-table td:first-child {
  font-weight: 500;
  color: var(--dark);
}

.certification-table td:not(:first-child) {
  text-align: center;
  font-size: 18px;
}

.check-icon {
  color: var(--success);
  font-weight: bold;
}

.check-icon.with-asterisk::after {
  content: "*";
  color: var(--accent-dark);
  font-size: 14px;
  vertical-align: super;
  margin-left: 2px;
}

.table-note {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent);
  font-size: 14px;
  color: var(--secondary);
}

.table-note i {
  color: var(--accent);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .certification-table {
    display: block;
    overflow-x: auto;
  }

  .certification-table th,
  .certification-table td {
    padding: 12px 15px;
  }
}

/* CORRE��O PARA ALINHAMENTO DA TABELA */
.content-programmatico {
  margin: 0;
  padding: 0;
  width: 100%;
}

.content-programmatico h3 {
  margin: 0 0 15px 0;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 8px;
  width: 100%;
}

.certification-table {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}

/* Garantir que container n�o adicione margens extras */
.table-container {
  margin: 0;
  padding: 0;
  width: 100%;
}

:root {
  --primary: #0056b3;
  --primary-light: #e6f0ff;
  --secondary: #6c757d;
  --accent: #ffc107;
  --accent-dark: #ffab00;
  --light: #f8f9fa;
  --dark: #343a40;
  --success: #28a745;
  --danger: #dc3545;
  --info: #17a2b8;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #444;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
}

.justificado {
  text-align: justify;
  text-justify: inter-word; /* Melhora a distribui��o */
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background-color: white;
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.logo {
  height: 90px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

h1 {
  color: #555;
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 600;
}

.header-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 0;
}

h2 {
  color: var(--primary);
  font-size: 24px;
  padding-bottom: 10px;
  margin-top: 0px;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 24px;
  background: var(--accent);
  margin-right: 12px;
  border-radius: 4px;
}

h3 {
  color: var(--dark);
  font-size: 20px;
  padding: 15px 20px;
  margin-top: 0px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  background-color: white;
  box-shadow: var(--box-shadow);
}

h3 i {
  margin-right: 12px;
  color: var(--primary);
}

h4 {
  color: var(--dark);
  font-size: 18px;
  margin-top: 0px;
  font-weight: 500;
}

p {
  margin: 18px 0;
  color: #555;
}

.summary-panel {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--accent);
  position: relative;
}

.summary-panel::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0) 80%
  );
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.summary-item {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.summary-item::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--primary);
  font-size: 12px;
}

.summary-item a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: block;
  padding: 5px 10px;
  border-radius: 4px;
}

.summary-item a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateX(5px);
}

.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.highlight-card {
  background: linear-gradient(to right, #f9f9f9 0%, white 100%);
  border-left: 4px solid var(--accent);
  padding: 25px;
  margin: 30px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 60px;
  color: rgba(0, 86, 179, 0.05);
  z-index: 0;
}

.requirement-box {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 25px 0;
  position: relative;
}

.requirement-item {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 86, 179, 0.2);
  align-items: flex-start;
}

.requirement-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.requirement-number {
  font-weight: bold;
  color: white;
  min-width: 28px;
  height: 28px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  font-size: 14px;
}

/* Regras do accordion movidas para o topo do arquivo */

.topic-container ol {
  padding: 20px 30px;
  margin: 0;
  counter-reset: item;
}

.topic-container ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  list-style-type: none;
}

.topic-container ol li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-light);
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 22px;
}

.study-box {
  background-color: #e8f4fd;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 20px;
  margin-top: 0;
}

.study-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.study-title i {
  margin-right: 10px;
}

.contact-box {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin: 35px 0;
  box-shadow: var(--box-shadow);
  border: 1px solid #e0e9ff;
}

.contact-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.contact-title i {
  margin-right: 12px;
}

.contact-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 20px;
}

.contact-label {
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.contact-label .fa-whatsapp {
  color: #004494;
  width: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.contact-label i {
  width: 20px;
  margin-right: 8px;
  color: var(--primary);
  text-align: center;
}

.warning-box {
  background-color: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 20px 20px 20px 60px;
  margin: 25px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
}

.warning-box::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 20px;
  color: var(--accent-dark);
  font-size: 24px;
}

.warning-title {
  font-weight: 600;
  color: #856404;
  margin-bottom: 15px;
}

.warning-box ul {
  padding-left: 0;
  margin: 0;
}

.warning-box ul li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: none;
  padding-left: 25px;
}

.warning-box ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-size: 14px;
}

.exam-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.stat-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--primary);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0;
}

.stat-label {
  font-size: 14px;
  color: var(--secondary);
}

footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
  color: var(--secondary);
  font-size: 14px;
  background-color: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  opacity: 0.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  margin: 5px 0;
}

.btn:hover {
  background-color: #004494;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.btn i {
  margin-right: 8px;
}

.btn-accent {
  background-color: var(--accent);
  color: #333;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: #333;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .header-subtitle {
    font-size: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exam-stats {
    grid-template-columns: 1fr;
  }

  .topic-container summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 50px 15px 15px;
  }

  .topic-title {
    min-width: 100%;
  }

  .topic-meta {
    margin-top: 8px;
    align-self: flex-start;
  }

  .topic-container summary::after {
    right: 15px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.highlight-card,
.topic-container,
.summary-panel {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Delay animations for a cascading effect */
.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.highlight-card {
  animation-delay: 0.4s;
}
.topic-container {
  animation-delay: 0.5s;
}
