:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --text-on-dark-bg: #ffffff;
  --text-on-light-bg: #333333;
  --card-bg: rgba(255, 255, 255, 0.1); /* Light transparent white for cards on dark body */
  --section-padding-desktop: 80px 20px;
  --section-padding-mobile: 40px 15px;
}

.page-index {
  background-color: #1a1a1a; /* Body background from shared.css */
  color: var(--text-on-dark-bg); /* Default text color for dark body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-desktop);
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%); /* Gradient for visual appeal */
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  box-sizing: border-box;
}

.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(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background-color: #000; /* Fallback for video area */
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Allows click on the parent link */
}

.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: 12px;
  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 5px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 100%; /* For mobile */
  box-sizing: border-box; /* For mobile */
  white-space: normal; /* For mobile */
  word-wrap: break-word; /* For mobile */
}

.page-index__play-now-button:hover {
  background: #a30707; /* Darker red */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* H1 Title + CTA Buttons Section */
.page-index__title-section {
  position: relative; /* For absolute positioning of background */
  background: #1a1a1a; /* Dark background from body */
  color: var(--text-on-dark-bg);
  text-align: center;
  padding: var(--section-padding-desktop);
  box-sizing: border-box;
  overflow: hidden;
  display: flex; /* To center content over background */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure some height for background */
}

.page-index__title-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Behind content */
}

.page-index__title-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Make it subtle */
  filter: brightness(0.7); /* Darken it slightly to help text contrast */
}

.page-index__title-container {
  position: relative; /* Above background */
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
  line-height: 1.2;
}

.page-index__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  max-width: 100%; /* For mobile */
  box-sizing: border-box; /* For mobile */
  overflow: hidden; /* For mobile */
}

.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.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile */
  box-sizing: border-box; /* For mobile */
  white-space: normal; /* For mobile */
  word-wrap: break-word; /* For mobile */
}

.page-index__cta-button--register {
  background: var(--register-button-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
}

.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--login {
  background: var(--primary-color); /* #017439 */
  color: var(--text-on-dark-bg); /* #FFFFFF */
}

.page-index__cta-button--login:hover {
  background: #005f32; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index__faq-section {
  background: #1a1a1a; /* Dark background from body */
  color: var(--text-on-dark-bg);
  padding: var(--section-padding-desktop);
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-index__faq-main-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-on-dark-bg);
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: var(--card-bg); /* Light transparent white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-on-dark-bg);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark-bg);
}

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: rgba(255, 255, 255, 0.08);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #cccccc;
}

.page-index__faq-answer p {
  margin: 0;
}

/* Brand Introduction Section */
.page-index__brand-section {
  background: #1a1a1a; /* Dark background from body */
  color: var(--text-on-dark-bg);
  padding: var(--section-padding-desktop);
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__brand-container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__brand-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-on-dark-bg);
}

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

.page-index__brand-item {
  background: var(--card-bg); /* Light transparent white */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-bg);
}

.page-index__brand-item-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Blog List Section */
.page-index__blog-section {
  background: #1a1a1a; /* Dark background from body */
  color: var(--text-on-dark-bg);
  padding: var(--section-padding-desktop);
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__blog-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-on-dark-bg);
}

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

.page-index__blog-item {
  background: var(--card-bg); /* Light transparent white */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-bg);
}

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

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 25px; /* Adjust padding for content below image */
}

.page-index__blog-item-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  display: block;
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 25px 10px;
  color: var(--text-on-dark-bg);
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 25px 15px;
  line-height: 1.6;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #999999;
  margin: 0 25px;
  display: block;
}