/* style/index.css */
/* Base styles for the page content, ensuring text color contrast with dark body background */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* White text for dark body background */
  background-color: transparent; /* Inherit body background from shared.css */
  padding-bottom: 60px; /* Space above footer */
}

/* Section styling */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__description-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Container for content, centered */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CTA Button Base Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  white-space: nowrap; /* Prevent text wrap on desktop */
}

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

.page-index__btn-primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-index__btn-primary:hover {
  background: #1f8ac4; /* Darker shade on hover */
}

.page-index__btn-secondary {
  background: #ffffff; /* White background */
  color: #26A9E0; /* Primary brand color text */
  border: 2px solid #26A9E0;
  margin-left: 20px;
}

.page-index__btn-secondary:hover {
  background: #e0e0e0; /* Light gray on hover */
  color: #1f8ac4;
  border-color: #1f8ac4;
}

/* Text link button styles */
.page-index__btn-text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-index__btn-text-link:hover {
  color: #1f8ac4;
}

.page-index__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-index__btn-text-link:hover .page-index__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   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 */
}

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

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

.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 */
}

.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); /* Darker overlay for better visibility */
  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: 20px; /* Larger font size */
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Stronger shadow */
  padding: 15px 30px; /* Larger padding */
  background: rgba(38, 169, 224, 0.85); /* Brand primary color with transparency */
  border-radius: 50px; /* Pill shape */
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.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 50px; /* Larger padding */
  background: #EA7C07; /* Login color for Play Now button - high contrast */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px; /* Pill shape */
  font-size: 22px; /* Larger font size */
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); /* Stronger shadow */
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-index__play-now-button:hover {
  background: #c96806; /* Darker shade on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

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

/* ==========================================================================
   Hero Section (H1 Title + CTA)
   ========================================================================== */
.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1f8ac4); /* Gradient with brand color */
  color: #ffffff;
}

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between buttons */
  flex-wrap: wrap;
}

/* ==========================================================================
   Features Section (Why Choose Us)
   ========================================================================== */
.page-index__features-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 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__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too wide in cards */
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #26A9E0;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.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; /* Adjusted padding */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Light transparent background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0; /* Light text for answer */
}

/* Question style */
.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Adjusted padding */
  background: rgba(255, 255, 255, 0.1); /* Light transparent background for question */
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}