/* Base styles for the promotions page */
.page-promotions {
  background-color: var(--background-color, #0A0A0A); /* Inherit from shared, fallback to specified */
  color: var(--text-main, #FFF6D6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Brand color for titles */
  line-height: 1.3;
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main, #FFF6D6);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small padding, body has main header offset */
  margin-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

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

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: #ffffff; /* Ensure contrast on image */
  max-width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-promotions__hero-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD36B; /* Highlight for H1 */
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* CTA Buttons */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__cta-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-promotions__cta-button--large {
  padding: 15px 35px;
  font-size: 20px;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

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

/* Intro Section Features Grid */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  color: var(--text-main, #FFF6D6);
}

.page-promotions__feature-item {
  background: var(--card-bg, #111111);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
}

.page-promotions__feature-title {
  font-size: 22px;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 16px;
  color: #FFF6D6;
}

/* Promotion Types Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
  display: flex;
  flex-direction: column;
}

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

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

.page-promotions__promo-title {
  font-size: 20px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-promotions__promo-text {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide List */
.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
}

.page-promotions__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
  background: var(--card-bg, #111111);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
}

.page-promotions__guide-step-number {
  font-size: 36px;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFD36B;
  border-radius: 50%;
}

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

.page-promotions__guide-title {
  font-size: 20px;
  color: #F2C14E;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__guide-text {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 15px;
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 900px;
  margin: 40px auto;
  color: var(--text-main, #FFF6D6);
}

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

.page-promotions__read-more-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: #F2C14E;
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__read-more-link:hover {
  color: #FFD36B;
}

/* Dark Sections for Contrast */
.page-promotions__dark-section {
  background: #1A1A1A; /* Slightly lighter dark for contrast */
  color: #FFF6D6;
}

.page-promotions__dark-section .page-promotions__section-title {
  color: #F2C14E;
}

.page-promotions__dark-section .page-promotions__section-description {
  color: #FFF6D6;
}

.page-promotions__text-contrast-fix {
  color: #FFF6D6 !important; /* Force light text on dark backgrounds */
}

.page-promotions__text-center {
  text-align: center;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #3A2A12);
  overflow: hidden;
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Question text color */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Subtle hover effect */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger toggle for visibility */
  font-weight: bold;
  color: #FFD36B; /* Highlight for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main, #FFF6D6);
}
.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-promotions__hero-section {
    padding-top: 0; /* Remove top padding for smaller screens if header is fixed */
  }

  .page-promotions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-promotions__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay for better readability on smaller screens */
    border-radius: 0;
    margin-top: -5px; /* Pull up slightly over image */
  }

  .page-promotions__hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-promotions__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers for images and content */
  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__promo-grid,
  .page-promotions__features-grid,
  .page-promotions__guide-list,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CTA Buttons */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller screens */
    font-size: 16px;
  }

  .page-promotions__cta-button--large {
    font-size: 18px;
    padding: 14px 20px;
  }

  /* Button groups if any */
  .page-promotions__button-group { /* Example class if multiple buttons exist */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Feature Grid */
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Promo Grid */
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__promo-content {
    padding: 20px;
  }
  .page-promotions__promo-title {
    font-size: 18px;
  }
  .page-promotions__promo-text {
    font-size: 15px;
  }

  /* Guide List */
  .page-promotions__guide-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-promotions__guide-step-number {
    margin-bottom: 15px;
  }
  .page-promotions__guide-title {
    font-size: 18px;
  }
  .page-promotions__guide-text {
    font-size: 15px;
  }

  /* Terms List */
  .page-promotions__terms-list {
    padding-left: 15px;
  }
  .page-promotions__terms-list li {
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-qtext {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
}