/* style/fortuneox.css */
/* Core styles for page-fortuneox */
.page-fortuneox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

/* Hero Section */
.page-fortuneox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-fortuneox__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-fortuneox__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Adjust to pull content up slightly over image, ensure no overlap visually */
}

.page-fortuneox__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fortuneox__description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: #FFF1E8;
}

.page-fortuneox__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortuneox__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFFFFF;
  border: none;
}

.page-fortuneox__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fortuneox__btn-secondary {
  background: #C61F1F;
  color: #FFFFFF;
  border: 2px solid #F3C54D; /* Gold border */
}

.page-fortuneox__btn-secondary:hover {
  background: #E53030;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.page-fortuneox__content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.page-fortuneox__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: #F3C54D; /* Gold */
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #6A1E1E; /* Border */
  padding-bottom: 10px;
}

.page-fortuneox__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-fortuneox__text-block strong {
  color: #F3C54D;
}

.page-fortuneox__text-block a {
  color: #FFB04A;
  text-decoration: none;
}

.page-fortuneox__text-block a:hover {
  text-decoration: underline;
}

.page-fortuneox__image-container {
  margin: 30px auto;
  text-align: center;
}

.page-fortuneox__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
  margin: 0 auto;
}

/* Card Grid */
.page-fortuneox__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.page-fortuneox__card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  color: #FFF1E8;
}

.page-fortuneox__card:hover {
  transform: translateY(-5px);
}

.page-fortuneox__card-title {
  font-size: 1.4em;
  color: #FFB04A;
  margin-bottom: 15px;
  text-align: center;
}

.page-fortuneox__card-text {
  font-size: 1em;
  color: #FFF1E8;
}

/* Feature List & Step List */
.page-fortuneox__feature-list, .page-fortuneox__step-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.page-fortuneox__list-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #FFF1E8;
}

.page-fortuneox__list-item strong {
  color: #F3C54D;
  margin-right: 8px;
}

.page-fortuneox__list-item::before {
  content: '✓';
  color: #FFB04A;
  font-weight: bold;
  margin-right: 10px;
}

.page-fortuneox__step-list .page-fortuneox__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #FFB04A;
  color: #140C0C;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  font-weight: bold;
  margin-right: 10px;
}

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

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

.page-fortuneox__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-fortuneox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFB04A;
  background-color: #2A1212;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

.page-fortuneox__faq-question:hover {
  background-color: #140C0C;
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-question {
  border-bottom-color: #6A1E1E;
}

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

.page-fortuneox__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #F3C54D;
}

.page-fortuneox__faq-item[open] .page-fortuneox__faq-toggle {
  content: '−';
}

.page-fortuneox__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: #FFF1E8;
}

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

/* Details element specific styling */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortuneox__hero-content {
    margin-top: -50px;
  }
  .page-fortuneox__content-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-fortuneox__card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-fortuneox__hero-section {
    padding-bottom: 40px;
  }
  .page-fortuneox__hero-content {
    margin-top: -30px;
    padding: 15px;
  }
  .page-fortuneox__main-title {
    font-size: 2em;
  }
  .page-fortuneox__description {
    font-size: 0.95em;
  }
  .page-fortuneox__section-title {
    font-size: 1.6em;
  }
  .page-fortuneox__text-block {
    font-size: 0.95em;
  }
  .page-fortuneox__card-title {
    font-size: 1.2em;
  }
  .page-fortuneox__list-item {
    font-size: 1em;
  }
  .page-fortuneox__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .page-fortuneox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortuneox__section,
  .page-fortuneox__card,
  .page-fortuneox__container,
  .page-fortuneox__hero-section,
  .page-fortuneox__content-section,
  .page-fortuneox__image-container,
  .page-fortuneox__card-grid,
  .page-fortuneox__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fortuneox__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .page-fortuneox__cta-button,
  .page-fortuneox__btn-primary,
  .page-fortuneox__btn-secondary,
  .page-fortuneox a[class*="button"],
  .page-fortuneox a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-fortuneox__main-title {
    font-size: 1.8em;
  }
  .page-fortuneox__section-title {
    font-size: 1.4em;
  }
  .page-fortuneox__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}