/* style/index.css */

/* --- General Styles --- */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Default body background */
}

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

.page-index__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.page-index__page-title {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
  line-height: 1.5;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: #017439;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

.page-index ul,
.page-index ol {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-index li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
}

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

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

/* --- Module 0: Top Section --- */
.page-index__top-section {
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for the top section */
}

.page-index__top-cta {
  display: flex;
  gap: 20px;
  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: 18px;
  font-weight: bold;
  text-transform: uppercase;
  min-height: 44px; /* Minimum touch target height */
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__btn--primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  border: 2px solid #C30808;
}

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

.page-index__btn--secondary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  border: 2px solid #C30808;
}

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

/* --- Module 1: Announcement Section --- */
.page-index__announcement-section {
  background-color: #f9f9f9;
  padding: 50px 0;
}

.page-index__feature-list {
  list-style-type: disc;
  padding-left: 40px;
  margin-top: 20px;
}

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

/* --- Module 2: Brand Info Section --- */
.page-index__brand-info-section {
  padding: 50px 0;
}

.page-index__facts-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 20px;
}

.page-index__facts-list li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.page-index__info-card {
  background-color: #f9f9f9; /* Gray background */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  margin-top: 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-index__info-card p {
  font-size: 16px;
  text-align: left;
}

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

.page-index__info-card ul li {
  font-size: 16px;
  margin-bottom: 5px;
}

.page-index__warning-card {
  background-color: #fff4f4; /* Reddish background */
  border-left: 5px solid #ff4141; /* Red left border */
  border-radius: 8px;
  padding: 20px 25px;
  margin-top: 30px;
  color: #d62828;
  font-size: 16px;
  line-height: 1.5;
}

.page-index__warning-card strong {
  color: #d62828;
  font-weight: bold;
}

/* --- Module 3: SEO Content Section --- */
.page-index__seo-content-section {
  padding: 50px 0;
}

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

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

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

.page-index__blockquote-text {
  font-size: 18px;
  font-style: italic;
  color: #555;
  border-left: 4px solid #017439;
  padding-left: 20px;
  margin: 30px 0;
  text-align: left;
}

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

.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: 0 auto;
  max-width: 800px;
}

.page-index__promo-title {
  font-size: 28px;
  font-weight: bold;
  color: #d62828;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__promo-box p {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__promo-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 25px;
  text-align: left;
  display: inline-block; /* To center the list itself */
}

.page-index__promo-list li {
  font-size: 17px;
  margin-bottom: 8px;
}

.page-index__btn--red {
  background-color: #d62828;
  color: #ffffff; /* White text for red button for contrast */
  border: 2px solid #d62828;
  padding: 15px 35px;
  font-size: 20px;
  border-radius: 8px;
}

.page-index__btn--red:hover {
  background-color: #ed1c24;
  border-color: #ed1c24;
}

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

/* --- Module 6: FAQ & Contact Section --- */
.page-index__faq-contact-section {
  padding: 50px 0;
}

.page-index__faq-question {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__faq-answer {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__conclusion-text {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 30px;
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-index__contact-info li {
  font-size: 17px;
  margin-bottom: 10px;
}

.page-index__contact-info strong {
  color: #017439;
}


/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
  /* 1. Top section (titles, CTA buttons) */
  .page-index__top-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-index__page-title {
    font-size: clamp(28px, 6vw, 40px); /* Responsive H1 font size */
    margin-bottom: 15px;
  }

  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

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

  .page-index__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text to wrap */
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

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

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

  .page-index__section-title {
    font-size: clamp(24px, 7vw, 36px); /* Responsive H2 font size */
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-index__sub-title {
    font-size: clamp(20px, 5vw, 24px); /* Responsive H3 font size */
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .page-index p,
  .page-index li {
    font-size: 16px;
    line-height: 1.6;
    text-align: left; /* Adjust text alignment for mobile readability */
  }

  .page-index__facts-list {
    grid-template-columns: 1fr;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-index__info-card,
  .page-index__warning-card {
    padding: 20px;
    margin-top: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-index__promo-title {
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 15px;
  }

  .page-index__promo-list {
    padding-left: 25px;
  }

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

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

  .page-index__wp-caption figcaption {
    font-size: 14px;
    padding: 0 5px;
  }

  /* 4. Buttons and button containers (already covered in .page-index__btn and .page-index__top-cta) */
  .page-index__btn--red {
    padding: 12px 25px;
    font-size: 18px;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-index__faq-question {
    font-size: clamp(18px, 5vw, 22px);
    margin-top: 25px;
  }

  .page-index__faq-answer {
    font-size: 16px;
  }

  .page-index__contact-info {
    padding-left: 0;
  }

  .page-index__contact-info li {
    font-size: 16px;
  }
}

/* --- Color Contrast Safeguard (based on default light body background) --- */
.page-index {
  color: #333333; /* Default text for light background */
}

.page-index__card,
.page-index__info-card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-index__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-index__btn--primary,
.page-index__btn--secondary {
  color: #FFFF00; /* As per specific color instruction */
}

.page-index__btn--red {
  color: #ffffff; /* Override for red button, as per general rule for dark buttons */
}