.page-fortune-tiger {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color based on body background */
  background-color: var(--site-bg); /* Inherited from shared.css */
}

/* Color Palette Variables */
:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --site-bg-dark: #140C0C; /* Specific background for sections */
  --text-main: #FFF1E8; /* Main text color */
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

/* Ensure text contrast based on body background, assuming body is dark from shared.css based on the provided colors */
.page-fortune-tiger {
  color: var(--text-main); /* Light text for dark background */
}
.page-fortune-tiger__light-bg {
  background-color: #ffffff; /* Explicit light background for some sections */
  color: #333333; /* Dark text for light background */
}

.page-fortune-tiger__dark-bg {
  background-color: var(--site-bg-dark); /* Explicit dark background */
  color: var(--text-main); /* Light text for dark background */
}

/* Hero Section */
.page-fortune-tiger__hero-section {
  position: relative;
  width: 100%;
  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;
  box-sizing: border-box;
}

.page-fortune-tiger__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-fortune-tiger__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-fortune-tiger__main-title {
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--gold-color);
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
}

.page-fortune-tiger__hero-description {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-fortune-tiger__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-fortune-tiger__btn-primary,
.page-fortune-tiger__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-fortune-tiger__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
}

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

.page-fortune-tiger__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-fortune-tiger__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--site-bg-dark);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-fortune-tiger__section {
  padding: 80px 20px;
  box-sizing: border-box;
  background-color: var(--site-bg-dark); /* Default section background */
  color: var(--text-main);
}

.page-fortune-tiger__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-fortune-tiger__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-fortune-tiger__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main); /* Ensure contrast */
}

.page-fortune-tiger__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-fortune-tiger__image-wrapper {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-fortune-tiger__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-fortune-tiger__faq-section {
  background-color: #ffffff; /* Light background for FAQ */
  color: #333333; /* Dark text for light background */
  padding: 80px 20px;
}

.page-fortune-tiger__faq-section .page-fortune-tiger__section-title {
  color: var(--deep-red-color); /* Darker title for light background */
}

.page-fortune-tiger__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-fortune-tiger__faq-item {
  background-color: var(--card-bg); /* Dark card background */
  color: var(--text-main); /* Light text */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-fortune-tiger__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-red-color); /* Deep red for question background */
  color: var(--text-main); /* Light text */
  border-bottom: 1px solid var(--border-color);
}

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

.page-fortune-tiger__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
}

.page-fortune-tiger__faq-item[open] .page-fortune-tiger__faq-toggle {
  content: "−"; /* Change to minus when open for details tag */
}

.page-fortune-tiger__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-main); /* Light text */
  background-color: var(--card-bg); /* Dark card background */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortune-tiger__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Clamp for H1 font size */
  }
  .page-fortune-tiger__section-title {
    font-size: 1.8em;
  }
  .page-fortune-tiger__hero-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-fortune-tiger__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding */
  }
  .page-fortune-tiger__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Clamp for H1 font size */
  }
  .page-fortune-tiger__hero-description {
    font-size: 1em;
  }
  .page-fortune-tiger__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fortune-tiger__btn-primary,
  .page-fortune-tiger__btn-secondary {
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-fortune-tiger__section {
    padding: 50px 15px;
  }
  .page-fortune-tiger__section-title {
    font-size: 1.6em;
  }
  .page-fortune-tiger__paragraph {
    font-size: 0.95em;
  }

  /* Mobile image responsive */
  .page-fortune-tiger img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fortune-tiger__image-wrapper,
  .page-fortune-tiger__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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