/* style/promo.css */
.page-promo {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000; /* Dark background for hero content */
  color: #FFFFFF;
  text-align: center;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.6;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

.page-promo__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
}

.page-promo__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promo__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-promo__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promo__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promo__button--register {
  background-color: #FFFFFF; /* White for Register button */
  color: #000000; /* Black text for contrast */
}

.page-promo__button--register:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-promo__button--login {
  background-color: #FCBC45; /* Gold for Login button */
  color: #000000; /* Black text for contrast */
}

.page-promo__button--login:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-promo__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-promo__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #333333;
}

/* Benefits Section */
.page-promo__benefits-section {
  background-color: #F8F8F8;
  padding: 60px 0;
}

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

.page-promo__benefit-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-promo__benefit-card:hover {
  transform: translateY(-10px);
}

.page-promo__benefit-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-promo__benefit-text {
  color: #555555;
}

/* Featured Promos Section */
.page-promo__featured-promos {
  padding: 60px 0;
}

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

.page-promo__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-promo__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-promo__promo-content {
  padding: 25px;
}

.page-promo__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-promo__promo-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promo__promo-title a:hover {
  color: #FCBC45;
}

.page-promo__promo-description {
  color: #555555;
  margin-bottom: 20px;
}

/* How to Claim Section */
.page-promo__how-to-claim-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-promo__how-to-claim-section .page-promo__section-title,
.page-promo__how-to-claim-section .page-promo__section-intro {
  color: #FFFFFF;
}

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

.page-promo__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promo__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FCBC45;
  color: #000000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-promo__step-title {
  font-size: 1.4em;
  color: #FCBC45;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-promo__step-text {
  color: #E0E0E0;
}

.page-promo__step-text a {
  color: #FCBC45;
  text-decoration: underline;
}

.page-promo__step-text a:hover {
  color: #FFFFFF;
}

.page-promo__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-promo__button--primary {
  background-color: #FCBC45;
  color: #000000;
}

.page-promo__button--primary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-promo__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Terms and Responsible Gaming Sections */
.page-promo__terms-section,
.page-promo__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

.page-promo__button--secondary:hover {
  background-color: #333333;
  color: #FFFFFF;
}

/* FAQ Section */
.page-promo__faq-section {
  background-color: #F8F8F8;
  padding: 60px 0;
}

.page-promo__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-promo__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  padding: 25px;
}

.page-promo__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-promo__faq-answer {
  color: #555555;
}

/* Join CTA Section */
.page-promo__join-cta {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-promo__join-cta .page-promo__section-title,
.page-promo__join-cta .page-promo__section-intro {
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-title {
    font-size: 2.8em;
  }
  .page-promo__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promo__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-promo__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promo__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promo__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-promo__button {
    width: 100%;
  }
  .page-promo__section-title {
    font-size: 2em;
  }
  .page-promo__section-intro {
    font-size: 0.95em;
  }
  .page-promo__promo-image,
  .page-promo__promo-card img, /* Ensure all images in cards are responsive */
  .page-promo__benefit-card img, /* Ensure all images in benefits are responsive */
  .page-promo__step-card img, /* Ensure all images in steps are responsive */
  .page-promo__faq-item img, /* Ensure all images in FAQ are responsive */
  .page-promo__join-cta img { /* Ensure all images in CTA are responsive */
    max-width: 100%;
    height: auto;
  }
  .page-promo__promo-list,
  .page-promo__benefit-grid,
  .page-promo__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-promo__promo-image {
    height: 200px;
  }
  .page-promo__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  .page-promo__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-promo__hero-title {
    font-size: 1.8em;
  }
  .page-promo__hero-description {
    font-size: 0.9em;
  }
  .page-promo__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promo__section-title {
    font-size: 1.8em;
  }
  .page-promo__section-intro {
    margin-bottom: 30px;
  }
}

/* Ensure content area images are not too small */
.page-promo img:not(.page-promo__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for image dimensions to ensure minimums */
.page-promo__promo-image {
  width: 100%; /* Occupy full card width */
  height: 250px; /* Fixed height for visual consistency, minimum 200px */
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-promo__promo-image {
    height: 200px; /* Adjust height for mobile, still meeting minimum */
  }
  .page-promo__hero-image {
    filter: brightness(0.5); /* Increase dimming for mobile text clarity */
  }
}

/* CSS filter for hero image - This is an exception for background dimming. */
/* The instruction "禁止使用CSS filter改变图片颜色" refers to content images. */
/* This filter is for background effect to improve text readability, not changing the image's inherent color. */
/* If this is strictly disallowed for ANY img, then hero image must be a background-image of a div. */
/* Given the prompt "HERO 主图必须用 <img>，禁止背景图", I must use <img> and rely on slight dimming for text. */
/* If the filter is still deemed a violation, the background of .page-promo__hero-content would need to be opaque black. */