/* style/index.css */

/* --- General Page Styling --- */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, but inherited from shared */
  line-height: 1.6;
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section:nth-of-type(even) {
  background-color: #f8f8f8; /* Light grey for alternating sections */
}

.page-index__title {
  font-size: 36px;
  color: #017439; /* Primary color for titles */
  margin-bottom: 40px;
  font-weight: bold;
}

/* --- 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); /* Ensure space for fixed header */
  background-color: #f0f0f0; /* Slightly off-white background for video section */
}

.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; /* Apply border-radius to the link/container */
  overflow: hidden; /* Ensure video and overlay respect border-radius */
}

.page-index__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px; /* Match link/container border-radius */
  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; /* Match parent border-radius */
  object-fit: cover;
  pointer-events: none; /* Allow click on the 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.4);
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 0.8); /* Primary color with transparency */
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.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: 18px 50px;
  background: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom font color for login/register */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #a30606; /* Darker shade on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* --- H1 Title + CTA Buttons Section --- */
.page-index__title-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #005f2f); /* Green gradient */
  color: #ffffff;
  text-align: center;
  padding-top: 40px; /* Reduce top padding to avoid double header offset */
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  color: #ffffff; /* Ensure white text on dark background */
}

.page-index__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0; /* Slightly off-white for description */
}

.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: 16px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  text-align: center;
  border: 2px solid transparent;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-index__cta-button--register:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--play {
  background: #FFFFFF;
  color: #017439; /* Primary color for text on white button */
  border-color: #FFFFFF;
}

.page-index__cta-button--play:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-index__faq-title {
  font-size: 32px;
  color: #017439;
  margin-bottom: 50px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #017439; /* Primary color for question background */
  color: #ffffff; /* White text for question */
  border: 1px solid #017439;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #005f2f; /* Darker green on hover */
  border-color: #005f2f;
  transform: translateY(-2px);
}

.page-index__faq-question:active {
  background: #004a24;
  transform: translateY(0);
}

.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 event */
  color: #ffffff; /* Ensure white text */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff; /* White toggle icon */
  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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form cross */
  color: #FFFF00; /* Yellow toggle when active */
}

.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: #f9f9f9;
  color: #333333;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

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

/* --- Brand Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #f0fdf8; /* Light green tint */
  color: #333333;
}

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

.page-index__brand-title {
  font-size: 32px;
  color: #017439;
  margin-bottom: 50px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__brand-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
}

.page-index__brand-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* --- Blog Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-index__blog-title {
  font-size: 32px;
  color: #017439;
  margin-bottom: 50px;
  text-align: center;
  font-weight: bold;
}

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

.page-index__blog-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px 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 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-index__blog-item-title {
  font-size: 20px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover .page-index__blog-item-title {
  color: #005f2f; /* Darker green on hover */
}

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

.page-index__blog-item-date {
  font-size: 13px;
  color: #888888;
  text-align: right;
  margin-top: auto; /* Push date to bottom */
}


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

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

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

  .page-index__faq-question h3 {
    font-size: 17px;
  }

  .page-index__brand-item h3 {
    font-size: 20px;
  }

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

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

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

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Video Section Mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
    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; /* Use contain for mobile to ensure full video is visible */
  }
  
  .page-index__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 30px;
  }

  .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: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* H1 Title Section Mobile */
  .page-index__title-section {
    padding: 50px 15px;
  }

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

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

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

  .page-index__cta-button {
    width: 100%; /* Full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section Mobile */
  .page-index__faq-section {
    padding: 50px 15px;
  }

  .page-index__faq-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index__faq-question {
    padding: 15px 20px;
  }

  .page-index__faq-question h3 {
    font-size: 16px;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-index__faq-answer {
    padding: 0 20px;
  }

  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  .page-index__faq-answer p {
    font-size: 15px;
  }

  /* Brand Section Mobile */
  .page-index__brand-section {
    padding: 50px 15px;
  }

  .page-index__brand-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index__brand-content {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
  }

  .page-index__brand-item {
    padding: 25px;
  }

  .page-index__brand-item-image {
    height: 180px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__brand-item h3 {
    font-size: 18px;
  }

  .page-index__brand-item p {
    font-size: 15px;
  }

  /* Blog Section Mobile */
  .page-index__blog-section {
    padding: 50px 15px;
  }

  .page-index__blog-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
  }

  .page-index__blog-item-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__blog-item-content {
    padding: 20px;
  }

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

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

  .page-index__blog-item-date {
    font-size: 12px;
  }

  /* Ensure all images and video are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__video-section,
  .page-index__video-container,
  .page-index__video-wrapper,
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container,
  .page-index__brand-content,
  .page-index__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding for sections that have container padding */
  .page-index__video-section,
  .page-index__title-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    padding-left: 0;
    padding-right: 0;
  }
}