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

/* Base styles for the page content */
.page-index-popular-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #1a1a2e */
  background-color: #1a1a2e;
}

.page-index-popular-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-index-popular-games__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-index-popular-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-index-popular-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 700px;
  padding-top: var(--header-offset, 120px);
  background-color: #1a1a2e;
  overflow: hidden;
}

.page-index-popular-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-index-popular-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index-popular-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
}

.page-index-popular-games__hero-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-popular-games__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-index-popular-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-index-popular-games__btn-primary,
.page-index-popular-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-popular-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-popular-games__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-index-popular-games__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-popular-games__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Card styles */
.page-index-popular-games__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Why Choose Us Section */
.page-index-popular-games__why-choose-us {
  background-color: #1a1a2e;
}

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

.page-index-popular-games__feature-item {
  text-align: center;
  align-items: center;
}

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

.page-index-popular-games__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index-popular-games__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Top Games Section */
.page-index-popular-games__top-games {
  background-color: #1a1a2e;
}

.page-index-popular-games__game-category {
  margin-bottom: 60px;
  text-align: center;
  padding: 40px;
}

.page-index-popular-games__category-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-index-popular-games__category-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-index-popular-games__category-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  text-align: left;
}

.page-index-popular-games__category-features {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 30px;
  color: #f0f0f0;
  padding-left: 20px;
}

.page-index-popular-games__category-features li {
  margin-bottom: 8px;
  font-size: 1em;
}

/* Promotions Section */
.page-index-popular-games__promotions {
  background-color: #1a1a2e;
}

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

.page-index-popular-games__promotion-card {
  text-align: center;
  align-items: center;
}

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

.page-index-popular-games__promotion-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index-popular-games__promotion-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index-popular-games__promotion-title a:hover {
  text-decoration: underline;
}

.page-index-popular-games__promotion-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* How To Play Section */
.page-index-popular-games__how-to-play {
  background-color: #1a1a2e;
}

.page-index-popular-games__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.page-index-popular-games__step-item {
  text-align: center;
  padding: 35px;
  position: relative;
  align-items: center;
}

.page-index-popular-games__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-index-popular-games__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index-popular-games__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-index-popular-games__faq {
  background-color: #1a1a2e;
}

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

.page-index-popular-games__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
  align-items: stretch;
  padding: 0;
}

.page-index-popular-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index-popular-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.page-index-popular-games__faq-heading {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-index-popular-games__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-index-popular-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.page-index-popular-games__faq-item.active .page-index-popular-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 30px;
}

.page-index-popular-games__faq-answer p {
  color: #f0f0f0;
  margin: 0;
  font-size: 1em;
}

.page-index-popular-games__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Call to Action Section */
.page-index-popular-games__call-to-action {
  background-color: #26A9E0;
  text-align: center;
  padding: 80px 0;
}

.page-index-popular-games__cta-content {
  max-width: 900px;
}

.page-index-popular-games__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index-popular-games__cta-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-popular-games__cta-button {
  background-color: #EA7C07; /* Login button color for CTA */
  border-color: #EA7C07;
  color: #ffffff;
}

.page-index-popular-games__cta-button:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index-popular-games__hero-title {
    font-size: 3em;
  }
  .page-index-popular-games__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero-section {
    min-height: 550px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-popular-games__hero-title {
    font-size: 2.2em;
  }
  .page-index-popular-games__hero-description {
    font-size: 1em;
  }
  .page-index-popular-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-index-popular-games__btn-primary,
  .page-index-popular-games__btn-secondary,
  .page-index-popular-games a[class*="button"],
  .page-index-popular-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-popular-games__hero-buttons {
    padding: 0 15px;
  }
  .page-index-popular-games__section-title {
    font-size: 2em;
  }
  .page-index-popular-games__section-description {
    font-size: 0.95em;
  }
  .page-index-popular-games__features-grid,
  .page-index-popular-games__promotions-grid,
  .page-index-popular-games__steps-list {
    grid-template-columns: 1fr;
  }
  .page-index-popular-games__game-category {
    padding: 25px;
  }
  .page-index-popular-games__category-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__category-image {
    height: auto;
  }
  .page-index-popular-games__promotion-image {
    height: 180px;
  }
  .page-index-popular-games__cta-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__cta-description {
    font-size: 1em;
  }
  .page-index-popular-games__faq-question,
  .page-index-popular-games__faq-answer {
    padding: 15px 20px;
  }
  .page-index-popular-games__faq-heading {
    font-size: 1.1em;
  }
  .page-index-popular-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-popular-games__section,
  .page-index-popular-games__card,
  .page-index-popular-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-popular-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-popular-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-index-popular-games__cta-buttons,
  .page-index-popular-games__button-group,
  .page-index-popular-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__hero-description {
    font-size: 0.9em;
  }
  .page-index-popular-games__btn-primary,
  .page-index-popular-games__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-popular-games__cta-title {
    font-size: 1.6em;
  }
}