/* style/promotions.css */

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

/* Base styles for the page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--background-dark); /* Assuming body background from shared.css is dark */
  line-height: 1.6;
}

.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-section {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-promotions__light-bg {
  background-color: #f8f9fa; /* A light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__light-bg .page-promotions__description,
.page-promotions__light-bg .page-promotions__text-secondary {
  color: #555555;
}

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary);
}

.page-promotions__text-block p {
  margin-bottom: 1em;
}

.page-promotions__link {
  color: var(--glow-color);
  text-decoration: none;
}

.page-promotions__link:hover {
  text-decoration: underline;
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: none;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.3);
}

/* Cards */
.page-promotions__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

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

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

.page-promotions__card p {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 15px;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
  color: var(--text-secondary);
}

.page-promotions__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-promotions__list li::before {
  content: '•';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-promotions__list-bullet {
  list-style-type: disc;
  padding-left: 25px;
  margin: 0 auto 40px auto;
  max-width: 900px;
  color: var(--text-secondary);
}

.page-promotions__list-bullet li {
  margin-bottom: 10px;
}

.page-promotions__list-bullet li strong {
  color: var(--text-main);
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is substantial */
  min-width: 100%; /* Ensure hero image is substantial */
}

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-promotions__subtitle {
  font-size: 1.25em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Overview Section */
.page-promotions__overview .page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Promo Types Section */
.page-promotions__types .page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__promo-card .page-promotions__card-image {
  max-height: 250px;
}

.page-promotions__promo-card .page-promotions__btn-primary {
  margin-top: auto;
}

/* Guide Section */
.page-promotions__guide .page-promotions__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__guide-steps .page-promotions__card-image {
  max-height: 220px;
}

.page-promotions__guide ol {
  list-style: decimal;
  padding-left: 20px;
  text-align: left;
  width: 100%;
  color: var(--text-secondary);
}

.page-promotions__guide ol li {
  margin-bottom: 10px;
}

/* Terms Section */
.page-promotions__terms .page-promotions__terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__terms-card .page-promotions__card-image {
  max-height: 200px;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

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

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

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  text-align: left;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__list-bullet {
  text-align: left;
  font-size: 1.1em;
}

.page-promotions__why-choose .page-promotions__list-bullet li {
  margin-bottom: 15px;
}

/* Conclusion Section */
.page-promotions__conclusion .page-promotions__description {
  margin-bottom: 40px;
}


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

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__hero-image {
    min-height: 250px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-promotions__subtitle {
    font-size: 0.95em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile specific image and container adjustments */
  .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,
  .page-promotions__hero-section,
  .page-promotions__hero-content,
  .page-promotions__overview .page-promotions__features-grid > *,
  .page-promotions__types .page-promotions__promo-grid > *,
  .page-promotions__guide .page-promotions__guide-steps > *,
  .page-promotions__terms .page-promotions__terms-grid > *,
  .page-promotions__faq-list > *,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal overflow */
  }

  .page-promotions__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Ensure content images are not too small if they are direct img tags in content */
  .page-promotions__content-area img,
  .page-promotions p img,
  .page-promotions li img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }
  .page-promotions__subtitle {
    font-size: 0.9em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.95em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card p {
    font-size: 0.9em;
  }
}