/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --button-login-color: #EA7C07;
  --bg-color: #FFFFFF;
  --black-color: #000000;
}

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

/* Fixed Header Offset - applied to the first main content section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #a7e0f2 100%); /* Lighter gradient with primary color */
  color: var(--text-color-light); /* Light text on dark/primary background */
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

.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-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color); /* Use specific login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__cta-button:hover {
  background: #d46b00; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--bg-color);
}

.page-promotions__section:nth-of-type(even) {
  background-color: #f8f8f8; /* Light grey for alternating sections */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark);
}

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

.page-promotions__promo-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 25px;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__promo-card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 20px 15px 20px;
  color: var(--primary-color);
  flex-grow: 1; /* Allow title to take available space */
}

.page-promotions__promo-card-description {
  font-size: 0.95em;
  color: var(--text-color-dark);
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  max-width: 90%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: #1e87bb; /* Slightly darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

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

.page-promotions__step-item {
  background: #f0f0f0;
  border-left: 5px solid var(--primary-color);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 1.0em;
  color: var(--text-color-dark);
}

.page-promotions__step-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

.page-promotions__terms-summary {
    background: #e9f7fd; /* Light blue background for terms summary */
    border: 1px solid var(--primary-color);
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-promotions__terms-description {
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.page-promotions__terms-description a {
    color: #EA7C07; /* Use login color for important links */
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__terms-description a:hover {
    text-decoration: underline;
}

.page-promotions__center-button {
    text-align: center;
    margin-top: 50px;
}

.page-promotions__cta-button--large {
    padding: 18px 50px;
    font-size: 1.2em;
}


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

/* FAQ容器样式 */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

/* 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; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 30px !important; /* Increased padding for better readability */
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.05);
}

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

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color); /* Highlight active question */
    background-color: #f5f5f5;
}

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

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

/* 问题标题样式 */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-promotions__faq-toggle {
  font-size: 28px; /* Slightly larger for better tap target */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger icon area */
  height: 32px;
  background-color: #e9f7fd; /* Light background for toggle */
  border-radius: 50%;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--button-login-color); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect from '+' */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__hero-description {
    font-size: 1.2em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__promo-card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-title {
    font-size: 2.0em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1.0em;
    margin-bottom: 20px;
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100% !important; /* Enforce button width for mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding-bottom: 20px;
  }
  .page-promotions__promo-image {
    height: 180px; /* Slightly smaller image height for mobile cards */
  }
  .page-promotions__promo-card-title {
    font-size: 1.2em;
    margin: 0 15px 10px 15px;
  }
  .page-promotions__promo-card-description {
    font-size: 0.9em;
    margin: 0 15px 15px 15px;
  }
  .page-promotions__card-button {
    padding: 10px 20px;
    font-size: 0.85em;
    width: calc(100% - 30px) !important; /* Adjust for padding in card */
    max-width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-promotions__step-item {
    padding: 20px 20px;
    margin-bottom: 15px;
  }
  .page-promotions__step-title {
    font-size: 1.3em;
  }
  .page-promotions__step-description {
    font-size: 0.95em;
  }

  .page-promotions__terms-summary {
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
  }
  .page-promotions__terms-title {
    font-size: 1.4em;
  }
  .page-promotions__terms-description {
    font-size: 1.0em;
  }
  .page-promotions__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1em;
  }

  /* FAQ Mobile Specifics */
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 1.05em;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  /* Global image responsiveness for mobile */
  .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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here to avoid double padding if container already has it */
  }
}

/* Ensure content area images maintain min size on desktop if explicitly set */
.page-promotions__promo-image {
    min-width: 200px;
    min-height: 200px;
}