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

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Body background is #0a0a0a (dark), so use light text */
  background-color: transparent; /* Main content background will be handled by sections */
  padding-bottom: 50px; /* General padding for content below sections */
}

/* General container for content */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark background sections */
.page-index__dark-section {
  background-color: #0a0a0a; /* Match body background for consistency */
  color: var(--text-on-dark-bg);
  padding: 80px 0;
}

/* Light background sections */
.page-index__light-bg {
  background-color: var(--background-color); /* White background as per custom color */
  color: var(--text-on-light-bg);
  padding: 80px 0;
}

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--text-on-dark-bg); /* Default for dark sections */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__light-bg h1, .page-index__light-bg h2, .page-index__light-bg h3 {
  color: var(--text-on-light-bg);
}

.page-index p {
  margin-bottom: 15px;
  color: var(--text-on-dark-bg); /* Default for dark sections */
}

.page-index__light-bg p {
  color: var(--text-on-light-bg);
}

/* CTA Buttons general style */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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.15);
  border: none;
  cursor: pointer;
  margin: 0 10px 10px 0; /* Adjusted for wrapping */
}

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

.page-index__cta-button--primary:hover {
  background: #a00808; /* Darken #C30808 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-button--secondary:hover {
  background: #00562e; /* Darken #017439 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px 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-color: #0a0a0a; /* Dark background */
}

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

.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; /* Prevent video controls from blocking click on the wrapper link */
}

.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.3);
  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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.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-color); /* #C30808 */
  color: var(--register-login-font-color); /* #FFFF00 */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #a00808; /* Darken #C30808 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Title Section */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
  color: var(--text-on-dark-bg);
}

.page-index__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 42px;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--text-on-dark-bg);
}

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #cccccc;
}

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

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* #017439 */
  color: var(--text-on-dark-bg);
}

.page-index__features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__features-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
}

.page-index__features-intro-text {
  font-size: 18px;
  margin-bottom: 50px;
  color: #e0e0e0;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-on-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-index__feature-heading {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-on-dark-bg);
}

.page-index__feature-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: var(--text-on-dark-bg);
}

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

.page-index__faq-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text-on-dark-bg);
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for FAQ item */
  color: var(--text-on-dark-bg);
}

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

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: rgba(255, 255, 255, 0.1);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-on-dark-bg);
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #cccccc;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.03); /* Even lighter for answer background */
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

/* Brand Section */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: var(--background-color); /* White background */
  color: var(--text-on-light-bg);
}

.page-index__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__brand-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-on-light-bg);
}

.page-index__brand-intro-text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  color: #555555;
}

.page-index__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__brand-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-on-light-bg);
  border: 1px solid #e0e0e0;
}

.page-index__brand-image {
  width: 100%;
  height: auto;
  max-width: 350px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-index__brand-item-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color); /* Use brand primary color for titles on light background */
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: var(--text-on-dark-bg);
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__blog-intro-text {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  color: #cccccc;
}

.page-index__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}