/* style/promo.css */
:root {
  --promo-primary-color: #F2C14E;
  --promo-secondary-color: #FFD36B;
  --promo-card-bg: #111111;
  --promo-bg-dark: #0A0A0A;
  --promo-text-light: #FFF6D6;
  --promo-border-color: #3A2A12;
  --promo-glow-color: #FFD36B;
  --promo-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --promo-button-text-dark: #111111;
}

.page-promo {
  background-color: var(--promo-bg-dark);
  color: var(--promo-text-light);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for content below header */
}

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

.page-promo__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  overflow: hidden;
}

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

.page-promo__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to slightly overlap the image for visual flow */
  background-color: rgba(10, 10, 10, 0.8);
  border-radius: 10px;
  z-index: 10;
  position: relative;
}

.page-promo__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--promo-text-light);
  margin-bottom: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--promo-text-light);
}

.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 5px;
}

.page-promo__btn-primary {
  background: var(--promo-button-gradient);
  color: var(--promo-button-text-dark); /* Dark text for contrast on gold gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background-color: transparent;
  color: var(--promo-primary-color);
  border: 2px solid var(--promo-primary-color);
}

.page-promo__btn-secondary:hover {
  background-color: var(--promo-primary-color);
  color: var(--promo-button-text-dark);
}

.page-promo__btn-link {
  background-color: transparent;
  color: var(--promo-primary-color);
  border: 1px solid var(--promo-primary-color);
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-promo__btn-link:hover {
  background-color: var(--promo-primary-color);
  color: var(--promo-button-text-dark);
}

.page-promo__section-title {
  font-size: 2.2em;
  color: var(--promo-text-light);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promo__section-description {
  font-size: 1.1em;
  color: var(--promo-text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__dark-bg {
  background-color: var(--promo-bg-dark);
  color: var(--promo-text-light);
  padding: 60px 0;
}

.page-promo__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--promo-text-light);
  padding: 60px 0;
}

.page-promo__why-choose-section .page-promo__section-title,
.page-promo__how-to-claim-section .page-promo__section-title,
.page-promo__cta-final-section .page-promo__section-title {
  color: var(--promo-text-light);
}

.page-promo__promo-types-section .page-promo__section-title,
.page-promo__featured-promotions-section .page-promo__section-title,
.page-promo__terms-conditions-section .page-promo__section-title,
.page-promo__faq-section .page-promo__section-title {
  color: var(--promo-text-light);
}

.page-promo__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-promo__feature-item {
  background-color: var(--promo-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--promo-border-color);
}

.page-promo__feature-title {
  font-size: 1.5em;
  color: var(--promo-primary-color);
  margin-bottom: 15px;
}

.page-promo__feature-text {
  color: var(--promo-text-light);
  font-size: 0.95em;
}

.page-promo__categories-grid,
.page-promo__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promo__category-card,
.page-promo__promo-card {
  background-color: var(--promo-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--promo-border-color);
  display: flex;
  flex-direction: column;
}

.page-promo__category-image,
.page-promo__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promo__category-card .page-promo__btn-secondary,
.page-promo__promo-card .page-promo__btn-primary {
  margin-top: auto; /* Push button to the bottom */
}

.page-promo__category-title,
.page-promo__promo-title {
  font-size: 1.4em;
  color: var(--promo-primary-color);
  margin-bottom: 10px;
}

.page-promo__category-text,
.page-promo__promo-description {
  color: var(--promo-text-light);
  font-size: 0.9em;
  margin-bottom: 20px;
}

.page-promo__category-card .page-promo__btn-secondary {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}

.page-promo__promo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promo__promo-card .page-promo__btn-primary {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}

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

.page-promo__step-item {
  background-color: var(--promo-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--promo-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__step-number {
  counter-increment: step-counter;
  font-size: 2.5em;
  font-weight: bold;
  color: var(--promo-secondary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  line-height: 1;
}

.page-promo__step-number::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 211, 107, 0.1);
  z-index: 0;
}

.page-promo__step-number span {
  position: relative;
  z-index: 1;
}

.page-promo__step-title {
  font-size: 1.3em;
  color: var(--promo-primary-color);
  margin-bottom: 10px;
}

.page-promo__step-text {
  color: var(--promo-text-light);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-promo__terms-list li {
  background-color: var(--promo-card-bg);
  border: 1px solid var(--promo-border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--promo-text-light);
  font-size: 0.95em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__terms-list li p {
  margin: 0;
  color: var(--promo-text-light);
}

.page-promo__terms-list li strong {
  color: var(--promo-primary-color);
}

.page-promo__read-more-text {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--promo-text-light);
}

.page-promo__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__faq-item {
  background-color: var(--promo-card-bg);
  border: 1px solid var(--promo-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--promo-primary-color);
  font-weight: bold;
  font-size: 1.1em;
}

.page-promo__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

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

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(45deg);
}

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--promo-text-light);
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 20px;
}

.page-promo__faq-answer p {
  margin: 0;
  padding-bottom: 5px; /* Adjust as needed */
  color: var(--promo-text-light);
}

.page-promo__btn-bottom-margin {
  margin-top: 40px;
  display: block;
  text-align: center;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-promo__cta-final-section .page-promo__btn-primary,
.page-promo__cta-final-section .page-promo__btn-secondary {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__hero-content {
    margin-top: -60px;
  }
  .page-promo__main-title {
    font-size: 2.5em;
  }
  .page-promo__section-title {
    font-size: 2em;
  }
  .page-promo__category-image, .page-promo__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promo {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-promo__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promo__hero-section {
    padding-bottom: 20px;
  }
  .page-promo__hero-content {
    margin-top: -40px;
    padding: 15px;
  }
  .page-promo__main-title {
    font-size: 1.8em;
    max-width: 95%;
  }
  .page-promo__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promo__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  .page-promo__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promo__cta-final-section .page-promo__btn-primary,
  .page-promo__cta-final-section .page-promo__btn-secondary {
    width: calc(100% - 30px) !important; /* Account for container padding */
  }
  .page-promo__category-card .page-promo__btn-secondary,
  .page-promo__promo-card .page-promo__btn-primary {
    width: calc(100% - 40px) !important; /* Account for card padding */
  }
  .page-promo__features-grid,
  .page-promo__categories-grid,
  .page-promo__promo-cards-grid,
  .page-promo__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promo__category-image,
  .page-promo__promo-image,
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promo__category-image, .page-promo__promo-image {
    height: 150px; /* Adjust height for smaller screens */
  }
  .page-promo__section,
  .page-promo__card,
  .page-promo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promo__why-choose-section,
  .page-promo__promo-types-section,
  .page-promo__how-to-claim-section,
  .page-promo__featured-promotions-section,
  .page-promo__terms-conditions-section,
  .page-promo__faq-section,
  .page-promo__cta-final-section {
    padding: 40px 0;
  }
  .page-promo__faq-question {
    font-size: 1em;
  }
}