/* style/index-popular-games.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #F0F2F5;
  --text-dark: #1A202C;
  --background-dark: #1A202C;
  --background-light: #FFFFFF;
  --accent-color: #E53E3E; /* For alerts/promotions */
}

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

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

/* 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, var(--background-dark) 0%, #3a475a 100%); /* Slightly lighter dark gradient */
}

.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;
}

.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 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index-popular-games .hero-content h1 {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-index-popular-games .cta-button:hover {
  background: #e0b800; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* General Section Styling */
.page-index-popular-games section {
  padding: 80px 0;
  text-align: center;
}

.page-index-popular-games section:nth-of-type(even) {
  background-color: #2a3342; /* Slightly lighter than main dark background */
}

.page-index-popular-games h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.page-index-popular-games h3 {
  font-size: 1.8em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-index-popular-games p {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-index-popular-games .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.page-index-popular-games .btn-small:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

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

.page-index-popular-games .intro-item {
  background-color: #2a3342;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games .intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games .intro-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
}

.page-index-popular-games .intro-item p {
  color: #cccccc;
  font-size: 0.95em;
}

/* Quick Access Section */
.page-index-popular-games .quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

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

.page-index-popular-games .quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games .quick-link-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-index-popular-games .quick-link-card h3 {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index-popular-games .quick-link-card p {
  font-size: 0.9em;
  color: #cccccc;
}

/* Games Showcase Section */
.page-index-popular-games .games-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: #2a3342;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index-popular-games .game-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.5em;
}

.page-index-popular-games .game-card h3 a:hover {
  text-decoration: underline;
}

.page-index-popular-games .game-card p {
  color: #cccccc;
  font-size: 0.95em;
}

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

.page-index-popular-games .promo-card {
  background-color: #2a3342;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games .promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-index-popular-games .promo-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.5em;
}

.page-index-popular-games .promo-card h3 a:hover {
  text-decoration: underline;
}

.page-index-popular-games .promo-card p {
  color: #cccccc;
  font-size: 0.95em;
}

/* Security and Support Section */
.page-index-popular-games .security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-popular-games .info-block {
  background-color: #2a3342;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-index-popular-games .info-block h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
}

.page-index-popular-games .info-block p {
  color: #cccccc;
  font-size: 0.95em;
}

.page-index-popular-games .contact-cta {
  margin-top: 50px;
  padding: 40px;
  background-color: #1a2533; /* Slightly different dark shade */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games .contact-cta p {
  font-size: 1.2em;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-index-popular-games .faq-section {
  background-color: var(--background-dark);
}

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

.page-index-popular-games .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a3342;
  border: 1px solid #3a475a;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-index-popular-games .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-light);
}

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

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

.page-index-popular-games .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 25px;
  background: #1a2533;
  color: #cccccc;
}

.page-index-popular-games .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 25px;
  border-radius: 0 0 5px 5px;
}

.page-index-popular-games .faq-answer p {
  margin-bottom: 15px;
  color: #cccccc;
}

.page-index-popular-games .faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index-popular-games .faq-answer a:hover {
  text-decoration: underline;
}

/* Latest Blog Section */
.page-index-popular-games .latest-blog-section {
  background-color: #2a3342;
}

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

.page-index-popular-games .blog-card {
  background-color: var(--background-dark);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games .blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index-popular-games .blog-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.3em;
  line-height: 1.4;
}

.page-index-popular-games .blog-card h3 a:hover {
  text-decoration: underline;
}

.page-index-popular-games .blog-card p {
  color: #cccccc;
  font-size: 0.9em;
  margin-top: 10px;
  margin-bottom: 15px;
}

.page-index-popular-games .blog-card .post-date {
  font-size: 0.85em;
  color: #888888;
}

.page-index-popular-games .view-all-cta {
  margin-top: 50px;
}

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

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

@media (max-width: 768px) {
  .page-index-popular-games .hero-section {
    padding: 40px 15px;
  }
  
  .page-index-popular-games .hero-image img {
    border-radius: 4px;
  }
  
  .page-index-popular-games .hero-content h1 {
    font-size: 2.2em;
  }

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

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

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

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

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

  .page-index-popular-games .introduction-grid, 
  .page-index-popular-games .quick-links-grid, 
  .page-index-popular-games .games-grid, 
  .page-index-popular-games .promo-grid, 
  .page-index-popular-games .security-support-grid, 
  .page-index-popular-games .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-popular-games .intro-item, 
  .page-index-popular-games .quick-link-card, 
  .page-index-popular-games .game-card, 
  .page-index-popular-games .promo-card, 
  .page-index-popular-games .info-block, 
  .page-index-popular-games .blog-card {
    padding: 20px;
  }

  .page-index-popular-games .quick-link-card img {
    max-width: 200px;
  }

  .page-index-popular-games .faq-question {
    padding: 15px 20px;
  }

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

  .page-index-popular-games .faq-answer {
    padding: 0 20px;
  }

  .page-index-popular-games .faq-item.active .faq-answer {
    padding: 20px;
  }

  .page-index-popular-games .contact-cta {
    padding: 30px;
  }

  .page-index-popular-games .contact-cta p {
    font-size: 1em;
  }
}

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

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

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

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