/* style/index-popular-game-categories.css */
:root {
  --primary-color: #0A1930;
  --secondary-color: #E8A900;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #0A1930;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-index-popular-game-categories {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

.page-index-popular-game-categories__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-popular-game-categories__section:nth-of-type(even) {
  background-color: #e6e9ed; /* Slightly lighter background for contrast */
}

.page-index-popular-game-categories h1,
.page-index-popular-game-categories h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2.8em;
  font-weight: bold;
}

.page-index-popular-game-categories h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index-popular-game-categories p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Hero Section */
.page-index-popular-game-categories__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-game-categories__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-popular-game-categories__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index-popular-game-categories__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index-popular-game-categories__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index-popular-game-categories__hero-content h1 {
  color: var(--secondary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-popular-game-categories__hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-index-popular-game-categories__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--secondary-color);
}

.page-index-popular-game-categories__cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.page-index-popular-game-categories__cta-button--small {
  padding: 12px 30px;
  font-size: 1.1em;
  margin-top: 20px;
}

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

.page-index-popular-game-categories__game-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  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-game-categories__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-index-popular-game-categories__game-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index-popular-game-categories__game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-popular-game-categories__game-card h3 a:hover {
  color: var(--secondary-color);
}

.page-index-popular-game-categories__game-card p {
  font-size: 1em;
  color: #555;
  flex-grow: 1;
}

.page-index-popular-game-categories__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-index-popular-game-categories__card-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* Why Choose Us Section */
.page-index-popular-game-categories__why-choose-us {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-game-categories__why-choose-us h2 {
  color: var(--secondary-color);
}

.page-index-popular-game-categories__why-choose-us p {
  color: #cccccc;
}

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

.page-index-popular-game-categories__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-popular-game-categories__feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-index-popular-game-categories__feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(232, 169, 0, 0.5));
}

.page-index-popular-game-categories__feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-index-popular-game-categories__feature-item p {
  color: #dddddd;
  font-size: 1em;
}

/* How To Join Section */
.page-index-popular-game-categories__how-to-join {
  background-color: var(--background-light);
}

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

.page-index-popular-game-categories__steps-list li {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-game-categories__steps-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index-popular-game-categories__steps-list li h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
}

.page-index-popular-game-categories__steps-list li p {
  font-size: 1em;
  color: #666;
  flex-grow: 1;
}

.page-index-popular-game-categories__step-button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-index-popular-game-categories__step-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-index-popular-game-categories__call-to-action-text {
  margin-top: 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
}

/* Promotions Section */
.page-index-popular-game-categories__promotions {
  background-color: #f0f3f6;
}

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

.page-index-popular-game-categories__promo-list li {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-game-categories__promo-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index-popular-game-categories__promo-list li h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-top: 0;
}

.page-index-popular-game-categories__promo-list li p {
  font-size: 1em;
  color: #666;
}

.page-index-popular-game-categories__promo-cta-text {
  margin-top: 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
}

/* FAQ Section */
.page-index-popular-game-categories__faq {
  background-color: var(--background-light);
}

.page-index-popular-game-categories__faq-list {
  margin-top: 40px;
  text-align: left;
}

/* FAQ default state - answer hidden */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Question style */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.faq-question:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

/* Toggle icon */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-game-categories__hero-content h1 {
    font-size: 2.8em;
  }
  .page-index-popular-game-categories h2 {
    font-size: 2.2em;
  }
  .page-index-popular-game-categories h3 {
    font-size: 1.6em;
  }
  .page-index-popular-game-categories p {
    font-size: 1em;
  }
  .page-index-popular-game-categories__features-grid,
  .page-index-popular-game-categories__steps-list,
  .page-index-popular-game-categories__promo-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-popular-game-categories__hero-section {
    padding: 40px 15px;
  }
  .page-index-popular-game-categories__hero-content h1 {
    font-size: 2.2em;
  }
  .page-index-popular-game-categories__hero-content p {
    font-size: 1em;
  }
  .page-index-popular-game-categories__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
  }
  .page-index-popular-game-categories__section {
    padding: 40px 0;
  }
  .page-index-popular-game-categories h2 {
    font-size: 1.8em;
  }
  .page-index-popular-game-categories h3 {
    font-size: 1.4em;
  }
  .page-index-popular-game-categories__game-grid,
  .page-index-popular-game-categories__features-grid,
  .page-index-popular-game-categories__steps-list,
  .page-index-popular-game-categories__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-popular-game-categories__game-card,
  .page-index-popular-game-categories__feature-item,
  .page-index-popular-game-categories__steps-list li,
  .page-index-popular-game-categories__promo-list li {
    padding: 20px;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-game-categories__hero-content h1 {
    font-size: 1.8em;
  }
  .page-index-popular-game-categories__hero-content p {
    font-size: 0.9em;
  }
  .page-index-popular-game-categories__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index-popular-game-categories h2 {
    font-size: 1.5em;
  }
  .page-index-popular-game-categories h3 {
    font-size: 1.2em;
  }
  .page-index-popular-game-categories p {
    font-size: 0.9em;
  }
}