/* style/fortunedragon.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base styles for the page content */
.page-fortunedragon {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color for dark background */
  background-color: #B71C1C; /* Main background color */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Section styling */
.page-fortunedragon__hero-section,
.page-fortunedragon__about-section,
.page-fortunedragon__features-section,
.page-fortunedragon__how-to-play-section,
.page-fortunedragon__tips-section,
.page-fortunedragon__why-us-section,
.page-fortunedragon__video-section,
.page-fortunedragon__faq-section,
.page-fortunedragon__final-cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Specific background colors for sections */
.page-fortunedragon__dark-section {
  background-color: #7A0E0E; /* Deep Red for darker sections */
  color: #FFF5E1;
}

/* Hero Section */
.page-fortunedragon__hero-section {
  padding-top: 10px; /* Small top padding as per instructions */
  padding-bottom: 80px;
  background-color: #B71C1C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fortunedragon__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-fortunedragon__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-fortunedragon__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color for main title */
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.7); /* Glow effect */
}

.page-fortunedragon__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

/* General titles and descriptions */
.page-fortunedragon__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color for section titles */
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-fortunedragon__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #FFF5E1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content wrappers for text and image side-by-side */
.page-fortunedragon__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-fortunedragon__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-fortunedragon__text-block {
  flex: 1;
  min-width: 300px;
  color: #FFF5E1;
}

.page-fortunedragon__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fortunedragon__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544; /* Border color */
}

.page-fortunedragon__image--centered {
  margin: 40px auto;
}

/* Call to action buttons */
.page-fortunedragon__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-fortunedragon__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

.page-fortunedragon__btn-primary,
.page-fortunedragon__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 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-fortunedragon__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #333333; /* Dark text for light button */
  border: none;
}

.page-fortunedragon__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
}

.page-fortunedragon__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold text */
  border: 2px solid #F2B544; /* Border color */
}

.page-fortunedragon__btn-secondary:hover {
  background-color: #F2B544;
  color: #333333;
  transform: translateY(-3px);
}

/* Feature Cards */
.page-fortunedragon__features-grid,
.page-fortunedragon__steps-grid,
.page-fortunedragon__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortunedragon__feature-card,
.page-fortunedragon__step-card,
.page-fortunedragon__benefit-card {
  background-color: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #F2B544; /* Border color */
  transition: transform 0.3s ease;
}

.page-fortunedragon__feature-card:hover,
.page-fortunedragon__step-card:hover,
.page-fortunedragon__benefit-card:hover {
  transform: translateY(-5px);
}

.page-fortunedragon__card-title {
  font-size: 1.5rem;
  color: #F4D34D; /* Gold color */
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 204, 102, 0.3);
}

.page-fortunedragon__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #F2B544; /* Border color as background */
  color: #333333;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-fortunedragon__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-fortunedragon__tip-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #F2B544;
  border-radius: 5px;
  color: #FFF5E1;
  text-align: left;
}

.page-fortunedragon__tip-list li strong {
  color: #F4D34D;
}

/* Video Section */
.page-fortunedragon__video-section {
  background-color: #B71C1C;
  padding: 60px 0;
}

.page-fortunedragon__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #F2B544;
  width: 100%; /* Desktop width as per instruction */
}

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

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

/* FAQ Section */
.page-fortunedragon__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-fortunedragon__faq-item {
  background-color: #D32F2F; /* Card BG color */
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-fortunedragon__faq-item details > summary {
  list-style: none; /* Hide default marker */
}

.page-fortunedragon__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-fortunedragon__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F4D34D; /* Gold color */
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-fortunedragon__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-fortunedragon__faq-question .page-fortunedragon__faq-toggle {
  font-size: 1.5rem;
  color: #F4D34D;
}

.page-fortunedragon__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.5;
}

/* Final CTA Section */
.page-fortunedragon__final-cta-section {
  background-color: #B71C1C;
  padding-bottom: 80px;
}

/* Links within text */
.page-fortunedragon a {
  color: #F4D34D; /* Gold color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fortunedragon a:hover {
  color: #FFCC66; /* Glow color on hover */
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-fortunedragon__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-fortunedragon__content-wrapper--reverse {
    flex-direction: column; /* Keep column order for reverse too */
  }
  .page-fortunedragon__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-fortunedragon__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-fortunedragon__hero-section,
  .page-fortunedragon__about-section,
  .page-fortunedragon__features-section,
  .page-fortunedragon__how-to-play-section,
  .page-fortunedragon__tips-section,
  .page-fortunedragon__why-us-section,
  .page-fortunedragon__video-section,
  .page-fortunedragon__faq-section,
  .page-fortunedragon__final-cta-section {
    padding: 40px 0;
  }

  .page-fortunedragon__container {
    padding: 0 15px;
  }

  .page-fortunedragon__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-fortunedragon__hero-description,
  .page-fortunedragon__section-description {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-fortunedragon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortunedragon__section,
  .page-fortunedragon__card,
  .page-fortunedragon__container,
  .page-fortunedragon__hero-image-wrapper,
  .page-fortunedragon__video-wrapper,
  .page-fortunedragon__cta-buttons,
  .page-fortunedragon__features-grid,
  .page-fortunedragon__steps-grid,
  .page-fortunedragon__benefits-grid,
  .page-fortunedragon__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile video responsiveness */
  .page-fortunedragon video,
  .page-fortunedragon__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortunedragon__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-fortunedragon__cta-button,
  .page-fortunedragon__btn-primary,
  .page-fortunedragon__btn-secondary,
  .page-fortunedragon a[class*="button"],
  .page-fortunedragon 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-fortunedragon__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}