:root {
  --primary-color: #017439; /* Main brand green */
  --secondary-color: #004d26; /* Darker green for hover/accents */
  --text-light-color: #ffffff;
  --text-dark-color: #333333;
  --bg-dark-color: #000000; /* Body background from shared.css */
  --bg-light-color: #f8f9fa;
  --btn-register-color: #C30808;
  --btn-login-color: #C30808;
  --btn-font-color: #FFFF00;
  --card-bg-color: rgba(255, 255, 255, 0.1); /* Light transparent for dark body */
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Base styles for page-index to ensure text visibility on dark body background */
.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-light-color); /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
    color: var(--text-light-color);
}

.page-index__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 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 spacing */
  background-color: var(--bg-dark-color); /* Ensure section background is dark */
  color: var(--text-light-color);
  box-sizing: border-box;
}

.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;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 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: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.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.5);
  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: var(--text-light-color);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(1, 116, 57, 0.8); /* Using primary color with opacity */
  border-radius: 5px;
  white-space: nowrap;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-register-color); /* Using specific color for Play Now */
  color: var(--btn-font-color); /* Specific 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.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-index__play-now-button:hover {
  background: #A30707; /* Darken for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* H1 Title + CTA Buttons Section */
.page-index__title-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--primary-color); /* Dark section background */
  color: var(--text-light-color); /* Light text for contrast */
  box-sizing: border-box;
}

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

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

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-light-color);
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}