.page-fortuneox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background #0A0A0A */
  background-color: #0A0A0A; /* Matches the specified background color */
}

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

/* 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;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%); /* Subtle gradient for hero section background */
  overflow: hidden; /* Ensure no overflow */
}

.page-fortuneox__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure width is 100% for flex */
}

.page-fortuneox__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1200px; /* Limit image width */
}

.page-fortuneox__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px; /* Slightly larger border-radius for visual appeal */
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Add subtle shadow */
}

.page-fortuneox__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px; /* Add some horizontal padding */
}

.page-fortuneox__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF6D6; /* Text Main color */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.page-fortuneox__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem); /* Responsive font size */
  color: #FFD36B; /* Accent color for description */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-fortuneox__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
}

.page-fortuneox__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-fortuneox__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B020 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-fortuneox__btn-secondary {
  background: #111111; /* Card BG color */
  color: #FFD36B; /* Accent color for text */
  border: 2px solid #FFD36B; /* Accent color for border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__btn-secondary:hover {
  background: #FFD36B; /* Accent color for background */
  color: #111111; /* Dark text for bright button */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.5);
}

/* General Section Styling */
.page-fortuneox__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Ensure no content overflows */
}

.page-fortuneox__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FFD36B; /* Accent color for underline */
  border-radius: 2px;
}

.page-fortuneox__text-block {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main color */
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

/* Card Styling */
.page-fortuneox__card {
  background-color: #111111; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6; /* Text Main color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fortuneox__card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-fortuneox__card-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Main color for card titles */
  margin-bottom: 20px;
  text-align: center;
}

.page-fortuneox__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortuneox__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #FFF6D6; /* Text Main color */
  text-align: left;
}

.page-fortuneox__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD36B; /* Accent color for list icon */
  font-weight: bold;
  font-size: 1.2rem;
}

/* Advantages List */
.page-fortuneox__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fortuneox__advantage-item {
  background-color: #111111; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border color */
  text-align: center;
  color: #FFF6D6; /* Text Main color */
}

.page-fortuneox__advantage-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color for advantage titles */
  margin-bottom: 15px;
}

.page-fortuneox__advantage-item p {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main color */
}

/* FAQ Section */
.page-fortuneox__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-fortuneox__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Larger border-radius */
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #FFF6D6; /* Text Main color */
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #F2C14E; /* Main color for question text */
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fortuneox__faq-item summary.page-fortuneox__faq-question:hover {
  background: rgba(255, 211, 107, 0.1); /* Subtle hover effect */
}
.page-fortuneox__faq-qtext {
  flex: 1;
  font-size: 1.15rem; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Main color */
}
.page-fortuneox__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #FFD36B; /* Accent color for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-fortuneox__faq-item .page-fortuneox__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #0A0A0A; /* Background color for answer */
  border-top: 1px solid #3A2A12; /* Border between question and answer */
  border-radius: 0 0 12px 12px;
  color: #FFF6D6; /* Text Main color */
  font-size: 1rem;
}
.page-fortuneox__faq-answer p {
  margin: 0;
  color: #FFF6D6; /* Ensure paragraph text inside answer is correct color */
}

/* Final CTA Section */
.page-fortuneox__section--cta-final .page-fortuneox__container {
  background-color: #111111; /* Card BG for the final CTA container */
  border-radius: 12px;
  padding: 50px;
  text-align: center;
  border: 1px solid #3A2A12;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fortuneox__section--cta-final .page-fortuneox__section-title {
  color: #F2C14E;
  margin-bottom: 30px;
}

.page-fortuneox__section--cta-final .page-fortuneox__text-block {
  color: #FFF6D6;
  font-size: 1.15rem;
  margin-bottom: 40px;
}

/* Global image styles to prevent small icons and ensure minimum size */
.page-fortuneox img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortuneox__hero-image img {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-fortuneox__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fortuneox__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fortuneox__main-title {
    font-size: 2.2rem;
  }

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

  .page-fortuneox__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

  .page-fortuneox__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fortuneox__section {
    padding: 50px 0;
  }

  .page-fortuneox__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-fortuneox__text-block {
    font-size: 1rem;
    padding: 0 15px;
  }

  .page-fortuneox__card {
    padding: 25px;
    margin-bottom: 25px;
  }

  .page-fortuneox__card-title {
    font-size: 1.5rem;
  }

  .page-fortuneox__list li {
    font-size: 0.95rem;
    padding-left: 25px;
  }

  .page-fortuneox__advantage-item {
    padding: 25px;
  }

  .page-fortuneox__advantage-title {
    font-size: 1.3rem;
  }

  details.page-fortuneox__faq-item summary.page-fortuneox__faq-question {
    padding: 15px 20px;
  }
  .page-fortuneox__faq-qtext {
    font-size: 1rem;
  }
  .page-fortuneox__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }
  details.page-fortuneox__faq-item .page-fortuneox__faq-answer {
    padding: 0 20px 20px;
  }

  .page-fortuneox__section--cta-final .page-fortuneox__container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .page-fortuneox__main-title {
    font-size: 1.8rem;
  }
  .page-fortuneox__section-title {
    font-size: 1.8rem;
  }
  .page-fortuneox__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-fortuneox__advantage-item {
    padding: 20px;
  }
  .page-fortuneox__card {
    padding: 20px;
  }
}

/* Ensure all images are responsive and meet minimum size */
.page-fortuneox img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure block-level for max-width to work */
}

/* Mobile image and button overrides */
@media (max-width: 768px) {
  .page-fortuneox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure minimum size even on mobile */
    min-height: 200px !important; /* Ensure minimum size even on mobile */
  }
  
  .page-fortuneox__section,
  .page-fortuneox__card,
  .page-fortuneox__container,
  .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;
  }

  /* Specific fix for card images if they are smaller than 200px due to parent width */
  .page-fortuneox__card img {
    width: 100%; /* Take full width of card */
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio */
  }
}