.page-fortuneox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark sections */
  background-color: var(--background, #08160F); /* Overall page background */
}

/* Smart color contrast for light background sections */
.page-fortuneox__light-bg {
  background-color: #ffffff; /* Example light background */
  color: #333333;
}

/* Smart color contrast for dark background sections */
.page-fortuneox__dark-section,
.page-fortuneox__card--dark {
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for sections */
  color: var(--text-main, #F2FFF6);
}

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

.page-fortuneox__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background, #08160F);
}

.page-fortuneox__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height to prevent excessive scroll */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fortuneox__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 300px; /* Ensure min size */
}

.page-fortuneox__hero-content {
  position: relative; /* Not absolute to avoid overlaying image */
  z-index: 2;
  max-width: 800px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-fortuneox__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-fortuneox__intro-text {
  font-size: 1.2rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
}

.page-fortuneox__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--gold, #F2C14E);
  padding-top: 40px;
}

.page-fortuneox__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-fortuneox__light-bg .page-fortuneox__subsection-title {
  color: #333333;
}

.page-fortuneox__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-fortuneox__light-bg .page-fortuneox__text-block {
  color: #333333;
}

.page-fortuneox__text-link {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-fortuneox__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-fortuneox__btn-primary,
.page-fortuneox__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-fortuneox__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-fortuneox__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-fortuneox__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

.page-fortuneox__btn-primary--center,
.page-fortuneox__btn-secondary--center {
  margin: 30px auto;
  display: block;
  max-width: fit-content;
}

.page-fortuneox__game-overview-section,
.page-fortuneox__strategies-section,
.page-fortuneox__mobile-experience-section,
.page-fortuneox__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Explicitly light background */
  color: #333333; /* Dark text for light background */
}

.page-fortuneox__how-to-play-section,
.page-fortuneox__bonuses-section,
.page-fortuneox__safety-security-section,
.page-fortuneox__cta-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C); /* Explicitly dark background */
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
}

.page-fortuneox__image-content-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-fortuneox__image-content-row--reverse {
  flex-direction: row-reverse;
}

.page-fortuneox__image-content-row .page-fortuneox__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-fortuneox__image-content-row .page-fortuneox__text-block {
  flex: 1;
  min-width: 300px;
}

.page-fortuneox__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  min-height: 200px; /* Enforce min image size */
}

.page-fortuneox__content-image--large {
  max-width: 900px;
}

.page-fortuneox__feature-list,
.page-fortuneox__step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-fortuneox__feature-list li,
.page-fortuneox__step-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: inherit; /* Inherit from parent section */
}

.page-fortuneox__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

.page-fortuneox__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.page-fortuneox__step-list {
  counter-reset: step-counter;
}

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

.page-fortuneox__card {
  background-color: var(--card-bg, #11271B); /* Card background for dark sections */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
  min-height: 200px; /* Ensure cards have some height */
}

.page-fortuneox__light-bg .page-fortuneox__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-fortuneox__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-fortuneox__light-bg .page-fortuneox__card-title {
  color: var(--deep-green, #0A4B2C);
}

.page-fortuneox__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-fortuneox__light-bg .page-fortuneox__card-text {
  color: #555555;
}

.page-fortuneox__faq-list {
  margin-top: 40px;
}

.page-fortuneox__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-fortuneox__light-bg .page-fortuneox__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--gold, #F2C14E);
  list-style: none; /* For details/summary */
}

.page-fortuneox__light-bg .page-fortuneox__faq-question {
  color: var(--deep-green, #0A4B2C);
}

.page-fortuneox__faq-question::-webkit-details-marker {
  display: none;
}

.page-fortuneox__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow, #57E38D);
}

.page-fortuneox__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-fortuneox__light-bg .page-fortuneox__faq-answer {
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-fortuneox__container {
    padding: 0 15px; /* Add horizontal padding for mobile */
  }

  .page-fortuneox__hero-content {
    padding: 0 15px;
  }

  .page-fortuneox__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-fortuneox__intro-text {
    font-size: 1rem;
  }

  .page-fortuneox__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    padding-top: 30px;
  }

  .page-fortuneox__subsection-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .page-fortuneox__text-block {
    font-size: 0.95rem;
  }

  .page-fortuneox__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fortuneox__btn-primary,
  .page-fortuneox__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset;
  }

  .page-fortuneox__image-content-row {
    flex-direction: column;
    gap: 30px;
  }

  .page-fortuneox__image-content-row--reverse {
    flex-direction: column; /* Keep consistent on mobile */
  }

  /* Force image responsiveness */
  .page-fortuneox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure min size */
  }

  .page-fortuneox__section,
  .page-fortuneox__card,
  .page-fortuneox__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fortuneox__hero-section,
  .page-fortuneox__game-overview-section,
  .page-fortuneox__how-to-play-section,
  .page-fortuneox__strategies-section,
  .page-fortuneox__bonuses-section,
  .page-fortuneox__mobile-experience-section,
  .page-fortuneox__safety-security-section,
  .page-fortuneox__faq-section,
  .page-fortuneox__cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-fortuneox__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Video responsiveness (if any, although not explicitly used in this HTML) */
  .page-fortuneox video,
  .page-fortuneox__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fortuneox__video-section,
  .page-fortuneox__video-container,
  .page-fortuneox__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Contrast fix classes */
.page-fortuneox__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fortuneox__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}