/* style/index.css */

/* General page styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #121212, so light text */
  background-color: transparent; /* Main content background will be handled by sections */
}

/* 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 spacing */
  background-color: #0A192F; /* Brand primary color for hero/video background */
  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;
}

.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);
  background-color: #000; /* Fallback for video area */
}

.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 <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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8); /* Auxiliary color with transparency */
  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: var(--secondary-color, #FFD700); /* Auxiliary color */
  color: #0A192F; /* Dark text for contrast on yellow */
  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.25);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #e0b000; /* Slightly darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

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


/* Hero Section (H1 Title + Promotion Buttons) */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A192F; /* Primary color */
  color: #ffffff; /* Light text for contrast */
  box-sizing: border-box;
}

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

.page-index__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__btn-primary {
  background: #FFD700; /* Auxiliary color */
  color: #0A192F; /* Dark text for contrast */
}

.page-index__btn-primary:hover {
  background: #e0b000; /* Slightly darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}


/* Brand Introduction Section */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Darker background for contrast with body */
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-index__brand-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #FFD700; /* Auxiliary color */
}

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

.page-index__brand-item {
  background-color: #0A192F; /* Primary color for card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-item-title {
  font-size: 1.8em;
  color: #FFD700; /* Auxiliary color */
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index__brand-item-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index__brand-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}


/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #222222; /* Slightly lighter dark background */
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-index__faq-main-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Auxiliary color */
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A192F; /* Primary color */
  border: 1px solid #1c2e4a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #1c2e4a; /* Slightly lighter primary color on hover */
  border-color: #2a3e5a;
}

.page-index__faq-question-title {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* Light text */
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Auxiliary color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or just change to '-' */
  color: #ffffff;
}

.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;
  background-color: #1c2e4a; /* Slightly lighter primary color for answer background */
  color: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
}


/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #0A192F; /* Primary color */
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-index__blog-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #FFD700; /* Auxiliary color */
}

.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-color: #1c2e4a; /* Darker background for blog cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
}

.page-index__blog-item-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700; /* Auxiliary color */
  line-height: 1.3;
}

.page-index__blog-item-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index__blog-item-date {
  font-size: 0.85em;
  color: #cccccc;
  display: block;
}

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

/* Common button style for blog CTA */
.page-index__blog-cta .page-index__btn-primary {
  padding: 12px 30px;
  font-size: 1em;
}


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

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

  /* Fixed header offset for mobile */
  .page-index__video-section,
  .page-index__hero-section,
  .page-index__brand-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-index__main-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

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

  .page-index__cta-button,
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-index__play-now-button {
    font-size: 1.1em;
  }

  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-index__brand-item-title {
    font-size: 1.5em;
  }

  .page-index__brand-image,
  .page-index__blog-item-image {
    height: 180px;
  }
  
  /* FAQ mobile specific styles */
  .page-index__faq-question {
    padding: 15px;
  }
  
  .page-index__faq-question-title {
    font-size: 1em;
  }
  
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Images responsive for mobile */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive for mobile */
  .page-index video,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is kept */
  }

  .page-index__blog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 1.8em;
  }
  .page-index__brand-title,
  .page-index__faq-main-title,
  .page-index__blog-title {
    font-size: 1.8em;
  }
  .page-index__hero-section {
    padding: 50px 15px;
  }
  .page-index__video-section {
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
}