/* style/promo.css */
.page-promo {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly set main content background to white */
}

.page-promo__section-title {
  font-size: 2.5em;
  color: #000000; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-promo__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Login button accent color for highlight */
  border-radius: 2px;
}

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

.page-promo__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  min-width: 200px;
  text-align: center;
}

.page-promo__btn--register {
  background-color: #000000; /* Dark background for register button */
  color: #FFFFFF; /* Register text color */
  border: 2px solid #000000;
}

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

.page-promo__btn--login, .page-promo__btn--claim, .page-promo__btn--download, .page-promo__btn--step-action {
  background-color: #FCBC45; /* Login button background color */
  color: #000000; /* Dark text for login button */
  border: 2px solid #FCBC45;
}

.page-promo__btn--login:hover, .page-promo__btn--claim:hover, .page-promo__btn--download:hover, .page-promo__btn--step-action:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #000000;
}

.page-promo__btn--learn-more {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-promo__btn--learn-more:hover {
  background-color: #000000;
  color: #FCBC45;
}

/* Hero Section */
.page-promo__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-promo__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-promo__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Accent for hero title */
  line-height: 1.2;
}

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

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

.page-promo__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for hero image */
  margin-top: 40px;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

/* Why Section */
.page-promo__why-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

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

.page-promo__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

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

.page-promo__feature-text {
  color: #666666;
}

/* Featured Promotions Section */
.page-promo__featured-promotions {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.page-promo__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promo__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

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

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

.page-promo__promo-text {
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promo__how-to-claim {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

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

.page-promo__step-item {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px; /* Space for number */
}

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

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

.page-promo__step-text {
  color: #666666;
  margin-bottom: 20px;
}

/* Terms & FAQ Section */
.page-promo__terms-faq {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-promo__terms-content, .page-promo__faq-content {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promo__faq-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eeeeee;
}

.page-promo__faq-item:last-child {
  border-bottom: none;
}

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

.page-promo__faq-answer {
  color: #666666;
  display: none; /* Hidden by default, toggled by JS */
  padding-left: 15px;
  border-left: 3px solid #FCBC45;
}

/* Responsible Gaming Section */
.page-promo__responsible-gaming {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.page-promo__cta-section {
  max-width: 1000px;
  margin: 80px auto 100px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
}

.page-promo__cta-section .page-promo__section-title {
  color: #FCBC45;
}

.page-promo__cta-section .page-promo__section-description {
  color: #f0f0f0;
}

.page-promo__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-promo__terms-faq {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-promo__hero-title {
    font-size: 2.5em;
  }

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

  .page-promo__hero-actions, .page-promo__cta-actions {
    flex-direction: column;
  }

  .page-promo__btn {
    width: 100%;
    margin: 10px 0;
  }

  .page-promo__hero-section {
    padding: 40px 15px 60px;
  }

  .page-promo__hero-content {
    margin-bottom: 30px;
  }

  .page-promo__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-promo__why-section, .page-promo__featured-promotions, .page-promo__how-to-claim, .page-promo__terms-faq, .page-promo__responsible-gaming, .page-promo__cta-section {
    margin: 60px auto;
    padding: 0 15px;
  }

  .page-promo__features-grid, .page-promo__promo-grid, .page-promo__steps-container {
    grid-template-columns: 1fr;
  }

  .page-promo__promo-image {
    height: 200px;
  }

  /* Ensure content images do not overflow on mobile */
  .page-promo img {
    max-width: 100%;
    height: auto;
  }
  .page-promo__promo-card img, .page-promo__hero-image-wrapper img {
    max-width: 100% !important;
    height: auto !important;
  }
}