/* legislacao.css */

/* Seção de tiles */
.tiles-section {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

/* Tile base */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 40px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.tile--small {
  flex: 1 1 calc(50% - 15px);
  min-width: 280px;
  max-width: 450px;
}

/* Hover effect */
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

/* Ícone do tile */
.tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tile__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Título do tile */
.tile__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d5f3f;
  text-align: center;
  letter-spacing: 0.5px;
}

.tile:hover .tile__title {
  color: #1e4029;
}

/* Responsividade */
@media (max-width: 768px) {
  .tiles-section {
    margin: 40px auto;
  }

  .tiles {
    gap: 20px;
  }

  .tile--small {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .tile {
    padding: 30px 20px;
    min-height: 180px;
  }

  .tile__icon img {
    width: 70px;
    height: 70px;
  }

  .tile__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .tiles-section {
    margin: 30px auto;
    padding: 0 15px;
  }

  .tile {
    padding: 25px 15px;
    min-height: 160px;
  }

  .tile__icon img {
    width: 60px;
    height: 60px;
  }

  .tile__title {
    font-size: 1rem;
  }
}