.page-index-game-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f9fa; /* Light background */
}

.page-index-game-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-game-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  color: #ffffff;
  background-color: #000080; /* Auxiliary color as background */
  overflow: hidden;
}

.page-index-game-features__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-index-game-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-index-game-features__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-game-features__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-index-game-features__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-game-features__btn-primary,
.page-index-game-features__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;
  text-align: center;
}

.page-index-game-features__btn-primary {
  background-color: #FFD700; /* Primary color */
  color: #000080; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-index-game-features__btn-primary:hover {
  background-color: #e6c200;
  color: #000066;
}

.page-index-game-features__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Primary color */
  border: 2px solid #FFD700;
}

.page-index-game-features__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-index-game-features__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000080; /* Auxiliary color */
}

.page-index-game-features__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-index-game-features__light-bg {
  background-color: #f8f9fa;
  color: #333333;
  padding: 80px 0;
}

.page-index-game-features__dark-bg {
  background-color: #000080; /* Auxiliary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-index-game-features__dark-bg .page-index-game-features__section-title,
.page-index-game-features__dark-bg .page-index-game-features__section-description {
  color: #ffffff;
}

.page-index-game-features__dark-bg .page-index-game-features__btn-primary {
  background-color: #FFD700;
  color: #000080;
}

.page-index-game-features__dark-bg .page-index-game-features__btn-primary:hover {
  background-color: #e6c200;
  color: #000066;
}

.page-index-game-features__dark-bg .page-index-game-features__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index-game-features__dark-bg .page-index-game-features__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

/* Features Overview Section */
.page-index-game-features__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-game-features__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-index-game-features__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-game-features__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index-game-features__feature-title {
  font-size: 1.5em;
  color: #000080; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-index-game-features__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Game Categories Section */
.page-index-game-features__game-categories .page-index-game-features__section-title {
  color: #FFD700;
}

.page-index-game-features__category-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.page-index-game-features__category-item:last-child {
  margin-bottom: 0;
}

.page-index-game-features__category-item--reverse {
  flex-direction: row-reverse;
}

.page-index-game-features__category-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index-game-features__category-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-index-game-features__category-title {
  font-size: 2em;
  color: #FFD700; /* Primary color */
  margin-bottom: 20px;
}

.page-index-game-features__category-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Benefits Section */
.page-index-game-features__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-index-game-features__benefits-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  color: #333333;
}

.page-index-game-features__benefits-title {
  font-size: 1.5em;
  color: #000080; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-index-game-features__benefits-text {
  font-size: 1em;
  color: #555555;
}

.page-index-game-features__cta-center {
  text-align: center;
}

/* Security Section */
.page-index-game-features__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index-game-features__security-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index-game-features__security-text-block {
  flex: 1;
  max-width: 50%;
}

.page-index-game-features__security-subtitle {
  font-size: 1.8em;
  color: #FFD700; /* Primary color */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index-game-features__security-subtitle:first-of-type {
  margin-top: 0;
}

.page-index-game-features__security-paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-index-game-features__reasons-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-index-game-features__reasons-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  color: #333333;
}

.page-index-game-features__reasons-title {
  font-size: 1.5em;
  color: #000080; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-index-game-features__reasons-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-index-game-features__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-index-game-features__faq-item {
  background-color: #000080; /* Auxiliary color */
  border: 1px solid #FFD700; /* Primary color border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-index-game-features__faq-item.active {
  background-color: #1a1a90; /* Slightly lighter dark blue when active */
}

.page-index-game-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFD700; /* Primary color */
  font-size: 1.2em;
  font-weight: bold;
}

.page-index-game-features__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.page-index-game-features__faq-title {
  margin: 0;
  color: inherit;
}

.page-index-game-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-index-game-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-index-game-features__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: inherit;
}

.page-index-game-features__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-index-game-features__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-index-game-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-features__hero-title {
    font-size: 2.8em;
  }
  .page-index-game-features__hero-description {
    font-size: 1.2em;
  }
  .page-index-game-features__section-title {
    font-size: 2em;
  }
  .page-index-game-features__category-item {
    flex-direction: column;
    text-align: center;
  }
  .page-index-game-features__category-item--reverse {
    flex-direction: column;
  }
  .page-index-game-features__category-image,
  .page-index-game-features__category-content,
  .page-index-game-features__security-image,
  .page-index-game-features__security-text-block {
    max-width: 100%;
    flex: none;
  }
  .page-index-game-features__category-title {
    text-align: center;
  }
  .page-index-game-features__security-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index-game-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-game-features__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
  }

  .page-index-game-features__hero-title {
    font-size: 2.2em;
  }

  .page-index-game-features__hero-description {
    font-size: 1em;
  }

  .page-index-game-features__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary,
  .page-index-game-features a[class*="button"],
  .page-index-game-features 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-game-features__cta-buttons,
  .page-index-game-features__button-group,
  .page-index-game-features__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;
  }

  .page-index-game-features__cta-buttons {
    flex-direction: column;
  }

  .page-index-game-features__section-title {
    font-size: 1.8em;
  }

  .page-index-game-features__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index-game-features__feature-grid,
  .page-index-game-features__benefits-list,
  .page-index-game-features__reasons-list {
    grid-template-columns: 1fr;
  }

  .page-index-game-features__feature-card,
  .page-index-game-features__benefits-item,
  .page-index-game-features__reasons-item {
    padding: 20px;
  }

  .page-index-game-features__feature-title,
  .page-index-game-features__benefits-title,
  .page-index-game-features__reasons-title {
    font-size: 1.3em;
  }

  .page-index-game-features__category-item,
  .page-index-game-features__security-content {
    gap: 20px;
    margin-bottom: 50px;
  }

  .page-index-game-features__category-image,
  .page-index-game-features__security-image,
  .page-index-game-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-game-features__section,
  .page-index-game-features__card,
  .page-index-game-features__container,
  .page-index-game-features__hero-section,
  .page-index-game-features__features-overview,
  .page-index-game-features__game-categories,
  .page-index-game-features__benefits-section,
  .page-index-game-features__security-section,
  .page-index-game-features__why-choose-us,
  .page-index-game-features__faq-section,
  .page-index-game-features__cta-section,
  .page-index-game-features__video-section,
  .page-index-game-features__video-container,
  .page-index-game-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-index-game-features__category-content,
  .page-index-game-features__security-text-block {
    max-width: 100%;
    text-align: center;
  }
  .page-index-game-features__category-text,
  .page-index-game-features__security-paragraph {
    text-align: left;
  }

  .page-index-game-features__security-subtitle {
    font-size: 1.5em;
  }

  .page-index-game-features__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-index-game-features__faq-answer {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-index-game-features__faq-item.active .page-index-game-features__faq-answer {
    padding: 15px 15px;
  }
}