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

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

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

.page-index__top-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 20px;
  text-align: center;
}

.page-index__page-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__top-cta {
  display: flex;
  gap: 12px;
  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;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  min-height: 44px; /* Ensure minimum touch target size */
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn--primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
  font-weight: bold;
}

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

.page-index__btn--secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  font-weight: bold;
}

.page-index__btn--secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-index__section-title--small {
  font-size: 1.5em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

.page-index p {
  margin-bottom: 1em;
  text-align: justify;
}

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

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

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

.page-index__feature-list, .page-index__fact-list, .page-index__product-list, .page-index__recognition-list, .page-index__advantages-list, .page-index__contact-list, .page-index__promo-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  padding-left: 0;
}

.page-index__feature-list li, .page-index__fact-list li, .page-index__product-list li, .page-index__recognition-list li, .page-index__advantages-list li, .page-index__contact-list li, .page-index__promo-list li {
  margin-bottom: 0.5em;
}

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

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

.page-index__warning-card strong {
  color: #ff4141;
}

.page-index__seo-content-section h2, .page-index__seo-content-section h3, .page-index__registration-tutorial-section h2, .page-index__registration-tutorial-section h3, .page-index__faq-section h2, .page-index__faq-section h3 {
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: left;
}

.page-index__seo-content-section h2 {
  font-size: 1.8em;
}

.page-index__seo-content-section h3 {
  font-size: 1.4em;
}

.page-index__wp-caption {
  margin: 20px auto;
  text-align: center;
  max-width: 680px; /* Max width for images in long text */
  box-sizing: border-box;
}

.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 blockquote {
  border-left: 4px solid #017439;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
  background-color: #f5f5f5;
  padding: 15px 20px;
  border-radius: 4px;
}

.page-index blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  color: #017439;
}

.page-index__promo-box {
  background-color: #fffbe6;
  border: 2px dashed #111;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
  box-sizing: border-box;
}

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

.page-index__btn--promo {
  background-color: #d62828;
  color: #FFFFFF;
  border: 2px solid #d62828;
  font-size: 1.2em;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 25px;
}

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

.page-index__registration-tutorial-section h3 {
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index__contact-intro {
  text-align: center;
  margin-top: 30px;
}

.page-index__contact-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.page-index__contact-list li {
  margin-bottom: 5px;
}

.page-index__highlight {
    font-weight: bold;
    color: #017439;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-index__article-wrap,
  .page-index__section,
  .page-index__info-card,
  .page-index__warning-card,
  .page-index__promo-box,
  .page-index__top-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__top-section {
    padding-top: 10px !important;
  }

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

  .page-index__top-cta {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__btn,
  .page-index__btn--primary,
  .page-index__btn--secondary,
  .page-index a[class*="button"],
  .page-index 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-index__section-title {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-index__section-title--small {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .page-index p {
    text-align: left;
  }

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

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

  .page-index__seo-content-section h2,
  .page-index__seo-content-section h3,
  .page-index__registration-tutorial-section h2,
  .page-index__registration-tutorial-section h3,
  .page-index__faq-section h2,
  .page-index__faq-section h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
  }

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

  .page-index__btn--promo {
    font-size: 1em;
    padding: 12px 20px;
  }
}

@media (max-width: 549px) {
  .page-index__page-title {
    font-size: 1.5em;
  }

  .page-index__btn {
    font-size: 1em;
    padding: 10px 20px;
  }

  .page-index__section-title {
    font-size: 1.3em;
  }

  .page-index__seo-content-section h2,
  .page-index__seo-content-section h3,
  .page-index__registration-tutorial-section h2,
  .page-index__registration-tutorial-section h3,
  .page-index__faq-section h2,
  .page-index__faq-section h3 {
    font-size: 1.2em;
  }

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