/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f9fa;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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); /* Ensure space for fixed header */
  color: #ffffff;
  background-color: #007bff;
  overflow: hidden;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-promotions__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 900px;
  color: #f0f0f0;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  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;
}

.page-promotions__btn-primary {
  background-color: #ffc107;
  color: #000000;
  border: 2px solid #ffc107;
  margin: 10px;
}

.page-promotions__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #ffffff;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  margin: 10px;
}

.page-promotions__btn-secondary:hover {
  background-color: #007bff;
  color: #ffffff;
}

.page-promotions__cta-button {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* Section Backgrounds */
.page-promotions__dark-bg {
  background-color: #007bff;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__medium-bg {
  background-color: #ffc107;
  color: #333333;
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 20px;
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 80px 20px;
}

.page-promotions__types-section .page-promotions__section-title {
    color: #ffc107;
}

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

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

.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: 1.5em;
  margin-bottom: 15px;
  color: #007bff;
  font-weight: bold;
}

.page-promotions__card-content p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-promotions__card-content .page-promotions__btn-secondary {
  margin: 5px 0;
  width: fit-content; /* Allow buttons to take natural width */
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 20px;
}

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

.page-promotions__step-item {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 20px;
}

.page-promotions__terms-section .page-promotions__section-title {
    color: #333333;
}

.page-promotions__terms-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.page-promotions__terms-list strong {
  color: #007bff;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 20px;
}

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

.page-promotions__faq-item {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

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

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer .page-promotions__btn-secondary {
    margin-top: 10px;
}

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

.page-promotions__cta-section .page-promotions__section-title {
    color: #ffc107;
}

.page-promotions__cta-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.2em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 0.95em;
  }
  .page-promotions__grid,
  .page-promotions__steps {
    grid-template-columns: 1fr;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__step-title {
    font-size: 1.5em;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-promotions__faq-answer {
    padding: 10px 15px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-promotions__hero-section,
  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section,
  .page-promotions__container,
  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .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;
    margin-left: 0;
    margin-right: 0;
  }

  .page-promotions__card-content .page-promotions__btn-secondary {
    width: 100% !important;
  }

  .page-promotions__card-content {
    align-items: center;
    text-align: center;
  }
  .page-promotions__card-content p {
    text-align: center;
  }

  .page-promotions__card-content .page-promotions__btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__card-content .page-promotions__btn-secondary:not(:last-child) {
    margin-bottom: 10px;
  }

  .page-promotions__step-item .page-promotions__btn-primary,
  .page-promotions__step-item .page-promotions__btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__cta-section .page-promotions__cta-button {
    width: 100% !important;
  }
}