/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color); /* Matches body background #FFFFFF */
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 40px;
  text-align: center;
}

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

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #26A9E0, #a0d9f4); /* Gradient background for hero */
  color: #ffffff; /* White text for dark/gradient background */
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-promotions__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__cta-button--primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__cta-button--primary:hover {
  background: #d66e06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__cta-button--secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-promotions__center-cta {
  text-align: center;
  margin-top: 40px;
}

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

/* Overview Section */
.page-promotions__overview-section {
  background-color: #f9f9f9;
}
.page-promotions__overview-section .page-promotions__section-title {
  color: #26A9E0;
}

/* Promotion Types Section */
.page-promotions__promotion-types {
  background-color: #ffffff;
}

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

.page-promotions__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits card */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: #1e87b7;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: #f0f8ff;
}

.page-promotions__step-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
}

.page-promotions__step-number {
  background: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 20px;
}

.page-promotions__step-content {
  flex-grow: 1;
}

.page-promotions__step-title {
  font-size: 24px;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-content p {
  font-size: 17px;
  color: #555555;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  background-color: #ffffff;
}

.page-promotions__terms-list {
  list-style: disc;
  text-align: left;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding-left: 25px;
  font-size: 17px;
  color: #555555;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #f9f9f9;
}

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

/* FAQ container styles */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  color: #333333;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question styles */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title styles */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #EA7C07; /* Login color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Conclusion CTA Section */
.page-promotions__conclusion-cta {
  background: #26A9E0; /* Primary color background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-promotions__conclusion-cta .page-promotions__section-title {
  color: #ffffff;
  font-size: 40px;
}

.page-promotions__conclusion-cta .page-promotions__text-block {
  color: #f0f0f0;
  font-size: 20px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 42px;
  }
  .page-promotions__hero-description {
    font-size: 20px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__step-title {
    font-size: 22px;
  }
  .page-promotions__conclusion-cta .page-promotions__section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Mobile general styles */
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

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

  .page-promotions__text-block {
    font-size: 16px;
  }

  /* Hero Section Mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }
  .page-promotions__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-promotions__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Image responsive for mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__card-grid,
  .page-promotions__hero-container,
  .page-promotions__hero-cta-group,
  .page-promotions__button-group,
  .page-promotions__faq-list,
  .page-promotions__how-to-claim .page-promotions__container,
  .page-promotions__terms-conditions .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  .page-promotions__card-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__card-content {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 18px;
  }
  .page-promotions__card-description {
    font-size: 15px;
  }
  .page-promotions__card-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* How to Claim Mobile */
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__step-content p {
    font-size: 16px;
  }

  /* Terms List Mobile */
  .page-promotions__terms-list {
    font-size: 16px;
    padding-left: 20px;
  }

  /* FAQ Mobile */
  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 22px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Conclusion CTA Mobile */
  .page-promotions__conclusion-cta .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__conclusion-cta .page-promotions__text-block {
    font-size: 16px;
  }
}