/* style/fortune-ox.css */

/* Base styles for the Fortune Ox page */
.page-fortune-ox {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background-color, #08160F); /* Default background color from custom palette */
}

/* Header offset handled by shared.css body padding-top */

/* Hero Section */
.page-fortune-ox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  min-height: 500px; /* Ensure hero has a minimum height */
}

.page-fortune-ox__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-fortune-ox__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-fortune-ox__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-fortune-ox__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
}

.page-fortune-ox__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

/* Call to Action Buttons */
.page-fortune-ox__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-fortune-ox__btn-primary,
.page-fortune-ox__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-fortune-ox__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fortune-ox__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
}

.page-fortune-ox__btn-secondary:hover {
  background: var(--primary-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Content Area */
.page-fortune-ox__section {
  padding: 60px 20px;
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-fortune-ox__content-area {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-fortune-ox__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-fortune-ox__subsection-title {
  font-size: 1.8em;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fortune-ox__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-fortune-ox__highlight {
  color: var(--gold-color, #F2C14E);
  font-weight: bold;
}

.page-fortune-ox__image-card {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  background-color: var(--card-bg-color, #11271B);
  padding: 15px;
}

.page-fortune-ox__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-fortune-ox__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-fortune-ox__ordered-list li {
  margin-bottom: 10px;
}

/* Video Section */
.page-fortune-ox__video-container {
  width: 100%;
  max-width: 1280px; /* Standard video width */
  margin: 40px auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  box-sizing: border-box;
}

.page-fortune-ox__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-fortune-ox__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-fortune-ox__faq-list {
  margin-top: 40px;
}

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

.page-fortune-ox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green-color, #0A4B2C);
  border-bottom: 1px solid var(--border-color, #2E7A4E);
}

.page-fortune-ox__faq-question:hover {
  background-color: var(--primary-color, #11A84E);
}

.page-fortune-ox__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fortune-ox__faq-item[open] .page-fortune-ox__faq-toggle {
  transform: rotate(45deg);
}

.page-fortune-ox__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--card-bg-color, #11271B);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-fortune-ox__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }

  .page-fortune-ox__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

  .page-fortune-ox__hero-description {
    font-size: 1em;
  }

  .page-fortune-ox__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-fortune-ox__btn-primary,
  .page-fortune-ox__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-fortune-ox__section {
    padding: 40px 15px;
  }

  .page-fortune-ox__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-fortune-ox__subsection-title {
    font-size: 1.5em;
  }

  .page-fortune-ox__text-block,
  .page-fortune-ox__ordered-list,
  .page-fortune-ox__faq-answer {
    font-size: 0.95em;
  }

  .page-fortune-ox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fortune-ox__section,
  .page-fortune-ox__image-card,
  .page-fortune-ox__video-container,
  .page-fortune-ox__faq-item,
  .page-fortune-ox__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fortune-ox__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fortune-ox__video-container {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

  .page-fortune-ox__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

/* Color Contrast Fixes */
.page-fortune-ox__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-fortune-ox__light-text {
  color: var(--text-main, #F2FFF6);
}

.page-fortune-ox__card-bg {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-fortune-ox__btn-primary,
.page-fortune-ox__btn-secondary {
  /* Colors defined above ensure contrast */
}

/* Ensure all images have min-width/height */
.page-fortune-ox img:not(.page-fortune-ox__hero-image) {
  min-width: 200px;
  min-height: 200px;
}