/* style/fortune-ox.css */

/* Base styles for the page */
.page-fortune-ox {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color, #08160F);
}

/* Color Contrast Adjustments */
.page-fortune-ox__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-fortune-ox__light-bg {
  background-color: #F2FFF6;
  color: #11271B;
}

.page-fortune-ox__highlight {
  color: #22C768;
}

.page-fortune-ox__link {
  color: #22C768;
  text-decoration: underline;
}

.page-fortune-ox__link:hover {
  color: #11A84E;
}

/* Hero Section */
.page-fortune-ox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

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

.page-fortune-ox__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-fortune-ox__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #F2FFF6; /* Ensure text is light on darkened background */
}

.page-fortune-ox__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6;
}

.page-fortune-ox__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

/* Call to Action Button */
.page-fortune-ox__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

/* General Section Styling */
.page-fortune-ox__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-fortune-ox__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-fortune-ox__section-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-ox__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Image Styling */
.page-fortune-ox img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Feature Grid (Why Play Section) */
.page-fortune-ox__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-ox__feature-card,
.page-fortune-ox__step-card,
.page-fortune-ox__game-card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.page-fortune-ox__feature-card:hover,
.page-fortune-ox__step-card:hover,
.page-fortune-ox__game-card:hover {
  transform: translateY(-5px);
}

.page-fortune-ox__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #22C768; /* Gold */
}

.page-fortune-ox__card-text {
  font-size: 1rem;
  color: #A7D9B8;
}

/* How to Play Section */
.page-fortune-ox__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Game Cards Grid */
.page-fortune-ox__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-ox__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-fortune-ox__faq-item {
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

.page-fortune-ox__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  user-select: none;
  list-style: none;
}

.page-fortune-ox__faq-question::-webkit-details-marker {
  display: none;
}

.page-fortune-ox__faq-qtext {
  flex-grow: 1;
}

.page-fortune-ox__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-fortune-ox__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1rem;
  color: #A7D9B8;
}

/* CTA Banner Section */
.page-fortune-ox__cta-banner-section {
  background-color: #08160F;
  padding: 100px 20px;
}

.page-fortune-ox__cta-content {
  position: relative;
  padding-bottom: 20px; /* Space for image */
}

.page-fortune-ox__cta-image {
  margin-top: 50px;
  border: 2px solid #22C768;
  box-shadow: 0 0 20px #57E38D;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortune-ox__hero-content {
    padding: 15px;
  }

  .page-fortune-ox__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-fortune-ox__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-fortune-ox {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fortune-ox__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-fortune-ox__hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

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

  .page-fortune-ox__cta-button,
  .page-fortune-ox__btn-primary,
  .page-fortune-ox a[class*="button"],
  .page-fortune-ox 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-fortune-ox__cta-buttons,
  .page-fortune-ox__button-group,
  .page-fortune-ox__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-fortune-ox__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-fortune-ox img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-fortune-ox__section,
  .page-fortune-ox__card,
  .page-fortune-ox__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fortune-ox__feature-grid,
  .page-fortune-ox__steps-grid,
  .page-fortune-ox__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-fortune-ox__game-card-image {
    height: auto;
  }

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

  .page-fortune-ox__faq-answer {
    font-size: 0.95rem;
  }

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

  .page-fortune-ox__subsection-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .page-fortune-ox__section-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-fortune-ox__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-fortune-ox__hero-description {
    font-size: 0.9rem;
  }

  .page-fortune-ox__cta-button {
    padding: 12px 20px;
  }

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

  .page-fortune-ox__feature-card,
  .page-fortune-ox__step-card,
  .page-fortune-ox__game-card {
    padding: 20px;
  }

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