/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --background-color-body: #1a1a2e; /* From shared.css, dark */
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-register-login-text: #FFFF00;
}

.page-promotions {
  color: var(--text-color-dark-bg); /* Default text color for the page, assuming dark body bg */
  background-color: var(--background-color-body);
}

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

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

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-promotions__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg); /* Default for dark sections */
}

.page-promotions__section-title--light {
  color: var(--text-color-dark-bg);
}

.page-promotions__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default for dark sections */
}

.page-promotions__section-intro--light {
  color: var(--text-color-dark-bg);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 100px 0; /* Adjusted for header offset */
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), #004d2b);
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-promotions__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-dark-bg);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-color-dark-bg);
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-register-login-text);
  border: 2px solid var(--button-register-bg);
}

.page-promotions__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--text-color-dark-bg);
  border: 2px solid var(--text-color-dark-bg);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--text-color-dark-bg);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Promo 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-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

.page-promotions__card-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-promotions__card-list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-promotions__card-list li {
  margin-bottom: 5px;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-small:hover {
  background-color: #004d2b;
  border-color: #004d2b;
  color: var(--text-color-dark-bg);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: #004d2b;
  color: var(--text-color-dark-bg);
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--text-color-dark-bg);
}

.page-promotions__how-to-claim .page-promotions__section-intro {
  color: var(--text-color-dark-bg);
}

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

.page-promotions__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-promotions__step-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--button-register-bg);
  color: var(--button-register-login-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-promotions__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-promotions__step-item p {
  line-height: 1.6;
  color: var(--text-color-dark-bg);
}

.page-promotions__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-promotions__terms-conditions .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__terms-conditions .page-promotions__section-intro {
  color: var(--text-color-light-bg);
}

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

.page-promotions__info-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

.page-promotions__info-card p {
  line-height: 1.6;
  color: var(--text-color-light-bg);
}

.page-promotions__image-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #004d2b;
  color: var(--text-color-dark-bg);
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--text-color-dark-bg);
}

.page-promotions__faq-section .page-promotions__section-intro {
  color: var(--text-color-dark-bg);
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--text-color-dark-bg);
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-color-dark-bg);
}

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

.page-promotions__faq-answer p {
  line-height: 1.6;
}

/* Why Choose Section */
.page-promotions__why-choose {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-promotions__why-choose .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__why-choose .page-promotions__section-intro {
  color: var(--text-color-light-bg);
}

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

.page-promotions__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

.page-promotions__feature-card p {
  line-height: 1.6;
  color: var(--text-color-light-bg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-section .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__hero-content {
    max-width: 100%;
  }

  .page-promotions__hero-image-wrapper {
    justify-content: center;
  }

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

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

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

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__section-intro {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Fixed header spacing for mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Only if shared doesn't set it on body */
  }

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

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

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

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-large,
  .page-promotions__btn-small,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__info-card,
  .page-promotions__feature-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override padding for specific elements if needed, example for cards */
  .page-promotions__promo-card, .page-promotions__info-card, .page-promotions__feature-card {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__promo-card .page-promotions__card-content,
  .page-promotions__info-card,
  .page-promotions__feature-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding: 20px;
  }

  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

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