/* Games 4: Four game cards in 2×2 grid */
.games4 {
  width: 100%;
  padding: 80px 40px;
  background-color: var(--main-bg);
}

.games4-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-items: center;
}

.games4-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.games4-image {
  width: 200px;
  height: auto;
  overflow: hidden;
}

.games4-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.games4-image img:hover {
  transform: scale(1.04);
}

.games4-button {
  padding: 12px 44px;
  background-color: var(--button-bg);
  color: var(--button-text);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.games4-button:hover {
  background-color: var(--button-hover-bg);
}

.games4-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 60px 0;
  line-height: 1.2;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .games4-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .games4-image {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .games4 {
    padding: 60px 20px;
  }
  .games4-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .games4-image {
    width: 140px;
  }
  .games4-button {
    padding: 10px 32px;
    font-size: 15px;
  }
  .games4-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .games4-container {
    grid-template-columns: 1fr;
  }
  .games4-image {
    width: 200px;
  }
}
