.page-fortuneox {
  font-family: 'Arial', sans-serif;
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette, contrasts with dark background */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-fortuneox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Adjust padding for desktop */
  padding-top: 10px; /* Small top padding for first section */
  overflow: hidden; /* Ensure no overflow from image */
}

.page-fortuneox__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-fortuneox__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the wrapper area */
}

.page-fortuneox__hero-content {
  position: relative;
  z-index: 2; /* Ensure content is above image */
  max-width: 900px;
  padding: 20px;
  background-color: rgba(17, 40, 27, 0.8); /* Slightly transparent dark background for readability */
  border-radius: 10px;
}

.page-fortuneox__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Gold color from custom palette */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fortuneox__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-fortuneox__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fortuneox__btn-primary,
.page-fortuneox__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main color */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-fortuneox__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

.page-fortuneox__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green from gradient */
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.2);
}

.page-fortuneox__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Dark background color */
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-fortuneox__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fortuneox__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F2C14E; /* Gold color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.page-fortuneox__subsection-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #57E38D; /* Glow color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
}

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

.page-fortuneox__text-block {
  font-size: 1rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

.page-fortuneox__text-block a {
  color: #2AD16F; /* Link color */
  text-decoration: underline;
}

.page-fortuneox__text-block a:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-fortuneox__unordered-list,
.page-fortuneox__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

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

.page-fortuneox__unordered-list li,
.page-fortuneox__ordered-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #F2FFF6; /* Main text color */
}

.page-fortuneox__unordered-list li strong,
.page-fortuneox__ordered-list li strong {
  color: #57E38D; /* Glow color for strong text */
}

.page-fortuneox__image-wrapper {
  margin: 30px auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-fortuneox__faq {
  background-color: #0A4B2C; /* Deep Green from custom palette */
}

.page-fortuneox__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-fortuneox__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #F2FFF6; /* Main text color */
}

.page-fortuneox__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F2C14E; /* Gold color */
  background-color: #1E3A2A; /* Divider color for question background */
  border-bottom: 1px solid #2E7A4E; /* Border color */
}

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

.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-fortuneox__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color */
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-fortuneox__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

.page-fortuneox__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA Section */
.page-fortuneox__final-cta {
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fortuneox__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-fortuneox__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top */
  }

  .page-fortuneox__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-fortuneox__hero-description {
    font-size: 1rem;
  }

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

  .page-fortuneox__btn-primary,
  .page-fortuneox__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-fortuneox__section {
    padding: 30px 15px;
    margin-bottom: 15px;
  }

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

  .page-fortuneox__subsection-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-fortuneox__text-block,
  .page-fortuneox__unordered-list li,
  .page-fortuneox__ordered-list li,
  .page-fortuneox__faq-answer p {
    font-size: 0.95rem;
  }

  .page-fortuneox__image-wrapper {
    margin: 20px auto;
  }

  .page-fortuneox__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fortuneox__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fortuneox__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-fortuneox__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all content sections and cards are full width and box-sizing for mobile */
  .page-fortuneox__section,
  .page-fortuneox__card,
  .page-fortuneox__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific for hero-content, as it has background-color */
  .page-fortuneox__hero-content {
    border-radius: 0; /* Remove border radius for full width */
  }
}