.page-fortunetiger {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background, #F5F7FA); /* Ensure light background for main content */
}

.page-fortunetiger__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-fortunetiger__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  color: #ffffff; /* White text on dark background */
  overflow: hidden;
}

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

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

.page-fortunetiger__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-fortunetiger__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 100%; /* Ensure H1 does not overflow */
}

.page-fortunetiger__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-fortunetiger__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-fortunetiger__btn-primary,
.page-fortunetiger__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fortunetiger__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-fortunetiger__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-fortunetiger__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
}

.page-fortunetiger__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #E53935;
}

.page-fortunetiger__subsection-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FF5A4F;
}

.page-fortunetiger__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-fortunetiger__highlight {
  font-weight: bold;
  color: #E53935;
}

.page-fortunetiger__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-fortunetiger__list,
.page-fortunetiger__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-fortunetiger__ordered-list {
  list-style-type: decimal;
}

.page-fortunetiger__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Section Specific Styles */
.page-fortunetiger__about-game-section,
.page-fortunetiger__how-to-play-section,
.page-fortunetiger__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-fortunetiger__why-f1bet-section,
.page-fortunetiger__tips-section,
.page-fortunetiger__cta-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-fortunetiger__why-f1bet-section .page-fortunetiger__section-title,
.page-fortunetiger__why-f1bet-section .page-fortunetiger__subsection-title,
.page-fortunetiger__why-f1bet-section .page-fortunetiger__text-block,
.page-fortunetiger__why-f1bet-section .page-fortunetiger__list-item,
.page-fortunetiger__tips-section .page-fortunetiger__section-title,
.page-fortunetiger__tips-section .page-fortunetiger__text-block,
.page-fortunetiger__tips-section .page-fortunetiger__list-item,
.page-fortunetiger__cta-section .page-fortunetiger__section-title,
.page-fortunetiger__cta-section .page-fortunetiger__text-block {
  color: #ffffff;
}

.page-fortunetiger__why-f1bet-section .page-fortunetiger__highlight,
.page-fortunetiger__tips-section .page-fortunetiger__highlight {
  color: #FF5A4F;
}

/* FAQ Styles */
.page-fortunetiger__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-fortunetiger__faq-item[open] {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-fortunetiger__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #f0f0f0;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For details tag */
}

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

.page-fortunetiger__faq-question:hover {
  background-color: #e5e5e5;
}

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

.page-fortunetiger__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-fortunetiger__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortunetiger__main-title {
    font-size: 2.8em;
  }
  .page-fortunetiger__section-title {
    font-size: 2em;
  }
  .page-fortunetiger__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-fortunetiger__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-fortunetiger__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-fortunetiger__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-fortunetiger__subsection-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-fortunetiger__text-block,
  .page-fortunetiger__list-item,
  .page-fortunetiger__faq-question,
  .page-fortunetiger__faq-answer {
    font-size: 0.95em;
  }
  .page-fortunetiger__hero-section,
  .page-fortunetiger__about-game-section,
  .page-fortunetiger__why-f1bet-section,
  .page-fortunetiger__how-to-play-section,
  .page-fortunetiger__tips-section,
  .page-fortunetiger__faq-section,
  .page-fortunetiger__cta-section {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-fortunetiger img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-fortunetiger__container,
  .page-fortunetiger__hero-section,
  .page-fortunetiger__about-game-section,
  .page-fortunetiger__why-f1bet-section,
  .page-fortunetiger__how-to-play-section,
  .page-fortunetiger__tips-section,
  .page-fortunetiger__faq-section,
  .page-fortunetiger__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-fortunetiger__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fortunetiger__btn-primary,
  .page-fortunetiger__btn-secondary {
    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-fortunetiger__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-fortunetiger__main-title {
    font-size: 1.8em;
  }
  .page-fortunetiger__section-title {
    font-size: 1.6em;
  }
  .page-fortunetiger__subsection-title {
    font-size: 1.2em;
  }
  .page-fortunetiger__btn-primary,
  .page-fortunetiger__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}

/* Color Contrast Classes */
.page-fortunetiger__dark-bg {
  color: #ffffff; /* Dark background with light text */
  background-color: #E53935;
}

.page-fortunetiger__light-bg {
  color: #333333; /* Light background with dark text */
  background-color: #FFFFFF;
}

.page-fortunetiger p,
.page-fortunetiger li {
  color: #333333; /* Default for paragraphs and list items on light backgrounds */
}

.page-fortunetiger__dark-bg p,
.page-fortunetiger__dark-bg li {
  color: #ffffff; /* Force white text on dark backgrounds */
}

.page-fortunetiger__faq-question {
  background-color: #f0f0f0; /* Light background for FAQ question */
  color: #333333; /* Dark text for FAQ question */
}

.page-fortunetiger__faq-item[open] .page-fortunetiger__faq-question {
  background-color: #e5e5e5; /* Slightly darker when open */
}

.page-fortunetiger__faq-answer {
  background-color: #ffffff; /* White background for FAQ answer */
  color: #555555; /* Slightly lighter dark text for answer */
}

.page-fortunetiger__btn-primary {
  color: #ffffff;
}

.page-fortunetiger__btn-secondary {
  color: #E53935;
}