.page-index-popular-games {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

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

.page-index-popular-games__text-center {
  text-align: center;
}

.page-index-popular-games__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-index-popular-games__section:nth-of-type(even) {
  background-color: #eef4f8;
}

.page-index-popular-games__section-title {
  font-size: 2.8em;
  color: #004D99; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index-popular-games__section-description {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-popular-games__section-description--center {
  text-align: center;
}

.page-index-popular-games__link {
  color: #004D99;
  text-decoration: none;
  font-weight: bold;
}

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

/* Hero Section */
.page-index-popular-games__hero {
  background: linear-gradient(135deg, #004D99 0%, #0028ff 100%); /* Deeper 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;
  min-height: 500px;
}

.page-index-popular-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 900px;
  opacity: 0.9;
}

.page-index-popular-games__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

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

.page-index-popular-games__hero .page-index-popular-games__container {
  position: relative;
  z-index: 1;
}

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

.page-index-popular-games__btn--primary {
  background-color: #FFD700; /* Secondary color */
  color: #004D99; /* Primary color */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index-popular-games__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index-popular-games__btn--secondary {
  background-color: #004D99; /* Primary color */
  color: #FFD700; /* Secondary color */
  border: 2px solid #FFD700;
}

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

.page-index-popular-games__btn--link {
  background: none;
  border: none;
  color: #004D99;
  padding: 10px 0;
  font-size: 1em;
  font-weight: bold;
}

.page-index-popular-games__btn--link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-index-popular-games__btn--center {
  display: block;
  margin: 40px auto 0 auto;
}

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

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

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

.page-index-popular-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 77, 153, 0.3)); /* Primary color shadow */
}

.page-index-popular-games__feature-title {
  font-size: 1.5em;
  color: #004D99;
  margin-bottom: 10px;
}

.page-index-popular-games__feature-text {
  font-size: 0.95em;
  color: #666;
}

/* Game Categories Section */
.page-index-popular-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-index-popular-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index-popular-games__category-card .page-index-popular-games__category-title {
  font-size: 1.6em;
  color: #004D99;
  margin: 20px 20px 10px 20px;
  text-align: left;
}

.page-index-popular-games__category-card .page-index-popular-games__category-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-index-popular-games__category-card .page-index-popular-games__btn--secondary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Hot Games Section */
.page-index-popular-games__hot-game-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-index-popular-games__hot-game-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-index-popular-games__hot-game-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.page-index-popular-games__hot-game-content {
  padding: 30px;
}

.page-index-popular-games__hot-game-title {
  font-size: 2em;
  color: #004D99;
  margin-bottom: 15px;
}

.page-index-popular-games__hot-game-text {
  font-size: 1.05em;
  color: #444;
  margin-bottom: 20px;
}

/* Tips Section */
.page-index-popular-games__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-popular-games__tip-list li {
  background-color: #fff;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid #FFD700; /* Secondary color accent */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333;
}

.page-index-popular-games__tip-highlight {
  font-weight: bold;
  color: #004D99;
}

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

.page-index-popular-games__promo-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-popular-games__promo-title {
  font-size: 1.6em;
  color: #004D99;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index-popular-games__promo-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px 20px 20px;
}

/* CTA App Section */
.page-index-popular-games__cta-app {
  background-color: #004D99; /* Primary color */
  color: #fff;
}

.page-index-popular-games__app-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.page-index-popular-games__app-content {
  max-width: 700px;
}

.page-index-popular-games__cta-app .page-index-popular-games__section-title {
  color: #FFD700; /* Secondary color for contrast */
  font-size: 2.5em;
}

.page-index-popular-games__cta-app .page-index-popular-games__section-description {
  color: #e0e0e0;
}

.page-index-popular-games__app-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-index-popular-games__btn--download {
  background-color: #FFD700;
  color: #004D99;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  font-size: 1em;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index-popular-games__btn--download:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index-popular-games__download-icon {
  width: 24px;
  height: 24px;
}

.page-index-popular-games__app-image-wrapper {
  max-width: 300px;
}

.page-index-popular-games__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index-popular-games__faq-accordion {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-index-popular-games__faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-index-popular-games__faq-question {
  font-size: 1.2em;
  color: #004D99;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: background-color 0.3s ease;
}

.page-index-popular-games__faq-question:hover {
  background-color: #f0f8ff;
}

.page-index-popular-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-index-popular-games__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-index-popular-games__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-index-popular-games__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding: 20px 25px;
}

.page-index-popular-games__faq-answer p {
  margin-bottom: 0;
  color: #555;
}

/* Conclusion Section */
.page-index-popular-games__conclusion {
  background-color: #004D99;
  color: #fff;
}

.page-index-popular-games__conclusion .page-index-popular-games__section-title {
  color: #FFD700;
}

.page-index-popular-games__conclusion .page-index-popular-games__section-description {
  color: #e0e0e0;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-popular-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 1.2em;
  }
  .page-index-popular-games__section-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__hot-game-item {
    flex-direction: column;
  }
  .page-index-popular-games__hot-game-image {
    height: 250px;
  }
  .page-index-popular-games__app-promo {
    flex-direction: column-reverse;
  }
  .page-index-popular-games__app-content {
    text-align: center;
  }
  .page-index-popular-games__app-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@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: 1.1em;
  }
  .page-index-popular-games__section {
    padding: 40px 0;
  }
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index-popular-games__features-grid,
  .page-index-popular-games__category-grid,
  .page-index-popular-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-popular-games__hot-game-image {
    height: 200px;
  }
  .page-index-popular-games__hot-game-title {
    font-size: 1.6em;
  }
  .page-index-popular-games__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index-popular-games__btn--lg {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index-popular-games__cta-app .page-index-popular-games__section-title {
    font-size: 2em;
  }
  .page-index-popular-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-index-popular-games__faq-question::after {
    right: 20px;
  }
  .page-index-popular-games__faq-answer.active {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__hero-subtitle {
    font-size: 0.95em;
  }
  .page-index-popular-games__section-title {
    font-size: 1.6em;
  }
  .page-index-popular-games__btn {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .page-index-popular-games__app-buttons {
    gap: 10px;
  }
  .page-index-popular-games__btn--download {
    width: 100%;
  }
  .page-index-popular-games__hot-game-content {
    padding: 20px;
  }
  .page-index-popular-games__hot-game-title {
    font-size: 1.4em;
  }
}