/* style/index.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font-color: #FFFF00;
  --text-on-dark-bg: #ffffff;
  --text-on-light-bg: #333333;
  --border-color-light: #e0e0e0;
}

/* Helper for darken function (Sass-like, but for direct CSS) */
/* For example, for darken(#C30808, 10%) could be #9E0606 */
/* For example, for darken(#017439, 10%) could be #005F2E */
/* For example, for darken(#FFFFFF, 5%) could be #F2F2F2 */

.page-index {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Default text color for main content on dark body background */
  background-color: transparent; /* Body background handled by shared.css var(--dark-bg-1) */
}

/* Ensure all images within .page-index respect min-size */
.page-index img {
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

/* Overrides for specific smaller images that are not icons, but still need to scale */
.page-index__feature-icon {
  min-width: unset; /* Allow smaller icons if they are not content images, but still scale */
  min-height: unset;
  width: 100px; /* Default size */
  height: 100px;
}

.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); /* Ensure space below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #005f2e 100%); /* Darker shade of primary */
  color: var(--text-on-dark-bg);
}

.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: 12px;
  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: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event on <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: 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 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(195, 8, 8, 0.8); /* Using register button color for emphasis */
  border-radius: 8px;
  white-space: nowrap;
}