/* style/index.css */

:root {
  --luck88-primary: #017439;
  --luck88-secondary: #FFFFFF;
  --luck88-btn-register: #C30808;
  --luck88-btn-login: #C30808;
  --luck88-text-btn-register-login: #FFFF00;
  --luck88-promo-blue: #0066ff;
  --luck88-promo-red: #d62828;
  --luck88-warning-red-border: #ff4141;
  --luck88-info-card-bg: #f9f9f9;
  --luck88-info-card-border: #ddd;
  --luck88-warning-card-bg: #fff4f4;
  --luck88-promo-box-bg: #fffbe6;
  --luck88-text-dark: #333333;
  --luck88-text-light: #ffffff;
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--luck88-text-dark); /* Default text color for light body background */
  line-height: 1.6;
  background-color: var(--luck88-secondary); /* Explicitly set body background to white */
}

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

/* Module 0: Top section with H1 and dual CTA buttons */
.page-index__top-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--luck88-secondary);
}

.page-index__page-title {
  font-weight: 700;
  line-height: 1.2;
  color: var(--luck88-primary);
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-index__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

.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;
  min-height: 44px; /* Minimum touch target height */
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 700;
  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-color: var(--luck88-btn-register);
  color: var(--luck88-text-btn-register-login);
  border: 2px solid var(--luck88-btn-register);
}

.page-index__btn--primary:hover {
  background-color: #e00;
  border-color: #e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-index__btn--secondary {
  background-color: var(--luck88-promo-blue);
  color: var(--luck88-text-light);
  border: 2px solid var(--luck88-promo-blue);
}

.page-index__btn--secondary:hover {
  background-color: #004dcc;
  border-color: #004dcc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Module 1: Announcement / Main Promotion Area */
.page-index__announcement-section {
  padding: 40px 0;
  background-color: var(--luck88-secondary);
}

.page-index__section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--luck88-primary);
  margin-bottom: 25px;
  text-align: center;
}

.page-index__announcement-section p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__benefit-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 25px;
  padding: 0;
}

.page-index__benefit-list li {
  margin-bottom: 10px;
  text-align: justify;
}

.page-index__highlight-text {
  font-size: 1.1em;
  text-align: center;
  font-style: italic;
}

.page-index__highlight-text--red {
  color: var(--luck88-promo-red);
}

.page-index__highlight-text--red a {
  color: var(--luck88-promo-red);
  text-decoration: underline;
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section {
  padding: 40px 0;
  background-color: var(--luck88-secondary);
}

.page-index__brand-overview-section p {
  margin-bottom: 15px;
  text-align: justify;
}

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

.page-index__fact-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
  text-align: justify;
}

.page-index__fact-list li::before {
  content: '✓';
  color: var(--luck88-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.page-index__info-card {
  background-color: var(--luck88-info-card-bg);
  border: 1px solid var(--luck88-info-card-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-index__info-card p {
  font-weight: 700;
  margin-bottom: 10px;
  text-align: justify;
}

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

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

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

.page-index__warning-card {
  background-color: var(--luck88-warning-card-bg);
  border-left: 5px solid var(--luck88-warning-red-border);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  font-size: 1.05em;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-index__warning-card strong {
  color: var(--luck88-warning-red-border);
}

/* Module 3: Long SEO Text */
.page-index__seo-content-section {
  padding: 40px 0;
  background-color: var(--luck88-secondary);
}

.page-index__text-justify p,
.page-index__text-justify li {
  text-align: justify;
}

.page-index__seo-content-section h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--luck88-primary);
  margin-top: 35px;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__seo-content-section h3 {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--luck88-primary);
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index__seo-content-section p {
  margin-bottom: 15px;
}

.page-index__seo-content-section ol,
.page-index__seo-content-section ul {
  margin-left: 25px;
  margin-bottom: 15px;
  padding: 0;
}

.page-index__seo-content-section ol li,
.page-index__seo-content-section ul li {
  margin-bottom: 8px;
}

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

.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: #777;
  margin-top: 10px;
}

.page-index__blockquote-text {
  font-style: italic;
  font-size: 1.2em;
  color: #555;
  margin: 30px 0;
  padding: 20px 30px;
  border-left: 5px solid var(--luck88-primary);
  background-color: #f9f9f9;
  border-radius: 0 8px 8px 0;
  text-align: justify;
}

.page-index__blockquote-cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--luck88-primary);
  margin-top: 10px;
}

.page-index__seo-content-section a {
  color: var(--luck88-primary);
  text-decoration: underline;
}

.page-index__seo-content-section a:hover {
  color: #005f2f;
}

/* Module 4: World Cup / Big Event Promo Box */
.page-index__promo-event-section {
  padding: 40px 0;
  background-color: var(--luck88-secondary);
}

.page-index__promo-box {
  background-color: var(--luck88-promo-box-bg);
  border: 2px dashed #111;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-index__promo-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--luck88-promo-red);
  margin-bottom: 20px;
}

.page-index__promo-box p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444;
}

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

.page-index__promo-features li {
  font-size: 1.05em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333;
}

.page-index__promo-features li::before {
  content: '⭐';
  position: absolute;
  left: 0;
}

.page-index__btn--promo {
  background-color: var(--luck88-promo-red);
  color: var(--luck88-text-light);
  border: 2px solid var(--luck88-promo-red);
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  min-height: 44px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn--promo:hover {
  background-color: #e00;
  border-color: #e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Module 5: Four-step registration tutorial */
.page-index__registration-tutorial-section {
  padding: 40px 0;
  background-color: var(--luck88-secondary);
}

.page-index__tutorial-step {
  margin-bottom: 40px;
}

.page-index__tutorial-step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--luck88-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index__tutorial-step p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__tutorial-step ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-index__tutorial-step ul li {
  margin-bottom: 5px;
  text-align: justify;
}

/* Module 6: FAQ + Contact Information */
.page-index__faq-contact-section {
  padding: 40px 0 60px 0;
  background-color: var(--luck88-secondary);
}

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

.page-index__faq-question-text {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--luck88-primary);
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.page-index__faq-answer-text {
  margin-bottom: 15px;
  text-align: justify;
}

.page-index__contact-intro {
  font-size: 1.1em;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-index__contact-list a {
  color: var(--luck88-primary);
  text-decoration: none;
}

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

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  /* Module 0: Top section */
  .page-index__top-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

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

  .page-index__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-index__btn {
    width: 100%;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
  }

  /* Single column content wrap */
  .page-index__article-wrap {
    padding: 0 15px;
  }

  /* Module 1: Announcement */
  .page-index__announcement-section {
    padding: 30px 0;
  }

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

  .page-index__benefit-list {
    margin-left: 20px;
  }

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

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

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

  .page-index__seo-content-section h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__seo-content-section h3 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-index__wp-caption {
    margin: 20px auto;
  }

  .page-index__wp-caption img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-index__promo-box {
    padding: 20px;
  }

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

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

  .page-index__btn--promo {
    padding: 12px 25px;
    font-size: 1.1em;
    width: 100%;
    max-width: 100% !important;
  }

  /* Module 5: Registration Tutorial */
  .page-index__registration-tutorial-section {
    padding: 30px 0;
  }

  .page-index__tutorial-step {
    margin-bottom: 30px;
  }

  .page-index__tutorial-step-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

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

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

  .page-index__contact-intro {
    font-size: 1em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-index__contact-list li {
    font-size: 1em;
  }

  /* All images in content area */
  .page-index__section img,
  .page-index__card img,
  .page-index__container img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons and button containers */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    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__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-index__top-cta {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for dual CTA */
  }
}