.page-index-game-highlights {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-index-game-highlights__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-index-game-highlights__hero-content {
  z-index: 10;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-index-game-highlights__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-index-game-highlights__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-index-game-highlights__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  position: absolute;
  top: 0;
  left: 0;
}

/* General Sections */
.page-index-game-highlights__overview-section,
.page-index-game-highlights__games-section,
.page-index-game-highlights__promo-section,
.page-index-game-highlights__download-section,
.page-index-game-highlights__faq-section,
.page-index-game-highlights__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-index-game-highlights__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-index-game-highlights__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-game-highlights__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-index-game-highlights__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Buttons */
.page-index-game-highlights__btn-primary,
.page-index-game-highlights__btn-secondary,
.page-index-game-highlights__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-game-highlights__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index-game-highlights__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-index-game-highlights__btn-secondary {
  background-color: #C30808; /* Red for login/register */
  color: #FFFF00; /* Yellow font for login/register */
  border: 2px solid #C30808;
}

.page-index-game-highlights__btn-secondary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-index-game-highlights__btn-tertiary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-index-game-highlights__btn-tertiary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-index-game-highlights__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-index-game-highlights__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index-game-highlights__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

/* Games Section */
.page-index-game-highlights__games-section .page-index-game-highlights__section-title,
.page-index-game-highlights__games-section .page-index-game-highlights__section-description {
  color: #ffffff;
}

.page-index-game-highlights__game-category {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
  text-align: left;
}

.page-index-game-highlights__game-category:last-child {
  margin-bottom: 0;
}

.page-index-game-highlights__game-category--reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.page-index-game-highlights__game-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index-game-highlights__game-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index-game-highlights__game-content {
  flex: 1;
}

.page-index-game-highlights__game-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index-game-highlights__game-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-index-game-highlights__game-title a:hover {
  text-decoration: underline;
}

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

/* Promo Section */
.page-index-game-highlights__promo-section .page-index-game-highlights__section-title,
.page-index-game-highlights__promo-section .page-index-game-highlights__section-description {
  color: #333333;
}

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

.page-index-game-highlights__promo-card {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index-game-highlights__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-index-game-highlights__promo-title a {
  color: #017439;
  text-decoration: none;
}

.page-index-game-highlights__promo-title a:hover {
  text-decoration: underline;
}

.page-index-game-highlights__promo-text {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-game-highlights__cta-full-width {
  margin-top: 50px;
}

/* Download Section */
.page-index-game-highlights__download-section .page-index-game-highlights__section-title,
.page-index-game-highlights__download-section .page-index-game-highlights__section-description {
  color: #ffffff;
}

.page-index-game-highlights__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-game-highlights__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-game-highlights__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439;
}

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

/* FAQ Section */
.page-index-game-highlights__faq-section .page-index-game-highlights__section-title,
.page-index-game-highlights__faq-section .page-index-game-highlights__section-description {
  color: #333333;
}

.page-index-game-highlights__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-index-game-highlights__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-game-highlights__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-index-game-highlights__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-game-highlights__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index-game-highlights__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1em;
  background-color: #f8f8f8;
}

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

.page-index-game-highlights__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-index-game-highlights__cta-content {
  max-width: 800px;
}

.page-index-game-highlights__cta-content .page-index-game-highlights__section-title,
.page-index-game-highlights__cta-content .page-index-game-highlights__section-description {
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-highlights__hero-title {
    font-size: 3em;
  }

  .page-index-game-highlights__section-title {
    font-size: 2em;
  }

  .page-index-game-highlights__game-category {
    flex-direction: column;
    text-align: center;
  }

  .page-index-game-highlights__game-category--reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-index-game-highlights__game-image-wrapper {
    margin-bottom: 30px;
  }

  .page-index-game-highlights__game-title,
  .page-index-game-highlights__game-text {
    text-align: center;
  }
}

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

  .page-index-game-highlights__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-index-game-highlights__hero-title {
    font-size: 2.5em;
  }

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

  .page-index-game-highlights__overview-section,
  .page-index-game-highlights__games-section,
  .page-index-game-highlights__promo-section,
  .page-index-game-highlights__download-section,
  .page-index-game-highlights__faq-section,
  .page-index-game-highlights__cta-section {
    padding: 60px 0;
  }

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

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

  .page-index-game-highlights__btn-primary,
  .page-index-game-highlights__btn-secondary,
  .page-index-game-highlights__btn-tertiary {
    padding: 12px 25px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index-game-highlights__hero-buttons,
  .page-index-game-highlights__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-index-game-highlights__feature-grid,
  .page-index-game-highlights__promo-grid,
  .page-index-game-highlights__download-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index-game-highlights__game-category {
    gap: 30px;
    margin-bottom: 60px;
  }

  .page-index-game-highlights__game-title {
    font-size: 1.5em;
  }

  .page-index-game-highlights__game-text {
    font-size: 1em;
  }

  .page-index-game-highlights__feature-item,
  .page-index-game-highlights__promo-card,
  .page-index-game-highlights__step-item {
    padding: 25px;
  }

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

  .page-index-game-highlights__faq-answer {
    padding: 15px 20px;
  }

  /* Image responsive rules for content area */
  .page-index-game-highlights img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers holding images/videos also respect max-width */
  .page-index-game-highlights__section,
  .page-index-game-highlights__card,
  .page-index-game-highlights__container,
  .page-index-game-highlights__game-image-wrapper,
  .page-index-game-highlights__hero-image-wrapper,
  .page-index-game-highlights__promo-image-wrapper,
  .page-index-game-highlights__download-section,
  .page-index-game-highlights__faq-list,
  .page-index-game-highlights__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-game-highlights__overview-section .page-index-game-highlights__container,
  .page-index-game-highlights__games-section .page-index-game-highlights__container,
  .page-index-game-highlights__promo-section .page-index-game-highlights__container,
  .page-index-game-highlights__download-section .page-index-game-highlights__container,
  .page-index-game-highlights__faq-section .page-index-game-highlights__container,
  .page-index-game-highlights__cta-section .page-index-game-highlights__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-game-highlights__hero-title {
    font-size: 2em;
  }

  .page-index-game-highlights__section-title {
    font-size: 1.5em;
  }

  .page-index-game-highlights__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-game-highlights__btn-primary,
  .page-index-game-highlights__btn-secondary,
  .page-index-game-highlights__btn-tertiary {
    font-size: 0.85em;
    padding: 10px 20px;
  }
}