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

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

.page-index-popular-games h1,
.page-index-popular-games h2,
.page-index-popular-games h3 {
  color: #000080; /* Dark Blue */
  margin-bottom: 20px;
  text-align: center;
}

.page-index-popular-games h1 {
  font-size: 2.8em;
  color: #FFD700; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games h2 {
  font-size: 2.2em;
  padding-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-index-popular-games h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #FFD700; /* Gold */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index-popular-games h3 {
  font-size: 1.6em;
  color: #000080; /* Dark Blue */
  margin-bottom: 15px;
}

.page-index-popular-games p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index-popular-games .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Gold */
  color: #000080; /* Dark Blue */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games .cta-button:hover {
  background: #e6c200; /* Darker Gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games .cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-index-popular-games .inline-link {
  color: #000080; /* Dark Blue */
  text-decoration: underline;
  font-weight: bold;
}

.page-index-popular-games .inline-link:hover {
  color: #FFD700; /* Gold */
  text-decoration: none;
}

/* Hero Section */
.page-index-popular-games .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #000080 0%, #3a3a9a 100%); /* Dark Blue Gradient */
  color: #ffffff;
}

.page-index-popular-games .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-games .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-index-popular-games .hero-content h1 {
  color: #FFD700; /* Gold */
  font-size: 3.5em;
  margin-bottom: 20px;
}

.page-index-popular-games .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-index-popular-games .introduction-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-index-popular-games .introduction-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 15px auto;
}

/* Games Showcase Section */
.page-index-popular-games .games-showcase-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-index-popular-games .game-category-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: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index-popular-games .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games .game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-index-popular-games .game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.page-index-popular-games .game-card h3 {
  color: #000080; /* Dark Blue */
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-popular-games .game-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 15px;
  margin-bottom: 15px;
  text-align: center;
}

.page-index-popular-games .game-card .cta-link {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #000080; /* Dark Blue */
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-popular-games .game-card .cta-link:hover {
  background-color: #e6c200; /* Darker Gold */
}

/* Why Choose Us Section */
.page-index-popular-games .why-choose-us-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

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

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

.page-index-popular-games .feature-item img {
  width: 120px; /* Larger icon size */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-popular-games .feature-item h3 {
  color: #000080; /* Dark Blue */
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index-popular-games .feature-item p {
  font-size: 0.9em;
  color: #666;
  text-align: center;
}

/* Promotions Section */
.page-index-popular-games .promotions-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-index-popular-games .promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-index-popular-games .promotion-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #FFD700; /* Gold accent */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-index-popular-games .promotion-list li h3 {
  text-align: left;
  font-size: 1.5em;
  color: #000080; /* Dark Blue */
  margin-top: 0;
}

.page-index-popular-games .promotion-list li p {
  text-align: left;
  color: #555;
}

/* FAQ Section */
.page-index-popular-games .faq-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-index-popular-games .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-index-popular-games .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index-popular-games .faq-question:hover {
  background: #f5f5f5;
}

.page-index-popular-games .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #000080; /* Dark Blue */
  text-align: left;
}

.page-index-popular-games .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  transition: transform 0.3s ease;
}

.page-index-popular-games .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-index-popular-games .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: #fcfcfc;
}

.page-index-popular-games .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
  border-top: 1px solid #eee;
}

.page-index-popular-games .faq-answer p {
  margin: 0;
  color: #444;
  text-align: left;
}

/* Latest News Section */
.page-index-popular-games .latest-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-index-popular-games .latest-news-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-index-popular-games .news-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games .news-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-index-popular-games .news-card img {
  width: 100%;
  height: 200px; /* Fixed height for news images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.page-index-popular-games .news-card h3 {
  color: #000080; /* Dark Blue */
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
  text-align: left;
}

.page-index-popular-games .news-card p {
  font-size: 0.9em;
  color: #555;
  padding: 0 15px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index-popular-games .news-card .news-date {
  display: block;
  font-size: 0.85em;
  color: #777;
  padding: 0 15px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-games h1 {
    font-size: 2.5em;
  }

  .page-index-popular-games .hero-content p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games h1 {
    font-size: 2em;
  }

  .page-index-popular-games h2 {
    font-size: 1.8em;
  }

  .page-index-popular-games h3 {
    font-size: 1.3em;
  }

  .page-index-popular-games .hero-section {
    padding: 40px 15px;
  }

  .page-index-popular-games .hero-content p {
    font-size: 1em;
  }

  .page-index-popular-games .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index-popular-games .game-category-grid,
  .page-index-popular-games .features-grid,
  .page-index-popular-games .news-grid {
    grid-template-columns: 1fr;
  }

  .page-index-popular-games .feature-item img {
    width: 100px;
    height: 100px;
  }

  .page-index-popular-games .faq-question h3 {
    font-size: 1.1em;
  }

  .page-index-popular-games .faq-toggle {
    font-size: 20px;
  }

  .page-index-popular-games .promotion-list li h3,
  .page-index-popular-games .news-card h3 {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games h1 {
    font-size: 1.8em;
  }

  .page-index-popular-games h2 {
    font-size: 1.6em;
  }

  .page-index-popular-games .hero-image {
    margin-bottom: 20px;
  }

  .page-index-popular-games .hero-content p {
    font-size: 0.95em;
  }

  .page-index-popular-games .cta-button {
    padding: 10px 25px;
    font-size: 14px;
  }

  .page-index-popular-games .game-card img,
  .page-index-popular-games .news-card img {
    height: 180px;
  }

  .page-index-popular-games .feature-item {
    padding: 20px;
  }
  
  .page-index-popular-games .feature-item img {
    width: 80px;
    height: 80px;
  }

  .page-index-popular-games .promotion-list li,
  .page-index-popular-games .faq-item {
    padding: 15px;
  }
}