/* style/index.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark-bg: #FFFFFF; /* Recommended text color for body background #1a1a2e */
  --text-on-light-bg: #333333;
  --register-login-font-color: #FFFF00; /* For register/login button text */
  --light-background: #FFFFFF; /* For sections on dark body */
  --dark-background: #017439; /* For sections on light body */
  --border-color: #e0e0e0;
}

.page-index {
  /* Body background is #1a1a2e (dark), so main content text should be light */
  color: var(--text-on-dark-bg);
  background-color: #1a1a2e; /* Inherited from shared, but for clarity */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Section titles */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-on-dark-bg); /* Use light text for dark body bg */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__section-description {
  font-size: 18px;
  color: #cccccc; /* Slightly lighter for description */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark background sections */
.page-index__dark-section {
  background-color: var(--dark-background); /* Primary color as background */
  color: var(--text-on-dark-bg); /* White text */
  padding: 80px 0;
}

.page-index__dark-section .page-index__section-title {
  color: var(--text-on-dark-bg);
}

.page-index__dark-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.8);
}

/* General button styles */
.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: nowrap; /* Prevent text wrap on desktop */
}

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

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

/* 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: #1a1a2e; /* Ensure section background matches body */
}

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

.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 44px 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 */
}