/* style/promotions.css */
.page-promotions {
  color: var(--black-color); /* Default text color for light backgrounds, overridden by specific sections */
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color */
}

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

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff; /* Explicitly white for contrast */
}

.page-promotions__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions__section {
  padding: 60px 20px;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

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

.page-promotions__card,
.page-promotions__step-item,
.page-promotions__benefit-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  overflow: hidden;
}

.page-promotions__card:hover,
.page-promotions__step-item:hover,
.page-promotions__benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image,
.page-promotions__step-image,
.page-promotions__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* Ensure images are not filtered */
  filter: none;
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
  margin-top: auto; /* Push button to bottom */
}

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

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

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

.page-promotions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-promotions__terms-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  color: #333333;
}

.page-promotions__terms-heading {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__terms-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-promotions__section-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: inherit;
}

.page-promotions__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__text-link:hover {
  color: #1e87c0;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #eaf7fc; /* Lighter shade of brand color */
  border-bottom: 1px solid #d0e8f2;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-heading {
  font-size: 1.2em;
  margin: 0;
  color: #26A9E0;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

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

.page-promotions__faq-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-promotions__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-promotions__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 0;
}

.page-promotions__cta-section .page-promotions__container {
  position: relative;
  z-index: 1;
}

.page-promotions__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
  }
  .page-promotions__cards-grid,
  .page-promotions__steps-grid,
  .page-promotions__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__benefit-item {
    padding: 20px;
  }
  .page-promotions__card-image,
  .page-promotions__step-image,
  .page-promotions__benefit-image {
    height: 180px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-promotions__terms-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-promotions__terms-item {
    padding: 20px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-heading {
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }
  .page-promotions__cta-section {
    padding: 60px 15px;
  }
  .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__cta-description {
    font-size: 1em;
  }

  /* Mobile specific image handling to prevent overflow */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .page-promotions__card-image,
  .page-promotions__step-image,
  .page-promotions__benefit-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__cta-title {
    font-size: 1.6em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.95em;
  }
}

/* Ensure content area images are not too small */
.page-promotions__card-image,
.page-promotions__step-image,
.page-promotions__benefit-image {
  min-width: 200px;
  min-height: 200px;
}