/* style/fortuneox.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E; /* Main Green */
  --color-secondary: #22C768; /* Auxiliary Green */
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F; /* Main Page Background */
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;

  /* Header offset, handled by shared.css body padding-top */
  --header-offset: 80px; /* Example value, will be defined in shared.css */
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-fortuneox {
  font-family: 'Arial', sans-serif;
  background-color: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text for contrast */
  line-height: 1.6;
  padding-bottom: 60px; /* Space for footer */
}

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

/* Hero Section */
.page-fortuneox__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-fortuneox__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Adjust as needed */
  min-width: 200px;
  min-height: 200px;
}

.page-fortuneox__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow, but not covering image */
  background: linear-gradient(0deg, var(--color-background) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  position: relative; /* Ensure it's above other content */
  z-index: 1;
}

.page-fortuneox__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fortuneox__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortuneox__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main); /* Light text on green button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortuneox__cta-button:hover {
  background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
  transform: translateY(-2px);
}

.page-fortuneox__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3rem;
}

/* General Sections */
.page-fortuneox__introduction-section,
.page-fortuneox__how-to-play-section,
.page-fortuneox__features-section,
.page-fortuneox__strategies-section,
.page-fortuneox__platform-section,
.page-fortuneox__cta-section,
.page-fortuneox__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
}

.page-fortuneox__introduction-section:last-of-type,
.page-fortuneox__platform-section:last-of-type,
.page-fortuneox__cta-section:last-of-type,
.page-fortuneox__faq-section:last-of-type {
  border-bottom: none;
}


.page-fortuneox__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-fortuneox__subsection-title {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  color: var(--color-gold);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fortuneox__paragraph {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.page-fortuneox__paragraph a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-fortuneox__paragraph a:hover {
  color: var(--color-gold);
}

.page-fortuneox__unordered-list,
.page-fortuneox__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.page-fortuneox__ordered-list {
  list-style-type: decimal;
}

.page-fortuneox__unordered-list li,
.page-fortuneox__ordered-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.page-fortuneox__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

/* Video Section */
.page-fortuneox__video-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
  text-align: center;
}

.page-fortuneox__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--color-card-bg);
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  width: 100%; /* Ensure width 100% for desktop */
}

.page-fortuneox__video-link {
  display: block; /* Make the anchor fill the video wrapper */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.page-fortuneox__video-link:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Slight overlay to indicate clickability */
  pointer-events: none; /* Allow click to pass through */
}

.page-fortuneox__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it respects max-width */
}

.page-fortuneox__video-description {
  margin-top: 20px;
}

/* FAQ Section */
.page-fortuneox__faq-list {
  margin-top: 30px;
}

.page-fortuneox__faq-item {
  background-color: var(--color-card-bg); /* Darker background for FAQ items */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--color-deep-green); /* Slightly different background for question */
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-fortuneox__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-fortuneox__faq-question:hover {
  background-color: var(--color-border);
}

.page-fortuneox__faq-qtext {
  flex-grow: 1;
}

.page-fortuneox__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-fortuneox__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-fortuneox {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fortuneox__container {
    padding: 0 15px;
  }

  .page-fortuneox__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
  }

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

  .page-fortuneox__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-fortuneox__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fortuneox__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-fortuneox__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

  .page-fortuneox__paragraph {
    font-size: 1rem;
  }

  .page-fortuneox__unordered-list li,
  .page-fortuneox__ordered-list li {
    font-size: 1rem;
  }

  /* Images */
  .page-fortuneox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  .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__video-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

  /* Videos */
  .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: 0; /* Container handles the padding */
    padding-right: 0; /* Container handles the padding */
    overflow: hidden !important;
  }
  .page-fortuneox__video-section .page-fortuneox__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button groups */
  .page-fortuneox__cta-buttons,
  .page-fortuneox__button-group,
  .page-fortuneox__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-fortuneox__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}