/* style/promotions.css */

/* --- Base Styles & Layout --- */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Assuming dark body background from shared.css */
  background-color: var(--background-color); /* From custom colors, should be #08160F */
}

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

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

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

.page-promotions__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* H1 specific style - no fixed large font-size */
.page-promotions__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--gold); /* Using gold for prominence */
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
}

/* Paragraphs */
.page-promotions p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5em;
}

/* Links within content */
.page-promotions a {
  color: var(--glow); /* Using Glow for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--deep-green); /* Fallback background */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image visibility */
  max-height: 700px;
}

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

.page-promotions__intro-text {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  text-align: center;
}

/* --- CTA Buttons --- */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 180px;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--text-main); /* Text Main */
  border: 2px solid var(--border); /* Border color */
}

.page-promotions__btn-secondary:hover {
  background-color: var(--border);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.2);
}

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

.page-promotions__card {
  background-color: var(--card-b-g); /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  border: 1px solid var(--border);
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-main);
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-promotions__card p {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card-button {
  margin: 20px;
  width: calc(100% - 40px); /* Adjust for padding */
}

/* --- Steps List --- */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__steps-list li {
  background-color: var(--card-b-g);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 15px;
}

/* --- Terms & Conditions --- */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  color: var(--text-secondary);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Light hover effect */
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow);
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  /* For details, browser handles open/close */
}

/* For JS-driven FAQ (if not using <details>) */
.page-promotions__faq-item .page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
  padding-bottom: 20px;
}

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


/* --- Final CTA Section --- */
.page-promotions__final-cta {
  background-color: var(--deep-green);
  padding: 80px 0;
}

.page-promotions__final-cta .page-promotions__section-title {
  color: var(--gold);
}

.page-promotions__final-cta p {
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 40px auto;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2rem;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-promotions__intro-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-promotions__intro-text {
    font-size: 1rem;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  /* Image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-content {
    padding: 30px 15px 40px;
  }

  /* Button responsiveness */
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

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

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__steps-list li {
    padding: 20px;
  }

  .page-promotions__step-title {
    font-size: 1.5rem;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
}

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

/* Ensure text color for body content is appropriate for dark background */
.page-promotions {
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background-color);
}
.page-promotions p, .page-promotions li {
  color: var(--text-secondary);
}
.page-promotions__section-title, .page-promotions__card-title, .page-promotions__step-title, .page-promotions__faq-question {
  color: var(--text-main); /* Ensure titles are visible */
}
.page-promotions__main-title {
  color: var(--gold); /* Specific color for main title */
}
.page-promotions a {
  color: var(--glow); /* Links use glow color */
}
.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
}
.page-promotions__btn-secondary {
  color: var(--text-main);
  border-color: var(--border);
}
.page-promotions__btn-secondary:hover {
  background-color: var(--border);
}
.page-promotions__card, .page-promotions__steps-list li, .page-promotions__faq-item {
  background-color: var(--card-b-g);
  border-color: var(--border);
}
.page-promotions__final-cta {
  background-color: var(--deep-green);
}
.page-promotions__final-cta .page-promotions__section-title {
  color: var(--gold);
}
.page-promotions__faq-toggle {
  color: var(--glow);
}