/* style/fortunetiger.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-fortunetiger {
  color: var(--text-main, #F2FFF6); /* Main text color for dark backgrounds */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

/* Headings */
.page-fortunetiger h1,
.page-fortunetiger h2,
.page-fortunetiger h3 {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 1em;
  font-weight: bold;
}

.page-fortunetiger h1 {
  /* Use clamp for responsive H1 font-size, not fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem); 
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fortunetiger h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-top: 1.5em;
  margin-bottom: 1em;
  color: var(--gold, #F2C14E); /* Highlight section titles with gold */
}

.page-fortunetiger h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-main, #F2FFF6);
  margin-top: 1.2em;
}

/* Paragraphs */
.page-fortunetiger__paragraph {
  margin-bottom: 1em;
  color: var(--text-main, #F2FFF6);
}

/* Highlighted text */
.page-fortunetiger__highlight {
  color: var(--glow, #57E38D); /* Use glow color for highlights */
  font-weight: bold;
}

/* Links */
.page-fortunetiger a {
  color: var(--main-color, #11A84E); /* Main brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fortunetiger a:hover {
  color: var(--auxiliary-color, #22C768);
  text-decoration: underline;
}

.page-fortunetiger__inline-link {
  color: var(--gold, #F2C14E); /* Gold for inline links for better visibility */
  text-decoration: underline;
}

.page-fortunetiger__inline-link:hover {
  color: var(--glow, #57E38D);
}


/* Section spacing */
.page-fortunetiger section {
  padding: 40px 20px;
  max-width: 1400px; /* Wider content area for sections */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-fortunetiger__content-area {
  max-width: 1200px; /* Slightly narrower for text-heavy content */
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-fortunetiger__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Ensure hero takes significant screen space */
  padding: 0; /* No padding on the section itself, content inside handles it */
  background-color: var(--background, #08160F); /* Fallback for background */
}

.page-fortunetiger__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 0; /* Ensure image is behind content overlay (if any, though we avoid it) */
  display: flex; /* For centering the image if it's smaller than wrapper */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-fortunetiger__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, crop if necessary */
  max-height: 80vh; /* Limit height to prevent overly tall hero */
}

.page-fortunetiger__hero-content {
  position: relative; /* Relative positioning for normal flow, below image */
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up slightly over image for visual appeal, but not overlap text */
  background: linear-gradient(0deg, var(--background, #08160F) 70%, transparent 100%); /* Fading background for text readability */
  padding-bottom: 60px;
}

.page-fortunetiger__hero-description {
  font-size: 1.2rem;
  margin-bottom: 2em;
  color: var(--text-secondary, #A7D9B8);
}

/* CTA Button - General */
.page-fortunetiger__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-fortunetiger__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-fortunetiger__cta-button--video {
  margin-top: 30px;
}

.page-fortunetiger__cta-button--inline {
  margin-top: 20px;
}

.page-fortunetiger__cta-button--banner {
  margin-top: 30px;
  font-size: 1.3rem;
  padding: 18px 35px;
}

.page-fortunetiger__cta-button--large {
  margin-top: 40px;
  font-size: 1.4rem;
  padding: 20px 40px;
}

/* Video Section */
.page-fortunetiger__video-section {
  background-color: var(--card-bg, #11271B); /* Darker background for video section */
  padding: 60px 20px;
  text-align: center;
}

.page-fortunetiger__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000; /* Black background for video loading */
  margin: 30px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Desktop: width: 100% must be present */
}

.page-fortunetiger__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-fortunetiger__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image styles */
.page-fortunetiger img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fortunetiger__image-full-width {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-fortunetiger__image-centered {
  margin: 30px auto;
  max-width: 80%; /* Smaller max-width for centered images */
}

/* Lists */
.page-fortunetiger__step-list,
.page-fortunetiger__tip-list,
.page-fortunetiger__feature-list,
.page-fortunetiger__advantage-list,
.page-fortunetiger__other-games-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-fortunetiger__list-item {
  background-color: var(--card-bg, #11271B); /* Card background for list items */
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #F2FFF6);
}

.page-fortunetiger__list-title {
  color: var(--gold, #F2C14E);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fortunetiger__list-description {
  color: var(--text-secondary, #A7D9B8);
}

/* CTA Banner Section */
.page-fortunetiger__cta-banner-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  padding: 0;
  background-color: var(--background, #08160F); /* Fallback */
}

.page-fortunetiger__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-fortunetiger__cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-fortunetiger__cta-banner-content .page-fortunetiger__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-fortunetiger__cta-banner-content .page-fortunetiger__paragraph {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1rem;
}

/* FAQ Section */
.page-fortunetiger__faq-section {
  background-color: var(--background, #08160F);
}

.page-fortunetiger__faq-list {
  margin-top: 30px;
}

.page-fortunetiger__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-fortunetiger__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gold, #F2C14E);
  background-color: var(--deep-green, #0A4B2C); /* Darker background for question */
  border-bottom: 1px solid var(--border, #2E7A4E);
}

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

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

.page-fortunetiger__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-fortunetiger__faq-item[open] .page-fortunetiger__faq-question {
  border-bottom: 1px solid var(--border, #2E7A4E);
}

.page-fortunetiger__faq-answer {
  padding: 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95rem;
}

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

/* Conclusion Section */
.page-fortunetiger__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fortunetiger__hero-content {
    margin-top: -80px;
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  /* General adjustments */
  .page-fortunetiger section {
    padding: 30px 15px;
  }

  .page-fortunetiger__content-area {
    padding: 30px 15px;
  }

  .page-fortunetiger h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-fortunetiger h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-fortunetiger h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .page-fortunetiger__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
    padding-bottom: 40px;
  }

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

  /* Images responsiveness */
  .page-fortunetiger img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-fortunetiger video,
  .page-fortunetiger__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-fortunetiger__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Button responsiveness */
  .page-fortunetiger__cta-button,
  .page-fortunetiger__btn-primary,
  .page-fortunetiger__btn-secondary,
  .page-fortunetiger a[class*="button"],
  .page-fortunetiger 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; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }
  
  .page-fortunetiger__cta-buttons,
  .page-fortunetiger__button-group,
  .page-fortunetiger__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-fortunetiger__cta-buttons {
    flex-direction: column;
  }

  /* Card/List item padding adjustment */
  .page-fortunetiger__list-item,
  .page-fortunetiger__faq-question,
  .page-fortunetiger__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-fortunetiger__hero-content {
    margin-top: -40px;
    padding-bottom: 30px;
  }

  .page-fortunetiger__cta-button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .page-fortunetiger__cta-button--banner {
    font-size: 1.1rem;
    padding: 15px 25px;
  }

  .page-fortunetiger__cta-button--large {
    font-size: 1.2rem;
    padding: 18px 30px;
  }
}