.diseases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.characteristic {
  background-color: #ffefe8;
  border-radius: 9px;
  padding: 32px 20px;
  text-align: center;
  color: #333;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.characteristic:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.characteristic i {
  width: 40px;
  height: 40px;
  font-size: 40px;
  object-fit: contain;
  margin-bottom: 16px;
  opacity: 0.85;
}

.characteristic h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* Remove extra text styling */
.characteristic p {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .diseases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .diseases {
    grid-template-columns: 1fr;
  }
}


.hero-image {
  text-align: center; /* centraliza conteúdo horizontalmente */
  margin: 2rem 0;     /* espaçamento acima e abaixo */
}

.hero-image img {
  width: 700px;                 /* ajuste o tamanho como quiser */
  height: auto;                 /* mantém proporção */
  border-radius: 12px;          /* bordas arredondadas */
  
  display: inline-block;        /* mantém centralização com text-align */
  object-fit: cover;            /* mantém proporção da imagem */
}
ul {
  padding-left: 40px; /* varies by browser */
}


.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.column {
  background-color: #ffefe8;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.column h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3d2645;
  margin-bottom: 1rem;
}

.column ul, ol{
  padding-left: 1.2rem;
  margin: 0;
}

.column li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}


.column1 img {
  max-width: 380px;   /* make it smaller */
  width: 100%;        /* responsive */
  height: auto;       /* keep aspect ratio */
  display: block;
  margin: 0 auto;     /* center the image */
  border-radius: 5%;
}

.participants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.participants-table th,
.participants-table td {
  border: 1px solid #000;
  padding: 6px;
  vertical-align: top;
}

.participants-table th {
  font-weight: bold;
  text-align: center;
}

.participants-table caption {
  caption-side: bottom;
  margin-top: 1rem;
}


.participants-table {
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0 auto;
  max-width: 900px; /* optional */
  
  
}

.participants-table th{
  padding: 3px 8px;
  line-height: 1.2;
  background-color: #d6bfb3;; /* soft header color */
}
.participants-table td {
  padding: 3px 8px;
  line-height: 1.2;
  background-color: #eedbd3;
  
}


.table-card {
  background: #ffefe8; 
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden; /* keeps rounded corners clean */
  margin: 1rem auto;
  max-width: 800px;
}


.comp {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.card {
  background-color: #ffefe8;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* Spacing control */
.card h2 {
  margin-top: 0;
}

.card ol {
  margin-bottom: 2rem;
  padding-left: 1.4rem;
}

.stats {
  list-style: none;
  padding-left: 0;
  margin: 0;
  
  padding-top: 1.5rem;
}

.stats li {
  margin-bottom: 0.6rem;
}
.text-image-container {
  display: flex;            /* side-by-side layout */
  align-items: flex-start;  /* top-align text and image */
  gap: 2rem;                /* space between text and image */
  flex-wrap: wrap;          /* allow wrapping on small screens */
}

.text-content {
  flex: 1;                  /* text takes remaining space */
  min-width: 250px;         /* prevent text from shrinking too much */
}

.image-content img {
  width: 400px;             /* image size */
  max-width: 100%;          /* responsive */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  background-color: #ffefe8;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .text-image-container {
    flex-direction: column; /* stack text above image */
    align-items: center;    /* center contents */
  }

  .image-content img {
    width: 100%;            /* image fills container */
    max-width: 400px;       /* but doesn’t get too big */
  }

  .text-content {
    text-align: center;     /* optional: center text */
  }
}


.chart-card {
  background: #ffefe8; 
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  max-width: 700px;
  margin: 3rem auto;
}

.chart h3 {
  margin-top: 0;
}

.chart {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr 30px;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.80rem;
}

.bar {
  height: 14px;
  background: #8b5cf6;
  border-radius: 8px;
  width: calc((var(--value) / 9) * 100%); /* 9 = max value */
  min-width: 1px; /* prevents disappearing */
}

.row em {
  font-style: normal;
  font-weight: bold;
}
.data-layout {
  display: grid;
  grid-template-columns: 3fr 1.5fr; /* table wider than chart */
  gap: 1rem;
   width: 95%;         /* almost full width */
  max-width: 1600px;  /* wider limit */
  margin: 2rem auto;
  align-items: start;
}

.image-content2 img {
  width: 500px;             /* image size */
  max-width: 100%;          /* responsive */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  background-color: #ffefe8;
  
}

main{
  margin-right: 200px;
  margin-left: 200px;
  
}

svg text {
  font-size: 14px;
  fill: #2f3e46;        /* cor do texto */

}

    .node {
      fill: #3d2645;
    }

    .line {
      stroke: #3d2645;
      stroke-width: 2;
      fill: none;
    }
    .label {
      font-size: 13px;
      fill: #4a4a4a;
    }

    .phase {
      font-size: 14px;
      font-weight: bold;
      fill: #6b8797;
    }














    /* ===== Media Queries Mobile ===== */
@media (max-width: 1024px) {
  main {
    margin-left: 50px;
    margin-right: 50px;
  }

  .data-layout {
    grid-template-columns: 1fr; /* empilha tabela e gráfico */
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Hero image: opcional, pode esconder */
  .hero-image {
    display: none;
  }

  /* Comparison columns: empilhar */
  .comparison {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  /* Text + image containers: empilhar e centralizar */
  .text-image-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .image-content img,
  .image-content2 img {
    width: 100%;
    max-width: 400px;
  }

  .text-content {
    text-align: center;
  }

  /* Tables: scroll horizontal */
  .participants-table,
  .table-card {
    width: 100%;
    overflow-x: auto;
    display: block;
  }
}

@media (max-width: 500px) {
  .diseases {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .column {
    padding: 1.5rem;
  }

  .chart-card {
    padding: 1.5rem;
  }

  .chart .row {
    font-size: 0.7rem;
    gap: 0.4rem;
  }

  main {
    margin-left: 10px;
    margin-right: 10px;
  }

  svg {
    width: 100%;
    height: auto;
  }

  svg text {
    font-size: 11px;
  }
}
