/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --red-cta: #C30808;
  --yellow-text: #FFFF00;
}

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

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

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

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--dark-bg-color);
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-content {
  z-index: 1;
  max-width: 900px;
}

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

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

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

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

.page-promotions__btn-primary {
  background-color: var(--red-cta);
  color: var(--yellow-text);
  border: 2px solid var(--red-cta);
}

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

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

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

.page-promotions__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-promotions__hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 1;
  box-sizing: border-box;
}

.page-promotions__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* Promotions Grid Section */
.page-promotions__promotions-grid {
  background-color: var(--secondary-color); /* Light background for contrast */
  padding: 80px 0;
  color: var(--dark-text-color);
}

.page-promotions__promotions-grid .page-promotions__section-title,
.page-promotions__promotions-grid .page-promotions__section-description {
  color: var(--dark-text-color);
}

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

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

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  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;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--primary-color);
  padding: 80px 0;
  color: var(--light-text-color);
}

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

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions__step-number {
  font-size: 3em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.page-promotions__step-title {
  font-size: 1.8em;
  color: var(--yellow-text);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-promotions__step-description {
  font-size: 1em;
  color: var(--light-text-color);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.page-promotions__step-description a {
  color: var(--yellow-text);
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: var(--light-text-color);
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
  color: var(--dark-text-color);
}

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

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

.page-promotions__faq-item {
  background-color: var(--light-text-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--dark-text-color);
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
  margin: 0;
  color: var(--dark-text-color);
  font-size: 1.2em;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

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

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

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

/* CTA Section */
.page-promotions__cta-section {
  background-color: var(--dark-bg-color);
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--light-text-color);
}

.page-promotions__cta-section .page-promotions__section-description {
  color: var(--light-text-color);
  margin-bottom: 40px;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
  }
  
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__hero-video-wrapper {
    padding-bottom: 75%; /* 4:3 aspect ratio for smaller screens */
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .page-promotions__promotions-grid,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }

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

  .page-promotions__section-description {
    font-size: 0.95em;
  }

  .page-promotions__grid-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .page-promotions__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .page-promotions__faq-list {
    padding: 0 15px;
  }

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

  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }

  .page-promotions__faq-toggle {
    font-size: 1.3em;
  }

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

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-promotions__video-section, .page-promotions__video-container, .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__hero-description {
    font-size: 0.9em;
  }
}