/* style/index.css */

/* General Styles for .page-index scope */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set body-like background for main content */
}

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

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

.page-index__section-title,
.page-index__page-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for main titles */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-index__section-subtitle {
  font-size: 1.6em;
  font-weight: bold;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-index h3 {
  font-size: 1.4em;
  font-weight: bold;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: left; /* Default for sub-headings */
}

.page-index p {
  margin-bottom: 15px;
  text-align: justify; /* Demo style */
}

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

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

.page-index strong {
  font-weight: bold;
}

.page-index em {
  font-style: italic;
}

.page-index a {
  color: #0066ff; /* Default link color from demo */
  text-decoration: none;
}

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

/* Specific Link Styles */
.page-index__link--primary {
  color: #26A9E0;
}
.page-index__link--emphasis {
  color: #d62828; /* Emphasis red */
  font-weight: bold;
}
.page-index__link--default {
  color: #0066ff;
}


/* Module 0: Top Title + Dual CTA */
.page-index__top-section {
  padding-top: 10px; /* Small top padding as per requirement */
  padding-bottom: 30px;
}

.page-index__page-title {
  font-size: 2.8em; /* Adjusted for desktop H1 */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  min-height: 44px; /* Minimum touch target height */
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%;
}

.page-index__btn--primary {
  background-color: #0066ff; /* CTA Blue from demo */
  color: #ffffff;
  border: 2px solid #0066ff;
}

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

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

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

/* Module 1: Announcement / Main Benefits */
.page-index__announcement-section {
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.page-index__benefits-list {
  list-style: disc;
  margin-top: 20px;
}

.page-index__highlight-text {
  text-align: center;
  font-size: 1.1em;
  margin-top: 25px;
  color: #d62828; /* Emphasis red */
}

/* Module 2: Brand Overview + Info Card + Warning Card */
.page-index__brand-overview-section {
  padding-bottom: 50px;
}

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

.page-index__facts-list li {
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #eee;
  font-size: 0.95em;
}

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

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

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

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

.page-index__warning-card {
  background-color: #fff4f4;
  border-left: 5px solid #ff4141; /* Warning red */
  border-radius: 0 8px 8px 0;
  padding: 20px 25px;
  margin-top: 30px;
  color: #333333;
}

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

/* Module 3: Long SEO Content */
.page-index__long-seo-content {
  padding-bottom: 50px;
}

.page-index__long-seo-content h3 {
  color: #333333; /* Sub-headings in long content */
  text-align: left;
}

.page-index__identify-list {
  list-style: decimal;
  margin-top: 15px;
}

.page-index__reasons-list {
  list-style: disc;
  margin-top: 15px;
}

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

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

/* Module 4: World Cup / Event Box */
.page-index__promo-section {
  background-color: #fefefe;
  padding: 40px 0;
}

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

.page-index__promo-title {
  font-size: 1.8em;
  color: #d62828; /* Emphasis red */
  margin-bottom: 20px;
}

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

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

.page-index__btn--promo {
  background-color: #d62828; /* Emphasis red for promo button */
  color: #ffffff;
  border: 2px solid #d62828;
  padding: 15px 35px;
  font-size: 1.2em;
  min-height: 50px;
}

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

/* Module 5: 4-Step Registration Tutorial */
.page-index__registration-tutorial-section {
  padding-bottom: 50px;
}

.page-index__tutorial-step-title {
  font-size: 1.6em;
  color: #26A9E0;
  text-align: left;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-index__form-fields-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 20px;
}

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

/* Module 6: FAQ + Contact Info */
.page-index__faq-contact-section {
  background-color: #f9f9f9;
  padding-bottom: 50px;
}

.page-index__faq-question-title {
  font-size: 1.4em;
  color: #333333;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

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

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

.page-index__copyright {
  text-align: center;
  font-size: 0.9em;
  color: #777777;
  margin-top: 40px;
}

/* Images & Figures */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-index__wp-caption {
  margin: 25px auto;
  text-align: center;
  max-width: 680px; /* Constrain width for blog images */
  box-sizing: border-box;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-index__figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__page-title {
    font-size: 2.4em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index h2 {
    font-size: 1.6em;
  }
  .page-index h3 {
    font-size: 1.3em;
  }
  .page-index__facts-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Title + CTA) */
  .page-index__top-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

  .page-index__page-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
    padding: 0 15px; /* Add padding to prevent text from touching edges */
    box-sizing: border-box;
  }

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

  .page-index__btn,
  .page-index__btn--primary,
  .page-index__btn--secondary {
    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;
  }

  /* 2. Single Column Long Content Container */
  .page-index__article-wrap {
    padding: 0 15px !important; /* Consistent padding for mobile */
  }

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

  .page-index__section-title,
  .page-index h2 {
    font-size: 1.6em !important;
    margin-bottom: 15px !important;
    padding: 0 10px;
  }

  .page-index h3 {
    font-size: 1.2em !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    padding: 0 10px;
  }

  .page-index p {
    text-align: left !important; /* Adjust for better mobile readability */
  }

  .page-index__info-card,
  .page-index__warning-card,
  .page-index__promo-box {
    padding: 20px !important;
    margin-top: 20px !important;
    border-radius: 5px !important; /* Slightly smaller radius for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__facts-list {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
  .page-index__facts-list li {
    font-size: 1em;
  }

  /* 3. Generic Images and Figures */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__wp-caption {
    margin: 20px auto !important;
    max-width: 100% !important;
    padding: 0 5px;
  }
  .page-index__figcaption {
    font-size: 0.85em !important;
  }

  /* 4. Buttons and Button Containers (ensure generic too) */
  .page-index a[class*="btn"],
  .page-index a[class*="button"] {
    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__promo-list {
    padding-left: 15px;
  }
  .page-index__promo-title {
    font-size: 1.5em !important;
  }

  /* 5. Registration Tutorial and FAQ Blocks */
  .page-index__tutorial-step-title {
    font-size: 1.4em !important;
    margin-top: 25px !important;
    padding: 0 10px;
  }

  .page-index__form-fields-list {
    padding: 15px !important;
    margin: 15px 0 !important;
  }

  .page-index__faq-question-title {
    font-size: 1.3em !important;
    margin-top: 25px !important;
    padding: 0 10px 10px !important;
  }

  .page-index__contact-list {
    padding-left: 0 !important;
    padding: 0 10px;
  }
  .page-index__contact-list li {
    font-size: 1em !important;
  }
  .page-index__copyright {
    margin-top: 30px !important;
    font-size: 0.85em !important;
  }
}