/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-promotions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Slightly transparent to let background color show */
}

/* General Section Styling */
.page-promotions__why-choose,
.page-promotions__promo-types,
.page-promotions__how-to-claim,
.page-promotions__terms-conditions,
.page-promotions__faq,
.page-promotions__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 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;
  margin: 10px;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f8ff;
  border-color: #1a8ad6;
  color: #1a8ad6;
}

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

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

.page-promotions__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-promotions__feature-item h3 {
  color: #26A9E0;
  font-size: 1.5em;
  margin-bottom: 15px;
}

/* Promo Cards Grid */
.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__promo-card .page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #FFFFFF;
  margin-top: 20px;
}

.page-promotions__promo-card .page-promotions__btn-secondary:hover {
  background-color: #f0f8ff;
  border-color: #1a8ad6;
  color: #1a8ad6;
}

.page-promotions__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-promotions__card-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  flex-grow: 1;
}

/* How to Claim Steps */
.page-promotions__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-promotions__step-item {
  background-color: #f8f8f8;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-promotions__step-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

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

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

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

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

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

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

.page-promotions__faq-answer {
  padding: 20px;
  background-color: #fdfdfd;
  border-top: 1px solid #eee;
  font-size: 1em;
  color: #555555;
}

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 60px 20px;
    min-height: 400px;
  }

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

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-promotions__step-item {
    padding-left: 60px;
  }

  .page-promotions__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
  }

  .page-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 150px; /* Adjust min height for mobile */
  }

  /* Ensure all content containers are responsive */
  .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;
  }

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

/* Ensure images don't use filter property */
.page-promotions img {
  filter: none; /* Explicitly remove any filter */
}

/* CSS for FAQ toggle */
.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−"; /* Change to minus when open */
  transform: rotate(0deg); /* Reset rotation */
}

.page-promotions__faq-item:not([open]) .page-promotions__faq-toggle {
  content: "+"; /* Change to plus when closed */
}