/* style/promotions.css */

/* General page styling */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css (#000) */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-promotions__container--center {
  text-align: center;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-promotions__section-description,
.page-promotions__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* Call to Action Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__cta-buttons--center {
  justify-content: center;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for gold background to ensure contrast */
  border: 2px solid #FFD700;
}

.page-promotions__cta-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-promotions__cta-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-promotions__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 20px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #1a1a1a; /* Dark background for the hero section itself */
  overflow: hidden;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-promotions__hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4; /* Make image slightly transparent to help text readability */
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with hero */
}

/* Promo Types Section */
.page-promotions__promo-types-section {
  padding: 80px 0;
  background-color: #000;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistent image size */
  overflow: hidden;
}

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

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__promo-card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-promotions__how-to-claim-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-promotions__how-to-claim-steps {
  flex: 1;
}

.page-promotions__numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__numbered-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 50px;
}

.page-promotions__numbered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #FFD700;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.page-promotions__step-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-promotions__step-description a {
  color: #DC143C; /* Red link for contrast */
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: #e6002e;
}

.page-promotions__how-to-claim-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-promotions__how-to-claim-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Terms Overview Section */
.page-promotions__terms-overview-section {
  padding: 80px 0;
  background-color: #000;
}

.page-promotions__terms-overview-section .page-promotions__text-block {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-overview-section .page-promotions__text-block a {
  color: #DC143C;
  text-decoration: underline;
}

.page-promotions__terms-overview-section .page-promotions__text-block a:hover {
  color: #e6002e;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-promotions__why-choose-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__why-choose-item-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__why-choose-item-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 0;
  background-color: #000;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

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

/* 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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Nền sáng hơn cho phần trả lời */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0; /* Đảm bảo văn bản sáng màu */
}