/* style/promotions.css */

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

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

/* Section styles */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding-top: 0; /* Handled by shared body padding-top */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  text-align: center;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 1;
  padding-top: var(--header-offset, 120px);
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #FFFFFF;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__step-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #A00707;
  border-color: #A00707;
}

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #017439;
}

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

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

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

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-promotions__card-button {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  width: 100%;
  padding: 10px 15px;
  font-size: 1em;
}

.page-promotions__card-button:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-promotions__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

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

.page-promotions__step-button {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  width: auto; /* Allow auto width for steps */
  padding: 10px 20px;
  font-size: 0.95em;
  white-space: nowrap;
}

.page-promotions__step-button:hover {
  background-color: #A00707;
  border-color: #A00707;
}

.page-promotions__step-button--disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Feature List */
.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__feature-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__feature-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__feature-description {
  font-size: 1em;
  color: #555555;
}

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

.page-promotions__reason-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
  height: 100%;
}

.page-promotions__reason-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-promotions__reason-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

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

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  color: #017439;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}

.page-promotions__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
}

.page-promotions__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-promotions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title,
  .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__card-grid,
  .page-promotions__steps-grid,
  .page-promotions__feature-list,
  .page-promotions__reason-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section .page-promotions__container {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__step-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title,
  .page-promotions__cta-title {
    font-size: 1.8em;
  }
  .page-promotions__text-block,
  .page-promotions__hero-description,
  .page-promotions__cta-description {
    font-size: 0.95em;
  }
  .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__cta-section,
  .page-promotions__step-item,
  .page-promotions__reason-item,
  .page-promotions__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-promotions__faq-toggle {
    font-size: 1.5em;
  }
}