/* style/promotions.css */
/* Body background is dark: #08160F, so text color should be light */
.page-promotions {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Fixed Header Spacing: body handles padding-top, this page's sections use minimal top padding */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Adjust padding as needed for content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability if needed, but not changing color */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above the image if any layering issue */
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(17, 39, 27, 0.7); /* Card BG #11271B with transparency */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Custom border color */
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.3); /* Custom glow color */
}

.page-promotions__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #F2FFF6; /* Main text color */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

.page-promotions__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__step-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Main text color for button */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Custom glow color */
}

.page-promotions__btn-secondary {
  background: transparent;
  color: #57E38D; /* Custom glow color for text */
  border: 2px solid #2E7A4E; /* Custom border color */
}

.page-promotions__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Custom glow color with transparency */
  color: #F2FFF6; /* Main text color */
  border-color: #57E38D; /* Custom glow color */
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-promotions__highlight-section,
.page-promotions__category-section,
.page-promotions__terms-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
  border-top: 1px solid #1E3A2A; /* Divider color */
}

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

.page-promotions__card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Main text color */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4); /* Glow color */
}

.page-promotions__card-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;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Main text color for button */
  border: none;
  text-align: center;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 5px;
  align-self: flex-start;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 10px #57E38D; /* Glow color */
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #A7D9B8; /* Secondary text color */
  position: relative;
  padding-left: 45px;
}

.page-promotions__terms-item::before {
  content: "✓";
  color: #57E38D; /* Glow color */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 20px;
}

.page-promotions__terms-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-promotions__steps-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
  line-height: 1;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #2E7A4E;
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
}

.page-promotions__step-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Main text color for button */
  border: none;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__step-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 10px #57E38D; /* Glow color */
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #A7D9B8; /* Secondary text color */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: #08160F; /* Slightly darker when open */
}

.page-promotions__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.6;
  max-height: 0; /* For JS based accordion, though details is preferred */
  overflow: hidden; /* For JS based accordion */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS based accordion */
}

/* For details tag, the answer content will be visible by default when open, no need for max-height trick */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 2000px; /* Large enough to show content */
  padding-top: 15px;
}

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

/* --- Responsive styles --- */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 15px;
  }
  .page-promotions__hero-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile general padding */
  .page-promotions__container {
    padding: 20px 15px;
  }

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness (if any, though none currently in 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 has --header-offset, so this is small decorative padding */
  }

  /* Buttons responsive */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__step-button,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center button text on mobile */
  }
  .page-promotions__hero-cta,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 15px;
  }
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__terms-item {
    padding-left: 35px;
  }
  .page-promotions__terms-item::before {
    left: 10px;
  }
  .page-promotions__steps-item {
    padding: 20px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.7em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__hero-cta {
    flex-direction: column;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
  }
}