/* style/index-popular-games-entrance.css */

:root {
  --primary-color: #1A2A3A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f5f5f5;
  --background-dark: #121E2C;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-index-popular-games-entrance h1, .page-index-popular-games-entrance h2, .page-index-popular-games-entrance h3, .page-index-popular-games-entrance h4, .page-index-popular-games-entrance h5, .page-index-popular-games-entrance h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index-popular-games-entrance h1 {
  font-size: 3em;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-entrance h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-index-popular-games-entrance h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-index-popular-games-entrance p {
  margin-bottom: 15px;
}

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

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

.page-index-popular-games-entrance section:nth-of-type(even) {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-games-entrance section:nth-of-type(even) h2, .page-index-popular-games-entrance section:nth-of-type(even) h3 {
  color: var(--secondary-color);
}

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

.page-index-popular-games-entrance .cta-button:hover {
  background: #E6B800; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-entrance .secondary-cta {
  background: var(--primary-color);
  color: var(--secondary-color);
  margin-left: 20px;
  border: 2px solid var(--secondary-color);
}

.page-index-popular-games-entrance .secondary-cta:hover {
  background: var(--background-dark);
  color: var(--secondary-color);
}

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

.page-index-popular-games-entrance .cta-button-small:hover {
  background: #E6B800;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-index-popular-games-entrance .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-entrance .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 10px;
}

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

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

.page-index-popular-games-entrance .hero-content p {
  font-size: 1.2em;
  color: #cccccc;
}

/* Module 1: Intro */
.page-index-popular-games-entrance .section-intro {
  background-color: var(--background-light);
}

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

.page-index-popular-games-entrance .intro-item {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index-popular-games-entrance .intro-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Module 2: Quick Access */
.page-index-popular-games-entrance .section-quick-access {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-games-entrance .section-quick-access h2 {
  color: var(--secondary-color);
}

.page-index-popular-games-entrance .section-quick-access p {
  color: #cccccc;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index-popular-games-entrance .access-link-card {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-popular-games-entrance .access-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

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

.page-index-popular-games-entrance .access-link-card p {
  color: #aaa;
  font-size: 0.95em;
}

/* Module 3: Games */
.page-index-popular-games-entrance .section-games {
  background-color: var(--background-light);
}

.page-index-popular-games-entrance .game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.page-index-popular-games-entrance .game-tab-button {
  padding: 12px 25px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background-color: transparent;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
}

.page-index-popular-games-entrance .game-tab-button:hover,
.page-index-popular-games-entrance .game-tab-button.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games-entrance .game-content-wrapper {
  margin-top: 30px;
}

.page-index-popular-games-entrance .game-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.page-index-popular-games-entrance .game-content.active {
  display: grid;
}

.page-index-popular-games-entrance .game-card {
  background-color: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-popular-games-entrance .game-card img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games-entrance .game-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.6em;
}

.page-index-popular-games-entrance .game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Module 4: Promotions */
.page-index-popular-games-entrance .section-promotions {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-games-entrance .section-promotions h2 {
  color: var(--secondary-color);
}

.page-index-popular-games-entrance .section-promotions p {
  color: #cccccc;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index-popular-games-entrance .promo-card {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-popular-games-entrance .promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

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

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

.page-index-popular-games-entrance .promo-card p {
  color: #aaa;
  font-size: 0.95em;
  flex-grow: 1;
}

/* Module 5: Safety & Support */
.page-index-popular-games-entrance .section-safety-support {
  background-color: var(--background-light);
}

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

.page-index-popular-games-entrance .safety-item {
  background-color: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-popular-games-entrance .safety-item img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-popular-games-entrance .safety-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.6em;
}

.page-index-popular-games-entrance .safety-item p {
  font-size: 0.95em;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Module 6: FAQ */
.page-index-popular-games-entrance .section-faq {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-popular-games-entrance .section-faq h2 {
  color: var(--secondary-color);
}

.page-index-popular-games-entrance .section-faq p {
  color: #cccccc;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index-popular-games-entrance .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-popular-games-entrance .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index-popular-games-entrance .faq-question:hover {
  background: #2A3A4A; /* Slightly lighter primary */
}

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

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

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

.page-index-popular-games-entrance .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: #0E1A26; /* Even darker background */
  color: #cccccc;
  padding: 0 25px;
}

.page-index-popular-games-entrance .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-index-popular-games-entrance .faq-answer p {
  margin-bottom: 10px;
}

/* Module 7: Blog */
.page-index-popular-games-entrance .section-blog {
  background-color: var(--background-light);
}

.page-index-popular-games-entrance .section-blog p {
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index-popular-games-entrance .blog-card {
  background-color: var(--card-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-index-popular-games-entrance .blog-card:hover {
  transform: translateY(-5px);
}

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

.page-index-popular-games-entrance .blog-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

.page-index-popular-games-entrance .blog-card h3 a:hover {
  color: var(--secondary-color);
}

.page-index-popular-games-entrance .blog-card p {
  font-size: 0.9em;
  color: #666;
  text-align: left;
  margin-bottom: 10px;
}

.page-index-popular-games-entrance .blog-date {
  font-size: 0.85em;
  color: #999;
  display: block;
  margin-top: auto;
  text-align: left;
}

/* Keyframes for animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-popular-games-entrance h1 {
    font-size: 2.5em;
  }
  .page-index-popular-games-entrance h2 {
    font-size: 2em;
  }
  .page-index-popular-games-entrance h3 {
    font-size: 1.5em;
  }
  .page-index-popular-games-entrance .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index-popular-games-entrance .secondary-cta {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games-entrance section {
    padding: 40px 0;
  }
  .page-index-popular-games-entrance h1 {
    font-size: 2em;
  }
  .page-index-popular-games-entrance h2 {
    font-size: 1.8em;
  }
  .page-index-popular-games-entrance .hero-image {
    max-height: 350px;
  }
  .page-index-popular-games-entrance .game-categories {
    flex-direction: column;
    align-items: center;
  }
  .page-index-popular-games-entrance .game-tab-button {
    width: 80%;
  }
  .page-index-popular-games-entrance .access-link-card, .page-index-popular-games-entrance .promo-card, .page-index-popular-games-entrance .safety-item, .page-index-popular-games-entrance .blog-card {
    padding: 20px;
  }
  .page-index-popular-games-entrance .faq-question {
    padding: 15px 20px;
  }
  .page-index-popular-games-entrance .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index-popular-games-entrance .faq-answer {
    padding: 0 20px;
  }
  .page-index-popular-games-entrance .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games-entrance .hero-section {
    padding: 30px 15px;
  }
  .page-index-popular-games-entrance h1 {
    font-size: 1.8em;
  }
  .page-index-popular-games-entrance .hero-content p {
    font-size: 1em;
  }
  .page-index-popular-games-entrance .cta-button, .page-index-popular-games-entrance .secondary-cta {
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
  }
  .page-index-popular-games-entrance .secondary-cta {
    margin-top: 0;
  }
  .page-index-popular-games-entrance .hero-image {
    max-height: 250px;
  }
  .page-index-popular-games-entrance .game-tab-button {
    width: 95%;
  }
}