/* style/promotions.css */
:root {
  --primary-color: #0056B3;
  --secondary-color: #FFD700;
  --dark-bg: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
}

.page-promotions {
  color: var(--light-text); /* Body background is dark, so text is light */
  background-color: var(--dark-bg);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-promotions__section-description {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__dark-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

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

.page-promotions .text-primary {
  color: var(--primary-color);
}

.page-promotions .text-accent {
  color: var(--secondary-color);
}

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

.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.5);
  padding: 10px 20px;
  background: rgba(0, 86, 179, 0.8); /* Primary color with transparency */
  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(--secondary-color); /* Gold color */
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-promotions__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

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

/* Module 1: H1 Title + CTA Buttons */
.page-promotions__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-promotions__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--light-text);
  line-height: 1.2;
}

.page-promotions__title-description {
  font-size: 20px;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 16px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: var(--light-text);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--primary:hover {
  background: #004a9e;
  border-color: #004a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Promotions Grid */
.page-promotions__promotions-grid {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-promotions__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--light-text);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-promotions__card-button:hover {
  background: #004a9e;
  transform: translateY(-1px);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 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: #cccccc;
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể 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 bất kỳ nội dung nào */
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #222222;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-question:active {
  background: #111111;
}

/* 问题标题样式 */
.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);
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.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; /* 防止图标阻止点击事件 */
  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); /* Rotate for 'x' effect */
}

/* Brand Section */
.page-promotions__brand-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: var(--light-text);
}

.page-promotions__brand-section .page-promotions__section-title {
  color: var(--light-text);
}

.page-promotions__brand-section .page-promotions__section-description {
  color: #e0e0e0;
}

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

.page-promotions__brand-item {
  background: rgba(0, 0, 0, 0.2); /* Dark overlay on primary color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__brand-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.3);
}

.page-promotions__brand-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3)); /* Allowed filter for shadow, not color change */
}

.page-promotions__brand-item h3 {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__brand-item p {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Blog Section */
.page-promotions__blog-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-promotions__blog-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-promotions__blog-item-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--light-text);
  line-height: 1.4;
}

.page-promotions__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-promotions__blog-item-date {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

.page-promotions__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-promotions__view-all-button:hover {
  background: #004a9e;
  transform: translateY(-2px);
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

  /* 🚨 移动端视频区域样式 */
  .page-promotions__video-section {
    /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
    padding-top: 10px !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-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; /* 移动端使用contain确保视频完整显示且不超出 */
  }
  
  /* 🚨 Play Now按钮移动端响应式适配（必须严格遵守） */
  .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__title-section {
    padding: 40px 15px;
  }

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

  .page-promotions__title-description {
    font-size: 16px;
  }

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

  .page-promotions__cta-button {
    width: 100%;
    padding: 14px 25px;
    font-size: 16px;
  }

  .page-promotions__promotions-grid, .page-promotions__faq-section, .page-promotions__brand-section, .page-promotions__blog-section {
    padding: 40px 0;
  }

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

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__card-text {
    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__brand-content {
    grid-template-columns: 1fr;
  }

  .page-promotions__brand-item {
    padding: 25px;
  }

  .page-promotions__brand-icon {
    width: 100px;
    height: 100px;
  }

  .page-promotions__brand-item h3 {
    font-size: 22px;
  }

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

  .page-promotions__blog-image {
    height: 180px;
  }

  .page-promotions__blog-item-title {
    font-size: 18px;
  }

  .page-promotions__blog-item-excerpt {
    font-size: 14px;
  }

  .page-promotions__view-all-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 25px;
  }

  /* 🚨 Tất cả hình ảnh phải đáp ứng */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Điều chỉnh padding cho các phần tử cụ thể nếu cần */
  .page-promotions__title-section,
  .page-promotions__promotions-grid,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer p {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Desktop padding adjustment for fixed header */
@media (min-width: 769px) {
  .page-promotions__title-section {
    padding-top: 120px; /* Adjust based on fixed header height */
  }
}