/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color-login: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #222222; /* A slightly darker background for contrast on dark sections if body is light */
  --border-color: #e0e0e0;
}

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

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

.page-promotions__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Example gradient, adjust as needed */
  color: var(--text-light);
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--accent-color-login); /* Login color as primary CTA */
  color: var(--text-light);
  border: 2px solid var(--accent-color-login);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--accent-color-login), 10%);
  border-color: darken(var(--accent-color-login), 10%);
}

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

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

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__why-choose-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__why-choose-section .page-promotions__section-description {
  color: var(--text-light);
}

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

.page-promotions__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* Current Promos Section */
.page-promotions__current-promos-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.page-promotions__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__how-to-claim-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__how-to-claim-section .page-promotions__section-description {
  color: var(--text-light);
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions__step-text a {
  color: var(--accent-color-login);
  text-decoration: underline;
}

.page-promotions__step-text a:hover {
  color: darken(var(--accent-color-login), 10%);
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__term-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-promotions__term-item strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #444444;
  color: var(--secondary-color);
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  font-size: 1.1em;
}

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

.page-promotions__faq-question .page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  color: var(--text-light);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  background-color: #333333;
  color: #cccccc;
  font-size: 0.95em;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__cta-section .page-promotions__section-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__cta-section .page-promotions__section-description a:hover {
  color: darken(var(--primary-color), 10%);
}

/* Responsive styles */

/* Common for all images and containers */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-promotions__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

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

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

  .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-left: 0 !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
  }

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

  /* General image and container responsiveness for mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* FAQ specific mobile styles */
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* No winner list or blog/news sections in this specific page, so no specific mobile rules for them. */
}

/* Color Contrast Fixes (if needed) - applied based on body background being light */
.page-promotions__light-bg {
  color: var(--text-dark);
  background: var(--background-light);
}

.page-promotions__dark-bg {
  color: var(--text-light);
  background: var(--background-dark);
}

.page-promotions__btn-primary {
  background: var(--accent-color-login);
  color: var(--text-light);
}

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

.page-promotions__cta-section .page-promotions__section-description a {
  color: var(--primary-color);
}

.page-promotions__step-text a {
  color: var(--accent-color-login);
}