/* Base Styles for promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0; /* Assuming shared.css handles body padding-top */
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-content {
  flex: 1;
  padding: 80px 40px;
  z-index: 1;
  max-width: 60%;
  box-sizing: border-box;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  height: 100%;
  max-width: 40%;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #EA7C07; /* Login color for small CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-small:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-promotions__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

/* Promotions Overview Section */
.page-promotions__promotions-overview {
  padding: 60px 0;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-promotions__card-link:hover {
  text-decoration: underline;
}

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

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  padding: 60px 0;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-promotions__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.05em;
}

.page-promotions__list-item strong {
  color: #26A9E0;
}

.page-promotions__text-block {
  color: #f0f0f0;
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

/* Claim & Withdraw Section */
.page-promotions__claim-withdraw {
  padding: 60px 0;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 1em;
  color: #cccccc;
}

/* VIP Program Section */
.page-promotions__vip-program {
  padding: 60px 0;
}

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

.page-promotions__vip-feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-promotions__vip-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__vip-feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__vip-feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
}

.page-promotions__faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #26A9E0;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-promotions__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* General Image styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

  .page-promotions__hero-content {
    padding: 60px 30px;
    max-width: 55%;
  }

  .page-promotions__hero-image-wrapper {
    max-width: 45%;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__section-description {
    font-size: 1em;
  }

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

  .page-promotions__grid,
  .page-promotions__steps-grid,
  .page-promotions__vip-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-promotions__hero-section {
    flex-direction: column;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    min-height: auto;
  }

  .page-promotions__hero-content {
    max-width: 100% !important;
    padding: 40px 15px !important;
    text-align: center;
  }

  .page-promotions__hero-title {
    font-size: 2.2em !important;
  }

  .page-promotions__hero-description {
    font-size: 1em !important;
  }

  .page-promotions__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    height: auto;
    margin-top: 20px;
  }

  .page-promotions__hero-image {
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 - 确保前4张 2x2, 后2张各一行 */
  .page-promotions__grid {
    grid-template-columns: 1fr !important; /* Default to single column */
    gap: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-promotions__card {
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-image {
    height: auto !important; /* Allow image to scale */
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__text-block,
  .page-promotions__list,
  .page-promotions__faq-list,
  .page-promotions__faq-item,
  .page-promotions__steps-grid,
  .page-promotions__vip-features {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }

  /* 按钮与按钮容器 */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-promotions__hero-cta-buttons,
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow-x: hidden;
  }

  /* 其他内容模块 */
  .page-promotions__section-title {
    font-size: 1.8em !important;
  }

  .page-promotions__section-description {
    font-size: 0.95em !important;
  }

  .page-promotions__card-title {
    font-size: 1.2em !important;
  }

  .page-promotions__list-item {
    font-size: 0.95em !important;
    padding: 12px 15px !important;
  }

  .page-promotions__step-title,
  .page-promotions__vip-feature-title {
    font-size: 1.3em !important;
  }

  .page-promotions__faq-question {
    padding: 12px 15px !important;
  }

  .page-promotions__faq-title {
    font-size: 1em !important;
  }

  .page-promotions__faq-answer {
    padding: 0 15px !important;
  }

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