/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
}

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

/* 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(--dark-bg-1, #1a1a1a); /* Ensure background is dark */
}

.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 blocking 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); /* Darker overlay for visibility */
  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.7);
  padding: 10px 20px;
  background: rgba(1, 116, 57, 0.8); /* Using brand color #017439 */
  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: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom font color for login/register */
  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;
}

.page-index__play-now-button:hover {
  background: #e02a2a; /* Slightly darker red */
  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.25);
}


/* Module 1: Hero Section (H1 Title + CTA Buttons) */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  /* No additional padding-top here as video section already has it */
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use custom color for emphasis */
}

.page-index__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-index__cta-button--register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-index__cta-button--register:hover {
  background: #e02a2a; /* Slightly darker red */
  border-color: #e02a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--login {
  background: #ffffff; /* White background */
  color: #C30808; /* Custom color for login text */
  border: 2px solid #C30808;
}

.page-index__cta-button--login:hover {
  background: #f0f0f0;
  color: #a10606; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Module 3: Brand Introduction */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-index__brand-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
}

.page-index__brand-intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-index__brand-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-index__brand-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  flex: 1 1 calc(33% - 20px); /* Three items per row */
  min-width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color */
}

.page-index__brand-item-description {
  font-size: 16px;
  color: #555555;
}


/* Module 2: FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1, #1a1a1a); /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-index__faq-main-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Custom color for emphasis */
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* FAQ item styles */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #017439; /* Brand primary color */
  color: #ffffff;
  border: 1px solid #017439;
  border-radius: 10px;
  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-title {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click */
}

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

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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: #2a2a2a; /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}


/* Module 4: Blog List */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #f0f0f0; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand 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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 25px; /* Padding inside the link for content */
}

.page-index__blog-item-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 20px;
  min-height: 200px; /* Ensure minimum size */
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0 25px 10px 25px;
  color: #017439; /* Brand primary color */
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #555555;
  margin: 0 25px 15px 25px;
  line-height: 1.6;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #888888;
  margin: 0 25px;
  display: block;
}

.page-index__view-all-blogs {
  text-align: center;
  margin-top: 50px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: #017439; /* Brand primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__view-all-button:hover {
  background: #005a2e; /* Slightly darker green */
  transform: translateY(-2px);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 42px;
  }
  .page-index__hero-description {
    font-size: 17px;
  }
  .page-index__brand-item {
    flex: 1 1 calc(50% - 15px); /* Two items per row */
  }
}

@media (max-width: 768px) {
  /* Ensure all content sections are properly padded and constrained */
  .page-index__video-section,
  .page-index__hero-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

  /* Video container mobile adaptation */
  .page-index__video-container,
  .page-index__video-link,
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Allow height to adjust */
    object-fit: contain; /* Ensure video content is fully visible */
  }
  .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__video-cta {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 8px 16px !important;
  }

  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__brand-item {
    flex: 1 1 100%; /* One item per row */
    padding: 20px;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item-image {
    min-height: 180px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question-title {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 10px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__faq-answer p {
    font-size: 15px;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr; /* One column for blogs */
  }
  .page-index__blog-item-image {
    height: 180px;
    min-height: 180px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .page-index__blog-item-excerpt,
  .page-index__blog-item-date {
    font-size: 14px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .page-index__blog-link {
    padding-bottom: 20px;
  }
  .page-index__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* General image rules for content area to prevent small icons */
.page-index img:not(.shared-logo):not(.shared-social-icon):not(.shared-payment-icon) {
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Override for elements that might be smaller but are not icons */
.page-index__blog-item-image,
.page-index__brand-item-image {
  min-width: 200px;
  min-height: 200px;
}