/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --button-register-bg: #C30808;
  --button-register-text: #FFFFFF; /* Adjusted for contrast */
  --button-login-bg: #C30808;
  --button-login-text: #FFFFFF; /* Adjusted for contrast */
  --body-bg: #0a0a0a; /* From shared.css */
}

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

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

.page-index__section-title,
.page-index__main-title,
.page-index__faq-main-title,
.page-index__brand-title,
.page-index__blog-title,
.page-index__cta-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

.page-index__main-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--button-register-text); /* Use a light color for H1 on dark background */
}

.page-index__section-title,
.page-index__faq-main-title,
.page-index__brand-title,
.page-index__blog-title,
.page-index__cta-title {
  font-size: 36px;
  color: var(--text-on-dark);
}

/* --- 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: var(--body-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: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.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 interfering with click event */
}

.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.5);
  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(1, 116, 57, 0.8); /* Primary color with transparency */
  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(--primary-color);
  color: #ffffff;
  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.25);
  border: none;
  cursor: pointer;
  min-width: 180px; /* Ensure button is not too small */
}

.page-index__play-now-button:hover {
  background: #005f2e; /* Darker shade of primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

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

/* --- H1 Title + Promotion Buttons --- */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* Use primary color as background */
  color: var(--text-on-dark);
}

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

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  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.2);
  min-width: 160px;
}

.page-index__btn-register {
  background: var(--button-register-bg); /* #C30808 */
  color: var(--button-register-text); /* #FFFFFF for contrast */
  border: 2px solid var(--button-register-bg);
}

.page-index__btn-register:hover {
  background: #a30606; /* Darker red */
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
  background: var(--button-login-bg); /* #C30808 */
  color: var(--button-login-text); /* #FFFFFF for contrast */
  border: 2px solid var(--button-login-bg);
}

.page-index__btn-login:hover {
  background: #a30606; /* Darker red */
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Common Questions Area --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: var(--body-bg); /* Dark background */
  color: var(--text-on-dark);
}

.page-index__faq-main-title {
  margin-bottom: 50px;
  color: var(--text-on-dark);
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a; /* Slightly lighter than body bg for contrast */
  border: 1px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2a2a2a;
  border-color: var(--primary-color);
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-on-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: var(--text-on-dark);
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep '-' */
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #111111; /* Darker background for answer */
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #333333;
  border-top: none;
}

.page-index__faq-answer p {
  margin: 0;
  color: #cccccc; /* Lighter text for answer content */
}

/* --- Brand Introduction --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: var(--primary-color); /* Primary color background */
  color: var(--text-on-dark);
}

.page-index__brand-title {
  color: var(--text-on-dark);
  margin-bottom: 50px;
}

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

.page-index__brand-item {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__brand-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 800px; /* Match HTML width */
  height: 600px; /* Match HTML height */
}

.page-index__brand-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-on-dark);
}

.page-index__brand-item p {
  font-size: 16px;
  color: #f0f0f0; /* Slightly off-white */
}

/* --- Blog List Display --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: var(--body-bg); /* Dark background */
  color: var(--text-on-dark);
}

.page-index__blog-title {
  margin-bottom: 50px;
  color: var(--text-on-dark);
}

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

.page-index__blog-item {
  background: #1a1a1a; /* Darker background for blog items */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: -20px -20px 20px -20px; /* Adjust margin to fit in padding */
  min-width: 200px;
  min-height: 200px;
}

.page-index__blog-item-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color); /* Use primary color for blog titles */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index__blog-item-date {
  font-size: 13px;
  color: #888888;
  display: block;
}

/* --- General Content Area --- */
.page-index__content-area {
  padding: 80px 20px;
  background-color: var(--body-bg); /* Dark background */
  color: var(--text-on-dark);
}

.page-index__content-area p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #f0f0f0;
}

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

.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: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4gpx 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 250px; /* Adjusted to meet min 200px display size */
  height: 250px; /* Adjusted to meet min 200px display size */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); /* White glow for icons on dark bg */
}

.page-index__feature-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.page-index__feature-item p {
  font-size: 15px;
  color: #f0f0f0;
}

/* --- CTA Banner --- */
.page-index__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background-color: #1a1a1a; /* Dark background */
  color: var(--text-on-dark);
  border-top: 5px solid var(--primary-color);
}

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

.page-index__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__btn-primary {
  background: var(--button-register-bg); /* #C30808 */
  color: var(--button-register-text); /* #FFFFFF for contrast */
  border: 2px solid var(--button-register-bg);
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-index__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-index__container {
    padding: 0 15px;
  }

  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__section-title,
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title,
  .page-index__cta-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-index__title-description,
  .page-index__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}