/* style/index-popular-games.css */
.page-index-popular-games {
  font-family: 'Arial', sans-serif;
  color: #e5dfca; /* Light text for dark background */
  background-color: #1A2035; /* Main dark background */
  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, #1A2035 0%, #303b5a 100%); /* Dark blue gradient */
  padding: 100px 0;
  text-align: center;
  border-bottom: 3px solid #FFD700;
}

.page-index-popular-games__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-popular-games__hero-subtitle {
  font-size: 1.25em;
  color: #e5dfca;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

.page-index-popular-games__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-right: 20px;
}

.page-index-popular-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A2035;
  transform: translateY(-2px);
}

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

.page-index-popular-games__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-index-popular-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-index-popular-games__section--dark {
  background-color: #2c3454;
}

.page-index-popular-games__section--faq {
  background-color: #1A2035;
  padding-bottom: 100px;
}

.page-index-popular-games__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 30px;
}

.page-index-popular-games__section-description {
  font-size: 1.15em;
  color: #e5dfca;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-index-popular-games__game-card {
  background-color: #2c3454;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-popular-games__game-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

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

.page-index-popular-games__benefit-item {
  background-color: #1A2035;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-index-popular-games__benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.page-index-popular-games__benefit-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

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

.page-index-popular-games__steps-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 50px auto;
}

.page-index-popular-games__steps-list li {
  background-color: #2c3454;
  border-left: 5px solid #FFD700;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #e5dfca;
  font-size: 1.1em;
}

.page-index-popular-games__steps-list li strong {
  color: #FFD700;
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

.page-index-popular-games__faq-accordion {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

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

.page-index-popular-games__faq-question {
  background-color: #3d4669;
  color: #FFD700;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

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

.page-index-popular-games__faq-answer {
  padding: 0 25px;
  background-color: #2c3454;
  color: #e5dfca;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-index-popular-games__faq-answer p {
  padding: 15px 0;
  margin: 0;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index-popular-games__section--final-cta {
  background: linear-gradient(45deg, #1A2035, #3d4669);
  padding: 100px 0;
  border-top: 3px solid #FFD700;
}

.page-index-popular-games__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games__section-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-index-popular-games__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero {
    padding: 80px 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: 60px 0;
  }
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__section-description {
    font-size: 1em;
  }
  .page-index-popular-games__game-card {
    padding: 20px;
  }
  .page-index-popular-games__game-title {
    font-size: 1.5em;
  }
  .page-index-popular-games__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games__cta-group {
    flex-direction: column;
  }
  .page-index-popular-games__btn--secondary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-index-popular-games__steps-list li {
    padding: 20px;
    font-size: 1em;
  }
  .page-index-popular-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-index-popular-games__faq-answer p {
    padding: 10px 0;
  }
}

@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__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index-popular-games__section-title {
    font-size: 1.5em;
  }
  .page-index-popular-games__game-grid {
    gap: 20px;
  }
  .page-index-popular-games__game-title {
    font-size: 1.3em;
  }
  .page-index-popular-games__game-text {
    font-size: 0.9em;
  }
  .page-index-popular-games__steps-list li {
    font-size: 0.95em;
  }
  .page-index-popular-games__faq-question {
    font-size: 1em;
  }
}