/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherit from body or explicitly set if needed */
}

/* Container for content sections */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Section descriptions */
.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  overflow: hidden;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  text-align: center;
}

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

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  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: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

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

.page-promotions__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border-color: #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-card {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border-color: #017439;
  font-size: 1em;
  padding: 10px 20px;
  width: fit-content;
  margin-top: 15px;
}

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


/* Featured Promotions */
.page-promotions__featured-promos {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__featured-promos .page-promotions__section-title,
.page-promotions__featured-promos .page-promotions__section-description {
  color: #333333;
}

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

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

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-promotions__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

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

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFFF00; /* Register/Login font color for icon */
  color: #017439; /* Brand primary color for icon text */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

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

.page-promotions__step-text a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-promotions__step-text a:hover {
  color: #ffffff;
}

.page-promotions__bottom-cta {
  text-align: center;
  margin-top: 60px;
}

/* Terms & Conditions Section */
.page-promotions__terms {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__terms .page-promotions__section-title,
.page-promotions__terms .page-promotions__section-description {
  color: #333333;
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 900px;
  margin: 40px auto;
  font-size: 1.1em;
  color: #555555;
}

.page-promotions__terms-item {
  margin-bottom: 15px;
}

.page-promotions__terms-item a {
  color: #017439;
  text-decoration: underline;
}

.page-promotions__terms-item a:hover {
  color: #005a2e;
}

.page-promotions__terms-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for FAQ */
  color: #ffffff;
}

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

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-promotions__faq-item summary {
  list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Rotate toggle for open state (for details tag) */
.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes 'x' or similar */
}

/* For div based FAQ */
.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}


.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0; /* For JS controlled div based FAQ */
  overflow: hidden; /* For JS controlled div based FAQ */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS controlled div based FAQ */
}

/* For details tag, answer is visible by default when open */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: fit-content; /* Or a large number like 2000px if content is dynamic */
  padding: 0 25px 20px 25px;
}

/* For JS controlled div based FAQ */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px; /* A large value to allow content to expand */
  padding: 0 25px 20px 25px;
}

.page-promotions__faq-answer p {
  margin-top: 15px;
}

.page-promotions__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: #ffffff;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-description {
  color: #333333;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied to the first content section */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__hero-title {
    font-size: 2.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__btn-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__promo-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;
    overflow: hidden !important; /* Ensure no horizontal overflow */
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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__section-title {
    font-size: 1.8em;
  }

  .page-promotions__promo-image {
    height: 200px;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 0.95em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}

/* Color contrast enforcement */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep dark background requires light text */
}

.page-promotions__light-bg {
  color: #333333; /* Light background requires dark text */
}

/* Specific button colors (Register/Login) */
.page-promotions__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

/* Ensure no filter is used on images */
.page-promotions img {
  filter: none !important;
}

/* Content area images minimum size enforcement */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow auto width to respect max-width */
  height: auto; /* Allow auto height to respect max-height */
}