/* style/promotions.css */

/* Base Styles for the Promotions Page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-promotions__dark-bg {
  background-color: #1A202C; /* Auxiliary color for sections */
  color: #ffffff;
}

.page-promotions__light-text-on-dark-bg {
  color: #ffffff; /* Ensure light text on dark background */
}

/* Headings */
.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
  color: #FFD700; /* Gold for headings */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions h1 {
  font-size: 3.2em;
  text-align: center;
}

.page-promotions h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
}

.page-promotions h3 {
  font-size: 1.8em;
  margin-top: 30px;
}

.page-promotions__text-link {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  border-bottom: 1px solid #FFD700;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-promotions__text-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

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

/* Primary Button: Gold background, Dark text (WCAG AA compliant) */
.page-promotions__btn-primary {
  background-color: #FFD700;
  color: #1A202C; /* Using auxiliary color for text to ensure WCAG AA contrast (9.87:1) */
  border: 2px solid #FFD700;
}

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

/* Secondary Button: Dark background, Gold text (WCAG AA compliant) */
.page-promotions__btn-secondary {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
  background-color: #000000;
  color: #FFD700;
  border-color: #FFD700;
}

/* Hero Section */
.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); /* Fixed header spacing */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-promotions__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-promotions__hero-description {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 30px;
}

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

.page-promotions__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-promotions__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability, not color change */
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Matching body background for consistency */
}

.page-promotions__overview-title {
  margin-bottom: 30px;
}

.page-promotions__overview-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 80px 0;
  background-color: #1A202C; /* Auxiliary color for sections */
}

.page-promotions__types-title {
  margin-bottom: 20px;
}

.page-promotions__types-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-promotions__promotion-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

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

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

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

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

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

.page-promotions__card-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-promotions__card-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-promotions__card-features li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__card-btn {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

/* How-to-Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-promotions__how-to-claim-title {
  margin-bottom: 20px;
}

.page-promotions__how-to-claim-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

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

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

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-promotions__terms-title {
  margin-bottom: 20px;
}

.page-promotions__terms-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  color: #ffffff;
}

.page-promotions__terms-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
}

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

.page-promotions__terms-outro {
  text-align: center;
  font-size: 1.1em;
  color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-promotions__faq-title {
  margin-bottom: 40px;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 15px;
  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;
  background-color: #1A202C;
  color: #FFD700;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1A202C;
}

.page-promotions__cta-final-title {
  margin-bottom: 20px;
}

.page-promotions__cta-final-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Responsive Styles --- */

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-promotions h1 {
    font-size: 2.5em;
  }

  .page-promotions h2 {
    font-size: 2em;
  }

  .page-promotions h3 {
    font-size: 1.5em;
  }

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

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

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

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

  .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;
    box-sizing: border-box !important;
  }

  .page-promotions__cta-final-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 50px 0;
  }

  .page-promotions__types-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .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 and padding-right should be handled by .page-promotions__container */
  }

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

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

  .page-promotions__terms-list li {
    padding: 15px;
  }
}

/* Desktop/Tablet specific adjustments */
@media (min-width: 769px) {
  .page-promotions__hero-section {
    min-height: 700px;
  }

  .page-promotions__video-wrapper {
    display: block;
  }
}