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

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

/* --- General Section Styling --- */
.page-index__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__dark-section {
  background-color: var(--primary-color); /* Main brand color for dark sections */
  color: var(--text-color-dark-bg);
}

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

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

.page-index h1,
.page-index h2,
.page-index h3 {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index h1 {
  font-size: 48px;
  font-weight: bold;
  color: var(--text-color-dark-bg);
}

.page-index h2 {
  font-size: 38px;
  font-weight: bold;
  color: inherit; /* Inherit from parent section */
}

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

.page-index p {
  margin-bottom: 20px;
  font-size: 17px;
}

/* --- CTA Buttons --- */
.page-index__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-index__cta-button--view-all {
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-index__cta-button--view-all:hover {
  background: #005a2e; /* Slightly darker green */
  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: var(--bg-dark); /* Ensure it matches body 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 */
}

.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); /* A clear blue for visibility */
  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(--button-register-bg); /* Use register button color for consistency */
  color: var(--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 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* --- H1 Title Section --- */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-index__main-title {
  font-size: 52px;
  margin-bottom: 25px;
  color: var(--text-color-dark-bg);
}

.page-index__title-description {
  font-size: 19px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-color-dark-bg);
}

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

.page-index__brand-title {
  font-size: 38px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-index__brand-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-index__brand-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-index__brand-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__brand-item p {
  font-size: 16px;
  color: var(--text-color-light-bg);
  margin-bottom: 0;
}


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

.page-index__faq-title {
  font-size: 38px;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color); /* Brand color for question */
  color: var(--text-color-dark-bg);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #005a2e; /* Slightly darker green */
  border-color: #005a2e;
}

.page-index__faq-question:active {
  background: #004221; /* Even darker green */
}

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

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

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(180deg);
  color: var(--text-color-dark-bg);
}

.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 20px;
  opacity: 0;
  background-color: #222222; /* Slightly lighter than body bg */
  color: var(--text-color-dark-bg);
  border-radius: 0 0 5px 5px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
}

.page-index__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-color-dark-bg);
}

/* --- Blog Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: var(--bg-light);
  color: var(--text-color-light-bg);
}

.page-index__blog-title {
  font-size: 38px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-index__blog-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__blog-item img {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  display: block; /* Remove extra space below image */
}

.page-index__blog-item-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-item-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__blog-item-excerpt {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #999;
  display: block;
  margin-top: auto; /* Push date to bottom */
}

.page-index__blog-cta {
  margin-top: 50px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 42px;
  }
  .page-index h2 {
    font-size: 32px;
  }
  .page-index h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Ensure video is fully visible */
  }
  
  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section {
    padding: 40px 15px;
  }

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

  .page-index__title-description {
    font-size: 16px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-index__brand-item img {
    
  }

  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr;
  }

  .page-index__blog-item img {
    
  }

  .page-index__blog-item-title {
    font-size: 18px;
  }

  .page-index__blog-item-excerpt {
    font-size: 15px;
  }

  /* Global image responsive rules for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__container,
  .page-index__brand-item,
  .page-index__blog-item,
  .page-index__cta-buttons,
  .page-index__video-section,
  .page-index__video-container,
  .page-index__video-wrapper,
  .page-index__video-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Ensure padding is consistent for sections */
  .page-index__title-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}