/* 1. Tabela de Investimento - Mantém estilo original para telas grandes */
.table-responsive-lg {
  overflow-x: auto;
}

/* Ajustes APENAS para telas menores que 768px */
@media (max-width: 768px) {
  .table {
    font-size: 0.85rem;
  }
  
  .table th, .table td {
    padding: 0.4rem;
    white-space: normal;
  }
  
  .btn-visualizar {
    font-size: 0.7rem;
    padding: 1px 3px;
  }
}

/* 2. Seção de Progresso de Arrecadação */
/* Estilo original (para telas grandes) */
.text-end.bg-light.p-2.rounded {
  margin-top: 0;
  width: auto;
  text-align: right !important;
}

#grafico-arrecadacao {
  width: 100%;
  height: 400px; /* Altura fixa para telas grandes */
}

/* Ajustes APENAS para telas menores que 768px */
@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center.mb-3 {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .text-end.bg-light.p-2.rounded {
    margin-top: 1rem;
    width: 100%;
    text-align: center !important;

    /* Ajuste adicional para melhor organização */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
  }
  
  #grafico-arrecadacao {
    height: 300px; /* Altura menor para mobile */
  }
}

/* 3. Ajustes gerais - APENAS para telas menores que 576px */
@media (max-width: 576px) {
  .hero-section h2.display-4 {
    font-size: 1.8rem;
  }
  
  .hero-section p.lead {
    font-size: 1rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem;
  }
  
  .col-md-4 {
    margin-bottom: 1rem;
  }
  
  .col-md-4:last-child {
    margin-bottom: 0;
  }
  
  .ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
  }
}

/* 4. Melhorias para botões - APENAS em telas muito pequenas */
@media (max-width: 400px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem;
    white-space: normal;
  }
  
  .btn-section-financial, 
  .btn-section-projects {
    font-size: 0.8rem;
  }
}