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

.page-promo__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill out */
}

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better text contrast */
  border-radius: 10px;
}

.page-promo__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-promo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-promo__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-promo__hero-button:hover {
  background-color: #e0a53b;
}

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

.page-promo__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin: 60px 0 20px;
}

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

.page-promo__promo-grid,
.page-promo__steps-grid,
.page-promo__details-grid,
.page-promo__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promo__promo-card,
.page-promo__step-card,
.page-promo__detail-card,
.page-promo__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__promo-card:hover,
.page-promo__step-card:hover,
.page-promo__detail-card:hover,
.page-promo__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.page-promo__card-text,
.page-promo__step-text,
.page-promo__detail-description,
.page-promo__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__card-button,
.page-promo__step-button,
.page-promo__detail-button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-promo__card-button:hover,
.page-promo__step-button:hover,
.page-promo__detail-button:hover {
  background-color: #333333;
}

.page-promo__terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promo__terms-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FCBC45;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
}

.page-promo__terms-sub-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-promo__terms-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #666666;
}

.page-promo__full-terms-button,
.page-promo__support-button,
.page-promo__responsible-button {
  display: block;
  width: fit-content;
  margin: 40px auto 80px auto;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-promo__full-terms-button:hover,
.page-promo__support-button:hover,
.page-promo__responsible-button:hover {
  background-color: #e0a53b;
}

.page-promo__feature-item {
  padding: 25px;
}

.page-promo__cta-section {
  background-color: #000000; /* Dark background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-promo__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-promo__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-promo__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease;
}

.page-promo__cta-button:hover {
  background-color: #e0a53b;
}

/* Ensure all content images meet the minimum size requirement */
.page-promo img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

/* Adjustments for image display width/height attributes vs CSS */
/* The HTML width/height are for the layout slot, CSS will make them responsive */
.page-promo__hero-image {
  width: 100%; /* Occupy 100% of its container */
  height: 100%; /* Occupy 100% of its container */
}

.page-promo__promo-image {
  width: 100%; /* Occupy 100% of its container */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promo__hero-section {
    min-height: 450px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promo__hero-title {
    font-size: 2em;
  }

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

  .page-promo__hero-content {
    padding: 25px 15px;
  }

  .page-promo__section-title {
    font-size: 2em;
    margin-top: 40px;
  }

  .page-promo__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__details-grid,
  .page-promo__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

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

  .page-promo__card-content {
    padding: 20px;
  }

  .page-promo__card-title,
  .page-promo__step-title,
  .page-promo__detail-title,
  .page-promo__feature-title {
    font-size: 1.3em;
  }

  .page-promo__card-text,
  .page-promo__step-text,
  .page-promo__detail-description,
  .page-promo__feature-text {
    font-size: 0.9em;
  }

  .page-promo__full-terms-button,
  .page-promo__support-button,
  .page-promo__responsible-button {
    width: 90%;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 60px;
  }

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

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

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

  .page-promo__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  /* Enforce image max-width for mobile to prevent overflow */
  .page-promo__hero-section .page-promo__hero-image,
  .page-promo__promo-image {
    max-width: 100%;
    height: auto;
    /* Ensure content area images are not smaller than 200px */
    min-width: 200px;
    min-height: 200px;
  }

  /* Specific rule for promo cards to ensure images are not too small */
  .page-promo__promo-image {
    height: 200px; /* Keep minimum height for card images */
  }

  /* Ensure no horizontal scrolling */
  .page-promo__container {
    padding: 0 15px;
  }
  .page-promo {
    overflow-x: hidden;
  }
}