/* style/promotions.css */
:root {
  --mu9-primary-color: #26A9E0;
  --mu9-secondary-color: #FFFFFF;
  --mu9-login-color: #EA7C07;
  --mu9-background-color: #FFFFFF; /* This is for specific sections, body background is from shared.css */
  --mu9-text-dark: #000000;
  --mu9-text-light: #ffffff;
}

/* Base styles for the page content, ensuring text contrast on dark body background */
.page-promotions {
  color: var(--mu9-text-light); /* Text color for body's dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: var(--mu9-text-light);
  background: #1a1a2e; /* Match body background for seamless blend */
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--mu9-secondary-color);
  line-height: 1.2;
}

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

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

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

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

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

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

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

/* Intro Section */
.page-promotions__intro-section {
  background: #1a1a2e; /* Dark background to match body */
  color: var(--mu9-text-light);
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--mu9-primary-color);
  font-weight: bold;
}

.page-promotions__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-promotions__highlight {
  color: var(--mu9-primary-color);
  font-weight: bold;
}

.page-promotions__text-link {
  color: var(--mu9-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__text-link:hover {
  text-decoration: underline;
}

/* Promotions Grid Section */
.page-promotions__promotions-grid {
  background: var(--mu9-background-color); /* White background for cards */
  color: var(--mu9-text-dark);
}

.page-promotions__promotions-grid .page-promotions__section-title {
  color: var(--mu9-primary-color);
}

.page-promotions__promotions-grid .page-promotions__paragraph {
  color: var(--mu9-text-dark);
}

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

.page-promotions__card {
  background: var(--mu9-secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-promotions__card-description {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__card .page-promotions__btn-primary {
  width: auto;
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Terms Section */
.page-promotions__terms-section {
  background: #1a1a2e;
  color: var(--mu9-text-light);
}

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

.page-promotions__list {
  list-style: disc inside;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  padding-left: 20px;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  background: #26A9E0; /* Brand primary color background */
  color: var(--mu9-text-light);
}

.page-promotions__how-to-claim-section .page-promotions__section-title {
  color: var(--mu9-text-light);
}

.page-promotions__how-to-claim-section .page-promotions__paragraph {
  color: var(--mu9-text-light);
}

.page-promotions__ordered-list {
  list-style: decimal inside;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  padding-left: 20px;
}

.page-promotions__ordered-list strong {
  color: var(--mu9-secondary-color);
}

/* FAQ Section */
.page-promotions__faq-section {
  background: var(--mu9-background-color);
  color: var(--mu9-text-dark);
}

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

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-promotions__faq-item details {
  width: 100%;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: bold;
  color: var(--mu9-primary-color);
  font-size: 1.1em;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  background: var(--mu9-secondary-color);
  color: #333;
  font-size: 1em;
  border-top: 1px solid #e0e0e0;
}

.page-promotions__faq-answer p {
  margin: 0;
  text-align: justify;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  background: #1a1a2e;
  color: var(--mu9-text-light);
  padding-bottom: 80px;
}

.page-promotions__final-cta-section .page-promotions__section-title {
  color: var(--mu9-primary-color);
}

.page-promotions__final-cta-section .page-promotions__paragraph {
  color: var(--mu9-text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: auto;
  }

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

  .page-promotions__paragraph,
  .page-promotions__list-item,
  .page-promotions__ordered-list li {
    font-size: 1em;
    text-align: left;
  }

  .page-promotions__list,
  .page-promotions__ordered-list {
    padding-left: 0;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Mobile image, video, container overrides */
  .page-promotions img {
    max-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__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}