/* style/blog-x8-link-moi-promotions-analysis.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-blog-x8-link-moi-promotions-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be overridden by section backgrounds */
  background-color: var(--background-color); /* Inherit from shared.css body */
}

/* Hero Section */
.page-blog-x8-link-moi-promotions-analysis__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden; /* Ensure no overflow */
  background-color: var(--deep-green); /* Fallback background for hero */
}

.page-blog-x8-link-moi-promotions-analysis__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-x8-link-moi-promotions-analysis__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog-x8-link-moi-promotions-analysis__hero-content {
  position: relative; /* Not absolute, to flow below image */
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  color: var(--text-main); /* Light text on hero background */
}

.page-blog-x8-link-moi-promotions-analysis__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-main);
}

.page-blog-x8-link-moi-promotions-analysis__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-blog-x8-link-moi-promotions-analysis__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Content Sections */
.page-blog-x8-link-moi-promotions-analysis__content-section {
  padding: 60px 20px;
}

.page-blog-x8-link-moi-promotions-analysis__dark-bg {
  background-color: var(--background-color); /* Deep Green from custom palette */
  color: var(--text-main); /* Light text */
}

.page-blog-x8-link-moi-promotions-analysis__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text on light background */
}

.page-blog-x8-link-moi-promotions-analysis__container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog-x8-link-moi-promotions-analysis__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  color: inherit; /* Inherit from section, ensuring contrast */
}

.page-blog-x8-link-moi-promotions-analysis__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit; /* Inherit from section */
}

.page-blog-x8-link-moi-promotions-analysis__heading-four {
  font-size: clamp(1.2em, 2vw, 1.5em);
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: inherit; /* Inherit from section */
}

.page-blog-x8-link-moi-promotions-analysis__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section */
}

.page-blog-x8-link-moi-promotions-analysis__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section */
}

.page-blog-x8-link-moi-promotions-analysis__list-item {
  margin-bottom: 10px;
  color: inherit; /* Inherit from section */
}

.page-blog-x8-link-moi-promotions-analysis__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

/* Call to Action Block */
.page-blog-x8-link-moi-promotions-analysis__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: var(--card-bg); /* Use card background for CTA block */
  border-radius: 8px;
  color: var(--text-main);
}

.page-blog-x8-link-moi-promotions-analysis__cta-text {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* Buttons */
.page-blog-x8-link-moi-promotions-analysis__btn-primary,
.page-blog-x8-link-moi-promotions-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsive button width */
  text-align: center;
}

.page-blog-x8-link-moi-promotions-analysis__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog-x8-link-moi-promotions-analysis__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-x8-link-moi-promotions-analysis__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* Light text on dark background */
  border: 2px solid var(--border-color); /* Use border color */
}

.page-blog-x8-link-moi-promotions-analysis__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* FAQ Section */
.page-blog-x8-link-moi-promotions-analysis__faq-list {
  margin-top: 30px;
}

.page-blog-x8-link-moi-promotions-analysis__faq-item {
  background-color: var(--card-bg); /* Card BG from custom palette */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main); /* Main text color for FAQ item */
}

.page-blog-x8-link-moi-promotions-analysis__faq-item details {
  background-color: transparent; /* Ensure details element itself doesn't add background */
}

.page-blog-x8-link-moi-promotions-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: var(--card-bg); /* Card BG from custom palette */
  color: var(--text-main); /* Main text color */
  border-bottom: 1px solid var(--divider); /* Divider color */
}

.page-blog-x8-link-moi-promotions-analysis__faq-question:hover {
  background-color: var(--deep-green); /* Slightly darker on hover */
}

.page-blog-x8-link-moi-promotions-analysis__faq-item[open] .page-blog-x8-link-moi-promotions-analysis__faq-question {
  border-bottom: 1px solid var(--divider);
}

.page-blog-x8-link-moi-promotions-analysis__faq-qtext {
  flex-grow: 1;
  color: var(--text-main); /* Main text color */
}

.page-blog-x8-link-moi-promotions-analysis__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow); /* Glow color for toggle */
  line-height: 1;
}

.page-blog-x8-link-moi-promotions-analysis__faq-item[open] .page-blog-x8-link-moi-promotions-analysis__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-blog-x8-link-moi-promotions-analysis__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1em;
  color: var(--text-secondary); /* Secondary text color for answer */
}

/* Remove default details marker */
.page-blog-x8-link-moi-promotions-analysis__faq-item summary {
  list-style: none;
}
.page-blog-x8-link-moi-promotions-analysis__faq-item summary::-webkit-details-marker {
  display: none;
}


/* Responsive Design */
@media (max-width: 768px) {
  .page-blog-x8-link-moi-promotions-analysis {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-x8-link-moi-promotions-analysis__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-blog-x8-link-moi-promotions-analysis__hero-content {
    padding: 20px 15px;
  }

  .page-blog-x8-link-moi-promotions-analysis__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog-x8-link-moi-promotions-analysis__subtitle {
    font-size: 1em;
  }

  .page-blog-x8-link-moi-promotions-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog-x8-link-moi-promotions-analysis__btn-primary,
  .page-blog-x8-link-moi-promotions-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .page-blog-x8-link-moi-promotions-analysis__content-section {
    padding: 40px 15px;
  }

  .page-blog-x8-link-moi-promotions-analysis__container {
    padding-left: 0px; /* Reset container padding, sections will add it */
    padding-right: 0px;
  }
  
  /* Ensure all images are responsive and do not overflow */
  .page-blog-x8-link-moi-promotions-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-x8-link-moi-promotions-analysis__hero-image-wrapper,
  .page-blog-x8-link-moi-promotions-analysis__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* All sections/containers must handle padding for mobile */
  .page-blog-x8-link-moi-promotions-analysis__content-section,
  .page-blog-x8-link-moi-promotions-analysis__cta-block,
  .page-blog-x8-link-moi-promotions-analysis__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-x8-link-moi-promotions-analysis__faq-question {
    padding: 15px;
    font-size: 1em;
  }

  .page-blog-x8-link-moi-promotions-analysis__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

/* Custom Color Palette Integration */
:root {
  --main-color: #11A84E; /* Primary */
  --accent-color: #22C768; /* Secondary */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Apply base colors, ensuring contrast */
.page-blog-x8-link-moi-promotions-analysis {
  background-color: var(--background-color); /* Deep background */
  color: var(--text-main); /* Light text on dark background */
}