/* style/promotions.css */

:root {
  --page-promotions-primary-color: #26A9E0;
  --page-promotions-secondary-color: #FFFFFF;
  --page-promotions-login-color: #EA7C07;
  --page-promotions-dark-bg-text: #ffffff;
  --page-promotions-light-bg-text: #333333;
  --page-promotions-body-bg: #121212; /* From shared.css */
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-promotions-dark-bg-text); /* Default text color for dark body background */
  background-color: var(--page-promotions-body-bg);
}

.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%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-promotions__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-promotions-secondary-color);
  max-width: 900px;
  padding: 20px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-promotions-secondary-color);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-promotions-secondary-color);
}

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

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

.page-promotions__btn-primary {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-secondary-color);
  border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--page-promotions-primary-color), 10%);
  border-color: darken(var(--page-promotions-primary-color), 10%);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--page-promotions-secondary-color);
  border: 2px solid var(--page-promotions-secondary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-primary-color);
}

/* Sections */
.page-promotions__current-promotions,
.page-promotions__how-to-claim,
.page-promotions__terms-conditions,
.page-promotions__faq-section,
.page-promotions__why-choose-us,
.page-promotions__final-cta {
  padding: 80px 0;
}

.page-promotions__dark-bg {
  background-color: var(--page-promotions-body-bg);
  color: var(--page-promotions-dark-bg-text);
}

.page-promotions__light-bg {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-light-bg-text);
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from section background */
}

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

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-body-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-promotions-dark-bg-text);
}

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

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

.page-promotions__card-content {
  padding: 25px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-title a {
  color: var(--page-promotions-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: var(--page-promotions-dark-bg-text);
}

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #a0a0a0; /* Slightly lighter text for card description */
}

.page-promotions__card-link {
  color: var(--page-promotions-primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-promotions__card-link:hover {
  color: var(--page-promotions-dark-bg-text);
}

.page-promotions__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-promotions__card-link:hover .page-promotions__arrow {
  transform: translateX(5px);
}

/* How to Claim Steps */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-promotions__step-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--page-promotions-dark-bg-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-secondary-color);
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-promotions-secondary-color);
}

.page-promotions__step-text {
  font-size: 1em;
  color: #a0a0a0;
}

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

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  max-width: 800px;
}

.page-promotions__terms-list li {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-light-bg-text);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid var(--page-promotions-primary-color);
  border-radius: 5px;
  font-size: 1.05em;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-promotions-secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question-text {
  margin: 0;
  color: inherit;
}

.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); /* Plus to X */
}

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Why Choose Us */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__feature-item {
  background-color: var(--page-promotions-body-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-promotions-dark-bg-text);
}

.page-promotions__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-promotions-primary-color);
}

.page-promotions__feature-text {
  font-size: 1em;
  color: #a0a0a0;
}

/* Final CTA */
.page-promotions__final-cta {
  text-align: center;
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-secondary-color);
  padding: 100px 20px;
}

.page-promotions__final-cta .page-promotions__section-title {
  color: var(--page-promotions-secondary-color);
  font-size: 3em;
}

.page-promotions__final-cta .page-promotions__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-promotions__btn-lg {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: var(--page-promotions-login-color); /* Use login color for high visibility CTA */
  border-color: var(--page-promotions-login-color);
}

.page-promotions__btn-lg:hover {
  background-color: darken(var(--page-promotions-login-color), 10%);
  border-color: darken(var(--page-promotions-login-color), 10%);
}

/* Floating Buttons */
.page-promotions__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-promotions__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.page-promotions__floating-btn:hover {
  transform: translateY(-3px);
}

.page-promotions__floating-btn--register {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-secondary-color);
}

.page-promotions__floating-btn--login {
  background-color: var(--page-promotions-login-color);
  color: var(--page-promotions-secondary-color);
}

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

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

  .page-promotions__final-cta .page-promotions__section-title {
    font-size: 2.5em;
  }
}

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

  .page-promotions__hero-section {
    min-height: 450px;
  }

  .page-promotions__hero-content {
    padding: 15px;
  }

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

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-promotions__current-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__why-choose-us,
  .page-promotions__final-cta {
    padding: 60px 0;
  }

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

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

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__floating-buttons {
    flex-direction: row;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--page-promotions-body-bg);
    padding: 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    justify-content: space-around;
  }

  .page-promotions__floating-btn {
    flex: 1;
    margin: 0 5px;
    max-width: calc(50% - 10px);
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  /* Ensure all images are responsive in content areas */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
  }
}

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

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

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

  .page-promotions__floating-btn {
    padding: 8px 10px;
    font-size: 0.8em;
  }
}