/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --bg-dark-body: #1a1a2e; /* From shared.css body background */
  --bg-card-dark: rgba(255, 255, 255, 0.1);
  --bg-card-light: #ffffff;
  --login-color: #EA7C07;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

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

.page-promotions__section-title--white {
  color: var(--secondary-color);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-light); /* Default for dark sections */
}

.page-promotions__text-block--white {
  color: var(--secondary-color);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--secondary-color);
}

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

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

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.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: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: lighten(var(--primary-color), 40%);
  transform: translateY(-2px);
}

.page-promotions__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Section Backgrounds */
.page-promotions__dark-bg {
  background-color: var(--bg-dark-body);
  color: var(--secondary-color);
}

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

.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 20px;
}

.page-promotions__intro-section {
  padding: 60px 20px;
}

.page-promotions__intro-section .page-promotions__text-block {
  color: var(--text-dark);
}

/* Promotion Grid */
.page-promotions__promotion-grid {
  padding: 60px 20px;
}

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

.page-promotions__card {
  background-color: var(--bg-card-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.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;
  justify-content: space-between;
}

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

.page-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: auto; /* Push button to bottom */
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 20px;
}

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

.page-promotions__terms-section .page-promotions__text-block {
  color: var(--text-dark);
}

.page-promotions__terms-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

/* How-to-claim Section */
.page-promotions__how-to-claim {
  padding: 60px 20px;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: var(--bg-card-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons round */
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

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

.page-promotions__step-description {
  font-size: 1em;
  color: var(--secondary-color);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 20px;
}

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

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

.page-promotions__faq-item {
  background-color: var(--bg-card-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

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

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__final-cta .page-promotions__cta-button {
  margin-top: 30px;
}

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

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

  .page-promotions__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .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: 30px;
  }

  .page-promotions__text-block {
    font-size: 1em;
  }

  .page-promotions__cta-button, .page-promotions__card-button {
    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-button--large {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-promotions__card {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

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

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

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

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

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

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

  /* Ensure all images are responsive and do not overflow */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers holding images/videos/buttons are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promotion-grid,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__final-cta,
  .page-promotions__grid,
  .page-promotions__steps-grid,
  .page-promotions__faq-list,
  .page-promotions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

  .page-promotions__cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Color Contrast Adjustments for light-bg sections */
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__terms-list li,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-description,
.page-promotions__light-bg .page-promotions__faq-title,
.page-promotions__light-bg .page-promotions__faq-answer p {
  color: var(--text-dark);
}

/* Color Contrast Adjustments for dark-bg sections */
.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__hero-title,
.page-promotions__dark-bg .page-promotions__hero-description,
.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__step-item .page-promotions__step-title,
.page-promotions__step-item .page-promotions__step-description,
.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__text-block {
  color: var(--secondary-color);
}

/* Specific card text color in dark section */
.page-promotions__promotion-grid .page-promotions__card {
  background-color: var(--bg-card-light); /* White card on blue section */
  color: var(--text-dark);
}

.page-promotions__promotion-grid .page-promotions__card-title {
  color: var(--primary-color);
}

.page-promotions__promotion-grid .page-promotions__card-description {
  color: var(--text-dark);
}

.page-promotions__faq-item {
  background-color: var(--bg-card-light);
  color: var(--text-dark);
}
.page-promotions__faq-question {
  background-color: #f9f9f9;
}
.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}
.page-promotions__faq-title {
  color: var(--primary-color);
}
.page-promotions__faq-toggle {
  color: var(--primary-color);
}
.page-promotions__faq-answer p {
  color: var(--text-dark);
}