.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--site-bg, #ffffff); /* Default to white if --site-bg is not set */
}

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

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

.page-index__top-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 30px;
  text-align: center;
}

.page-index__page-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #C91F17;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index__page-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  min-height: 44px;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 1px solid #F2B544;
  box-shadow: 0 4px 10px rgba(230, 184, 0, 0.4);
}

.page-index__btn--primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(230, 184, 0, 0.6);
}

.page-index__btn--secondary {
  background: #C91F17;
  color: #FFF5E1; /* Text Main for text on red button */
  border: 1px solid #7A0E0E;
  box-shadow: 0 4px 10px rgba(201, 31, 23, 0.4);
}

.page-index__btn--secondary:hover {
  background: #E53935;
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

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

.page-index__section-title--notification {
  font-size: 1.8em;
  color: #E53935;
  margin-bottom: 20px;
}

.page-index__sub-title {
  font-size: 1.5em;
  color: #C91F17;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-index__advantage-list,
.page-index__fact-list,
.page-index__benefits-list,
.page-index__identification-list,
.page-index__advantages-list,
.page-index__registration-tips,
.page-index__promo-box-list,
.page-index__contact-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-index__identification-list {
  list-style: decimal;
}

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

.page-index__emphasis-text--red {
  color: #E53935;
  font-weight: bold;
}

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

.page-index__info-card p strong {
  color: #C91F17;
}

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

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

.page-index__seo-content-section h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-index__seo-content-section h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.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 15px rgba(0,0,0,0.1);
}

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

.page-index__quote-text {
  font-size: 1.2em;
  font-style: italic;
  border-left: 4px solid #C91F17;
  padding-left: 20px;
  margin: 30px 0;
  color: #555555;
}

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

.page-index__promo-box-section {
  padding: 40px 0;
  text-align: center;
}

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

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

.page-index__promo-box-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  margin-left: 0;
}

.page-index__promo-box-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-index__promo-box-list li::before {
  content: '✓';
  color: #E53935;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-index__btn--promo {
  background: #d62828;
  color: #ffffff;
  border: none;
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
}

.page-index__btn--promo:hover {
  background: #ff4141;
  box-shadow: 0 7px 20px rgba(255, 65, 65, 0.6);
}

.page-index__registration-tutorial-section h2,
.page-index__faq-contact-section h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-index__faq-answer {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #E53935;
}

.page-index__conclusion-text {
  font-size: 1.1em;
  font-weight: bold;
  color: #555555;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-index__contact-list li strong {
  color: #C91F17;
}

.page-index__contact-list li a {
  color: #0066ff;
  text-decoration: none;
}

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

.page-index__copyright-section {
  background: #B71C1C; /* Background color from custom scheme */
  color: #FFF5E1; /* Text Main color */
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.page-index__copyright-text {
  font-size: 0.9em;
  margin: 0;
}

/* --- Responsive Styles --- */

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

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

  /* 1. Top Section (Title + CTAs) */
  .page-index__top-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 20px;
  }

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

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

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

  .page-index__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 10px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single-column long text container */
  .page-index__section {
    padding: 20px 0;
    margin-bottom: 15px;
  }

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

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

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

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

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

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

  /* 3. 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__wp-caption figcaption {
    font-size: 0.85em;
  }

  /* 4. Buttons and button containers (already covered in top-cta and btn rules) */
  .page-index__btn--promo {
    font-size: 1.1em;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 5. Registration tutorial and FAQ sections */
  .page-index__registration-tutorial-section h2,
  .page-index__faq-contact-section h2 {
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__faq-question {
    font-size: 1.2em;
    margin-top: 20px;
  }

  .page-index__faq-answer {
    margin-bottom: 15px;
    padding-left: 8px;
  }

  .page-index__contact-list {
    text-align: left;
    margin-left: 15px;
  }

  .page-index__conclusion-text {
    font-size: 1em;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-index__article-wrap {
    padding: 0 30px;
  }

  .page-index__page-title {
    font-size: 2.2em;
  }

  .page-index__page-description {
    font-size: 1.05em;
  }

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

  .page-index__sub-title {
    font-size: 1.4em;
  }

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

  .page-index__wp-caption {
    max-width: 600px;
  }

  .page-index__promo-box {
    max-width: 700px;
  }

  .page-index__btn--promo {
    font-size: 1.1em;
    padding: 12px 30px;
  }
}