* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
  url('../img/tdgarden.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

main {
  margin-top: -150px;
  position: relative;
  z-index: 2;
}

main > section {
  background: white;
  padding-top: 180px;
  padding-bottom: 60px;
  transition: opacity 0.5s ease;
}

#regras,
#posicoes {
  background-color: #f8f9fa;
}

#regras .card {
  height: 100%;
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

#regras .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

#posicoes .p-3 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px !important;
  will-change: transform;
}

#posicoes .p-3:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.posicao-icon {
  width: 60px;
  height: 60px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#posicoes .p-3:hover .posicao-icon {
  background-color: #c82333; 
  transform: scale(1.1);
}

#lendas img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#lendas .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

#lendas .card:hover {
  transform: translateY(-8px);
}

#lendas .card:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}


html {
  scroll-behavior: smooth;
}

footer {
  position: relative;
  z-index: 2;

}


