/* style/index.css */

/* Base styles for the page content, ensuring text contrast */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area */
}

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

/* Section padding and spacing */
.page-index__section {
  padding: 30px 0;
  margin-bottom: 20px;
}

/* Module 0: Top Section H1 + Dual CTA */
.page-index__top-section {
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 30px;
}

.page-index__page-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Responsive H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #017439; /* Brand color for main title */
}

.page-index__description {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap 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;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-index__btn--primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for font */
  border: 2px solid #C30808;
}

.page-index__btn--primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for font */
  border: 2px solid #C30808;
}

.page-index__btn--secondary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Module 1: Announcement / Featured Promo */
.page-index__announcement-section {
  background-color: #f9f9f9; /* Light grey background for contrast */
  border-radius: 8px;
  padding: 40px 0;
}

.page-index__section-title {
  font-size: 2em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-index__promo-list li {
  margin-bottom: 8px;
  color: #333333;
}

.page-index__highlight-text {
  text-align: center;
  font-style: italic;
  color: #d62828; /* Emphasize with red */
  font-weight: bold;
  margin-top: 20px;
}

.page-index__link-text {
  color: #0066ff; /* Standard link blue */
  text-decoration: underline;
}

.page-index__link-text:hover {
  color: #0047b3;
}

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

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

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

.page-index__fact-list li {
  margin-bottom: 8px;
  font-size: 1.05em;
  color: #333333;
}

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

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

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

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

.page-index__warning-card {
  background-color: #fff4f4;
  border-left: 5px solid #ff4141;
  padding: 20px;
  border-radius: 8px;
  color: #d62828;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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