header {
  position: relative;
  background-image: url('../img/h-co-6fJyBkPMLWc-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

header * {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.foto-credito {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.75rem;
  color: #fff;
  opacity: 0.8;
  z-index: 2;
}

section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--verde);
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer a {
  color: #7fd9a4;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===========================
   ESTILO DO RANKING
=========================== */
#ranking-section {
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 0; /* O wrapper da tabela já tem padding no seu sistema */
    overflow: hidden;
}

.tabela-ranking {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tabela-ranking th {
    background-color: var(--verde); /* Usa a mesma cor dos seus títulos */
    color: white;
    padding: 12px;
    text-align: left;
}

.tabela-ranking td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Efeito no Pódio */
.tabela-ranking tr:nth-child(1) { background-color: rgba(127, 217, 164, 0.2); font-weight: bold; } 
.tabela-ranking tr:nth-child(2) { background-color: rgba(127, 217, 164, 0.1); }
.tabela-ranking tr:nth-child(3) { background-color: rgba(127, 217, 164, 0.05); }

.tabela-ranking tr:hover {
    background-color: #f1f1f1;
}

