/* style/index.css */

/* --- General Page Styling --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #f0f2f5); /* Shared background */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-index h2,
.page-index h3 {
  color: #017439; /* Brand primary color for headings */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index h2 {
  font-size: 2.5em;
}

.page-index h3 {
  font-size: 1.8em;
}

.page-index p {
  margin-bottom: 15px;
}

/* --- CTA Buttons General Styling --- */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

.page-index__cta-button--register {
  background: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
}

.page-index__cta-button--register:hover {
  background: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--download {
  background: #017439; /* Primary color for Download */
  color: #FFFFFF;
}

.page-index__cta-button--download:hover {
  background: #005a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- VIDEO SECTION --- */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Dark background for hero */
  color: #ffffff; /* Light text for dark background */
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__main-title-hero {
  font-size: 3.2em;
  color: #ffffff; /* White for H1 in dark hero */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__title-description-hero {
  font-size: 1.1em;
  color: #f0f0f0; /* Light grey for description in dark hero */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(195, 8, 8, 0.8); /* Using register button color for hint */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom Login/Register color */
  color: #FFFF00; /* Custom Login/Register font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__play-now-button:hover {
  background: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- MODULE 1: Activity Promotion Buttons (now with H2) --- */
.page-index__promo-buttons-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9f9f9; /* Light background for this section */
}

.page-index__promo-buttons-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__promo-buttons-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Primary color for H2 */
}

.page-index__promo-buttons-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}


/* --- MODULE 2: FAQ Section --- */
.page-index__faq-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-index__faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__faq-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  color: #017439;
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333; /* Dark text for question */
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #017439;
  transform: rotate(180deg); /* Rotate for minus sign */
}

/* --- MODULE 3: Brand Introduction --- */
.page-index__brand-section {
  background-color: #f0f2f5;
  padding: 80px 0;
}

.page-index__brand-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__brand-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5em;
  color: #017439;
}

.page-index__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__brand-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__brand-item h3 {
  color: #017439;
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index__brand-item p {
  color: #555555;
  font-size: 1em;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
}

/* --- MODULE 4: Blog List Display --- */
.page-index__blog-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__blog-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #017439;
}