/* style/index.css */

/* Base styles for the page content, ensuring light text on the dark body background */
.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* General container for content sections */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 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: #1a1a2e; /* Match body background for seamless look */
}

.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;
  border-radius: 8px; /* Added for consistency */
  overflow: hidden; /* Added for consistency */
}

.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 interfering with click event on <a> */
  background-color: #000; /* Fallback for video loading */
}

.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(1, 116, 57, 0.8); /* Using primary color */
  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; /* Using Login/Register color for CTA */
  color: #FFFF00; /* Using Login/Register font color for CTA */
  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; /* Slightly darker red */
  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 {
  background-color: #017439; /* Primary brand color for hero background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-index__main-title {
  font-size: 48px;
  color: #ffffff; /* White text on primary background */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 18px;
  color: #f0f0f0; /* Slightly off-white for description */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  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;
}

.page-index__cta-button--register {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

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

.page-index__cta-button--login {
  background: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
}

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

.page-index__hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%; /* Adjust size as needed */
  height: auto;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Dark background from body */
}

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

.page-index__faq-title {
  font-size: 36px;
  color: #ffffff; /* White text on dark background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* details as FAQ card */
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #017439; /* Primary color border */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card background */
  color: #ffffff; /* White text */
}
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;
}
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.15); /* Lighter hover background */
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff; /* White text */
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00; /* Yellow 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: rgba(0, 0, 0, 0.2); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0; /* Slightly off-white text */
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text */
}

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

.page-index__brand-title {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 50px;
  font-weight: bold;
}

.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); /* Semi-transparent white card */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-index__brand-item-title {
  font-size: 24px;
  color: #FFFF00; /* Yellow for sub-titles */
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-index__brand-image {
  width: 100%;
  max-width: 400px; /* Constrain image size within card */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* --- Blog List Section --- */
.page-index__blog-section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Dark background from body */
}

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

.page-index__blog-title {
  font-size: 36px;
  color: #ffffff; /* White text on dark background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-index__blog-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-item-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-index__blog-item-title {
  font-size: 20px;
  color: #FFFF00; /* Yellow for blog titles */
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
}

.page-index__blog-item-title:hover {
  color: #ffffff; /* White on hover */
}

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

.page-index__blog-item-date {
  font-size: 13px;
  color: #cccccc;
  text-align: right;
}

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

.page-index__cta-button--view-all {
  background: #017439; /* Primary color for view all button */
  color: #ffffff;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-index__cta-button--view-all:hover {
  background: #005f2c; /* Darker primary on hover */
}


/* --- General Image & Button Responsive Styles (MUST BE INCLUDED) --- */
/* All images base responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space properly */
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Ensure no filter properties are used */
}

.page-index__hero-image {
  min-width: unset;
  min-height: unset;
}

/* All buttons base responsive styles */
.page-index__cta-button,
.page-index__play-now-button,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* All button containers base responsive styles */
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  /* General page content adjustments */
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Containers for content sections (padding, width) */
  .page-index__container,
  .page-index__hero-container,
  .page-index__faq-container,
  .page-index__brand-container,
  .page-index__blog-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Section padding adjustments */
  .page-index__video-section,
  .page-index__hero-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    padding-bottom: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video section adjustments */
  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    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 content 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__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* H1 title adjustments */
  .page-index__main-title {
    font-size: 32px;
  }

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

  /* CTA buttons adjustments */
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  /* FAQ adjustments */
  .page-index__faq-title {
    font-size: 28px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext { font-size: 15px; }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  /* Brand section adjustments */
  .page-index__brand-title {
    font-size: 28px;
  }
  .page-index__brand-content {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item p {
    font-size: 15px;
  }

  /* Blog section adjustments */
  .page-index__blog-title {
    font-size: 28px;
  }
  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__cta-button--view-all {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px;
    padding: 10px 25px;
  }
}