/* style/index.css */

/* General page styles for .page-index */
.page-index {
  background-color: #0a0a0a; /* Matches shared.css body background */
  color: #f0f0f0; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-index h1,
.page-index h2,
.page-index h3,
.page-index h4,
.page-index h5,
.page-index h6 {
  color: #FFD700; /* Primary brand color for headings */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index p {
  margin-bottom: 1em;
}

.page-index a {
  color: #1E90FF; /* Auxiliary brand color for links */
  text-decoration: none;
}

.page-index a:hover {
  text-decoration: underline;
}

/* Section base styles */
.page-index__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__container {
  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: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #0d0d0d; /* Slightly lighter dark for this 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; /* Added for consistency */
}

.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; /* Prevent video controls from blocking click event on parent <a> */
  background-color: #000; /* Fallback for video area */
}

.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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  background: rgba(30, 144, 255, 0.8); /* Using auxiliary 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: #FFD700; /* Primary brand color */
  color: #0a0a0a; /* Dark text for contrast */
  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: nowrap;
}

.page-index__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  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 + CTA Buttons Section --- */
.page-index__title-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #f0f0f0;
  text-align: center;
}

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

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

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

.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;
  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.15);
  white-space: nowrap;
}

.page-index__cta-button--primary {
  background: #FFD700; /* Primary brand color */
  color: #0a0a0a; /* Dark text for contrast */
}

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

.page-index__cta-button--secondary {
  background: #1E90FF; /* Auxiliary brand color */
  color: #ffffff; /* Light text for contrast */
  border: 2px solid #1E90FF;
}

.page-index__cta-button--secondary:hover {
  background: #1a7ae3;
  border-color: #1a7ae3;
  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: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #f0f0f0;
}

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

.page-index__faq-main-title {
  font-size: 38px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-index__faq-list {
  margin-top: 30px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.page-index__faq-question:active {
  background: #333333;
}

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

.page-index__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: #1E90FF; /* Auxiliary color for 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: 32px; /* Larger touch target */
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFD700; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '−' */
}

.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 20px;
  opacity: 0;
  color: #cccccc; /* Light text for answer */
  background-color: #1a1a1a; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
}

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

.page-index__faq-answer p {
  margin: 0;
  padding: 0;
}

/* --- Brand Introduction Section --- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #f0f0f0;
  text-align: center;
}

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

.page-index__brand-title {
  font-size: 38px;
  color: #FFD700;
  margin-bottom: 40px;
}

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

.page-index__brand-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
}

.page-index__brand-item-title {
  font-size: 24px;
  color: #1E90FF; /* Auxiliary color for item titles */
  margin-bottom: 15px;
}

.page-index__brand-item ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
  color: #cccccc;
}

.page-index__brand-item li {
  margin-bottom: 8px;
}

.page-index__brand-item strong {
  color: #FFD700; /* Primary color for strong text */
}

/* --- Blog List Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-index__blog-title {
  font-size: 38px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-index__blog-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

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

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

.page-index__blog-item-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: brightness(0.8); /* Slightly dim images for better text overlay contrast if needed */
  transition: filter 0.3s ease;
}

.page-index__blog-item:hover .page-index__blog-item-image {
  filter: brightness(1);
}

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

.page-index__blog-item-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #888888;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 42px;
  }
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 34px;
  }
  .page-index__faq-question h3 {
    font-size: 17px;
  }
  .page-index__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 60px 15px;
  }

  /* Video Section Mobile */
  .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 is fully visible */
  }
  
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

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

  /* H1 Title Section Mobile */
  .page-index__title-section {
    padding: 60px 15px;
  }
  .page-index__main-title {
    font-size: 36px;
  }
  .page-index__title-description {
    font-size: 16px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons touching edges */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-index__cta-button {
    width: 100%; /* Full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ Section Mobile */
  .page-index__faq-section {
    padding: 60px 15px;
  }
  .page-index__faq-main-title {
    font-size: 30px;
  }
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px); /* Leave space for toggle */
  }
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-index__faq-answer {
    padding: 0 15px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Brand Section Mobile */
  .page-index__brand-section {
    padding: 60px 15px;
  }
  .page-index__brand-title {
    font-size: 30px;
  }
  .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,
  .page-index__brand-item li {
    font-size: 15px;
  }

  /* Blog Section Mobile */
  .page-index__blog-section {
    padding: 60px 15px;
  }
  .page-index__blog-title {
    font-size: 30px;
  }
  .page-index__blog-list {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-index__blog-item-image {
    height: 200px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__blog-item-date {
    font-size: 13px;
  }

  /* General image/video/container responsiveness for mobile */
  .page-index img {
    max-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__title-section,
  .page-index__title-container,
  .page-index__faq-section,
  .page-index__faq-container,
  .page-index__brand-section,
  .page-index__brand-container,
  .page-index__blog-section,
  .page-index__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure content has padding */
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Ensure no filter on images */
.page-index img {
  filter: none !important;
}