/* style/promotions.css */
.page-promotions {
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.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); /* Adjust for fixed header */
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-promotions__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login font color for prominence */
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Section Styling */
.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-promotions__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 60px 0;
}

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

.page-promotions__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__feature-item.page-promotions__card {
  background-color: #ffffff;
  color: #333333;
}

/* Featured Offers Section */
.page-promotions__featured-offers-section {
  padding: 60px 0;
}

.page-promotions__offer-category {
  margin-bottom: 60px;
}

.page-promotions__offer-category-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Yellow for highlight */
}

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

.page-promotions__offer-items--single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__offer-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__offer-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-promotions__offer-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__offer-heading {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439;
}

.page-promotions__offer-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* How to Join Section */
.page-promotions__how-to-join-section {
  padding: 60px 0;
}

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

.page-promotions__step-item {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

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

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
}

.page-promotions__terms-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1em;
}

.page-promotions__terms-content p {
  margin-bottom: 20px;
}

.page-promotions__terms-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

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

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

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

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

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

.page-promotions__faq-item.active .page-promotions__faq-question {
  background-color: #e0e0e0;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or rotate */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.6;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 20px 25px;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-promotions__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
}

.page-promotions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Red for Register/Login buttons */
  color: #FFFF00; /* Yellow for font */
  border-color: #C30808;
}

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

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
  margin-left: 15px;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #017439;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__offer-items {
    grid-template-columns: 1fr;
  }
}

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

  /* Hero Section */
  .page-promotions__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }

  /* General Sections */
  .page-promotions__light-bg,
  .page-promotions__dark-bg {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Features Grid */
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__feature-item,
  .page-promotions__step-item,
  .page-promotions__offer-card {
    padding: 20px;
  }
  .page-promotions__feature-title,
  .page-promotions__step-title {
    font-size: 1.3em;
  }

  /* Offer Cards */
  .page-promotions__offer-image {
    height: 200px;
  }
  .page-promotions__offer-heading {
    font-size: 1.4em;
  }

  /* Steps Grid */
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ */
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }

  /* CTA Section */
  .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__cta-description {
    font-size: 1em;
  }

  /* Buttons */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__btn-secondary {
    margin-top: 10px;
  }

  /* Mobile image and video responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__offer-card,
  .page-promotions__step-item,
  .page-promotions__faq-item,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__offer-items,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    gap: 15px;
  }

  .page-promotions__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}