.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--page-background, #FFFFFF); /* Ensure consistency with shared body background */
}

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

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

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

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for main title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color for register/login type buttons */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-promotions__btn-primary:hover {
  background-color: #A00707;
  transform: translateY(-2px);
}

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

.page-promotions__subsection-title {
  font-size: 1.8em;
  color: inherit;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__introduction-section, .page-promotions__terms-section, .page-promotions__cta-section {
  padding: 60px 20px;
}

.page-promotions__types-section {
  padding: 60px 20px;
}

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

.page-promotions__card {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #017439;
  margin: 15px 10px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-promotions__guide-section {
  padding: 60px 20px;
}

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

.page-promotions__step-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

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

.page-promotions__faq-section {
  padding: 60px 20px;
}

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

.page-promotions__faq-item {
  background-color: #F8F8F8;
  border: 1px solid #E0E0E0;
  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;
  color: #017439;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #E0E0E0;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #555555;
  background-color: #F8F8F8;
}

/* Remove default details marker */
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-promotions__faq-item summary {
  list-style: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-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 {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-promotions__hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .page-promotions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

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

  .page-promotions__introduction-section, .page-promotions__terms-section, .page-promotions__cta-section, .page-promotions__types-section, .page-promotions__guide-section, .page-promotions__faq-section {
    padding: 40px 15px;
  }

  .page-promotions__grid, .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

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

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

  /* Mobile Image Responsive Adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile Video Responsive Adaptation (if any) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers mobile adaptation */
  .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;
  }
  
  /* Mobile Button Responsive Adaptation */
  .page-promotions__btn-primary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="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;
  }
  
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Content containers mobile adaptation */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}