* { /*Global*/
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header {
  background: linear-gradient(90deg, #1578bd, #1d9add);
  color: #fff;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  max-width: 100%;
}

.site-header h1 {
  font-size: clamp(1.2rem, 4vw, 2.2rem); /*Valor mínimo, valor flexível e valor máximo*/
  font-weight: 700;
  margin: 0;
  color: white;
  text-align: center;
  flex: 1; /*O elemento vai ocupar todo o espaço disponível dentro do container*/
}

.logo-img {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  width: auto;
  max-width: 120px;
}

.logo-text {
  color: white;
  font-size: 25px;
  font-weight: bold;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  min-height: 100vh;

  background-image: url("background2.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.container {
  padding: 50px 20px;
  max-width: 90%;
  margin: 0 auto;
  overflow-x: auto; /*Controla o que acontece quando o conteúdo ultrapassa a largura do elemento e com o auto, mostra uma barra de rolagem quando necessário*/
}

table {
  width: 100%;
  border-collapse: collapse; /*É usado em tabelas, as bordas das célular se fundem em uma só, vendo apenas uma delas e não sobrepostas*/
  margin-top: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
}

.horario {
  color: black;
  font-size: 1rem;
}

.table-date {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  padding: 12px 0;        
  text-align: center;     
  text-indent: -18px; /*Quando o valor é negativo, a primeira linha é puxada para a esquerda*/
}

.date-text {
  position: relative;
  left: -65px; 
}

.date-text i {
  margin-right: 8px;
}

.table-date-row td {
  background-color: #1578bd;
  border-bottom: 2px solid #ddd;
}

.table-date-row th {
  background-color: #1578bd !important;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden; /*Esconde qualquer conteúdo que ultrapasse o tamanho do elemento*/
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schedule-table:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.schedule-table thead th {
  background-color: #268fda;
  color: white;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

.schedule-table tbody tr:hover {
  background-color: #eaf4ff;
  transition: 0.25s;
}

.schedule-table th:nth-child(1), 
.schedule-table td:nth-child(1) { /*Permite escolher somente certos elementos dentro de um grupo de irmãos*/
  width: 18%;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 52%;
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
  width: 30%;
}

.highlight-row {
  font-weight: bold;
  color: #333;
}

.highlight-row td {
  background-color: #edf6ff !important; /*Força uma regra a ter prioridade máxima.*/
  color: black !important;
  font-weight: bold;
}

.table-gap {
  height: 35px;
}

/*Tablets e notebooks menores*/
@media (max-width: 992px) {
  .site-header {
    padding: 15px 3%;
  }

  .site-header h1 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
  }

  .logo-img {
    max-width: 100px;
  }

  th, td {
    padding: 8px;
    font-size: 0.95rem;
  }
}

/*Celulares (modo retrato)*/
@media (max-width: 576px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    text-align: center;
  }

  .logo-img {
    position: static;
    transform: none;
    margin-bottom: 10px;
    width: 30vw;
    max-width: 90px;
  }

  .site-header h1 {
    font-size: 1.1rem;
    margin-top: 5px;
  }

  .container {
    padding: 30px 10px;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 8px 6px;
  }
}

/*Celulares muito pequenos (ex: 320px)*/
@media (max-width: 320px) {
  .site-header h1 {
    font-size: 1rem;
  }

  .logo-img {
    width: 60px;
  }

  th, td {
    font-size: 0.75rem;
    padding: 6px 4px;
  }
}

@media (max-width: 768px) {
  .table-date {
    text-indent: 0; /*Remove deslocamento*/
    text-align: center;
  }

  .date-text {
    position: static; /*Remove o deslocamento lateral*/
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .date-text {
    font-size: 0.9rem; /*Texto menor em telas muito pequenas*/
  }
}