/* style/promotions-welcome-bonus.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

/* 🚨 Body background is var(--dark-bg-1) from shared.css, implying a dark background. */
/* Therefore, default text color for main content should be light. */
.page-promotions-welcome-bonus {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default light text color for dark body background */
  background-color: transparent; /* inherited from body, which is dark */
}

/* 🚨 Fixed nav bar spacing */
.page-promotions-welcome-bonus__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on actual fixed header height */
}

.page-promotions-welcome-bonus__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions-welcome-bonus__hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-promotions-welcome-bonus__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-promotions-welcome-bonus__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions-welcome-bonus__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions-welcome-bonus__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-promotions-welcome-bonus__btn-primary:hover {
  background: #e6b000; /* Slightly darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus__btn-secondary {
  background: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions-welcome-bonus__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus__content-section {
  padding: 60px 20px;
  background: var(--card-bg-light);
  color: var(--text-color-dark);
}

.page-promotions-welcome-bonus__content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions-welcome-bonus__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

.page-promotions-welcome-bonus__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-promotions-welcome-bonus__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-promotions-welcome-bonus__list,
.page-promotions-welcome-bonus__steps-list,
.page-promotions-welcome-bonus__game-list,
.page-promotions-welcome-bonus__terms-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-promotions-welcome-bonus__steps-list {
  list-style-type: decimal;
}

.page-promotions-welcome-bonus__list li,
.page-promotions-welcome-bonus__steps-list li,
.page-promotions-welcome-bonus__game-list li,
.page-promotions-welcome-bonus__terms-list li {
  margin-bottom: 10px;
}

.page-promotions-welcome-bonus__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

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

.page-promotions-welcome-bonus__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions-welcome-bonus__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
  object-fit: cover;
}

.page-promotions-welcome-bonus__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions-welcome-bonus__feature-description {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-promotions-welcome-bonus__faq-section {
  padding: 60px 20px;
  background: #f9f9f9;
  color: var(--text-color-dark);
}

.page-promotions-welcome-bonus__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-promotions-welcome-bonus__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions-welcome-bonus__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Câu hỏi phong cách */
.page-promotions-welcome-bonus__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-welcome-bonus__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions-welcome-bonus__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề câu hỏi phong cách */
.page-promotions-welcome-bonus__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-promotions-welcome-bonus__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-promotions-welcome-bonus__final-cta {
  background: var(--primary-color);
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
  color: var(--text-color-light);
}

.page-promotions-welcome-bonus__final-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-promotions-welcome-bonus__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

/* 🚨 Video Section Styles */
.page-promotions-welcome-bonus__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on actual fixed header height */
}

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

/* 🚨 Video click link styles */
.page-promotions-welcome-bonus__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-welcome-bonus__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to avoid CLS */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions-welcome-bonus__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 events */
}

/* 🚨 Video click hint overlay styles (optional, enhances user experience) */
.page-promotions-welcome-bonus__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.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-promotions-welcome-bonus__video-link:hover .page-promotions-welcome-bonus__video-overlay {
  opacity: 1;
}

.page-promotions-welcome-bonus__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, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now button styles (must be included, centered below video) */
.page-promotions-welcome-bonus__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-promotions-welcome-bonus__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color, #ffc107);
  color: var(--text-color-dark, #333333);
  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.15);
  border: none;
  cursor: pointer;
}

.page-promotions-welcome-bonus__play-now-button:hover {
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-promotions-welcome-bonus__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 🚨 Mobile Responsive Design */
@media (max-width: 768px) {
  .page-promotions-welcome-bonus {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* 🚨 Mobile padding-top for fixed header */
  .page-promotions-welcome-bonus__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on actual mobile fixed header 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-welcome-bonus__hero-section,
  .page-promotions-welcome-bonus__content-section,
  .page-promotions-welcome-bonus__faq-section {
    padding: 40px 15px;
  }

  .page-promotions-welcome-bonus__main-title {
    font-size: 2.2em;
  }

  .page-promotions-welcome-bonus__section-title {
    font-size: 1.8em;
  }

  .page-promotions-welcome-bonus__sub-title {
    font-size: 1.5em;
  }

  .page-promotions-welcome-bonus__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-welcome-bonus__cta-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-promotions-welcome-bonus__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-welcome-bonus__feature-item {
    padding: 20px;
  }
  
  /* 🚨 Mobile video responsive styles */
  .page-promotions-welcome-bonus__video-container,
  .page-promotions-welcome-bonus__video-link,
  .page-promotions-welcome-bonus__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-promotions-welcome-bonus__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  
  .page-promotions-welcome-bonus__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-promotions-welcome-bonus__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;
  }
  
  /* 🚨 FAQ mobile responsive */
  .page-promotions-welcome-bonus__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions-welcome-bonus__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions-welcome-bonus__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions-welcome-bonus__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions-welcome-bonus__faq-item.active .page-promotions-welcome-bonus__faq-answer {
    padding: 15px !important;
  }

  .page-promotions-welcome-bonus__final-cta {
    padding: 40px 15px;
  }

  .page-promotions-welcome-bonus__final-cta-title {
    font-size: 1.8em;
  }
  
  /* 🚨 All images responsive */
  .page-promotions-welcome-bonus img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions-welcome-bonus__content-container,
  .page-promotions-welcome-bonus__hero-container,
  .page-promotions-welcome-bonus__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions-welcome-bonus__hero-description,
  .page-promotions-welcome-bonus__final-cta-description {
    font-size: 1em;
  }
}