.page-index-popular-games {
  font-family: 'Arial', sans-serif;
  color: #1A2E47; /* Main text color */
  background-color: #f8f9fa; /* Light background for contrast */
  line-height: 1.6;
}

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

.page-index-popular-games__hero {
  background: linear-gradient(135deg, #1A2E47 0%, #3a5c8a 100%); /* Dark blue gradient */
  color: #ffffff; /* White text on dark background */
  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;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

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

.page-index-popular-games__title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  font-weight: bold;
}

.page-index-popular-games__subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-index-popular-games__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-popular-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-index-popular-games__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A2E47; /* Dark blue text on gold */
  border: 2px solid #FFD700;
}

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

.page-index-popular-games__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text on dark background */
  border: 2px solid #FFD700;
}

.page-index-popular-games__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

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

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

.page-index-popular-games__section-title {
  font-size: 2.5em;
  color: #1A2E47;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-index-popular-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index-popular-games__text {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-index-popular-games__about .page-index-popular-games__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.page-index-popular-games__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index-popular-games__game-image {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-index-popular-games__game-title {
  font-size: 1.8em;
  color: #1A2E47;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index-popular-games__game-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-popular-games__game-card .page-index-popular-games__btn {
  background-color: #1A2E47; /* Dark blue button */
  color: #FFD700; /* Gold text on dark blue */
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

.page-index-popular-games__game-card .page-index-popular-games__btn:hover {
  background-color: #0d1e33;
}

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

.page-index-popular-games__advantage-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-index-popular-games__advantage-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  color: #FFD700; /* Gold icons */
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.page-index-popular-games__advantage-title {
  font-size: 1.6em;
  color: #1A2E47;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-popular-games__advantage-item .page-index-popular-games__text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 0;
}

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

.page-index-popular-games__guide-step-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-popular-games__guide-step-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for step titles */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index-popular-games__guide-step-item .page-index-popular-games__text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-popular-games__guide-step-item .page-index-popular-games__btn {
  background-color: #1A2E47;
  color: #FFD700;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
}

.page-index-popular-games__guide-step-item .page-index-popular-games__btn:hover {
  background-color: #0d1e33;
}

.page-index-popular-games__faq-items {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-popular-games__faq-question {
  font-size: 1.3em;
  color: #1A2E47;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  background-color: #f0f2f5;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.page-index-popular-games__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

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

.page-index-popular-games__faq-answer {
  font-size: 1.1em;
  color: #555555;
  padding: 0 25px 20px;
  margin: 0;
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-index-popular-games__faq-answer.active {
  display: block;
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px 20px;
}

.page-index-popular-games__cta {
  background: linear-gradient(45deg, #1A2E47, #3a5c8a);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  border-radius: 15px;
  margin: 60px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-index-popular-games__cta .page-index-popular-games__section-title::after {
  background-color: #FFD700;
}

.page-index-popular-games__cta .page-index-popular-games__text {
  color: #e0e0e0;
}

.page-index-popular-games__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-popular-games__title {
    font-size: 2.5em;
  }
  .page-index-popular-games__section-title {
    font-size: 2em;
  }
  .page-index-popular-games__game-grid,
  .page-index-popular-games__advantage-grid,
  .page-index-popular-games__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index-popular-games__hero-actions,
  .page-index-popular-games__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-popular-games__btn {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero {
    padding: 60px 0;
  }
  .page-index-popular-games__title {
    font-size: 2em;
  }
  .page-index-popular-games__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__text {
    font-size: 0.95em;
  }
  .page-index-popular-games__game-card,
  .page-index-popular-games__advantage-item,
  .page-index-popular-games__guide-step-item {
    padding: 20px;
  }
  .page-index-popular-games__game-title,
  .page-index-popular-games__advantage-title,
  .page-index-popular-games__guide-step-title {
    font-size: 1.5em;
  }
  .page-index-popular-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-index-popular-games__faq-answer {
    font-size: 1em;
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__title {
    font-size: 1.8em;
  }
  .page-index-popular-games__section-title {
    font-size: 1.6em;
  }
  .page-index-popular-games__btn {
    width: 90%;
    max-width: 280px;
  }
}