/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #ffffff);
}

/* Color contrast classes */
.page-promotions__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px; /* Small top padding, more bottom padding */
  background-color: #f0f0f0;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
}

.page-promotions__hero-content {
  max-width: 960px;
  margin-top: 30px;
  text-align: center;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
}

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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: #e02f2f;
  border-color: #e02f2f;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* General Section Styles */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-promotions__section-title--white {
  color: #ffffff;
}

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

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
}

/* Promo Grid Section */
.page-promotions__promo-grid {
  padding: 60px 0;
}

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

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

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

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

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

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-btn:hover {
  background-color: #005a2e;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-promotions__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: 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-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  color: #666666;
}

.page-promotions__final-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #f0f8f0;
  border-radius: 10px;
}

.page-promotions__final-cta-text {
  font-size: 1.2em;
  color: #017439;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }
  .page-promotions__hero-content {
    margin-top: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }
  .page-promotions__description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-promotions__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-promotions__overview-section,
  .page-promotions__promo-grid,
  .page-promotions__how-to-claim {
    padding: 40px 0;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card-description {
    font-size: 0.95em;
  }
  .page-promotions__steps-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__final-cta {
    padding: 30px;
  }
  .page-promotions__final-cta-text {
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__promo-grid,
  .page-promotions__how-to-claim,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__final-cta,
  .page-promotions__cta-buttons,
  .page-promotions__grid,
  .page-promotions__steps-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness (general rule, not specific to this page's HTML) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}