.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light body background */
  background-color: var(--card-bg, #f9f9f9); /* Fallback if shared.css doesn't define --card-bg */
}

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

.page-index__section {
  padding: 30px 0;
  background-color: #ffffff;
}

.page-index__section:nth-child(even) {
  background-color: #f9f9f9;
}

.page-index__top-section {
  padding-top: 10px; /* Minimal top padding as body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #1D5FD1 0%, #113B7A 100%);
  color: #F3F8FF;
  text-align: center;
}

.page-index__page-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F3F8FF;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 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: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 2px solid #2B73F6;
}

.page-index__btn--primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  border-color: #1144A6;
}

.page-index__btn--secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid #F3F8FF;
}

.page-index__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-index__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #113B7A;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__announcement-section .page-index__section-title {
  color: #D62828;
}

.page-index__announcement-section p,
.page-index__announcement-section ol,
.page-index__announcement-section li {
  color: #333333;
  text-align: justify;
}

.page-index__selling-points {
  list-style: decimal;
  margin-left: 20px;
  padding: 0;
  margin-bottom: 20px;
}

.page-index__selling-points li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-index__emphasis-text {
  font-size: 1.2em;
  font-weight: 700;
  color: #D62828;
  text-align: center;
  margin-top: 30px;
}

.page-index__emphasis-text a {
  color: #D62828;
  text-decoration: underline;
}

.page-index__brand-overview-section p,
.page-index__brand-overview-section ul,
.page-index__brand-overview-section li {
  color: #333333;
  text-align: justify;
}

.page-index__fact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__fact-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

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

.page-index__info-card ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
  margin-top: 15px;
}

.page-index__info-card li {
  margin-bottom: 8px;
}

.page-index__info-card em {
  display: block;
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}

.page-index__warning-card {
  background-color: #fff4f4;
  border-left: 5px solid #ff4141;
  border-radius: 4px;
  padding: 20px;
  font-size: 1.05em;
  color: #D62828;
}

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

.page-index__seo-content-section h2 {
  font-size: 2em;
  color: #113B7A;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__seo-content-section h3 {
  font-size: 1.6em;
  color: #1D5FD1;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__seo-content-section p,
.page-index__seo-content-section ul,
.page-index__seo-content-section ol,
.page-index__seo-content-section li {
  color: #333333;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__seo-content-section strong {
  color: #113B7A;
}

.page-index__wp-caption {
  margin: 25px auto;
  max-width: 680px; /* Max width for blog images */
  width: 100%;
  text-align: center;
  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-text {
  font-style: italic;
  font-size: 1.2em;
  color: #555;
  border-left: 4px solid #1D5FD1;
  padding-left: 20px;
  margin: 30px 0;
  text-align: justify;
}

.page-index__promo-text {
  font-size: 1.3em;
  font-weight: 700;
  color: #D62828;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__promo-box-section {
  background-color: #f9f9f9;
}

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

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

.page-index__promo-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  color: #333333;
}

.page-index__promo-box li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-index__btn--promo {
  background-color: #D62828;
  color: #ffffff;
  border: 2px solid #D62828;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.page-index__register-tutorial-section h2 {
  font-size: 2em;
  color: #113B7A;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__register-tutorial-section p {
  text-align: justify;
}

.page-index__tutorial-step {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fdfdfd;
  border-radius: 8px;
  border: 1px solid #eee;
}

.page-index__step-title {
  font-size: 1.8em;
  color: #1D5FD1;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__tutorial-step ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
  margin-top: 15px;
  color: #333333;
}

.page-index__faq-section h2 {
  font-size: 2em;
  color: #113B7A;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__faq-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  color: #333333;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #113B7A;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-index__faq-answer p {
  margin-top: 10px;
  font-size: 1.05em;
  line-height: 1.5;
  text-align: justify;
}

.page-index__contact-info {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

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

.page-index__contact-info a {
  color: #1D5FD1;
  text-decoration: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__page-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

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

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

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

  .page-index__step-title {
    font-size: 1.6em;
  }

  .page-index__faq-question {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* 1. Top section (h1 + dual CTA) */
  .page-index__top-section {
    padding-top: 10px !important; /* Enforce minimal top padding */
    padding-bottom: 30px;
  }

  .page-index__page-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    padding: 0 10px;
  }

  .page-index__page-description {
    font-size: 1em;
    padding: 0 15px;
  }

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

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

  /* 2. Single column long text container */
  .page-index__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__section {
    padding: 20px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-index__announcement-section p,
  .page-index__announcement-section ol,
  .page-index__announcement-section li,
  .page-index__brand-overview-section p,
  .page-index__brand-overview-section ul,
  .page-index__brand-overview-section li,
  .page-index__seo-content-section p,
  .page-index__seo-content-section ul,
  .page-index__seo-content-section ol,
  .page-index__seo-content-section li,
  .page-index__promo-box ul,
  .page-index__promo-box li,
  .page-index__register-tutorial-section p,
  .page-index__register-tutorial-section ul,
  .page-index__register-tutorial-section li,
  .page-index__faq-answer p,
  .page-index__contact-info li {
    font-size: 0.95em;
    text-align: left;
    line-height: 1.5;
  }

  .page-index__info-card,
  .page-index__warning-card,
  .page-index__promo-box,
  .page-index__tutorial-step,
  .page-index__faq-item {
    padding: 15px !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__info-card ul,
  .page-index__tutorial-step ul {
    margin-left: 15px;
  }

  /* 3. General images and figures */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-index__wp-caption {
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5px;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers (already covered by .page-index__btn and .page-index__top-cta) */
  .page-index__btn--promo {
    font-size: 1.1em !important;
    padding: 12px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-index__seo-content-section h2,
  .page-index__register-tutorial-section h2,
  .page-index__faq-section h2 {
    font-size: 1.7em;
    padding: 0 10px;
  }

  .page-index__seo-content-section h3,
  .page-index__step-title,
  .page-index__faq-question {
    font-size: 1.3em;
    padding: 0 5px;
  }

  .page-index__promo-box-title {
    font-size: 1.6em;
    padding: 0 10px;
  }

  .page-index__blockquote-text {
    font-size: 1.05em;
    padding-left: 15px;
    margin: 20px 0;
  }

  .page-index__contact-info {
    padding: 0 15px;
  }
}