/* 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 (#000) */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly lighter for descriptions */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast enforcement for sections */
.page-promotions__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-promotions__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with #000 body */
  color: #ffffff;
  padding: 80px 0;
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__promo-card {
  color: #ffffff; /* Ensure light text on this dark background */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-promotions__card-btn {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
}

.page-promotions__card-btn:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px;
  background-color: #017439; /* Fallback */
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Overlay to ensure text readability */
}

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset, 120px); /* Adjust for header offset */
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Promotions Grid */
.page-promotions__promos-grid {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Ensure text is light */
  min-height: 450px; /* Ensure cards have some height */
}

.page-promotions__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #ffffff;
}

.page-promotions__promo-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-promotions__promo-card h3 a:hover {
  text-decoration: underline;
  color: #FFFF00; /* Highlight on hover */
}

.page-promotions__card-description {
  font-size: 0.95em;
  margin: 0 20px 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-promotions__promo-card .page-promotions__card-btn {
  margin: 0 20px 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.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;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #C30808; /* Accent color */
  color: #FFFF00; /* Font color */
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

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

.page-promotions__step-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: #ffffff;
}

/* Video Section */
.page-promotions__video-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-promotions__video-cta {
  margin-top: 30px;
}

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

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  /* For details/summary, browser handles max-height. For JS, these are used: */
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed for content, for JS based accordion */
  padding: 0 20px 20px;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: #ffffff;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

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

@media (max-width: 768px) {
  .page-promotions__hero-section .page-promotions__container {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero */
  }

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

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

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

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

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

  .page-promotions__promo-card {
    min-height: auto;
  }

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

  .page-promotions__hero-cta,
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons touching edges */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-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;
  }

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive rules */
  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promos-grid,
  .page-promotions__how-to-claim,
  .page-promotions__video-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsive rules */
  .page-promotions video,
  .page-promotions__video {
    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-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }

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

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

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