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

/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for the main content area */
  background-color: var(--background-color); /* Consistent with body background */
}

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

.page-promotions__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-promotions__light-bg {
  background-color: #0e2219; /* Slightly lighter dark for contrast with text-main */
  color: var(--text-main-color);
}

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-promotions__section-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary-color);
}

/* 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, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above image but not overlapping in document flow */
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly without position absolute */
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
  color: var(--text-main-color);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__intro-description {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Grid Layouts */
.page-promotions__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__grid-layout--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.page-promotions__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%; /* Ensure cards in a row have equal height */
  box-sizing: border-box;
}

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

.page-promotions__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take up available space */
}

/* Step List */
.page-promotions__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__step-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-promotions__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

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

.page-promotions__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  height: 100%;
}

.page-promotions__feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-promotions__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  border-radius: 10px;
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
  background-color: rgba(17, 39, 27, 0.8); /* Slightly transparent card background */
  border-top: 1px solid var(--border-color);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

/* Text Colors */
.page-promotions__text-main {
  color: var(--text-main-color);
}

.page-promotions__text-secondary {
  color: var(--text-secondary-color);
}

.page-promotions__gold-text {
  color: var(--gold-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__section,
  .page-promotions__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-promotions__hero-image {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-promotions__intro-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-promotions__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

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

  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__card-image {
    height: auto; /* Allow auto height for card images on mobile */
  }

  /* Buttons responsive */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
    margin-top: 10px; /* Add some spacing between stacked buttons */
  }
  
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-promotions__grid-layout,
  .page-promotions__grid-layout--two-cols,
  .page-promotions__steps-list,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__feature-item {
    padding: 20px;
  }

  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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

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

  .page-promotions__hero-content {
    margin-top: -50px; /* Further adjust for mobile to avoid overlap issues */
  }
}