/* style/index.css */

/* --- General Page Styling (BEM: page-index) --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-index h1,
.page-index h2,
.page-index h3,
.page-index h4,
.page-index h5,
.page-index h6 {
  color: #FFD700; /* Gold for headings */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index h1 {
  font-size: 44px;
  font-weight: bold;
}

.page-index h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-index h3 {
  font-size: 24px;
  font-weight: 600;
}

.page-index p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Light grey for paragraphs */
}

.page-index a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Section Base Styling --- */
.page-index__video-section,
.page-index__title-section,
.page-index__brand-section,
.page-index__faq-section,
.page-index__blog-section {
  padding: 80px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Specific Section Styles --- */

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 🚨 Fixed header offset */
  padding-top: var(--header-offset, 120px);
  background-color: #0d0d0d; /* Ensure a dark background for the 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;
}

.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event 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.4);
  border-radius: 12px;
  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: #0A2E36; /* Dark text on gold */
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8); /* Using auxiliary color */
  border-radius: 8px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: #FFD700; /* Auxiliary color */
  color: #0A2E36; /* Main color for text for contrast */
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

/* Module 1: H1 Title + Promotion Buttons */
.page-index__title-section {
  background-color: #0A2E36; /* Main brand color for this section */
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

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

.page-index__main-title {
  color: #FFD700; /* Gold for the main H1 title */
  font-size: 52px;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.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: 16px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-index__btn-primary {
  background: #FFD700; /* Auxiliary color */
  color: #0A2E36; /* Main color for text */
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  color: #0A2E36;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px 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: #0A2E36;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Module 3: Brand Introduction */
.page-index__brand-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-index__brand-title {
  color: #FFD700;
  margin-bottom: 50px;
}

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

.page-index__brand-item {
  background: #0A2E36; /* Main brand color for card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__brand-item-image {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-width: 400px; /* Constrain max width for larger screens */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-index__brand-item-title {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 22px;
}

.page-index__brand-item p {
  color: #f0f0f0;
  font-size: 16px;
}

/* Module 2: FAQ Section */
.page-index__faq-section {
  background-color: #0A2E36; /* Main brand color for FAQ section */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-index__faq-main-title {
  color: #FFD700;
  margin-bottom: 50px;
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  border: 1px solid #333;
  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: #2a2a2a;
  border-color: #555;
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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 minus sign effect */
  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 25px;
  opacity: 0;
  background-color: #0A2E36; /* Main brand color for answer background */
  color: #f0f0f0;
  border-top: 1px solid #333;
}

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

/* Module 4: Blog List Display */
.page-index__blog-section {
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-index__blog-title {
  color: #FFD700;
  margin-bottom: 50px;
}

.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: #0A2E36; /* Main brand color for blog card */
  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;
}

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

.page-index__blog-item-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce minimum image size */
}

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

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

.page-index__blog-link:hover .page-index__blog-item-title {
  color: #ffffff;
  text-decoration: underline;
}

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  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: #aaa;
}

.page-index__blog-view-all {
  text-align: center;
  margin-top: 40px;
}

/* --- Global Image/Button/Video Responsive (for .page-index scope) --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit for content images */
}

.page-index__cta-button,
.page-index__play-now-button,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__video,
.page-index video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-index h1 {
    font-size: 36px;
  }

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

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

  .page-index p {
    margin-bottom: 15px;
    color: #f0f0f0; /* Light grey for paragraphs */
  }

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

  /* Video Section Mobile */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset */
  }

  .page-index__video-container,
  .page-index__video-link,
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video {
    object-fit: contain; /* Ensure video fits within bounds */
    border-radius: 8px;
  }

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

  .page-index__video-cta {
    margin-top: 25px;
    padding: 0 15px;
  }

  .page-index__play-now-button {
    font-size: 18px;
    padding: 15px 35px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* H1 Title Section Mobile */
  .page-index__main-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

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

  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Brand Section Mobile */
  .page-index__brand-content {
    grid-template-columns: 1fr; /* Single column layout */
  }
  
  .page-index__brand-item-image {
    max-width: 100%; /* Ensure image fits */
    height: auto;
  }

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

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