/* style/index.css */

/* Global settings for the page-index scope */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background #121212 */
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

/* --- 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: #1a1a1a; /* Slightly lighter dark background for this section */
  box-sizing: border-box;
}

.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;
  box-sizing: border-box;
}

.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; /* Ensure overlay and video respect border-radius */
}

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

.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 interfering with click event on parent link */
}

.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, 123, 255, 0.5); /* Semi-transparent primary color overlay */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow click to pass through to the link */
  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.6);
  padding: 12px 25px;
  background: rgba(255, 193, 7, 0.8); /* Secondary color for hint */
  border-radius: 50px;
  white-space: nowrap;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.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 45px;
  background: var(--primary-color, #007bff);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px; /* More rounded for a vibrant look */
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: var(--secondary-color, #ffc107); /* Hover to secondary color */
  color: #333333; /* Dark text on secondary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* --- Hero Section (H1 + CTA) --- */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color, #007bff), #0056b3); /* Gradient for hero */
  color: #ffffff;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-index__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  opacity: 0.9;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure button doesn't exceed container width */
  box-sizing: border-box;
}

.page-index__cta-button--primary {
  background: var(--secondary-color, #ffc107);
  color: #333333;
  border-color: var(--secondary-color, #ffc107);
}

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

.page-index__cta-button--secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-index__cta-button--secondary:hover {
  background: #ffffff;
  color: var(--primary-color, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__faq-main-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #121212; /* Very dark for strong contrast */
}

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

.page-index__faq-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.page-index__faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-question {
  background: #f5f5f5;
  border-bottom-color: transparent; /* Hide border when active */
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #007bff);
  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-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: var(--secondary-color, #ffc107);
}

.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: #555555;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0; /* Add top border for visual separation */
}

.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: #121212; /* Dark background */
  color: #f0f0f0; /* Light text */
  box-sizing: border-box;
}

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

.page-index__brand-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color, #ffc107); /* Secondary color for titles */
}

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

/* --- Blog Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #f0f2f5; /* Light background for contrast */
  color: #333333; /* Dark text */
  box-sizing: border-box;
}

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

.page-index__blog-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #121212; /* Very dark for strong contrast */
}

.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;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

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

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

.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-link:hover .page-index__blog-item-title {
  color: var(--primary-color, #007bff);
}

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

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1; /* Push date to bottom */
}

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

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color, #007bff);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__view-all-button:hover {
  background: var(--secondary-color, #ffc107);
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .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__brand-item-title {
    font-size: 22px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    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; /* Ensure video fits within bounds */
  }

  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .page-index__video-cta {
    margin-top: 25px;
    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;
  }

  .page-index__hero-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    padding: 50px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index__hero-container,
  .page-index__faq-container,
  .page-index__brand-container,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

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

  .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;
  }

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

  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-index__blog-item-image {
    height: 180px;
  }
  .page-index__blog-item-title {
    font-size: 17px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__view-all-button-container {
    margin-top: 40px;
  }
  .page-index__view-all-button {
    padding: 10px 25px;
    font-size: 15px;
  }

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all content containers don't overflow */
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}