.page-promotions {
  background-color: #FFFFFF; /* Main background color */
  color: #333333; /* Default text color for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding as body handles header offset */
  background-color: #017439; /* Primary color for hero background */
  color: #FFFFFF;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
}

.page-promotions__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for main title */
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
}

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

.page-promotions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.page-promotions__btn--register,
.page-promotions__btn--login {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
}

.page-promotions__btn--register:hover,
.page-promotions__btn--login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-promotions__hero-image-wrapper {
  margin: 0;
  width: 100%;
  max-width: 1200px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-promotions__promo-grid-section {
  padding: 50px 20px;
  background-color: #FFFFFF; /* White background for promotion grid */
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Primary color for section titles */
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  min-width: 200px; /* Ensure minimum width for image */
  min-height: 200px; /* Ensure minimum height for image */
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439; /* Primary color for card titles */
}

.page-promotions__promo-card-description {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__promo-card-date {
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 15px;
  display: block;
}

.page-promotions__btn--claim {
  background-color: #017439; /* Primary color for claim buttons */
  color: #FFFFFF;
  align-self: flex-start;
}

.page-promotions__btn--claim:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

.page-promotions__cta-section {
  background-color: #017439; /* Primary color for CTA section */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for CTA title */
}

.page-promotions__cta-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 30px;
}

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

.page-promotions__btn--register-cta,
.page-promotions__btn--login-cta {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
}

.page-promotions__btn--register-cta:hover,
.page-promotions__btn--login-cta:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-promotions__hero-section {
    padding: 10px 15px 30px;
  }

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

  .page-promotions__btn {
    width: 100%;
    max-width: 300px;
  }

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

  .page-promotions__promo-card-image {
    height: 180px;
  }

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

  .page-promotions__promo-card-title {
    font-size: 1.25rem;
  }

  .page-promotions__promo-card-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 549px) {
  .page-promotions__hero-section {
    padding: 10px 10px 25px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-promotions__section-title,
  .page-promotions__cta-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-promotions__promo-grid-section,
  .page-promotions__cta-section {
    padding: 30px 15px;
  }

  .page-promotions__promo-card-image {
    height: 160px;
  }

  .page-promotions__promo-card-title {
    font-size: 1.15rem;
  }

  .page-promotions__promo-card-description {
    font-size: 0.85rem;
  }
}

/* Ensure all content images meet minimum size requirements and are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  /* min-width and min-height are explicitly set on promo-card-image and hero-image */
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* Mobile content area images constraint */
@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Ensure color contrast for text */
.page-promotions__hero-section p,
.page-promotions__hero-section a {
  color: #FFFFFF; /* White text on #017439 background */
}

.page-promotions__cta-section p,
.page-promotions__cta-section a {
  color: #FFFFFF; /* White text on #017439 background */
}

.page-promotions__section-title,
.page-promotions__promo-card-title {
  color: #017439; /* Green text on #FFFFFF background */
}

.page-promotions__promo-card-description {
  color: #555555; /* Dark gray on #f9f9f9 background */
}

.page-promotions__promo-card-date {
  color: #888888; /* Gray on #f9f9f9 background */
}

.page-promotions__btn--register,
.page-promotions__btn--login,
.page-promotions__btn--claim,
.page-promotions__btn--register-cta,
.page-promotions__btn--login-cta {
  color: #FFFF00; /* Yellow text on #C30808 or #017439 background */
}

/* Ensure main hero image and promo card images meet 200x200px minimum */
.page-promotions__hero-image {
  min-width: 200px;
  min-height: 200px;
}