/* style/promotions.css */
.page-promotions {
  color: #ffffff; /* Body background is dark (#0d0d0d), so use light text */
  background-color: transparent; /* Inherit from body */
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #1A202C;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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;
}

.page-promotions__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-promotions__promo-card {
  background-color: #1A202C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

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

.page-promotions__card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-promotions__card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__how-to-claim {
  background-color: #1A202C;
  padding: 60px 20px;
}

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

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

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFD700;
  color: #1A202C;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-promotions__step-text a {
  color: #FFD700;
  text-decoration: none;
}

.page-promotions__step-text a:hover {
  text-decoration: underline;
}

.page-promotions__terms-list {
  list-style: disc;
  color: #f0f0f0;
  max-width: 800px;
  margin: 50px auto 0 auto;
  padding-left: 20px;
}

.page-promotions__terms-item {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.05em;
}

.page-promotions__terms-item strong {
  color: #FFD700;
}

.page-promotions__faq-section {
  background-color: #1A202C;
  padding: 60px 20px;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-promotions__faq-answer p {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-promotions__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

.page-promotions__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

/* General text colors to ensure contrast on dark body background */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
  color: #FFD700;
}

.page-promotions p,
.page-promotions li,
.page-promotions span {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__content-area {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

  .page-promotions__card-text {
    font-size: 0.95em;
  }

  .page-promotions__claim-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__step-item {
    padding: 25px;
  }

  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-promotions__step-title {
    font-size: 1.3em;
  }

  .page-promotions__terms-list,
  .page-promotions__faq-list {
    margin-top: 30px;
    padding-left: 15px;
  }

  .page-promotions__terms-item {
    font-size: 1em;
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 12px 20px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__featured-promos,
  .page-promotions__how-to-claim,
  .page-promotions__terms,
  .page-promotions__faq-section,
  .page-promotions__cta-section,
  .page-promotions__promo-grid,
  .page-promotions__promo-card,
  .page-promotions__claim-steps,
  .page-promotions__step-item,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-promotions__hero-content,
  .page-promotions__featured-promos .page-promotions__section-description,
  .page-promotions__how-to-claim .page-promotions__section-description,
  .page-promotions__terms .page-promotions__section-description,
  .page-promotions__faq-section .page-promotions__section-description,
  .page-promotions__cta-section .page-promotions__section-description,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific for buttons within containers */
  .page-promotions__hero-cta-buttons,
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }
}

/* Color contrast safety */
.page-promotions__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-promotions__promo-card .page-promotions__card-content {
  background-color: #1A202C;
  color: #ffffff;
}

.page-promotions__promo-card .page-promotions__card-title a {
  color: #FFD700;
}

.page-promotions__promo-card .page-promotions__card-btn {
  background-color: #FFD700;
  color: #1A202C;
}

.page-promotions__promo-card .page-promotions__card-btn:hover {
  background-color: #e6c200;
}

.page-promotions__how-to-claim .page-promotions__step-text a {
  color: #FFD700;
}

.page-promotions__faq-item .page-promotions__faq-question span {
  color: #FFD700;
}

.page-promotions__faq-item .page-promotions__faq-answer p {
  color: #f0f0f0;
}

.page-promotions__faq-item .page-promotions__faq-answer a {
  color: #FFD700;
}