/* ==========================================================================
   ESTILOS GERAIS E ESTRUTURA
   ========================================================================== */

.ho-section-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
}

.ho-section-container * {
  box-sizing: border-box;
}

/* HIERARQUIA DE TÍTULOS (SEO & SEMÂNTICA) */
.ho-section-container .ho-titulo {
  color: #1a365d;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  border-left: 5px solid #3182ce;
  padding-left: 15px;
}

.ho-section-container .ho-subtitulo {
  color: #2b6cb0;
  font-size: 1.5rem;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.ho-section-container .ho-subtitulo-legenda {
  margin-top: 0;
  color: #4a5568;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ho-section-container .ho-terceiro-titulo {
  color: #2d3748;
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* TEXTO E LISTAS */
.ho-section-container .ho-texto-introducao {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.ho-section-container .ho-lista-beneficios {
  margin-bottom: 30px;
  padding-left: 20px;
}

.ho-section-container .ho-lista-beneficios li {
  margin-bottom: 12px;
  position: relative;
}

/* ==========================================================================
   ESTILIZAÇÃO DAS TABELAS (DESKTOP E ACESSIBILIDADE)
   ========================================================================== */

.ho-section-container .ho-wrapper-tabela {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 35px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.ho-section-container .ho-tabela-dados {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: #ffffff;
}

.ho-section-container .ho-tabela-dados caption {
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px;
  color: #1a365d;
  background-color: #ebf8ff;
  text-align: left;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.ho-section-container .ho-tabela-dados th {
  background-color: #f7fafc;
  color: #4a5568;
  font-weight: 700;
  padding: 14px;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ho-section-container .ho-tabela-dados td {
  padding: 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: 1rem;
}

.ho-section-container .ho-tabela-dados tbody tr:hover {
  background-color: #f8fafc;
}

/* DESTAQUES SEMÂNTICOS DE CORES */
.ho-section-container .ho-destaque-vermelho {
  background-color: #fff5f5;
  color: #c53030;
  font-weight: 600;
}

.ho-section-container .ho-destaque-verde {
  background-color: #f0fff4;
  color: #22543d;
  font-weight: 600;
}

.ho-section-container .ho-badge-vermelho {
  background-color: #feb2b2;
  color: #9b2c2c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.ho-section-container .ho-badge-verde {
  background-color: #9ae6b4;
  color: #22543d;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* LEGENDAS E NOTAS */
.ho-section-container .ho-bloco-legenda {
  background-color: #f7fafc;
  border-top: 4px solid #cbd5e0;
  padding: 20px;
  margin-top: -20px;
  margin-bottom: 35px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 0.95rem;
}

.ho-section-container .ho-bloco-legenda ul {
  list-style-type: none;
  padding-left: 0;
}

.ho-section-container .ho-bloco-legenda li {
  margin-bottom: 8px;
}

.ho-section-container .ho-nota-observacao {
  background-color: #fffaf0;
  border-left: 4px solid #dd6b20;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  font-style: italic;
}

.ho-section-container .ho-bloco-conclusao {
  background-color: #ebf8ff;
  border-left: 4px solid #3182ce;
  padding: 20px;
  margin: 25px 0;
  border-radius: 4px;
}

.ho-section-container .ho-bloco-conclusao p {
  margin: 0;
  font-weight: 600;
  color: #2b6cb0;
  font-size: 1.1rem;
}

/* GRID PARA ORGANIZAR TABELAS PARALELAS NO DESKTOP */
.ho-section-container .ho-grid-tabelas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ==========================================================================
   RESPONSIVIDADE EM CELULARES (TRANSFORMAÇÃO EM CARDS COMPACTOS)
   ========================================================================== */

@media (max-width: 768px) {
  .ho-section-container {
    padding: 12px;
    margin: 10px auto;
  }

  .ho-section-container .ho-titulo {
    font-size: 1.5rem;
  }

  .ho-section-container .ho-subtitulo {
    font-size: 1.25rem;
  }

  .ho-section-container .ho-grid-tabelas {
    grid-template-columns: 1fr;
  }

  /* Transformação da Tabela Tradicional em Lista de Cards Vertical */
  .ho-section-container .ho-tabela-dados, 
  .ho-section-container .ho-tabela-dados thead, 
  .ho-section-container .ho-tabela-dados tbody, 
  .ho-section-container .ho-tabela-dados th, 
  .ho-section-container .ho-tabela-dados td, 
  .ho-section-container .ho-tabela-dados tr { 
    display: block; 
  }
  
  /* Esconde o cabeçalho original da tabela sem perder acessibilidade */
  .ho-section-container .ho-tabela-dados thead {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  /* Estilização do tr como Card Compacto */
  .ho-section-container .ho-tabela-dados tr { 
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  }
  
  /* Células dentro do Card com layout de linha de chave-valor */
  .ho-section-container .ho-tabela-dados td { 
    border: none;
    border-bottom: 1px solid #edf2f7; 
    position: relative;
    padding-left: 50%; 
    text-align: right;
    font-size: 0.95rem;
    padding-top: 10px;
    padding-bottom: 10px;
    word-break: break-word;
  }

  .ho-section-container .ho-tabela-dados td:last-child {
    border-bottom: 0;
  }
  
  /* Exibição do rótulo da coluna via atributo data-label */
  .ho-section-container .ho-tabela-dados td:before { 
    position: absolute;
    left: 10px;
    width: 45%; 
    padding-right: 10px; 
    white-space: normal;
    text-align: left;
    font-weight: 700;
    color: #4a5568;
    content: attr(data-label);
  }
}
