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

.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;
  text-align: center;
}

.page-index-popular-games__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-index-popular-games__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-index-popular-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
  line-height: 1.2;
}

.page-index-popular-games__section-subtitle {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
  line-height: 1.2;
}

.page-index-popular-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-index-popular-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for decorative top margin */
}

.page-index-popular-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-index-popular-games__hero-image {
  width: 1200px;
  height: 675px;
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
}

.page-index-popular-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: #FFFFFF;
}

.page-index-popular-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #FFFFFF;
}

.page-index-popular-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-index-popular-games__btn-primary,
.page-index-popular-games__btn-secondary,
.page-index-popular-games__btn-tertiary {
  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;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-popular-games__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-index-popular-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
}

.page-index-popular-games__btn-tertiary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-index-popular-games__btn-center {
  margin-top: 20px;
}

/* Overview Section */
.page-index-popular-games__overview-section .page-index-popular-games__section-title,
.page-index-popular-games__overview-section .page-index-popular-games__section-description {
  color: #333333;
}

.page-index-popular-games__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-index-popular-games__image-text-block:nth-child(even) {
  flex-direction: row-reverse;
}

.page-index-popular-games__image-content {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 800px;
  height: 600px;
  object-fit: cover;
  display: block;
}

.page-index-popular-games__text-content {
  flex: 1;
  max-width: 50%;
}

.page-index-popular-games__text-content p {
  font-size: 1.1em;
  color: #555555;
}

/* Game Cards Grid */
.page-index-popular-games__games-grid .page-index-popular-games__section-subtitle {
  color: #333333;
}

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

.page-index-popular-games__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index-popular-games__game-card-content {
  padding: 25px;
}

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

.page-index-popular-games__game-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-index-popular-games__why-choose-us .page-index-popular-games__section-title,
.page-index-popular-games__why-choose-us .page-index-popular-games__section-description {
  color: #FFFFFF;
}

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

.page-index-popular-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
}

.page-index-popular-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Allowed for visual enhancement, not color change */
}

.page-index-popular-games__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

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

/* Registration Guide Section */
.page-index-popular-games__registration-guide .page-index-popular-games__section-title,
.page-index-popular-games__registration-guide .page-index-popular-games__section-description {
  color: #333333;
}

.page-index-popular-games__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index-popular-games__guide-step {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-index-popular-games__guide-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-index-popular-games__guide-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-index-popular-games__guide-text {
  font-size: 0.95em;
  color: #666666;
}

.page-index-popular-games__cta-buttons--center {
  margin-top: 40px;
}

/* FAQ Section */
.page-index-popular-games__faq-section .page-index-popular-games__section-title {
  color: #333333;
}

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

.page-index-popular-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-popular-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-index-popular-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-popular-games__faq-item summary:hover {
  background-color: #e5e5e5;
}

.page-index-popular-games__faq-qtext {
  flex-grow: 1;
}

.page-index-popular-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-index-popular-games__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* Call to Action Section */
.page-index-popular-games__call-to-action .page-index-popular-games__section-title,
.page-index-popular-games__call-to-action .page-index-popular-games__section-description {
  color: #FFFFFF;
}

.page-index-popular-games__cta-content {
  padding: 40px 20px;
}

/* General Image styles */
.page-index-popular-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-popular-games__hero-image {
    width: 100%;
    height: auto;
  }

  .page-index-popular-games__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-index-popular-games__image-content,
  .page-index-popular-games__text-content {
    max-width: 100%;
  }

  .page-index-popular-games__image-text-block:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__section {
    padding: 40px 0;
  }

  .page-index-popular-games__section-title {
    font-size: 2em;
  }

  .page-index-popular-games__section-subtitle {
    font-size: 1.6em;
  }

  .page-index-popular-games__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  /* Images responsive */
  .page-index-popular-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image/Video containers responsive */
  .page-index-popular-games__section,
  .page-index-popular-games__card,
  .page-index-popular-games__container,
  .page-index-popular-games__hero-section,
  .page-index-popular-games__hero-image-wrapper,
  .page-index-popular-games__video-section,
  .page-index-popular-games__video-container,
  .page-index-popular-games__video-wrapper,
  .page-index-popular-games__game-cards-wrapper,
  .page-index-popular-games__features-grid,
  .page-index-popular-games__guide-steps,
  .page-index-popular-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-popular-games__hero-section {
    padding-top: 10px !important;
  }

  /* Buttons responsive */
  .page-index-popular-games__cta-buttons,
  .page-index-popular-games__button-group,
  .page-index-popular-games__btn-container {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-popular-games__btn-primary,
  .page-index-popular-games__btn-secondary,
  .page-index-popular-games__btn-tertiary,
  .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__game-card-image {
    height: 200px;
  }

  .page-index-popular-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-index-popular-games__guide-image {
    height: 150px;
  }

  .page-index-popular-games__cta-buttons--center {
    flex-direction: column !important;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__section-title {
    font-size: 1.8em;
  }

  .page-index-popular-games__section-subtitle {
    font-size: 1.4em;
  }

  .page-index-popular-games__hero-description {
    font-size: 1em;
  }

  .page-index-popular-games__btn-primary,
  .page-index-popular-games__btn-secondary,
  .page-index-popular-games__btn-tertiary {
    padding: 12px 20px;
    font-size: 1em;
  }
}