/* style/index.css */

/* Global variables from shared.css are assumed to be present in :root */
/* --primary-color: #11A84E; */
/* --secondary-color: #22C768; */
/* --card-bg: #11271B; */
/* --background: #08160F; */
/* --text-main: #F2FFF6; */
/* --text-secondary: #A7D9B8; */
/* --border-color: #2E7A4E; */
/* --glow-color: #57E38D; */
/* --gold-color: #F2C14E; */
/* --divider-color: #1E3A2A; */
/* --deep-green: #0A4B2C; */

.page-index {
  color: var(--text-main, #F2FFF6); /* Body background is #08160F (dark), so use light text */
  background-color: var(--background, #08160F);
  /* padding-top is handled by body { padding-top: var(--header-offset); } in shared.css */
}

/* Base styles for sections */
.page-index__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 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: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background, #08160F);
}

.page-index__video-container {
  position: relative;
  width: 100%; /* REQUIRED: Desktop width */
  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;
  overflow: hidden;
}

.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; /* Prevents video controls from interfering with click on <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.5);
  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(17, 168, 78, 0.8); /* Using RGB for transparency from --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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  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.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrap for mobile */
  word-wrap: break-word; /* Allow text wrap for mobile */
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* H1 Title + Promotion Buttons Section */
.page-index__title-section {
  background-color: var(--background, #08160F);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

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

.page-index__main-title {
  /* No fixed large font-size, use font-weight and line-height */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E); /* Highlight H1 with gold */
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

.page-index__title-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  min-width: 180px;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Brand Introduction Section */
.page-index__brand-section {
  background-color: var(--card-bg, #11271B); /* Use Card BG for this section */
  padding: 80px 20px;
  color: var(--text-main, #F2FFF6);
}

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

.page-index__brand-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index__brand-item {
  background-color: var(--background, #08160F); /* Darker background for items */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
  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.5);
}

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #11A84E);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-index__faq-section {
  background-color: var(--background, #08160F);
  padding: 80px 20px;
  color: var(--text-main, #F2FFF6);
}

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

.page-index__faq-main-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 50px;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B); /* FAQ item background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

details.page-index__faq-item[open] {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #F2FFF6);
  font-size: 18px;
  font-weight: 600;
}

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: var(--deep-green, #0A4B2C); /* Slightly darker on hover */
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color, #11A84E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: var(--background, #08160F); /* Answer area background */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 16px;
  line-height: 1.7;
}

/* Blog List Section */
.page-index__blog-section {
  background-color: var(--background, #08160F);
  padding: 80px 20px;
  color: var(--text-main, #F2FFF6);
}

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

.page-index__blog-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 50px;
}

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

.page-index__blog-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

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

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

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

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

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color, #11A84E);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: var(--text-secondary, #A7D9B8);
  display: block;
}

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
}

.page-index__view-all-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: clamp(26px, 3.5vw, 42px);
  }
  .page-index__title-description {
    font-size: 17px;
  }
  .page-index__brand-item-title {
    font-size: 22px;
  }
  .page-index__brand-item p {
    font-size: 15px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .page-index__video-section,
  .page-index__title-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px !important; /* Adjust section top padding for mobile */
    padding-bottom: 40px;
  }

  /* Video Section Mobile */
  .page-index__video-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }
  
  .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 to ensure full video is visible */
  }

  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    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 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* H1/CTA Section Mobile */
  .page-index__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-index__title-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;
  }

  /* Brand Section Mobile */
  .page-index__brand-content {
    grid-template-columns: 1fr;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item p {
    font-size: 14px;
  }

  /* FAQ Section Mobile */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Blog Section Mobile */
  .page-index__blog-list {
    grid-template-columns: 1fr;
  }
  .page-index__blog-item-image {
    height: 180px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__blog-item-date {
    font-size: 13px;
  }
  .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 and not overflowing */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__blog-item,
  .page-index__brand-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow on these main containers */
  }
}