/* style/promotions.css */
:root {
  --primary-color: #0A2342;
  --secondary-color: #F2A900;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #0A2342;
  --border-light: #e0e0e0;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff; /* Body background is default white */
}

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

/* Fixed header padding */
.page-promotions__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a60 100%);
  color: var(--text-light);
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-promotions__hero-image {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-promotions__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-promotions__cta-button--primary:hover {
  background: #e09b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 25px;
  font-size: 1em;
  box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--light {
  background: var(--text-light);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--light:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__cta-buttons--center {
  justify-content: center;
}

/* General Section Styles */
.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-promotions__section-title--light {
  color: var(--secondary-color);
}

.page-promotions__section-subtitle {
  font-size: 1.2em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-subtitle--light {
  color: #e0e0e0;
}

/* Promotions Grid Section */
.page-promotions__types-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-image {
  width: 100%;
  max-width: 400px; /* Ensure image is not too small */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-promotions__promo-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__promo-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
}

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

.page-promotions__step-item {
  text-align: center;
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-promotions__step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid var(--secondary-color);
}

.page-promotions__step-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--text-light);
}

.page-promotions__terms-list {
  list-style-type: disc;
  margin-left: 25px;
  font-size: 1.05em;
  color: var(--text-dark);
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding-left: 20px;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
  background: linear-gradient(135deg, #1a3a60 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

/* General image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 100px; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-promotions__cta-button, .page-promotions__cta-button--primary, .page-promotions__cta-button--secondary, .page-promotions__cta-button--light {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__hero-image {
    max-width: 95%;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-promotions__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__types-section, .page-promotions__how-to-claim-section, .page-promotions__terms-section, .page-promotions__faq-section, .page-promotions__cta-bottom-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__promo-title {
    font-size: 1.5em;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__terms-list {
    font-size: 0.95em;
    margin-left: 15px;
    padding-left: 10px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-question h3 {
    font-size: 1em;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  /* Ensure all image containers are responsive */
  .page-promotions img,
  .page-promotions__hero-image,
  .page-promotions__promo-image,
  .page-promotions__step-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-container,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Universal image styles for all images in the page-promotions scope */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit for content images */
}

/* Prevent filter on images */
.page-promotions img {
  filter: none !important;
}