.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--page-bg-color, #F5F7FA); /* Ensure consistency with body bg */
}

.page-index__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index__section {
  padding: 30px 0;
}

.page-index__top-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding-bottom: 30px;
}

.page-index__page-title {
  font-size: clamp(2.2em, 4vw, 2.8em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: center;
}

.page-index__top-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  min-height: 44px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-index__btn--primary {
  background: #0066ff;
  color: #ffffff;
  border: 2px solid #0066ff;
}

.page-index__btn--primary:hover {
  background: #0056e6;
  border-color: #0056e6;
}

.page-index__announcement-section .page-index__section-title,
.page-index__brand-overview-section .page-index__section-title,
.page-index__seo-content-section h2,
.page-index__register-tutorial-section .page-index__section-title,
.page-index__faq-contact-section .page-index__section-title {
  font-size: 2em;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__announcement-section p,
.page-index__brand-overview-section p,
.page-index__seo-content-section p,
.page-index__register-tutorial-section p,
.page-index__faq-contact-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__feature-list,
.page-index__fact-list,
.page-index__recognition-list,
.page-index__why-join-list,
.page-index__form-list,
.page-index__promo-list,
.page-index__contact-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

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

.page-index__feature-list li,
.page-index__fact-list li,
.page-index__recognition-list li,
.page-index__why-join-list li,
.page-index__form-list li,
.page-index__promo-list li,
.page-index__contact-list li {
  margin-bottom: 8px;
}

.page-index__emphasis-text {
  text-align: center;
  font-style: italic;
  color: #E53935;
  font-weight: bold;
  margin-top: 20px;
}

.page-index__info-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__warning-card {
  background-color: #fff4f4;
  border-left: 5px solid #ff4141;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  color: #333333;
}

.page-index__seo-content-section h3 {
  font-size: 1.5em;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__seo-content-section .page-index__text-justify {
  text-align: justify;
}

.page-index__wp-caption {
  text-align: center;
  margin: 25px auto;
  max-width: 680px;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-index__wp-caption figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-index__expert-quote {
  font-style: italic;
  border-left: 5px solid #FF5A4F;
  padding-left: 20px;
  margin: 30px 0;
  color: #555;
  font-size: 1.1em;
}

.page-index__promo-section {
  background-color: #F5F7FA;
  padding: 40px 0;
  text-align: center;
}

.page-index__promo-box {
  background-color: #fffbe6;
  border: 2px dashed #111;
  border-radius: 10px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__promo-title {
  font-size: 2em;
  color: #d62828;
  margin-bottom: 20px;
}

.page-index__promo-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-index__promo-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-index__promo-list li::before {
  content: '⭐';
  position: absolute;
  left: 0;
  top: 0;
}

.page-index__btn--promo {
  background: #d62828;
  color: #ffffff;
  border: 2px solid #d62828;
  padding: 15px 40px;
  font-size: 1.2em;
  border-radius: 8px;
}

.page-index__btn--promo:hover {
  background: #c02121;
  border-color: #c02121;
}

.page-index__register-tutorial-section h3 {
  font-size: 1.8em;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__faq-question {
  font-size: 1.5em;
  color: #E53935;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__faq-answer {
  margin-bottom: 20px;
}

.page-index__contact-title {
  font-size: 1.8em;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index a {
  color: #0066ff;
  text-decoration: none;
}

.page-index a:hover {
  text-decoration: underline;
}

/* Image responsive base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button responsive base styles */
.page-index__btn,
.page-index__btn--primary,
.page-index__btn--promo,
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container responsive base styles */
.page-index__top-cta,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Module 0: Top section title + Dual CTA */
  .page-index__top-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__page-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index__top-cta {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__btn,
  .page-index__btn--primary,
  .page-index__btn--promo,
  .page-index a[class*="btn"] {
    width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
    min-height: 44px !important;
  }

  /* Module 1-6: Single column long text container */
  .page-index__article-wrap {
    padding: 0 15px;
  }

  .page-index__section {
    padding: 20px 0;
  }

  .page-index__announcement-section .page-index__section-title,
  .page-index__brand-overview-section .page-index__section-title,
  .page-index__seo-content-section h2,
  .page-index__register-tutorial-section .page-index__section-title,
  .page-index__faq-contact-section .page-index__section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-index__announcement-section p,
  .page-index__brand-overview-section p,
  .page-index__seo-content-section p,
  .page-index__register-tutorial-section p,
  .page-index__faq-contact-section p {
    text-align: left;
  }

  .page-index__info-card,
  .page-index__warning-card,
  .page-index__promo-box {
    padding: 15px;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General images and figure */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__wp-caption {
    margin: 15px auto;
  }

  .page-index__seo-content-section h3,
  .page-index__register-tutorial-section h3,
  .page-index__faq-question,
  .page-index__contact-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-index__expert-quote {
    font-size: 1em;
    padding-left: 15px;
    margin: 20px 0;
  }

  .page-index__promo-title {
    font-size: 1.5em;
  }

  .page-index__promo-list li {
    font-size: 1em;
    padding-left: 20px;
  }

  .page-index__promo-list li::before {
    font-size: 0.9em;
  }
}