/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --default-text-color: #333333;
  --light-bg-color: #FFFFFF;
  --dark-bg-color: #017439;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--default-text-color); /* Default text color for light background */
  background-color: var(--light-bg-color);
}

.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;
  line-height: 1.2;
}

.page-index__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--default-text-color);
}

/* --- 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); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Dark background for video section */
  box-sizing: border-box;
}

.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 8px 25px 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.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; /* 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: 8px;
  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.5);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  border-radius: 5px;
  white-space: nowrap;
  text-align: center;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-button-bg); /* Use custom register color */
  color: var(--button-text-color); /* Use custom button text color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.page-index__play-now-button:hover {
  background: #a30606; /* Darken for hover effect */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(195, 8, 8, 0.6);
}

/* --- Title Section (H1 + CTA) --- */
.page-index__title-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--light-bg-color);
  color: var(--default-text-color);
  box-sizing: border-box;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-index__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  white-space: nowrap;
}

.page-index__btn-register {
  background: var(--register-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--register-button-bg);
}

.page-index__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(195, 8, 8, 0.3);
}

.page-index__btn-login {
  background: var(--login-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--login-button-bg);
}

.page-index__btn-login:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(195, 8, 8, 0.3);
}

/* --- Intro Section --- */
.page-index__intro-section {
  padding: 60px 20px;
  background-color: var(--light-bg-color);
  color: var(--default-text-color);
  box-sizing: border-box;
}

.page-index__intro-section .page-index__section-title {
  color: var(--primary-color);
}

/* --- Features Section --- */
.page-index__features-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--secondary-color);
  box-sizing: border-box;
}

.page-index__features-section .page-index__section-title {
  color: var(--secondary-color);
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary-color);
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__feature-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 5px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__feature-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 60px 20px;
  background-color: var(--light-bg-color);
  color: var(--default-text-color);
  box-sizing: border-box;
}

.page-index__faq-section .page-index__section-title {
  color: var(--primary-color);
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--default-text-color);
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item[open] .page-index__faq-toggle {
  color: var(--register-button-bg); /* Change color when open */
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: var(--default-text-color);
  font-size: 16px;
}

details.page-index__faq-item .page-index__faq-answer p {
  margin-bottom: 0;
}