/* style/index.css */

/* General styles for the page-index scope */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Ensure body background is light */
}

/* Article wrap for content centering and max-width */
.page-index__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section base styles */
.page-index__section {
  padding: 20px 0; /* Consistent vertical spacing */
}

/* Headings */
.page-index__page-title {
  font-size: 2.2em; /* Use em for relative sizing */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  line-height: 1.2;
}

.page-index__section-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #26A9E0;
  text-align: center; /* Adjust based on content flow */
}

.page-index h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-index h3 {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333333;
}

/* Paragraphs and lists */
.page-index p {
  margin-bottom: 15px;
  text-align: justify; /* Consistent with demo */
}

.page-index ul, .page-index ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

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

/* Links */
.page-index a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
}

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

/* --- Module 0: Top Section --- */
.page-index__top-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 30px;
  background-color: #FFFFFF; /* Explicitly white background */
}

.page-index__subtitle {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555555;
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  min-height: 44px; /* Minimum touch target height */
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Break long words */
}

.page-index__btn--primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__btn--primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
  text-decoration: none;
}

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

.page-index__btn--secondary:hover {
  background-color: #c76706;
  border-color: #c76706;
  text-decoration: none;
}

/* --- Module 1: Announcement / Main Promotion Area --- */
.page-index__announcement-section {
  background-color: #f9f9f9; /* Light grey background */
  padding: 30px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.page-index__announcement-section .page-index__section-title {
  color: #d62828; /* Emphasis red */
  margin-top: 0;
}

.page-index__feature-list {
  list-style-type: decimal;
  margin-left: 20px;
}

.page-index__feature-list li strong {
  color: #26A9E0;
}

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

.page-index__link--promo {
  color: #d62828;
  text-decoration: underline;
}

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

.page-index__fact-list {
  list-style-type: disc;
  margin-left: 20px;
}

.page-index__fact-list li strong {
  color: #26A9E0;
}

.page-index__info-card {
  background-color: #f9f9f9; /* Light grey background from demo */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__info-card p {
  margin-bottom: 10px;
}

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

.page-index__info-card em {
  font-size: 0.9em;
  color: #666;
}

.page-index__warning-card {
  background-color: #fff4f4; /* Red warning background from demo */
  border-left: 5px solid #ff4141; /* Red border from demo */
  border-radius: 4px;
  padding: 15px 20px;
  margin-top: 20px;
  color: #d62828;
  font-size: 0.95em;
}

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

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

.page-index__identification-list {
  list-style-type: decimal;
  margin-left: 20px;
}

.page-index__why-choose-list {
  list-style-type: disc;
  margin-left: 20px;
}

.page-index__product-list {
  list-style-type: disc;
  margin-left: 20px;
}

/* Blockquote for CEO quote */
.page-index blockquote {
  background-color: #f0f8ff; /* Light blue background for quote */
  border-left: 5px solid #26A9E0;
  margin: 30px 0;
  padding: 20px 25px;
  font-style: italic;
  color: #555555;
  border-radius: 4px;
}

.page-index__blockquote-text {
  margin-bottom: 10px;
  text-align: left; /* Quotes are often left-aligned */
}

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

/* Figure and image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  border-radius: 8px; /* Soften image corners */
}

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

.page-index__wp-caption img {
  display: block;
  margin: 0 auto;
  width: 100%; /* Ensure image fills its figure container */
  height: auto;
}

.page-index__wp-caption figcaption {
  font-size: 0.9em;
  color: #777;
  margin-top: 10px;
  line-height: 1.4;
}

/* Ensure images within content sections are responsive */
.page-index__seo-content-section img,
.page-index__registration-tutorial-section img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- Module 4: World Cup / Big Event Promo Box --- */
.page-index__promo-event-section {
  padding: 30px 0;
}

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

.page-index__promo-box-title {
  font-size: 1.6em;
  color: #d62828; /* Red for emphasis */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__promo-box p {
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-index__btn--event {
  background-color: #d62828; /* Red CTA from demo */
  color: #ffffff;
  border: 2px solid #d62828;
  padding: 15px 40px;
  font-size: 1.2em;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-index__btn--event:hover {
  background-color: #ed1c24;
  border-color: #ed1c24;
  text-decoration: none;
}

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

.page-index__tutorial-step {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #cccccc;
}

.page-index__tutorial-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-index__step-title {
  color: #26A9E0; /* Brand color for step titles */
  text-align: left;
  margin-bottom: 15px;
}

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

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

.page-index__faq-question {
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for FAQ questions */
  margin-bottom: 10px;
}

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

.page-index__closing-text {
  margin-top: 30px;
  font-size: 1.1em;
  text-align: center;
  color: #555555;
}

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

.page-index__contact-info-list li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-index__contact-info-list li strong {
  color: #26A9E0;
}

.page-index__contact-email {
  color: #d62828; /* Highlight non-email contact */
  font-weight: bold;
}

/* --- Responsive Styles (Mobile First Approach, but explicit media queries for desktop -> mobile) --- */

/* For tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-index__article-wrap {
    padding: 0 15px;
  }
  .page-index__page-title {
    font-size: 2em;
  }
  .page-index__section-title, .page-index h2 {
    font-size: 1.6em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index__btn {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-index__promo-box-title {
    font-size: 1.4em;
  }
  .page-index__btn--event {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

/* @media (max-width: 768px) - Must include all required sections */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-index__article-wrap {
    padding: 0 15px !important;
  }
  .page-index__section {
    padding: 15px 0 !important;
  }
  .page-index p, .page-index li {
    text-align: left !important; /* Mobile paragraphs often left-aligned */
  }

  /* 1. Top Section (Module 0) */
  .page-index__top-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 20px !important;
  }
  .page-index__page-title {
    font-size: clamp(1.8em, 5vw, 2.2em) !important; /* Use clamp for H1 */
    margin-bottom: 15px !important;
  }
  .page-index__subtitle {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }
  .page-index__top-cta {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding to button container */
    margin-top: 15px !important;
  }
  /* Ensure individual buttons are full width */
  .page-index__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single-column long text containers (Module 1, 2, 3, 4, 5, 6) */
  .page-index__announcement-section,
  .page-index__brand-overview-section,
  .page-index__seo-content-section,
  .page-index__promo-event-section,
  .page-index__registration-tutorial-section,
  .page-index__faq-contact-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title, .page-index h2 {
    font-size: 1.4em !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    text-align: left !important; /* Align left for mobile readability */
  }
  .page-index h3 {
    font-size: 1.2em !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
  }
  .page-index__info-card,
  .page-index__warning-card,
  .page-index__promo-box {
    margin-top: 20px !important;
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__promo-box-title {
    font-size: 1.2em !important;
  }
  .page-index__promo-box .page-index__btn--event {
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
  }

  /* 3. Generic Images and Figures */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__wp-caption {
    margin: 15px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__wp-caption figcaption {
    font-size: 0.85em !important;
  }

  /* 4. Buttons and Button Containers (already covered in Module 0, but reinforce for general buttons) */
  .page-index__btn--event {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

  /* 5. Registration Tutorial and FAQ sections (Module 5 & 6) */
  .page-index__tutorial-step {
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
  }
  .page-index__step-title {
    font-size: 1.2em !important;
  }
  .page-index__faq-question {
    font-size: 1.1em !important;
  }
  .page-index__closing-text {
    font-size: 1em !important;
    margin-top: 20px !important;
  }
  .page-index__contact-info-list {
    text-align: left !important; /* Align left for mobile readability */
    padding-left: 15px !important;
  }
  .page-index__contact-info-list li {
    font-size: 0.95em !important;
  }
}