/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #333333;
  --hover-effect: #a07a00;
}

.page-promotions {
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if body background is not inherited */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

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

/* 🚨 Desktop Video Section Styles (Must strictly comply) */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 Must add desktop padding-top to ensure content is not covered by fixed navigation bar */
  padding-top: 10px; /* Desktop: Adjust based on actual navigation bar height */
  background: linear-gradient(135deg, var(--secondary-color), var(--bg-dark));
}

.page-promotions__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🚨 Video click link styles (Must strictly comply) */
.page-promotions__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to prevent layout shifts (CLS) */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click events */
}

/* 🚨 Video click hint overlay styles (Optional, enhances user experience) */
.page-promotions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-promotions__video-link:hover .page-promotions__video-overlay {
  opacity: 1;
}

.page-promotions__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(var(--primary-color-rgb, 255, 215, 0), 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Play Now button styles (Must strictly comply, positioned below the video in the center) */
.page-promotions__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-promotions__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark); /* Ensure good contrast with primary color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-promotions__play-now-button:hover {
  background: var(--hover-effect);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-promotions__hero-content,
.page-promotions__promotions-list,
.page-promotions__how-to-claim,
.page-promotions__general-terms,
.page-promotions__why-choose,
.page-promotions__faq-section,
.page-promotions__brand-intro,
.page-promotions__blog-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__hero-content {
  padding-top: 120px; /* Adjust for fixed header */
  text-align: center;
  background-color: var(--bg-dark);
}

.page-promotions__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-dark); /* Ensure contrast */
}

.page-promotions__cta-button--primary:hover {
  background-color: var(--hover-effect);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-promotions__cta-button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-subtitle {
  font-size: 1.2em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 50px;
}

/* Promotions List */
.page-promotions__promotions-list {
  background-color: #1a1a1a;
}

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

.page-promotions__promo-card {
  background-color: var(--bg-light-card);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--primary-color-rgb, 255, 215, 0), 0.3);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 25px;
  min-height: 80px; /* Ensure consistent card height */
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-button:hover {
  background-color: #6a0000;
}

/* How to Claim */
.page-promotions__how-to-claim {
  background-color: var(--bg-dark);
}

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

.page-promotions__step-item {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-light-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* General Terms */
.page-promotions__general-terms {
  background-color: #1a1a1a;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions__terms-list li {
  background-color: var(--bg-light-card);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  font-size: 1em;
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Why Choose */
.page-promotions__why-choose {
  background-color: var(--bg-dark);
}

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

.page-promotions__feature-item {
  text-align: center;
  padding: 25px;
  background-color: var(--bg-light-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--secondary-color-rgb, 139, 0, 0), 0.3);
}

.page-promotions__feature-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #1a1a1a;
}

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

/* FAQ container styles */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and a sufficiently large max-height to ensure it expands */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to accommodate any content */
  padding: 20px !important;
  opacity: 1;
  background: var(--bg-light-card);
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}

/* Question styles */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(var(--primary-color-rgb, 255, 215, 0), 0.5);
}

.page-promotions__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title styles */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: var(--primary-color);
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* Brand Intro */
.page-promotions__brand-intro {
  background-color: var(--bg-dark);
}

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

.page-promotions__brand-item {
  padding: 25px;
  background-color: var(--bg-light-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(var(--primary-color-rgb, 255, 215, 0), 0.3);
}

.page-promotions__brand-subtitle {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions__brand-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Blog Section */
.page-promotions__blog-section {
  background-color: #1a1a1a;
  border-bottom: none;
}

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

.page-promotions__blog-item {
  background-color: var(--bg-light-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-promotions__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-promotions__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  padding: 0 20px;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent title height */
}

.page-promotions__blog-item-excerpt {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent excerpt height */
}

.page-promotions__blog-item-date {
  font-size: 0.8em;
  color: #aaa;
  padding: 0 20px;
  display: block;
}

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

/* 🚨 Mobile Responsive Design (Must strictly comply) */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
    line-height: 1.5;
  }

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

  /* 🚨 Mobile video section styles (Must strictly comply) */
  .page-promotions__video-section {
    /* 🚨 Mobile must reset padding-top, overriding desktop styles */
    padding-top: 10px !important; /* Mobile: Adjust based on mobile navigation bar height */
    padding-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
    /* 🚨 Mobile must ensure it does not overflow container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-promotions__video-container {
    /* 🚨 Mobile must ensure it does not overflow container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* 🚨 Video link mobile adaptation (Must strictly comply) */
  .page-promotions__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__video-wrapper {
    /* 🚨 Mobile must ensure it does not overflow container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-promotions__video {
    /* 🚨 Mobile must ensure video does not overflow container */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain on mobile to ensure full video display and no overflow */
  }
  
  /* 🚨 Play Now button mobile responsive adaptation (Must strictly comply) */
  .page-promotions__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-promotions__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* 🚨 Video click hint overlay mobile adaptation */
  .page-promotions__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-promotions__hero-content,
  .page-promotions__promotions-list,
  .page-promotions__how-to-claim,
  .page-promotions__general-terms,
  .page-promotions__why-choose,
  .page-promotions__faq-section,
  .page-promotions__brand-intro,
  .page-promotions__blog-section {
    padding: 40px 0;
  }

  .page-promotions__hero-content {
    padding-top: 100px; /* Adjust for mobile fixed header */
  }

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

  .page-promotions__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  /* 🚨 Mobile button responsive adaptation (Must strictly comply) */
  .page-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  
  .page-promotions__cta-buttons--center {
    padding: 0 15px;
  }

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

  .page-promotions__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid,
  .page-promotions__brand-content,
  .page-promotions__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__brand-item,
  .page-promotions__blog-item {
    padding: 20px;
  }

  .page-promotions__card-description {
    min-height: auto;
  }

  .page-promotions__terms-list li {
    font-size: 0.9em;
  }

  /* FAQ specific mobile styles */
  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__blog-image {
    height: 180px;
  }

  .page-promotions__blog-item-title {
    font-size: 1.1em;
    min-height: auto;
  }

  .page-promotions__blog-item-excerpt {
    min-height: auto;
  }
  
  /* 🚨 General image responsive adaptation (Must strictly comply) */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* 🚨 General container responsive adaptation (Must strictly comply) */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__brand-item,
  .page-promotions__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Override for specific elements if they have their own padding */
  .page-promotions__blog-item-title,
  .page-promotions__blog-item-excerpt,
  .page-promotions__blog-item-date {
    padding-left: 15px;
    padding-right: 15px;
  }
}