/* style/index-popular-games-entrance.css */
.page-index-popular-games-entrance {
  font-family: 'Arial', sans-serif;
  color: #E5E5E5; /* Light grey for general text on dark background */
  background-color: #1A202C; /* Primary dark background */
  line-height: 1.6;
}

.page-index-popular-games-entrance .highlight {
  color: #FFD700; /* Secondary gold for highlights */
}

.page-index-popular-games-entrance__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1A202C 0%, #333d4f 100%); /* Dark gradient for hero */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-popular-games-entrance__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-index-popular-games-entrance__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White for main title */
  line-height: 1.2;
}

.page-index-popular-games-entrance__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #CCCCCC; /* Lighter grey for description */
}

.page-index-popular-games-entrance__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-popular-games-entrance__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-index-popular-games-entrance__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A202C; /* Dark text on gold */
  border: 2px solid #FFD700;
}

.page-index-popular-games-entrance__btn--primary:hover {
  background-color: #E6C200;
  transform: translateY(-2px);
}

.page-index-popular-games-entrance__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-index-popular-games-entrance__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-index-popular-games-entrance__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index-popular-games-entrance__btn--large {
  padding: 16px 35px;
  font-size: 1.2em;
}

.page-index-popular-games-entrance__btn-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.page-index-popular-games-entrance__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-index-popular-games-entrance__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-index-popular-games-entrance__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index-popular-games-entrance__section-subtitle {
  font-size: 1.1em;
  color: #CCCCCC;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-index-popular-games-entrance__game-categories {
  padding: 80px 20px;
  background-color: #1A202C;
}

.page-index-popular-games-entrance__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-popular-games-entrance__category-card {
  background-color: #2D3748; /* Slightly lighter dark background for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-popular-games-entrance__category-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.page-index-popular-games-entrance__category-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-popular-games-entrance__category-description {
  font-size: 0.95em;
  color: #B0B0B0;
  margin-bottom: 25px;
  min-height: 70px; /* Ensure consistent card height */
}

.page-index-popular-games-entrance__why-choose {
  padding: 80px 20px;
  background-color: #2D3748;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-popular-games-entrance__why-choose-content {
  flex: 1;
  max-width: 700px;
  text-align: left;
}

.page-index-popular-games-entrance__why-choose-content .page-index-popular-games-entrance__section-title,
.page-index-popular-games-entrance__why-choose-content .page-index-popular-games-entrance__section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

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

.page-index-popular-games-entrance__feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #E5E5E5;
}

.page-index-popular-games-entrance__feature-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.page-index-popular-games-entrance__why-choose-image-wrapper {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-popular-games-entrance__why-choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games-entrance__promotions {
  padding: 80px 20px;
  background-color: #1A202C;
}

.page-index-popular-games-entrance__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.page-index-popular-games-entrance__promo-card {
  background-color: #2D3748;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-popular-games-entrance__promo-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-popular-games-entrance__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index-popular-games-entrance__promo-description {
  font-size: 0.95em;
  color: #B0B0B0;
  margin-bottom: 20px;
  min-height: 60px;
}

.page-index-popular-games-entrance__cta-text {
  text-align: center;
  font-size: 1.1em;
  color: #E5E5E5;
  margin-top: 40px;
}

.page-index-popular-games-entrance__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index-popular-games-entrance__text-link:hover {
  text-decoration: underline;
}

.page-index-popular-games-entrance__app-download {
  padding: 80px 20px;
  background-color: #2D3748;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-popular-games-entrance__app-content {
  flex: 1;
  max-width: 700px;
  text-align: left;
}

.page-index-popular-games-entrance__app-content .page-index-popular-games-entrance__section-title,
.page-index-popular-games-entrance__app-content .page-index-popular-games-entrance__section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index-popular-games-entrance__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index-popular-games-entrance__app-note {
  font-size: 1em;
  color: #B0B0B0;
  margin-top: 20px;
}

.page-index-popular-games-entrance__qr-code {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-entrance__app-image-wrapper {
  flex: 1;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-popular-games-entrance__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games-entrance__faq {
  padding: 80px 20px;
  background-color: #1A202C;
}

.page-index-popular-games-entrance__faq-item {
  background-color: #2D3748;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-entrance__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-popular-games-entrance__faq-answer {
  font-size: 1em;
  color: #B0B0B0;
}

.page-index-popular-games-entrance__contact-cta {
  padding: 80px 20px;
  background-color: #333d4f;
  text-align: center;
}

.page-index-popular-games-entrance__floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FFD700;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transform: translateX(120%); /* Start off-screen */
  animation: page-index-popular-games-entrance__slideIn 0.8s forwards 2s; /* Slide in after 2s */
}

.page-index-popular-games-entrance__floating-ad a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1A202C;
  font-weight: bold;
}

.page-index-popular-games-entrance__floating-ad-image {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

.page-index-popular-games-entrance__floating-ad-text {
  font-size: 1.1em;
}

.page-index-popular-games-entrance__floating-ad-close {
  background: none;
  border: none;
  color: #1A202C;
  font-size: 1.5em;
  cursor: pointer;
  margin-left: 10px;
  padding: 0 5px;
}

.page-index-popular-games-entrance__floating-ad-close:hover {
  color: #555;
}

@keyframes page-index-popular-games-entrance__slideIn {
  to {
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-popular-games-entrance__hero-title {
    font-size: 2.8em;
  }
  .page-index-popular-games-entrance__section-title {
    font-size: 2em;
  }
  .page-index-popular-games-entrance__why-choose,
  .page-index-popular-games-entrance__app-download {
    flex-direction: column;
    text-align: center;
  }
  .page-index-popular-games-entrance__why-choose-content,
  .page-index-popular-games-entrance__app-content {
    text-align: center;
  }
  .page-index-popular-games-entrance__why-choose-content .page-index-popular-games-entrance__section-title,
  .page-index-popular-games-entrance__why-choose-content .page-index-popular-games-entrance__section-subtitle,
  .page-index-popular-games-entrance__app-content .page-index-popular-games-entrance__section-title,
  .page-index-popular-games-entrance__app-content .page-index-popular-games-entrance__section-subtitle {
    text-align: center;
  }
  .page-index-popular-games-entrance__feature-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
  }
  .page-index-popular-games-entrance__download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games-entrance__hero {
    padding: 40px 15px;
  }
  .page-index-popular-games-entrance__hero-title {
    font-size: 2.2em;
  }
  .page-index-popular-games-entrance__hero-description {
    font-size: 1em;
  }
  .page-index-popular-games-entrance__hero-actions {
    flex-direction: column;
  }
  .page-index-popular-games-entrance__btn--large {
    width: 100%;
    box-sizing: border-box;
  }
  .page-index-popular-games-entrance__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games-entrance__section-subtitle {
    font-size: 0.95em;
  }
  .page-index-popular-games-entrance__game-categories,
  .page-index-popular-games-entrance__why-choose,
  .page-index-popular-games-entrance__promotions,
  .page-index-popular-games-entrance__app-download,
  .page-index-popular-games-entrance__faq,
  .page-index-popular-games-entrance__contact-cta {
    padding: 50px 15px;
  }
  .page-index-popular-games-entrance__category-grid,
  .page-index-popular-games-entrance__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games-entrance__category-description,
  .page-index-popular-games-entrance__promo-description {
    min-height: auto;
  }
  .page-index-popular-games-entrance__floating-ad {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }
  .page-index-popular-games-entrance__floating-ad-text {
    font-size: 0.9em;
  }
  .page-index-popular-games-entrance__floating-ad-image {
    width: 30px;
    height: 30px;
  }
  .page-index-popular-games-entrance__floating-ad-close {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games-entrance__hero-title {
    font-size: 1.8em;
  }
  .page-index-popular-games-entrance__section-title {
    font-size: 1.5em;
  }
  .page-index-popular-games-entrance__btn {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index-popular-games-entrance__btn--large {
    padding: 14px 30px;
  }
  .page-index-popular-games-entrance__download-buttons {
    flex-direction: column;
  }
  .page-index-popular-games-entrance__qr-code {
    width: 150px;
    height: 150px;
  }
}