.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body default is white */
}

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

/* Module 0: Top section */
.page-index__top-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 20px;
  text-align: center;
  background-color: #FFFFFF;
}

.page-index__page-title {
  font-size: 2.5em; /* Use em to allow for responsive scaling */
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__top-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__btn {
  display: inline-flex; /* Use inline-flex for better alignment */
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  min-height: 44px; /* Minimum touch target height */
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-index__btn--register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: none;
}

.page-index__btn--register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-index__btn--login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: none;
}

.page-index__btn--login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Module 1: Announcement / Featured Benefits */
.page-index__announcement-section {
  padding: 40px 0;
  background-color: #f9f9f9; /* Light grey background for contrast */
  border-bottom: 1px solid #eeeeee;
}

.page-index__section-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-index__announcement-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__benefits-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
}

.page-index__benefits-list li {
  margin-bottom: 10px;
}

.page-index__promo-highlight {
  text-align: center;
  font-style: italic;
  color: #d62828; /* Emphasis red */
  font-weight: bold;
}

.page-index__promo-highlight a {
  color: #d62828;
  text-decoration: underline;
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.page-index__fact-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-index__fact-list li {
  margin-bottom: 8px;
}

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

.page-index__card-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__card-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-index__card-list li {
  margin-bottom: 8px;
}

.page-index__card-note {
  font-size: 0.9em;
  color: #777777;
  font-style: italic;
}

.page-index__warning-card {
  background-color: #fff4f4; /* Light red background */
  border-left: 5px solid #ff4141; /* Red left border */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.page-index__warning-title {
  color: #d62828; /* Emphasis red */
  font-size: 1.1em;
  margin-bottom: 10px;
  display: block;
}

.page-index__warning-card p {
  margin: 0;
  text-align: justify;
}

.page-index__warning-card a {
  color: #0066ff; /* CTA blue for link */
  text-decoration: underline;
}

/* Module 3: Long SEO Content */
.page-index__main-content-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.page-index__main-content-section h2 {
  font-size: 1.8em;
  color: #017439;
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: justify; /* Align h2 as well for consistency */
}

.page-index__main-content-section h3.page-index__sub-title {
  font-size: 1.4em;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: justify; /* Align h3 as well */
}

.page-index__main-content-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__main-content-section a {
  color: #0066ff;
  text-decoration: underline;
}

.page-index__wp-caption {
  margin: 25px auto;
  max-width: 680px; /* Max width for blog images */
  text-align: center;
}

.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__figcaption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
  font-style: italic;
}

.page-index__identification-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
}

.page-index__identification-list li {
  margin-bottom: 10px;
}

.page-index__expert-quote {
  background-color: #f0f8ff; /* Light blue for quote background */
  border-left: 5px solid #0066ff; /* Blue border for emphasis */
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  color: #555555;
  border-radius: 5px;
}

.page-index__expert-quote p {
  margin-bottom: 10px;
}

.page-index__expert-quote cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: bold;
  color: #017439;
  margin-top: 10px;
}

/* Module 4: World Cup / Big Event Promo Box */
.page-index__promo-box-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.page-index__promo-box {
  background-color: #fffbe6; /* Light yellow background */
  border: 2px dashed #111; /* Dashed border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin: 30px auto;
  max-width: 900px;
  box-sizing: border-box;
}

.page-index__promo-box-title {
  font-size: 1.8em;
  color: #d62828; /* Emphasis red */
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__promo-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__btn--promo {
  background-color: #d62828; /* Red for promo button */
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 1.2em;
  border-radius: 8px;
}

.page-index__btn--promo:hover {
  background-color: #b02121;
  transform: translateY(-2px);
}

/* Module 5: Four-Step Registration Tutorial */
.page-index__registration-tutorial-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.page-index__tutorial-step {
  margin-bottom: 40px;
}

.page-index__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: justify;
}

.page-index__tutorial-step p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__info-fields {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-index__info-fields li {
  margin-bottom: 5px;
}

/* Module 6: FAQ + Footer Contact Info */
.page-index__faq-contact-section {
  padding: 40px 0 60px 0;
  background-color: #FFFFFF;
}

.page-index__faq-item {
  margin-bottom: 25px;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: justify;
}

.page-index__faq-answer p {
  margin-bottom: 10px;
  text-align: justify;
}

.page-index__contact-info {
  list-style-type: none;
  padding: 0;
  margin-top: 25px;
}

.page-index__contact-info li {
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #555555;
}

.page-index__contact-info a {
  color: #0066ff;
  text-decoration: underline;
}

/* General image styling for content areas */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index__article-wrap {
    padding: 0 15px; /* Mobile padding */
  }

  /* Module 0: Top section */
  .page-index__top-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 15px;
  }

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

  .page-index__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-index__top-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-index__btn {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Module 1: Announcement / Featured Benefits */
  .page-index__announcement-section {
    padding: 30px 0;
  }

  .page-index__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-index__benefits-list {
    padding-left: 20px;
  }

  /* Module 2: Brand Overview + Info Cards */
  .page-index__brand-overview-section {
    padding: 30px 0;
  }

  .page-index__info-card,
  .page-index__warning-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-index__card-title {
    font-size: 1.2em;
  }

  /* Module 3: Long SEO Content */
  .page-index__main-content-section {
    padding: 30px 0;
  }

  .page-index__main-content-section h2 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__main-content-section h3.page-index__sub-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

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

  .page-index__wp-caption img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Module 4: Promo Box */
  .page-index__promo-box-section {
    padding: 30px 0;
  }

  .page-index__promo-box {
    padding: 25px;
    margin: 20px auto;
  }

  .page-index__promo-box-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  .page-index__promo-features li {
    font-size: 1em;
  }

  .page-index__btn--promo {
    padding: 12px 25px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 5: Four-Step Registration Tutorial */
  .page-index__registration-tutorial-section {
    padding: 30px 0;
  }

  .page-index__tutorial-step {
    margin-bottom: 30px;
  }

  .page-index__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  /* Module 6: FAQ + Footer Contact Info */
  .page-index__faq-contact-section {
    padding: 30px 0 40px 0;
  }

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

  .page-index__faq-question {
    font-size: 1.2em;
    margin-bottom: 8px;
  }

  .page-index__contact-info li {
    font-size: 1em;
  }

  /* General image and container rules for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}