.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--auxiliary-color); /* #FFFFFF */
}

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

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color); /* #017439 */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-promotions__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__text-link:hover {
  color: #005a2d;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, var(--primary-color), #00A650); /* Gradient from primary to slightly lighter green */
  color: #ffffff;
}

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

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for main title */
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--primary-color); /* #017439 */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: var(--primary-color); /* #017439 */
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom colors for Register/Login buttons */
.page-promotions__btn-register,
.page-promotions__btn-login {
  background: #C30808; /* Red */
  color: #FFFF00; /* Yellow */
  border: 2px solid transparent;
}

.page-promotions__btn-register:hover,
.page-promotions__btn-login:hover {
  background: #a10707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 20px;
  background-color: var(--auxiliary-color); /* #FFFFFF */
  color: #333333;
}

/* Dark background section for contrast */
.page-promotions__dark-bg {
  background-color: var(--primary-color); /* #017439 */
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__text-link {
  color: #FFFF00;
}

.page-promotions__dark-bg .page-promotions__text-link:hover {
  color: #FFFFAA;
}

/* Promotion Categories Section */
.page-promotions__categories-section {
  padding: 60px 20px;
}

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

.page-promotions__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-promotions__promo-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__claim-section {
  padding: 60px 20px;
  background-color: var(--auxiliary-color); /* #FFFFFF */
  color: #333333;
  text-align: center;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-promotions__step-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  font-size: 15px;
  line-height: 1.6;
}

.page-promotions__claim-image-wrapper {
  margin: 50px auto;
  max-width: 1000px;
}

.page-promotions__claim-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Disclaimer Section */
.page-promotions__disclaimer-section {
  padding: 60px 20px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 20px;
  background-color: var(--auxiliary-color); /* #FFFFFF */
  color: #333333;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

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

/* 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;
  font-size: 15px;
  line-height: 1.6;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn 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 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

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

.page-promotions__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: var(--primary-color);
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Xoay để tạo dấu X */
  color: #C30808;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
  font-size: 36px;
  margin-bottom: 25px;
}

.page-promotions__cta-final-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  margin-bottom: 40px;
}

.page-promotions__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 40px;
  }

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

  .page-promotions__promo-card img {
    height: 200px;
  }

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-promotions__hero-image {
    margin-bottom: 20px;
  }

  .page-promotions__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__hero-buttons,
  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-promotions__promo-card img {
    
  }

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

  .page-promotions__card-content,
  .page-promotions__step-item {
    padding: 20px;
  }

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

  .page-promotions__claim-image-wrapper {
    margin: 30px auto;
  }

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

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

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

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

  .page-promotions__cta-final-section {
    padding: 50px 20px;
  }

  .page-promotions__cta-final-section .page-promotions__section-title {
    font-size: 28px;
  }

  .page-promotions__cta-final-section .page-promotions__text-block {
    font-size: 16px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-container,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section .page-promotions__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__promo-card {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__promo-card .page-promotions__card-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__step-item {
    padding-left: 15px;
    padding-right: 15px;
  }
}