/* Fundo animado */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

main {
  flex: 1;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Quadro de horários */
.horario-box {
  width: 100%;
  max-width: 1000px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 50px;
  transition: box-shadow 0.3s ease;
}

.horario-box h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #1c4c7d;
}

.horario-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
  text-align: center;
}

.horario-box thead tr {
  background-color: #007bff;
  color: #fff;
}

.horario-box th,
.horario-box td {
  padding: 16px;
  border-bottom: 1px solid #ddd;
}

.horario-box tbody tr {
  background-color: #f9f9f9;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  padding: 32px;
  max-width: 1000px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.card .aviso {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.card .btn-container {
  text-align: center;
  margin-top: 30px;
}

.card button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.card button:hover {
  transform: scale(1.03);
}

/* Estilos por tipo */
.card.rapido h2 {
  color: #007bff;
}

.card.rapido .aviso {
  color: #ff6600;
}

.card.rapido button {
  background-color: #007bff;
}

.card.rapido button:hover {
  background-color: #005ecb;
}

.card.antecipado h2 {
  color: #005ecb;
}

.card.antecipado .aviso {
  color: #005ecb;
}

.card.antecipado button {
  background-color: #005ecb;
}

.card.antecipado button:hover {
  background-color: #005ecb;
}

/* Responsivo */
@media (max-width: 768px) {
  .horario-box h2,
  .card h2 {
    font-size: 22px;
  }

  .card {
    max-width: 100%;
  }

  .horario-box table {
    font-size: 16px;
  }

  .card button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    padding: 40px 16px;
  }

  .horario-box {
    padding: 20px;
  }

  .card {
    padding: 24px;
  }

  .card p,
  .card .aviso {
    font-size: 15px;
  }

  .card button {
    font-size: 15px;
    padding: 10px 20px;
  }
}
