/* style/promotions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions {
  color: #ffffff; /* Light text on dark body background (#0a0a0a) */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-promotions__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Use header-offset for top padding */
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-promotions__hero-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  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: #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__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-promotions__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333; /* Dark text for light background sections */
}

.page-promotions__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-description {
  color: #f0f0f0;
}

.page-promotions__light-bg {
  background-color: #FFFFFF; /* White background for content sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-promotions__intro-video-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
  text-align: center;
}

.page-promotions__intro-video-section .page-promotions__section-title,
.page-promotions__intro-video-section .page-promotions__section-description {
  color: #ffffff;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
}

.page-promotions__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

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

.page-promotions__promo-card,
.page-promotions__step-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__promo-image,
.page-promotions__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

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

.page-promotions__promo-card-description,
.page-promotions__step-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

.page-promotions__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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, padding 0.3s ease;
}

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

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

.page-promotions__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__hero-section {
    padding: 100px 0 60px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-promotions__section-description,
  .page-promotions__paragraph {
    font-size: 1em;
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card,
  .page-promotions__step-card {
    padding: 25px;
  }
  .page-promotions__promo-image,
  .page-promotions__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
    width: auto;
    max-width: calc(100% - 30px) !important; /* Account for padding */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__video-section .page-promotions__container,
  .page-promotions__content-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__promo-card img,
  .page-promotions__step-card img {
    min-height: 200px !important;
    object-fit: cover;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}