/* style/promotions.css */

/* Base Styles & Global Resets (scoped to page-promotions) */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

/* Dark background sections */
.page-promotions__dark-section {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

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

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-promotions__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

/* Benefits Section */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__benefit-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-promotions__benefit-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card-description {
  font-size: 1em;
  color: #555555;
}

/* How to Claim Section */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 800px;
}

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFFF00;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

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

.page-promotions__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-promotions__guide-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Terms Section */
.page-promotions__terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__term-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-promotions__term-description {
  font-size: 1em;
  color: #555555;
}

.page-promotions__terms-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Why Choose Section */
.page-promotions__reason-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 800px;
}

.page-promotions__reason-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFFF00;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1em;
}

.page-promotions__reason-item strong {
  color: #FFFF00;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 800px;
  margin: 50px auto;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.page-promotions__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item:last-child {
  border-bottom: none;
}

.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: #f5f5f5;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

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

.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: #555555;
}

.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: 0;
  padding-bottom: 10px; /* Add some space if there are multiple paragraphs */
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__cta-final-section .page-promotions__cta-button {
    margin-top: 30px;
}

.page-promotions__cta-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__dark-section, .page-promotions__light-bg {
    padding: 60px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image, .page-promotions__benefit-image, .page-promotions__guide-image, .page-promotions__terms-image, .page-promotions__why-choose-image, .page-promotions__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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; /* Ensure flex behavior */
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-promotions__benefits-grid, .page-promotions__terms-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__benefit-card, .page-promotions__term-item {
    padding: 20px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }
}