/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Body background color from shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  overflow: hidden; /* Prevent image overflow */
}

.page-promotions__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-promotions__intro-description a {
  color: #FFFF00; /* Yellow for links in intro for visibility */
  text-decoration: underline;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__btn-register,
.page-promotions__btn-login,
.page-promotions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

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

.page-promotions__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
  border: 2px solid #C30808;
}

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

.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 allow text to stand out */
}

/* Content Sections */
.page-promotions__content-section,
.page-promotions__guide-section,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

.page-promotions__offers-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for these sections */
  color: #ffffff; /* Light text for dark background */
}

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

.page-promotions__content-section p,
.page-promotions__guide-section p,
.page-promotions__faq-section p {
  margin-bottom: 1em;
  color: #333333; /* Ensure dark text on light background */
}

.page-promotions__content-section a,
.page-promotions__guide-section a,
.page-promotions__faq-section a {
  color: #017439; /* Brand primary color for links on light background */
  text-decoration: underline;
}

.page-promotions__offers-section p,
.page-promotions__terms-section p,
.page-promotions__cta-section p {
  margin-bottom: 1em;
  color: #f0f0f0; /* Ensure light text on dark background */
}

.page-promotions__offers-section a,
.page-promotions__terms-section a,
.page-promotions__cta-section a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

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

.page-promotions__step-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

/* Terms and Conditions List */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  color: #f0f0f0; /* Light text for dark background */
}

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

.page-promotions__terms-list strong {
  color: #FFFF00; /* Highlight important terms */
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker card on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Light text for FAQ items */
}

.page-promotions__faq-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for question area */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow for toggle icon */
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Light text for answer */
}

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

.page-promotions__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0; /* Light text for answer paragraph */
}

.page-promotions__faq-answer a {
  color: #FFFF00; /* Yellow for links in FAQ answers */
  text-decoration: underline;
}

/* CTA Section */
.page-promotions__cta-section {
  text-align: center;
  background-color: #017439; /* Brand primary color for CTA background */
  color: #ffffff;
  padding: 80px 0;
}

.page-promotions__cta-flex-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.page-promotions__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-promotions__cta-text a {
  color: #FFFF00; /* Yellow for links in CTA text */
  text-decoration: underline;
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

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

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

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

  .page-promotions__btn-register,
  .page-promotions__btn-login,
  .page-promotions__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__content-section,
  .page-promotions__offers-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

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

  .page-promotions__step-item {
    padding: 20px;
  }

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

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

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

  .page-promotions__cta-title {
    font-size: 2em;
  }

  .page-promotions__cta-text {
    font-size: 1em;
  }

  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
  }
}

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

/* No CSS filters for images */
.page-promotions img {
  filter: none;
}