/* style/promotions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Container for consistent content width */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-promotions__hero-section,
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__how-to-join-section,
.page-promotions__review-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

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

/* Hero Section */
.page-promotions__hero-section {
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and text */
}

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

.page-promotions__hero-content {
  text-align: center;
  padding-top: 20px; /* Space from image */
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

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

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit color from section (dark/light bg) */
}

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

.page-promotions__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.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: #a30606;
  border-color: #a30606;
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #015c2d;
}

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

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

/* Promo 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: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have consistent height */
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-promotions__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

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

.page-promotions__step-card {
  background-color: #f8f8f8;
  color: #333333;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  border-left: 5px solid #017439;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.page-promotions__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #017439;
}

.page-promotions__step-description {
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* List styles */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__list-item {
  background-color: #f0f0f0;
  color: #333333;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-promotions__list-item::before {
  content: '✓';
  color: #017439;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

.page-promotions__cta-button {
  font-size: 1.2em;
  padding: 15px 35px;
  margin-top: 30px;
}

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-promotions__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Clamp for responsive H1 */
    margin-bottom: 15px;
  }

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

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

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

  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-join-section,
  .page-promotions__review-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px; /* Add padding to containers for mobile */
  }

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers for mobile */
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here as it's for the overall container */
  }

  /* Buttons responsive */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary,
  .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; /* Add padding to buttons themselves */
    padding-right: 15px;
    margin-left: 0 !important; /* Reset margins for full width */
    margin-right: 0 !important;
  }
  
  /* Button containers for mobile */
  .page-promotions__hero-content .page-promotions__btn-primary, /* Specific button in hero content */
  .page-promotions__promo-card .page-promotions__btn-secondary,
  .page-promotions__step-card .page-promotions__btn-tertiary,
  .page-promotions__cta-section .page-promotions__btn-primary {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

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

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

  .page-promotions__list-item {
    padding: 12px 15px;
    font-size: 0.9em;
  }
}