/* style/index.css */

/* --- General Styles --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
}

/* --- 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: #f0f0f0;
}

.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; /* 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.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, 116, 57, 0.8); /* Using primary color with opacity */
  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; /* Specific color for Play Now */
  color: #FFFF00; /* Specific font color for Play Now */
  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: #a30606; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

/* --- Hero Section (H1 + CTA) --- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Primary color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-index__btn-register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
}

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

.page-index__btn-download {
  background: #ffffff;
  color: #017439; /* Primary color for text on white background */
  border: 2px solid #017439;
}

.page-index__btn-download:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.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: #017439; /* Primary color for title */
}

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

details.page-index__faq-item {
  margin-bottom: 0; /* Gap handled by parent flex */
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

details.page-index__faq-item[open] {
  border-color: #017439;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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: #333333;
}
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;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439; /* Primary color for toggle icon */
  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: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-index__faq-answer p {
  margin-bottom: 0;
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #017439; /* Primary color as background */
  color: #ffffff; /* White text for dark 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: 40px;
  color: #ffffff;
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index__brand-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  display: block;
  margin: 0 auto 15px auto;
}

/* --- Blog List Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text for light background */
}

.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: 20px;
  color: #017439; /* Primary color for title */
}

.page-index__blog-intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__blog-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  display: block;
}

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #017439; /* Primary color for blog title */
  flex-grow: 1; /* Allows title to take available space */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #666666;
  margin: 0 20px 15px 20px;
}

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

.page-index__blog-cta {
  text-align: center;
}

/* See all news button style */
.page-index__btn-secondary {
  background: #ffffff;
  color: #017439; /* Primary color for text on white background */
  border: 2px solid #017439;
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 42px;
  }
  .page-index__hero-description {
    font-size: 17px;
  }
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 32px;
  }
  .page-index__faq-qtext {
    font-size: 17px;
  }
  .page-index__brand-item-title {
    font-size: 22px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
}

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

  /* Video section specific mobile adjustments */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .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; /* Ensure video scales correctly */
    object-fit: contain; /* Ensure full video content is visible */
  }
  .page-index__video-cta {
    margin-top: 20px;
    padding: 0 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__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* Hero section mobile adjustments */
  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-index__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* FAQ section mobile adjustments */
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  /* Brand section mobile adjustments */
  .page-index__brand-item {
    padding: 20px;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item p {
    font-size: 15px;
  }
  .page-index__brand-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Blog section mobile adjustments */
  .page-index__blog-intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__blog-item-image {
    height: 180px; /* Adjust height for mobile blog images */
    min-width: 200px !important;
    min-height: 180px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__blog-item-title {
    font-size: 17px;
    margin: 15px 15px 8px 15px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
    margin: 0 15px 10px 15px;
  }
  .page-index__blog-item-date {
    margin: 0 15px 15px 15px;
  }
  .page-index__blog-cta {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-index__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

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

  /* Ensure all containers for images/videos are responsive */
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__video-section,
  .page-index__video-container,
  .page-index__video-wrapper,
  .page-index__brand-content, /* For grid layout */
  .page-index__blog-list /* For grid layout */
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-index__brand-content,
  .page-index__blog-list {
    grid-template-columns: 1fr !important; /* Stack columns on mobile */
  }
}

/* Color Contrast Fixes (if needed, but design should prevent) */
.page-index__dark-bg {
  color: #ffffff;
  background: #017439;
}

.page-index__light-bg {
  color: #333333;
  background: #ffffff;
}