.page-index-popular-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

.page-index-popular-games__hero {
  background: linear-gradient(135deg, #007bff, #4da3ff); /* Adjusted for better contrast with text */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-popular-games__hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px; /* Adjust size as needed */
  opacity: 0.3;
  z-index: 0;
}

.page-index-popular-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff;
  z-index: 1;
  position: relative;
}

.page-index-popular-games__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
  color: #e9ecef; /* Slightly off-white for better readability on blue */
  z-index: 1;
  position: relative;
}

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

.page-index-popular-games__btn--primary {
  background-color: #ffc107; /* Secondary color for CTA */
  color: #343a40; /* Dark text for contrast on yellow */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__btn--primary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-index-popular-games__btn--secondary {
  background-color: #007bff; /* Primary color for secondary CTAs */
  color: #ffffff;
  border: 1px solid #007bff;
}

.page-index-popular-games__btn--secondary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-index-popular-games__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-popular-games__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-index-popular-games__section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-popular-games__section:nth-child(even) {
  background-color: #f0f4f7;
}

.page-index-popular-games__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index-popular-games__intro p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index-popular-games__img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index-popular-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__game-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index-popular-games__game-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__game-card-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-popular-games__game-card-content p {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index-popular-games__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-index-popular-games__feature-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #555;
  position: relative;
  padding-left: 25px;
}

.page-index-popular-games__feature-list li::before {
  content: '✓';
  color: #ffc107;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-index-popular-games__game-card-content .page-index-popular-games__btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.page-index-popular-games__tip-item {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index-popular-games__tip-item:hover {
  transform: translateY(-5px);
}

.page-index-popular-games__tip-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-popular-games__tip-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-popular-games__tips p {
  text-align: justify;
  font-size: 1em;
}

.page-index-popular-games__tips-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-index-popular-games__link-inline {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-index-popular-games__link-inline:hover {
  text-decoration: underline;
  color: #0056b3;
}

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

.page-index-popular-games__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__promo-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-index-popular-games__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__promo-card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-popular-games__promo-card-content p {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index-popular-games__promotions-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-index-popular-games__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-index-popular-games__benefit-list li {
  font-size: 1.1em;
  color: #333;
  position: relative;
  padding-left: 35px;
  text-align: justify;
}

.page-index-popular-games__benefit-list li::before {
  content: '★';
  color: #ffc107;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -5px;
}

.page-index-popular-games__conclusion p {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.page-index-popular-games__conclusion .page-index-popular-games__btn {
  margin: 0 auto;
  display: block;
  max-width: 350px;
}

@media (max-width: 992px) {
  .page-index-popular-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 1.1em;
  }
  .page-index-popular-games__section-title {
    font-size: 2em;
  }
  .page-index-popular-games__game-card-grid,
  .page-index-popular-games__tips-grid,
  .page-index-popular-games__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero {
    padding: 60px 0;
  }
  .page-index-popular-games__hero-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 1em;
  }
  .page-index-popular-games__section {
    padding: 40px 0;
  }
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__game-card-grid,
  .page-index-popular-games__tips-grid,
  .page-index-popular-games__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games__game-card-img {
    height: 180px;
  }
  .page-index-popular-games__promo-card-img {
    height: 150px;
  }
  .page-index-popular-games__hero-image {
    display: none; /* Hide on smaller screens to prioritize content */
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 0.9em;
  }
  .page-index-popular-games__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index-popular-games__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index-popular-games__section-title {
    font-size: 1.5em;
  }
  .page-index-popular-games__game-card-title {
    font-size: 1.4em;
  }
  .page-index-popular-games__tip-title {
    font-size: 1.2em;
  }
}