/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color-register: #C30808;
  --accent-color-login: #C30808;
  --text-color-light-bg: #333333;
  --text-color-dark-bg: #ffffff;
  --text-color-login-register-font: #FFFF00;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Body background is dark, so text should be light */
  background-color: transparent; /* Use shared body background */
  padding-bottom: 60px; /* Space above footer */
}

.page-index h1, .page-index h2, .page-index h3, .page-index h4, .page-index h5, .page-index h6 {
  color: var(--text-color-dark-bg);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-index h1 {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
}

.page-index h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-index h3 {
  font-size: 24px;
  font-weight: 600;
}

.page-index p {
  margin-bottom: 15px;
}

.page-index a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index a:hover {
  text-decoration: underline;
}

.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

/* CTA Button Base Style */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  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: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-index__cta-button--register {
  background: var(--accent-color-register); /* #C30808 */
  color: var(--text-color-login-register-font); /* #FFFF00 */
}

.page-index__cta-button--register:hover {
  background: #a30707; /* Darker shade */
}

.page-index__cta-button--login {
  background: var(--accent-color-login); /* #C30808 */
  color: var(--text-color-login-register-font); /* #FFFF00 */
  margin-left: 20px;
}

.page-index__cta-button--login:hover {
  background: #a30707; /* Darker shade */
}

.page-index__cta-button--primary {
  background: var(--primary-color); /* #017439 */
  color: var(--text-color-dark-bg); /* #FFFFFF */
}

.page-index__cta-button--primary:hover {
  background: #005f2f; /* Darker shade */
}

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--primary-color); /* #017439 */
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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: #0d0d0d; /* Slightly different dark background for video section */
}

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

.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 blocking click event on parent link */
}