/* style/index.css */

/* Custom CSS Variables for colors */
:root {
  --primary-color: #017439; /* W88 Green */
  --secondary-color: #FFFFFF; /* White */
  --register-button-bg: #C30808; /* Red for Register */
  --login-button-bg: #C30808; /* Red for Login */
  --button-text-color: #FFFF00; /* Yellow for button text */
  --background-color: #FFFFFF; /* Specified background for general elements */
  --dark-background-body: #121212; /* Body background from shared.css */
  --text-on-dark-bg: #ffffff; /* Text color for dark body background */
  --text-on-light-bg: #333333; /* Text color for light element backgrounds */
}

/* Base styles for the page content, considering dark body background */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Default text color for page content on dark body background */
  background-color: var(--dark-background-body); /* Ensure consistency with body background */
  padding-bottom: 80px; /* Add some padding at the bottom */
}

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

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

/* 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: linear-gradient(to bottom, #121212, #2a2a2a); /* Dark gradient for hero */
}

.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.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; /* Prevent video controls from interfering with click event */
}

.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;
}