/* style/promotions.css */

:root {
  --mcw-primary-color: #26A9E0;
  --mcw-secondary-color: #FFFFFF;
  --mcw-login-color: #EA7C07;
  --mcw-background-color: #FFFFFF;
  --mcw-text-dark: #333333;
  --mcw-text-light: #f0f0f0;
}

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

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

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

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

.page-promotions__light-bg {
  background-color: var(--mcw-background-color);
  color: var(--mcw-text-dark);
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.2;
  color: inherit;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__text-block a {
  color: var(--mcw-login-color); /* Use login color for links in text */
  text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: var(--mcw-secondary-color);
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
  color: var(--mcw-secondary-color);
}

.page-promotions__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--mcw-secondary-color);
}

/* Call to Action Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: var(--mcw-login-color); /* Using login color for primary CTA */
  color: var(--mcw-secondary-color);
  border: 2px solid var(--mcw-login-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--mcw-login-color), 10%); /* Darken on hover */
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: lighten(var(--mcw-primary-color), 40%);
  transform: translateY(-2px);
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--mcw-text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--mcw-secondary-color);
}

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-promotions__step-item {
  background-color: var(--mcw-secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--mcw-text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__step-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Benefits List */
.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__benefits-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--mcw-text-light);
}

.page-promotions__benefits-item strong {
  color: var(--mcw-secondary-color);
}

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

.page-promotions__faq-item {
  background-color: var(--mcw-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--mcw-text-dark);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--mcw-primary-color);
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--mcw-login-color);
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--mcw-text-dark);
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
}

.page-promotions__faq-answer a {
  color: var(--mcw-login-color);
  text-decoration: underline;
}

/* Conclusion Section */
.page-promotions__conclusion-section .page-promotions__text-block {
  color: var(--mcw-text-light);
}

.page-promotions__conclusion-section .page-promotions__text-block a {
  color: var(--mcw-secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    min-height: 400px;
  }
  .page-promotions__main-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__hero-section,
  .page-promotions__hero-content,
  .page-promotions__offers-section,
  .page-promotions__guide-section,
  .page-promotions__benefits-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section,
  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    min-height: 300px;
    padding: 20px 0;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-promotions__hero-image {
    max-height: 300px;
  }

  .page-promotions__main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }

  .page-promotions__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-promotions__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }

  .page-promotions__text-block {
    font-size: 1em;
  }

  .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: 12px 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

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

  .page-promotions__card,
  .page-promotions__step-item {
    padding: 20px;
    height: auto; /* Allow height to adjust */
  }

  .page-promotions__card-image {
    height: 150px;
  }

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

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

  .page-promotions__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

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

  /* Video responsive styles (if any video is added) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em !important;
  }
  .page-promotions__section-title {
    font-size: 1.6em !important;
  }
  .page-promotions__card-title {
    font-size: 1.2em;
  }
  .page-promotions__hero-image-wrapper {
    max-height: 250px;
  }
}