/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #C30808; /* For Register/Login buttons */
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --background-color-light: #FFFFFF;
  --background-color-dark: #017439;
  --border-color: #e0e0e0;
  --link-font-color: #FFFF00; /* For register/login font if needed, generally use text-color-light on dark background */
}

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

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

.page-promotions__container--centered {
  text-align: center;
}

.page-promotions__section {
  padding: 60px 0;
  background-color: var(--background-color-light);
}

.page-promotions__section:nth-of-type(even) {
  background-color: #f9f9f9; /* Slightly different background for visual separation */
}

.page-promotions__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #009944 100%); /* Green gradient */
  color: var(--text-color-light);
  overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: none; /* ABSOLUTELY NO CSS FILTER */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: 800;
}

.page-promotions__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Use secondary color for CTA */
  color: var(--link-font-color); /* Yellow font color for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure minimum width for buttons */
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  background: #ff4d4d; /* Slightly lighter red on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Promo Grid Section */
.page-promotions__featured-promos {
  background-color: #f0fdf4; /* Light green background */
}

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

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

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

.page-promotions__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  filter: none; /* ABSOLUTELY NO CSS FILTER */
}

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

.page-promotions__promo-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary:hover {
  background: #005a2e; /* Darker green on hover */
  transform: translateY(-2px);
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  background-color: var(--background-color-light);
}

.page-promotions__terms-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  font-size: 16px;
  color: #444;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__terms-conditions a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__terms-conditions a:hover {
  color: #005a2e;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  background-color: #f0fdf4;
}

.page-promotions__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-bottom: 40px;
}

.page-promotions__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding-left: 50px;
  position: relative;
  font-size: 17px;
  color: #444;
}

.page-promotions__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: var(--text-color-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-list li strong {
  color: var(--primary-color);
}

.page-promotions__steps-list li a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__steps-list li a:hover {
  color: #005a2e;
}

.page-promotions__cta-buttons--bottom {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.page-promotions__cta-button--join {
  background: var(--secondary-color);
  color: var(--link-font-color);
}

.page-promotions__cta-button--join:hover {
  background: #ff4d4d;
}

.page-promotions__cta-button--support {
  background: #6c757d; /* Grey for support button */
  color: var(--text-color-light);
}

.page-promotions__cta-button--support:hover {
  background: #5a6268;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--background-color-light);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
  background-color: #e0f2e8; /* Lighter primary color for active question */
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-promotions__faq-item.active .page-promotions__faq-question h3 {
  color: var(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '−' in JS */
  color: var(--primary-color);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* IMPORTANT: Ensures it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
  border-color: var(--primary-color);
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

/* Final CTA Section */
.page-promotions__final-cta {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 80px 0;
}

.page-promotions__final-cta .page-promotions__section-title {
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__final-cta .page-promotions__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.page-promotions__final-cta .page-promotions__text-block a {
  color: var(--link-font-color); /* Yellow for links in dark section */
  font-weight: bold;
  text-decoration: underline;
}

.page-promotions__final-cta .page-promotions__text-block a:hover {
  color: #fff;
}

.page-promotions__cta-button--final {
  background: var(--secondary-color);
  color: var(--link-font-color);
  font-size: 20px;
  padding: 18px 45px;
  border-radius: 10px;
}

.page-promotions__cta-button--final:hover {
  background: #ff4d4d;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Image specific styles to prevent filter usage */
.page-promotions img {
  filter: none; /* Ensure no filter is applied to images */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 40px;
  }
  .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
  }

  .page-promotions__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 15px;
    text-align: left; /* Adjust text alignment for mobile readability */
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 25px;
  }

  .page-promotions__promo-card {
    border-radius: 8px;
  }

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

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

  .page-promotions__promo-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-promotions__promo-description {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .page-promotions__btn-primary {
    padding: 10px 20px;
    font-size: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__terms-list {
    margin-left: 20px;
    font-size: 15px;
  }

  .page-promotions__steps-list li {
    font-size: 16px;
    padding-left: 45px;
    margin-bottom: 20px;
  }

  .page-promotions__steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .page-promotions__cta-buttons--bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__cta-button--support,
  .page-promotions__cta-button--join {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__faq-item {
    border-radius: 8px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions__final-cta {
    padding: 60px 15px;
  }

  .page-promotions__cta-button--final {
    font-size: 18px;
    padding: 15px 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images in content area are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}