/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

/* Sections */
.page-promotions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

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

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFCC00; /* Accent color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #003366; /* Main brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFCC00; /* Accent color underline */
  margin: 15px auto 0;
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  padding: 60px 20px;
  background: #f8f8f8;
  color: #333333;
}

.page-promotions__featured-promotions-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
  padding: 60px 20px;
  background: #003366; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-promotions__featured-promotions-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-title {
  color: #FFCC00; /* Accent color for titles on dark background */
}

.page-promotions__featured-promotions-section .page-promotions__section-title::after,
.page-promotions__terms-section .page-promotions__section-title::after,
.page-promotions__cta-section .page-promotions__section-title::after {
  background-color: #ffffff;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-promotions__btn-primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  color: #001a33;
}

.page-promotions__btn-secondary {
  background: #003366;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-promotions__btn-secondary:hover {
  background: #FFCC00;
  color: #003366;
}

/* Promotions Grid */
.page-promotions__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__promotion-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.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-top: 0;
  margin-bottom: 15px;
  color: #003366;
}

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

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

.page-promotions__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

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

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

/* Video Section */
.page-promotions__video-wrapper {
  margin-top: 60px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-promotions__video-caption {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #555555;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__list-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  border-left: 5px solid #FFCC00;
}

.page-promotions__list-item strong {
  color: #FFCC00;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #f0f0f0;
  color: #003366;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-title {
  margin: 0;
  font-size: 1em;
  color: #003366;
}

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

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

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

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

/* CTA Section */
.page-promotions__cta-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions__cta-section .page-promotions__paragraph {
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

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

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

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

  .page-promotions__introduction-section,
  .page-promotions__featured-promotions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 15px;
  }

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

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

  .page-promotions__step-title {
    font-size: 1.2em;
  }

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

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

  /* Mobile specific image adaptation */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Content area images CSS dimensions lower bound */
  .page-promotions__card-image { /* Example of content area image */
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-promotions__hero-image {
    min-width: 100% !important; /* Ensure hero image is not too small */
    min-height: 200px !important;
  }

  /* Mobile specific video adaptation */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-wrapper {
    padding-top: 56.25% !important; /* Maintain aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile specific button adaptation */
  .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__hero-section .page-promotions__container {
    padding: 20px;
  }

  .page-promotions__cta-section .page-promotions__btn-primary {
    margin-top: 20px;
  }
  
  /* Ensure no horizontal scroll for content areas */
  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for video section on mobile */
  }
}

/* Color Contrast Fixes */
.page-promotions__dark-bg {
  color: #ffffff;
  background: #003366;
}

.page-promotions__light-bg {
  color: #333333;
  background: #f8f8f8;
}

/* Specific elements on dark background to ensure visibility */
.page-promotions__terms-list .page-promotions__list-item {
  border-left-color: #FFCC00;
}