/* style/games.css */
.page-games {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.page-games__hero-section {
  background: linear-gradient(135deg, #0A2342 0%, #1A3A5E 100%); /* Dark blue gradient */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #F0A500; /* Bright orange for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

.page-games__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
}

.page-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

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

.page-games__btn--primary {
  background-color: #F0A500; /* Bright orange */
  color: #0A2342; /* Deep blue */
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}

.page-games__btn--primary:hover {
  background-color: #ffb72a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.6);
}

.page-games__btn--secondary {
  background-color: transparent;
  color: #F0A500; /* Bright orange */
  border: 2px solid #F0A500;
  box-shadow: 0 2px 10px rgba(240, 165, 0, 0.2);
}

.page-games__btn--secondary:hover {
  background-color: #F0A500;
  color: #0A2342;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
}

.page-games__section-title {
  font-size: 2.8em;
  color: #0A2342; /* Deep blue */
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  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: #F0A500;
  border-radius: 2px;
}

.page-games__section-description {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-games__overview-section, .page-games__why-choose-tf88, .page-games__guide-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-games__overview-section {
  background-color: #fff;
}

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

.page-games__category-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.page-games__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-games__category-title {
  font-size: 1.8em;
  color: #0A2342;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-games__category-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-games__btn--link {
  color: #F0A500;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #F0A500;
  border-radius: 6px;
  align-self: center;
}

.page-games__btn--link:hover {
  background-color: #F0A500;
  color: #0A2342;
}

.page-games__why-choose-tf88 {
  background-color: #eef2f7;
}

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

.page-games__feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-games__feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-games__feature-title {
  font-size: 1.6em;
  color: #0A2342;
  margin-bottom: 10px;
}

.page-games__feature-description {
  font-size: 1em;
  color: #666;
}

.page-games__cta-banner {
  background: #0A2342; /* Deep blue background */
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-games__cta-title {
  font-size: 3em;
  color: #F0A500; /* Bright orange */
  margin-bottom: 20px;
}

.page-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-games__btn--cta {
  background-color: #F0A500;
  color: #0A2342;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
  margin-right: 20px;
}

.page-games__btn--cta:hover {
  background-color: #ffb72a;
  transform: translateY(-3px);
}

.page-games__btn--outline {
  background-color: transparent;
  color: #F0A500;
  border: 2px solid #F0A500;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-games__btn--outline:hover {
  background-color: #F0A500;
  color: #0A2342;
  transform: translateY(-3px);
}

.page-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-games__guide-list li {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  counter-increment: step-counter;
  position: relative;
  padding-top: 70px; /* Space for step number */
}

.page-games__guide-list li::before {
  content: 'Bước ' counter(step-counter);
  position: absolute;
  top: 20px;
  left: 30px;
  background-color: #F0A500;
  color: #0A2342;
  font-weight: bold;
  font-size: 1.1em;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(240, 165, 0, 0.3);
}

.page-games__guide-step-title {
  font-size: 1.5em;
  color: #0A2342;
  margin-bottom: 10px;
}

.page-games__guide-list p {
  color: #666;
  font-size: 1em;
}

.page-games__text-center {
  text-align: center;
  margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-games__hero-title {
    font-size: 3em;
  }
  .page-games__section-title {
    font-size: 2.2em;
  }
  .page-games__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-games__hero-section {
    padding: 60px 0;
  }
  .page-games__hero-title {
    font-size: 2.5em;
  }
  .page-games__hero-description {
    font-size: 1.1em;
  }
  .page-games__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-games__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-games__section-title {
    font-size: 2em;
  }
  .page-games__section-description {
    margin-bottom: 30px;
  }
  .page-games__game-categories, .page-games__features-grid, .page-games__guide-list {
    grid-template-columns: 1fr;
  }
  .page-games__category-image {
    height: 180px;
  }
  .page-games__cta-banner {
    padding: 60px 0;
  }
  .page-games__cta-title {
    font-size: 2em;
  }
  .page-games__cta-description {
    font-size: 1em;
  }
  .page-games__btn--cta, .page-games__btn--outline {
    margin-right: 0;
    margin-bottom: 15px;
    width: 80%;
    max-width: 300px;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-games__hero-title {
    font-size: 2em;
  }
  .page-games__hero-description {
    font-size: 1em;
  }
  .page-games__section-title {
    font-size: 1.8em;
  }
  .page-games__category-title {
    font-size: 1.5em;
  }
  .page-games__feature-title, .page-games__guide-step-title {
    font-size: 1.3em;
  }
  .page-games__cta-title {
    font-size: 1.8em;
  }
  .page-games__btn--cta, .page-games__btn--outline {
    font-size: 1em;
  }
}