/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --login-button-color: #EA7C07;
  --dark-background: #000000;
  --light-background: #FFFFFF;
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(38, 169, 224, 0.7) 100%);
  color: var(--text-on-dark-bg);
  overflow: hidden;
  min-height: 500px;
}

.page-promotions__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-on-dark-bg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7); /* Subtle darkening for text readability */
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-promotions__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Background colors based on body background being dark */
.page-promotions__dark-bg {
  background-color: var(--dark-background);
  color: var(--text-on-dark-bg);
}

.page-promotions__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
  color: var(--text-on-dark-bg);
}

/* Intro Section */
.page-promotions__intro-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__intro-section .page-promotions__section-text {
  color: var(--text-on-dark-bg);
}

/* Types Section */
.page-promotions__types-section {
  padding-bottom: 60px;
}

.page-promotions__types-section .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-dark-bg);
  min-height: 450px; /* Ensure cards have similar height */
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* How to Claim Section */
.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-on-dark-bg);
}

.page-promotions__step-item strong {
  font-size: 1.2em;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

/* Terms Section */
.page-promotions__terms-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__list {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 30px;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  color: var(--text-on-dark-bg);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-on-dark-bg);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar on expand */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: var(--text-on-dark-bg);
}

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

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(45deg, var(--primary-color) 0%, #000000 100%);
  color: var(--text-on-dark-bg);
}

.page-promotions__cta-content {
  max-width: 900px;
}

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--text-on-dark-bg);
}

.page-promotions__cta-section .page-promotions__section-text {
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

.page-promotions__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-3px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.page-promotions__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions__inline-link:hover {
  color: #1e87b7;
  text-decoration: underline;
}

/* General image styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    min-height: 400px;
  }

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

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
    min-height: auto;
  }

  .page-promotions__card-image {
    height: auto;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-promotions__faq-question-title {
    font-size: 1.1em;
  }

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

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

  /* Mobile image adaptation */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__grid,
  .page-promotions__faq-item,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}