/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light background */
  line-height: 1.6;
  background-color: var(--background-color, #ffffff); /* Use shared background variable, fallback to white */
}

/* Highlight keywords for SEO purposes, visually they are just part of the text */
.page-promotions__highlight {
  font-weight: bold; /* Example style, can be adjusted */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* White text on hero background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

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

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

/* General Section Styles */
.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding for content */
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for titles */
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  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;
  cursor: pointer;
  box-sizing: border-box; /* Include padding in element's total width and height */
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login button 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: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-promotions__btn-large {
  min-width: 200px;
}

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

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #017439; /* Brand primary color for card titles */
}

.page-promotions__card-text {
  font-size: 1em;
  padding: 0 20px 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card .page-promotions__btn-primary {
  margin: 0 20px 20px;
  text-align: center;
  background-color: #017439; /* Use brand primary for card buttons */
  color: #ffffff;
  border-color: #017439;
}

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

/* Dark Section Specific Styles */
.page-promotions__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff; /* White text on dark background */
}

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

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

.page-promotions__dark-section .page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__dark-section .page-promotions__card .page-promotions__btn-primary {
  background-color: #C30808; /* Use register button color for dark section card buttons */
  border-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
}

.page-promotions__dark-section .page-promotions__card .page-promotions__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Lists */
.page-promotions__numbered-list,
.page-promotions__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 900px;
  text-align: left;
}

.page-promotions__numbered-list li,
.page-promotions__bullet-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  color: inherit; /* Inherit color from parent section */
}

.page-promotions__numbered-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #017439; /* Brand primary for list numbers */
}

.page-promotions__bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #017439; /* Brand primary for bullets */
  font-size: 1.2em;
  line-height: 1;
}

.page-promotions__link {
  color: #017439; /* Brand primary for links */
  text-decoration: underline;
}

.page-promotions__link:hover {
  color: #005a2e;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #f8f8f8; /* Light background for FAQ */
  padding: 60px 20px;
}

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

.page-promotions__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333; /* Dark text for FAQ items */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand primary for FAQ question background */
  color: #ffffff; /* White text for FAQ questions */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  list-style: none; /* For <summary> tag */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}
.page-promotions__faq-item > summary {
  list-style: none; /* Hide default marker for <summary> in Firefox */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-promotions__faq-answer {
  padding: 15px 25px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333333; /* Dark text for FAQ answers */
  background-color: #fefefe;
}

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

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  padding: 80px 20px;
  background-color: #017439; /* Brand primary for CTA section */
  color: #ffffff;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-promotions__cta-bottom .page-promotions__paragraph {
  color: #ffffff;
  margin-bottom: 40px;
}

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

/* Image specific styles - ensure no filter */
.page-promotions img {
  border-radius: 8px; /* Example style, no filter */
  /* Other styles like box-shadow, border are allowed */
}

/* Ensure no images are smaller than 200px in content areas */
/* This rule is crucial for compliance */
.page-promotions__content-area img,
.page-promotions__promo-grid img,
.page-promotions__card img {
  min-width: 200px;
  min-height: 200px;
}

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__section,
  .page-promotions__video-section {
    padding: 40px 15px;
  }
  .page-promotions__container {
    padding: 0; /* Remove horizontal padding, handled by section */
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__paragraph {
    font-size: 1em;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card-text {
    font-size: 0.95em;
  }
}