/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
  --text-on-dark-bg: #f0f0f0;
  --text-on-light-bg: #333333;
  --card-bg: #ffffff;
  --section-padding-desktop: 80px 20px;
  --section-padding-mobile: 40px 15px;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-color, #121212);
}

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

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

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-on-dark-bg);
}

/* ----- 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 offset */
  background-color: var(--background-color, #121212);
}

.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 15px rgba(0, 0, 0, 0.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  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.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(1, 116, 57, 0.8); /* Primary color with transparency */
  border-radius: 30px;
  white-space: nowrap;
  border: 2px solid #ffffff;
}

.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(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 30px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #005a2d; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* ----- Hero Section (H1 + CTA) ----- */
.page-index__hero-section {
  padding: var(--section-padding-desktop);
  text-align: center;
  background-color: var(--background-color, #121212);
  color: var(--text-on-dark-bg);
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--secondary-color);
  text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--text-on-dark-bg);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index__cta-button {
  display: inline-block;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 19px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.page-index__cta-button--register {
  background: var(--register-button-bg);
  color: var(--register-login-font);
}

.page-index__cta-button--register:hover {
  background: #a50707; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--login {
  background: var(--login-button-bg);
  color: var(--register-login-font);
}

.page-index__cta-button--login:hover {
  background: #a50707; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ----- Features Section ----- */
.page-index__features-section {
  padding: var(--section-padding-desktop);
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
}

.page-index__features-section .page-index__section-title,
.page-index__features-section .page-index__section-description {
  color: var(--text-on-light-bg);
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__feature-item {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-index__feature-text {
  font-size: 16px;
  color: var(--text-on-light-bg);
}

/* ----- FAQ Section ----- */
.page-index__faq-section {
  padding: var(--section-padding-desktop);
  background-color: var(--background-color, #121212);
  color: var(--text-on-dark-bg);
}

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

.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}