:root {
  --primary-color: #017439; /* Main brand color */
  --secondary-color: #FFFFFF; /* Auxiliary brand color */
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-login-register-text: #FFFF00;
  --background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-index__section-title--light {
  color: var(--text-color-light); /* For dark backgrounds */
}

/* -------------------------------------------------------------------------- */
/* Video Section (Module 0) */
/* -------------------------------------------------------------------------- */
.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: #f5f5f5; /* Light grey background for contrast */
}

.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__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; /* Prevents 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.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  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: var(--button-register-bg); /* Use custom color for Play Now */
  color: var(--button-login-register-text); /* Use custom color for text */
  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;
}

.page-index__play-now-button:hover {
  background: #a80707; /* Darken on hover */
  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: Hero Section (H1 + CTA) */
/* -------------------------------------------------------------------------- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background-color); /* White background */
  color: var(--text-color-dark);
}

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

.page-index__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

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

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

.page-index__btn-register {
  background: var(--button-register-bg);
  color: var(--button-login-register-text);
}

.page-index__btn-register:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__btn-login {
  background: var(--button-login-bg);
  color: var(--button-login-register-text);
}

.page-index__btn-login:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-index__btn-download {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-index__btn-download:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------------------- */
/* Module 2: FAQ Section */
/* -------------------------------------------------------------------------- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #f9f9f9; /* Light grey background */
  color: var(--text-color-dark);
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color); /* White background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color); /* FAQ question color */
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark); /* Ensure question text is dark */
}
.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color); /* Toggle icon color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #555555; /* Answer text color */
}
.page-index__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}
.page-index__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Module 3: Brand Introduction */
/* -------------------------------------------------------------------------- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-color-light); /* Light text */
  text-align: center;
}

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

.page-index__brand-content {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-index__brand-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
}

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

.page-index__brand-item-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}