/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* 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;
}

.page-promotions__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section */
}

.page-promotions__sub-section-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

/* 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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjust padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: 1;
}

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

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 2;
}

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

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

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

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
}

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

.page-promotions__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.page-promotions__promo-card .page-promotions__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-promotions__promo-card .page-promotions__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__promo-card .page-promotions__btn-primary {
  margin: 0 20px;
  width: calc(100% - 40px);
}

/* Details Section */
.page-promotions__details-section {
  padding: 80px 0;
}

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

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__feature-item .page-promotions__feature-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

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

/* How-to-claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
}

.page-promotions__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0;
}

.page-promotions__step-item {
  position: relative;
  padding: 20px 0 20px 60px;
  margin-bottom: 20px;
  border-left: 2px solid #017439;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -20px;
  top: 15px;
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-promotions__step-item strong {
  color: #017439;
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

.page-promotions__step-item p {
  color: #555555;
  margin: 0;
}

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

.page-promotions__cta-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-promotions__cta-buttons .page-promotions__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-promotions__cta-buttons .page-promotions__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-promotions__cta-buttons .page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

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

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

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

.page-promotions__faq-item {
  background-color: #f8f8f8; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text for light background */
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-item .page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-item .page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #017439;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−'; /* Change to minus when open (handled by JS for consistency) */
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0; /* Add border for separation */
  background-color: #ffffff;
}

.page-promotions__faq-answer p {
  margin: 0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 80px 0 40px;
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: calc(100% - 30px); /* Adjust for padding in container */
    margin: 0 15px;
    font-size: 1em;
    padding: 12px 20px;
  }

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

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

  .page-promotions__text-block {
    font-size: 0.95em;
  }

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

  .page-promotions__promo-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promo-card .page-promotions__btn-primary {
    width: calc(100% - 40px);
  }

  .page-promotions__step-item {
    padding: 15px 0 15px 45px;
  }

  .page-promotions__step-item::before {
    left: -15px;
    top: 10px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-promotions__step-item strong {
    font-size: 1.1em;
  }

  /* Force responsive images, videos, and containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__details-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__cta-section,
  .page-promotions__faq-section,
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__faq-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 */
  }

  .page-promotions__promo-card .page-promotions__btn-primary,
  .page-promotions__cta-buttons .page-promotions__btn-primary,
  .page-promotions__cta-buttons .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-promotions__promo-card .page-promotions__card-title,
  .page-promotions__promo-card .page-promotions__card-description {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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