.page-index-popular-games {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Navy */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-medium: #e0e0e0;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-index-popular-games .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-popular-games .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.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, var(--primary-color), var(--secondary-color)); /* Ensure text contrast */
  color: var(--text-light);
}

.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-width: 1000px; /* Limit image width to avoid being too large */
}

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

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

.page-index-popular-games .hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games .hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-index-popular-games .cta-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games .introduction-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-index-popular-games .introduction-section p {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index-popular-games .quick-access-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-index-popular-games .access-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-popular-games .access-link-card .card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-index-popular-games .access-link-card .card-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index-popular-games .access-link-card p {
  font-size: 15px;
  color: #666;
}

.page-index-popular-games .games-overview-section {
  padding: 80px 0;
  background-color: var(--text-light);
}

.page-index-popular-games .game-category {
  margin-bottom: 60px;
}

.page-index-popular-games .category-title {
  font-size: 30px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

.page-index-popular-games .game-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-popular-games .game-card .game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-popular-games .game-card .game-name {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-popular-games .game-card .game-description {
  font-size: 15px;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-index-popular-games .btn-play-game {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-popular-games .btn-play-game:hover {
  background: #000066; /* Slightly darker navy */
}

.page-index-popular-games .promotions-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-index-popular-games .promo-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  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(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games .promo-card .promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-popular-games .promo-card .promo-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-popular-games .promo-card p {
  font-size: 15px;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-index-popular-games .btn-claim-promo {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-popular-games .btn-claim-promo:hover {
  background: #FFC107;
}

.page-index-popular-games .security-support-section {
  padding: 80px 0;
  background-color: var(--text-light);
}

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

.page-index-popular-games .security-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-index-popular-games .security-item .security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-index-popular-games .security-item .security-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index-popular-games .security-item p {
  font-size: 15px;
  color: #666;
}

.page-index-popular-games .faq-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.page-index-popular-games .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-popular-games .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index-popular-games .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-index-popular-games .faq-question h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin: 0;
}

.page-index-popular-games .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-index-popular-games .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.page-index-popular-games .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 15px;
}

.page-index-popular-games .faq-answer p {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0;
}

.page-index-popular-games .blog-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-index-popular-games .blog-post-card {
  background: var(--text-light);
  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 .blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games .blog-post-card .post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index-popular-games .blog-post-card .post-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin: 15px 15px 10px 15px;
}

.page-index-popular-games .blog-post-card .post-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-popular-games .blog-post-card .post-title a:hover {
  color: var(--primary-color);
}

.page-index-popular-games .blog-post-card .post-excerpt {
  font-size: 15px;
  color: #666;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-index-popular-games .blog-post-card .post-date {
  font-size: 13px;
  color: #999;
  padding: 0 15px 15px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-games .hero-title {
    font-size: 40px;
  }
  .page-index-popular-games .hero-description {
    font-size: 18px;
  }
  .page-index-popular-games .section-title {
    font-size: 32px;
  }
  .page-index-popular-games .game-card-grid, .page-index-popular-games .promo-grid, .page-index-popular-games .security-support-grid, .page-index-popular-games .blog-posts-grid, .page-index-popular-games .access-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-popular-games .hero-section {
    padding: 40px 15px;
  }
  .page-index-popular-games .hero-title {
    font-size: 32px;
  }
  .page-index-popular-games .hero-description {
    font-size: 16px;
  }
  .page-index-popular-games .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index-popular-games .section-title {
    font-size: 28px;
  }
  .page-index-popular-games .introduction-section, .page-index-popular-games .quick-access-section, .page-index-popular-games .games-overview-section, .page-index-popular-games .promotions-section, .page-index-popular-games .security-support-section, .page-index-popular-games .faq-section, .page-index-popular-games .blog-section {
    padding: 50px 0;
  }
  .page-index-popular-games .game-card-grid, .page-index-popular-games .promo-grid, .page-index-popular-games .security-support-grid, .page-index-popular-games .blog-posts-grid, .page-index-popular-games .access-links-grid {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games .category-title {
    font-size: 26px;
  }
  .page-index-popular-games .faq-question h3 {
    font-size: 16px;
  }
  .page-index-popular-games .faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games .hero-title {
    font-size: 28px;
  }
  .page-index-popular-games .hero-description {
    font-size: 14px;
  }
  .page-index-popular-games .section-title {
    font-size: 24px;
  }
  .page-index-popular-games .game-card .game-name, .page-index-popular-games .promo-card .promo-title, .page-index-popular-games .security-item .security-title, .page-index-popular-games .blog-post-card .post-title {
    font-size: 20px;
  }
  .page-index-popular-games .cta-button, .page-index-popular-games .btn-play-game, .page-index-popular-games .btn-claim-promo {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-index-popular-games .access-link-card .card-title {
    font-size: 20px;
  }
  .page-index-popular-games .access-link-card .card-icon {
    width: 80px;
    height: 80px;
  }
}