/* style/promotions.css */

/* --- General Styles --- */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text on dark body background */
  background-color: var(--background-color); /* #08160F */
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for mobile responsiveness */
  box-sizing: border-box;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Buttons --- */
.page-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main); /* #F2FFF6 */
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
  background-color: var(--card-bg); /* #11271B */
  color: var(--gold); /* #F2C14E */
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-promotions__btn-secondary:hover {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main);
  border-color: var(--gold);
}

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

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

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-promotions__main-title {
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Promo Grid --- */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 100%; /* Ensure grid doesn't overflow */
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--divider); /* #1E3A2A */
}

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

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

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

.page-promotions__promo-card-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-promotions__promo-card-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.page-promotions__list-icon {
  color: var(--main-color); /* #11A84E */
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.1em;
}

/* --- Terms and Conditions --- */
.page-promotions__terms-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
  color: var(--text-secondary);
}

.page-promotions__terms-content p {
  margin-bottom: 15px;
}

/* --- How to Claim Section --- */
.page-promotions__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 100%; /* Ensure grid doesn't overflow */
}

.page-promotions__step-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider); /* #1E3A2A */
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 15px;
  background-color: var(--deep-green); /* #0A4B2C */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--main-color);
}

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

.page-promotions__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to take up available space */
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
  padding: 0 15px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider); /* #1E3A2A */
  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.1em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green); /* #0A4B2C */
  user-select: none;
  list-style: none; /* For <summary> tag */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* For <summary> tag */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0; /* Hidden by default for JS version */
  overflow: hidden; /* Hidden by default for JS version */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> native behavior */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 1000px; /* Adjust as needed */
  padding-top: 15px;
}

/* For JS controlled active class */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Adjust as needed */
  padding-top: 15px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  content: "−";
}


/* --- CTA Section --- */
.page-promotions__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-promotions__cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  text-align: left;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: block; /* Ensure it behaves as a block element */
}

.page-promotions__cta-content {
  max-width: 500px;
  text-align: left;
}

.page-promotions__cta-title {
  font-size: 2.2em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }

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

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

  .page-promotions__cta-title {
    font-size: 1.8em;
  }

  .page-promotions__cta-container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__cta-content {
    text-align: center;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

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

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__main-title {
    font-size: 1.8em;
  }

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

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

  /* Image containers responsiveness */
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__promo-grid,
  .page-promotions__step-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-promotions__promo-card-image {
    height: 200px; /* Adjust height for mobile */
  }

  /* Button responsiveness */
  .page-promotions__btn,
  .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-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    display: block; /* Make buttons block level on mobile */
    margin-bottom: 15px; /* Add space between stacked buttons */
  }
  
  .page-promotions__hero-content .page-promotions__btn {
    margin-bottom: 0; /* No extra margin for hero CTA */
  }

  .page-promotions__cta-content {
    padding: 0 15px;
  }

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

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

  .page-promotions__step-card {
    padding: 20px;
  }
  .page-promotions__step-number {
    width: 60px;
    height: 60px;
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__main-title {
    font-size: 1.5em;
  }
  .page-promotions__hero-description,
  .page-promotions__section-description {
    font-size: 0.95em;
  }
  .page-promotions__promo-card-title {
    font-size: 1.2em;
  }
  .page-promotions__cta-title {
    font-size: 1.6em;
  }
}

/* Variable definitions for colors */
:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Contrast adjustments based on body background */
/* Body background is #08160F (dark), so main text is light (#F2FFF6) */
.page-promotions p,
.page-promotions li,
.page-promotions__terms-content,
.page-promotions__step-text {
  color: var(--text-secondary); /* A7D9B8 - Slightly less bright for paragraphs */
}

.page-promotions__main-title,
.page-promotions__section-title,
.page-promotions__promo-card-title,
.page-promotions__step-title,
.page-promotions__cta-title,
.page-promotions__faq-qtext {
  color: var(--text-main); /* F2FFF6 - Main titles for higher contrast */
}

.page-promotions__sub-title,
.page-promotions__step-number,
.page-promotions__faq-toggle {
  color: var(--gold); /* F2C14E - Accent color for highlights */
}

.page-promotions__btn-primary {
  color: var(--text-main); /* F2FFF6 - Button text */
}

.page-promotions__btn-secondary {
  color: var(--gold); /* F2C14E - Secondary button text */
}

/* Specific overrides for contrast safety */
.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__faq-item {
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* Ensure light text on dark card background */
}

.page-promotions__faq-question {
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-promotions__cta-section {
  background-color: var(--deep-green); /* #0A4B2C */
}