.page-games {
  font-family: 'Arial', sans-serif;
  color: #f5e6ce; /* Light text on dark background */
  background-color: #0A1931; /* Primary dark background */
  line-height: 1.6;
}

.page-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-games__hero-section {
  background: linear-gradient(135deg, #0A1931 0%, #301931 70%, #FFC107 100%);
  padding: 100px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFC107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-games__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-games__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-games__btn--primary {
  background-color: #FFC107; /* Auxiliary bright gold */
  color: #0A1931;
  border: 2px solid #FFC107;
}

.page-games__btn--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
}

.page-games__btn--secondary {
  background-color: transparent;
  color: #FFC107;
  border: 2px solid #FFC107;
}

.page-games__btn--secondary:hover {
  background-color: #FFC107;
  color: #0A1931;
  transform: translateY(-3px);
}

.page-games__section {
  padding: 80px 0;
}

.page-games__section--dark {
  background-color: #0A1931;
  color: #f5e6ce;
}

.page-games__section--light {
  background-color: #1a2a47; /* Slightly lighter dark blue for contrast */
  color: #ffffff;
}

.page-games__section-title {
  font-size: 2.8em;
  color: #FFC107;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFC107;
  border-radius: 2px;
}

.page-games__text-content {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-games__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-games__category-item {
  background-color: #0A1931;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-games__category-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-games__category-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 2px solid #FFC107;
}

.page-games__category-title {
  font-size: 1.8em;
  color: #FFC107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-games__category-description {
  font-size: 1em;
  color: #d0d0d0;
  margin-bottom: 25px;
  text-align: justify;
  flex-grow: 1;
}

.page-games__btn--detail {
  background-color: #FFC107;
  color: #0A1931;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.page-games__btn--detail:hover {
  background-color: #e0a800;
}

.page-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-games__feature-item {
  background-color: #1a2a47;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-games__feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFC107);
}

.page-games__feature-title {
  font-size: 1.6em;
  color: #FFC107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-games__feature-description {
  font-size: 0.95em;
  color: #d0d0d0;
  text-align: justify;
}

.page-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-games__guide-item {
  background-color: #0A1931;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-games__guide-title {
  font-size: 1.8em;
  color: #FFC107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-games__guide-description {
  font-size: 1em;
  color: #d0d0d0;
  margin-bottom: 25px;
  text-align: justify;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-games__hero-title {
    font-size: 2.8em;
  }

  .page-games__section-title {
    font-size: 2.2em;
  }

  .page-games__hero-description,
  .page-games__text-content {
    font-size: 1em;
  }

  .page-games__game-categories,
  .page-games__features-grid,
  .page-games__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-games__hero-section {
    padding: 80px 0;
  }

  .page-games__hero-title {
    font-size: 2.5em;
  }

  .page-games__section-title {
    font-size: 2em;
  }

  .page-games__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-games__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-games__section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .page-games__hero-section {
    padding: 60px 0;
  }

  .page-games__hero-title {
    font-size: 2em;
  }

  .page-games__section-title {
    font-size: 1.8em;
  }

  .page-games__container {
    padding: 0 15px;
  }

  .page-games__game-categories,
  .page-games__features-grid,
  .page-games__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-games__category-item,
  .page-games__feature-item,
  .page-games__guide-item {
    padding: 20px;
  }

  .page-games__category-title,
  .page-games__feature-title,
  .page-games__guide-title {
    font-size: 1.5em;
  }

  .page-games__btn {
    width: 100%;
    box-sizing: border-box;
  }
}