.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 not hidden by fixed header */
}

.page-promo__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

.page-promo__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-promo__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

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

.page-promo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-promo__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-promo__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  border-color: #FCBC45;
}

.page-promo__button--primary:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
}

.page-promo__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Secondary color */
  border-color: #FFFFFF;
}

.page-promo__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-promo__button--tertiary {
  background-color: transparent;
  color: #000000; /* Main color */
  border-color: #000000;
}

.page-promo__button--tertiary:hover {
  background-color: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-promo__why-jili99-section,
.page-promo__types-section,
.page-promo__how-to-claim-section,
.page-promo__terms-section,
.page-promo__featured-section,
.page-promo__detail-list-section,
.page-promo__vip-section,
.page-promo__cta-section,
.page-promo__responsible-gaming-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promo__why-jili99-section,
.page-promo__terms-section,
.page-promo__responsible-gaming-section {
  background-color: #F8F8F8;
}

.page-promo__why-jili99-container,
.page-promo__types-container,
.page-promo__how-to-claim-container,
.page-promo__terms-container,
.page-promo__featured-container,
.page-promo__detail-list-container,
.page-promo__vip-container,
.page-promo__cta-container,
.page-promo__responsible-gaming-container {
  text-align: center;
}

.page-promo__why-jili99-title,
.page-promo__types-title,
.page-promo__how-to-claim-title,
.page-promo__terms-title,
.page-promo__featured-title,
.page-promo__detail-list-title,
.page-promo__vip-title,
.page-promo__cta-title,
.page-promo__responsible-gaming-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #000000;
}

.page-promo__why-jili99-text,
.page-promo__terms-text,
.page-promo__responsible-gaming-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
}

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

.page-promo__promo-card,
.page-promo__featured-card,
.page-promo__detail-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure cards have minimum height for content */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promo__promo-card:hover,
.page-promo__featured-card:hover,
.page-promo__detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promo__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promo__card-title,
.page-promo__featured-card-title,
.page-promo__detail-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.page-promo__detail-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-promo__detail-card-title a:hover {
  text-decoration: underline;
}

.page-promo__card-description,
.page-promo__detail-card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__how-to-claim-section {
  background-color: #000000; /* Dark background for steps */
  color: #FFFFFF;
}

.page-promo__how-to-claim-title {
  color: #FCBC45;
}

.page-promo__steps-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-promo__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FCBC45;
  margin-bottom: 20px;
  padding: 20px 30px;
  border-radius: 8px;
}

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

.page-promo__step-description {
  font-size: 1em;
  color: #E0E0E0;
}

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

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

.page-promo__vip-section {
  background-color: #000000; /* Dark background for VIP section */
  color: #FFFFFF;
}

.page-promo__vip-title {
  color: #FCBC45;
}

.page-promo__vip-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
}

.page-promo__vip-text a {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-promo__cta-section {
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
}

.page-promo__cta-title {
  color: #000000;
}

.page-promo__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-promo__cta-description a {
  color: #000000;
  text-decoration: underline;
}

.page-promo__cta-description a:hover {
  color: #333333;
}

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

.page-promo__cta-actions .page-promo__button--primary {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-promo__cta-actions .page-promo__button--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-promo__cta-actions .page-promo__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-promo__cta-actions .page-promo__button--secondary:hover {
  background-color: #E0E0E0;
  border-color: #E0E0E0;
}

.page-promo__responsible-gaming-section {
  padding: 60px 20px;
  text-align: center;
}

.page-promo__responsible-gaming-text a {
  color: #000000;
  text-decoration: underline;
}

.page-promo__responsible-gaming-text a:hover {
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-promo__hero-title {
    font-size: 2em;
  }

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

  .page-promo__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-promo__button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-promo__why-jili99-title,
  .page-promo__types-title,
  .page-promo__how-to-claim-title,
  .page-promo__terms-title,
  .page-promo__featured-title,
  .page-promo__detail-list-title,
  .page-promo__vip-title,
  .page-promo__cta-title,
  .page-promo__responsible-gaming-title {
    font-size: 2em;
  }

  .page-promo__why-jili99-text,
  .page-promo__terms-text,
  .page-promo__responsible-gaming-text,
  .page-promo__vip-text,
  .page-promo__cta-description {
    font-size: 0.95em;
  }

  .page-promo__promo-grid,
  .page-promo__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-promo__promo-card,
  .page-promo__featured-card,
  .page-promo__detail-card {
    padding: 20px;
    min-height: auto;
  }

  .page-promo__card-image {
    height: 180px;
  }

  .page-promo__hero-content {
    max-width: 90%;
  }

  /* Mobile content area images must not overflow */
  .page-promo img {
    max-width: 100%;
    height: auto;
  }

  /* Enforce min-width for content area images in mobile */
  .page-promo__card-image,
  .page-promo__hero-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure no image selected by .page-promo is smaller than 200px */
  .page-promo__hero-section img,
  .page-promo__types-section img,
  .page-promo__featured-section img {
      min-width: 200px !important;
      min-height: 200px !important;
      width: auto !important; /* Allow auto width to scale with max-width */
      height: auto !important;
  }
}