/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust top padding for header offset, then general section padding */
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  min-height: 500px;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-promotions__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.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: #a00606;
  border-color: #a00606;
}

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

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

.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-promotions__container {
  max-width: 100%;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #C30808;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__promo-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: calc(100% - 30px); /* Ensure button fits card */
}

.page-promotions__card-button:hover {
  background-color: #a00606;
}

.page-promotions__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.page-promotions__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

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

.page-promotions__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-promotions__image-center {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  text-align: center;
}

.page-promotions__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

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

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

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 60px;
}

.page-promotions__terms-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  color: #333333;
}

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

.page-promotions__faq-list {
  margin-top: 30px;
  margin-bottom: 60px;
}

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

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

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

.page-promotions__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Ensure h3 inside is not too large */
  color: inherit;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* This will be handled by JS, but good to have in mind */
}

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

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

.page-promotions__cta-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

.page-promotions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__cta-title {
    font-size: 2.2em;
  }
  .page-promotions__feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
    min-height: 400px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-promotions__content-area {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__promo-card {
    margin-bottom: 20px;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__feature-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__feature-item,
  .page-promotions__step-card,
  .page-promotions__terms-item {
    padding: 20px;
  }
  .page-promotions__feature-title {
    font-size: 1.5em;
  }
  .page-promotions__step-title {
    font-size: 1.4em;
  }
  .page-promotions__terms-subtitle {
    font-size: 1.2em;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px;
  }
  .page-promotions__cta-section {
    padding: 60px 15px;
  }
  .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__cta-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image and container responsiveness */
  .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__promo-card,
  .page-promotions__feature-item,
  .page-promotions__step-card,
  .page-promotions__terms-item,
  .page-promotions__faq-item,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow for sections/cards */
  }
  .page-promotions__container,
  .page-promotions__promo-grid,
  .page-promotions__feature-list,
  .page-promotions__steps-grid,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-section,
  .page-promotions__content-area,
  .page-promotions__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-buttons,
  .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__cta-buttons a {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop specific adjustments for grid */
@media (min-width: 769px) {
  .page-promotions__feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-promotions__feature-item:nth-child(2n+1) {
    grid-column: span 1; /* For two-column layout */
  }
  /* If an image is inside a feature item and needs to span the full width */
  .page-promotions__feature-item > .page-promotions__image-full-width {
    grid-column: 1 / -1; /* Spans across all columns */
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  .page-promotions__feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}