/* style/promotions.css */

/* BEM Naming: .page-promotions__element-name */
/* Colors: --primary-color: #11A84E, --secondary-color: #22C768, --bg-color: #08160F, --card-bg: #11271B, --text-main: #F2FFF6, --text-secondary: #A7D9B8 */

.page-promotions {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__dark-bg {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: var(--text-dark, #333333);
}

.page-promotions__text-contrast-fix {
  color: var(--text-dark, #333333) !important; /* Ensure dark text on light background */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom for content */
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; /* Ensure it's in normal flow, not overlapping image */
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-promotions__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: var(--card-bg, #11271B);
  color: var(--gold-color, #F2C14E);
  border: 2px solid var(--primary-color, #11A84E);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color, #11A84E);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-promotions__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__highlight-promos {
  padding-bottom: 80px;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__claim-guide {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__step-item {
  text-align: center;
}

.page-promotions__step-icon {
  width: 100%;
  height: 200px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Optional: for round icons */
  overflow: hidden;
}

.page-promotions__step-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure image fits without cropping */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--deep-green, #0A4B2C); /* Dark text for light background */
}

.page-promotions__step-text {
  font-size: 1em;
  color: var(--text-dark-secondary, #555555); /* Dark text for light background */
  margin-bottom: 20px;
}

.page-promotions__terms {
  padding-bottom: 80px;
}

.page-promotions__terms-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-promotions__terms-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__terms-heading {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__terms-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-promotions__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-promotions__faq-item summary {
  list-style: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--deep-green, #0A4B2C); /* Dark text for light background */
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #e9e9e9;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #11A84E);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark-secondary, #555555); /* Dark text for light background */
  background-color: #ffffff;
}

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

.page-promotions__cta-final {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-promotions__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promotions__section-title, .page-promotions__cta-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px 15px;
  }

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

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-promotions__section-title, .page-promotions__cta-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-promotions__section-description, .page-promotions__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-promotions__card-image,
  .page-promotions__step-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__promo-card, 
  .page-promotions__step-item, 
  .page-promotions__terms-item, 
  .page-promotions__faq-item, 
  .page-promotions__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-promotions__cta-final {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.5em, 8vw, 2.2em);
  }
  .page-promotions__section-title, .page-promotions__cta-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
  .page-promotions__subtitle, .page-promotions__section-description, .page-promotions__cta-description {
    font-size: 0.9em;
  }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}