.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for assumed light body background */
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f0f0;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-promotions__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 800px;
  z-index: 1;
  color: #333333; /* Ensure text is readable over hero image if it's light */
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 15px;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-promotions__btn-secondary {
  background-color: #017439; /* Brand color for secondary */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-promotions__section-title--light {
  color: #FFFFFF;
}

/* Categories Section */
.page-promotions__categories-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-promotions__category-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__category-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__category-text {
  font-size: 0.95em;
  color: #555555;
}

/* Promotion List Section */
.page-promotions__promo-list-section {
  padding: 60px 0;
  background-color: #017439; /* Dark section */
  color: #FFFFFF;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

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

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-promotions__promo-card-title a {
  color: #FFFF00; /* Yellow for promotion titles */
  text-decoration: none;
}

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

.page-promotions__promo-card-description {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

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

.page-promotions__step-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fdfdfd;
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-heading {
  font-size: 1.2em;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 0.9em;
  color: #555555;
}

.page-promotions__terms-text {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #555555;
}

.page-promotions__terms-text a {
  color: #017439;
  text-decoration: underline;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark section */
  color: #FFFFFF;
  text-align: center;
}

.page-promotions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles header offset */
    min-height: 300px;
  }
  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-content {
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: 2em; /* Flexible, not fixed large value */
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }
  .page-promotions__promo-grid,
  .page-promotions__category-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__promo-card-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__promo-list-section,
  .page-promotions__categories-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__cta-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Ensure all images are responsive and do not overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers are responsive and do not overflow */
.page-promotions__hero-section,
.page-promotions__promo-card,
.page-promotions__category-item,
.page-promotions__step-item {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Content area images CSS size lower bound (not by class name, but by scope) */
.page-promotions img {
  min-width: 200px; /* Enforce minimum size for all content images */
  min-height: 200px;
}

.page-promotions__promo-card-image {
  min-width: 200px; /* Specific override if needed, but general rule applies */
  min-height: 200px;
}

/* Override specific small image height if needed, but general rule applies */
@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}