.page-fortune-ox {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF5E1; /* Main text color */
  background-color: #B71C1C; /* Page background, from custom colors */
  line-height: 1.6;
}

.page-fortune-ox__dark-bg {
  background-color: #B71C1C; /* Deep Red from custom colors */
  color: #FFF5E1;
}

.page-fortune-ox__light-bg {
  background-color: #D32F2F; /* Card BG from custom colors, used for contrast sections */
  color: #FFF5E1;
}

.page-fortune-ox__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-fortune-ox__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-fortune-ox__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content slightly over the image for visual hierarchy, but not overlapping text */
  background-color: rgba(183, 28, 28, 0.9); /* Semi-transparent dark red background */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-50px); /* Adjust position */
}

.page-fortune-ox__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #FFD86A; /* Gold from button color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-fortune-ox__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-ox__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-fortune-ox__btn-primary,
.page-fortune-ox__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-ox__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red from custom colors */
  border: none;
}

.page-fortune-ox__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-fortune-ox__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold from button color */
  border: 2px solid #FFD86A; /* Gold border */
}

.page-fortune-ox__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fortune-ox__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-fortune-ox__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #FFD86A; /* Gold */
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fortune-ox__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #FFF5E1;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-fortune-ox p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-fortune-ox__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-ox__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD86A;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #FFF5E1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fortune-ox__list-item strong {
  color: #FFD86A;
}

.page-fortune-ox__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-fortune-ox__image--left {
  float: left;
  margin-right: 30px;
  max-width: 45%;
}

.page-fortune-ox__image--right {
  float: right;
  margin-left: 30px;
  max-width: 45%;
}

.page-fortune-ox__image--full-width {
  max-width: 100%;
  margin: 40px 0;
}

.page-fortune-ox__text-link {
  color: #FFD86A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-fortune-ox__text-link:hover {
  color: #FFF5E1;
  text-decoration: underline;
}

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

.page-fortune-ox__card {
  background-color: #D32F2F; /* Card BG from custom colors */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1;
  min-height: 200px;
  min-width: 200px;
}

.page-fortune-ox__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-bottom: 5px solid #F2B544; /* Border from custom colors */
  min-width: 200px;
  min-height: 200px;
}

.page-fortune-ox__card-title {
  font-size: 1.4rem;
  color: #FFD86A; /* Gold */
  margin: 20px 10px 10px 10px;
}

.page-fortune-ox__card-title a {
  color: #FFD86A;
  text-decoration: none;
}

.page-fortune-ox__card-title a:hover {
  text-decoration: underline;
}

.page-fortune-ox__card-description {
  font-size: 0.95rem;
  color: #FFF5E1;
  padding: 0 15px;
  flex-grow: 1;
}

.page-fortune-ox__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.page-fortune-ox__btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-fortune-ox__more-games-cta {
  margin-top: 50px;
}

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

.page-fortune-ox__faq-item {
  background-color: #B71C1C; /* Background from custom colors */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-fortune-ox__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #FFD86A; /* Gold */
  background-color: #7A0E0E; /* Deep Red from custom colors */
  border-bottom: 2px solid #F2B544; /* Border from custom colors */
}

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

.page-fortune-ox__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-fortune-ox__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFF5E1;
}

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

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

/* Final CTA Section */
.page-fortune-ox__final-cta {
  padding-bottom: 80px;
}

/* Clearfix for floated images */
.page-fortune-ox__about-game::after,
.page-fortune-ox__strategies::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fortune-ox__hero-content {
    margin-top: -50px;
    transform: translateY(-25px);
  }
  .page-fortune-ox__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-fortune-ox__hero-section {
    padding-bottom: 40px;
  }

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

  .page-fortune-ox__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
    transform: translateY(-40px);
    max-width: calc(100% - 30px); /* Adjust for padding */
  }

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

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

  .page-fortune-ox__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-fortune-ox__container {
    padding: 0 15px;
  }

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

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

  .page-fortune-ox p,
  .page-fortune-ox__list-item {
    font-size: 0.95rem;
  }

  .page-fortune-ox__image {
    float: none;
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-fortune-ox__image--left,
  .page-fortune-ox__image--right {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

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

  .page-fortune-ox__card-image {
    height: 180px;
  }

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

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

  .page-fortune-ox__video-section {
    padding-top: 10px !important;
  }

  .page-fortune-ox__video-container,
  .page-fortune-ox__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-fortune-ox video,
  .page-fortune-ox__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-fortune-ox__hero-content {
    padding: 20px 10px;
    margin-top: -60px;
    transform: translateY(-30px);
  }

  .page-fortune-ox__main-title {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

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

  .page-fortune-ox__btn-primary,
  .page-fortune-ox__btn-secondary {
    min-width: unset;
  }
}