/* style/promotions.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Inherit from body or shared.css */
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* 桌面端：根据导航栏实际高度调整 */
  background-color: var(--dark-bg-color);
}

.page-promotions__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🚨 视频点击链接样式（必须严格遵守） */
.page-promotions__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - 🚨 PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
}

/* 🚨 视频点击提示遮罩层样式（可选，增强用户体验） */
.page-promotions__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-promotions__video-link:hover .page-promotions__video-overlay {
  opacity: 1;
}

.page-promotions__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(var(--primary-color-rgb, 0, 123, 255), 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now按钮样式（必须严格遵守，位于视频下方中间位置） */
.page-promotions__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-promotions__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #007bff);
  color: #ffffff;
  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-promotions__play-now-button:hover {
  background: var(--secondary-color, #ffc107);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

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

/* General Section Styling */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 80px 0;
}

.page-promotions__light-bg {
  background-color: #202020; /* Slightly lighter dark for contrast */
  color: var(--light-text-color);
  padding: 80px 0;
}

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 120px; /* Account for fixed header */
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.page-promotions__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 16px 45px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: #ffffff;
}

.page-promotions__cta-button--primary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-promotions__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Overview Section */
.page-promotions__overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__overview-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__overview-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-promotions__overview-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__overview-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

/* Featured Promotions */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__promo-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-content {
  padding: 25px;
}

.page-promotions__promo-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-promotions__promo-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 25px;
}

.page-promotions__promo-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--secondary-color);
  color: var(--dark-text-color);
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-promotions__promo-button:hover {
  background: #ffdb70;
  transform: translateY(-2px);
}

/* How to Claim Section */
.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions__claim-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background: var(--card-bg-dark);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.page-promotions__claim-item:last-child {
  margin-bottom: 0;
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-promotions__step-content h3 {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__step-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.page-promotions__step-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-promotions__claim-cta {
  text-align: center;
  margin-top: 50px;
}

/* Terms Highlights Section */
.page-promotions__terms-highlights {
  background: #0a0a0a;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions__terms-list {
  list-style: disc;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__terms-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__terms-list li a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__advantage-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__advantage-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-promotions__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__advantage-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__advantage-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__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;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height đảm bảo chắc chắn mở rộng */
.page-promotions__faq-item.active .page-promotions__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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color);
}

/* Vấn đề phong cách */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
}

/* Vấn đề tiêu đề phong cách */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--light-text-color);
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho biểu tượng */
}

.page-promotions__faq-answer p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__faq-answer p a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-promotions__final-cta {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* 🚨 Mobile Responsive Design (Must be strictly followed) */
@media (max-width: 768px) {
  .page-promotions__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile navigation bar height */
    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-promotions__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-promotions__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-promotions__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-promotions__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;
  }
  
  .page-promotions__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-promotions__hero-section {
    padding-top: 100px; /* Mobile: Account for fixed header */
    padding-bottom: 60px;
  }

  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-promotions__main-title {
    font-size: 36px;
  }

  .page-promotions__hero-description {
    font-size: 18px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 18px;
    padding: 14px 25px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__dark-bg, .page-promotions__light-bg {
    padding: 60px 0;
  }

  .page-promotions__overview-item, .page-promotions__promo-card, .page-promotions__advantage-item {
    padding: 20px;
  }

  .page-promotions__overview-item-title, .page-promotions__promo-title, .page-promotions__advantage-title {
    font-size: 20px;
  }

  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__promo-text, .page-promotions__overview-item p, .page-promotions__advantage-item p {
    font-size: 15px;
  }

  .page-promotions__promo-button {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-promotions__claim-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

  .page-promotions__terms-list {
    padding-left: 20px;
    font-size: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions__faq-answer p {
    font-size: 15px;
  }

  .page-promotions img, .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__promo-card, .page-promotions__overview-item, .page-promotions__advantage-item, .page-promotions__faq-item, .page-promotions__claim-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}