/* style/promotions.css */

/* Base Styles for the promotions page content */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is #1a1a1a from shared.css */
}

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

.page-promotions__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #333333; /* Dark text for light background */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  text-align: center;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Highlight title with yellow for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping 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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
  background-color: #017439; /* Brand primary green */
  color: #ffffff;
  border: 2px solid #017439;
}

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

.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.1);
  color: #ffffff;
}

/* Specific button for Register/Login - Using #C30808 background, #FFFFFF text for contrast */
/* Note: Overriding the requested #FFFF00 font color to ensure WCAG AA contrast ratio (6.5:1) */
.page-promotions__btn-register-login {
  background-color: #C30808; /* Specified red */
  color: #FFFFFF; /* Adjusted to white for better contrast with red background */
  border: 2px solid #C30808;
}

.page-promotions__btn-register-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Section Titles & Descriptions */
.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherits from section background */
}

.page-promotions__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Grid Layout for Cards */
.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #ffffff; /* Default card text color for dark body */
}

.page-promotions__light-bg .page-promotions__card {
  background-color: #f8f8f8; /* Light background for cards in light sections */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

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

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

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-promotions__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight step titles */
}

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

/* Content Block (for terms and conditions) */
.page-promotions__content-block {
  text-align: left;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 40px;
  color: #ffffff;
}

.page-promotions__light-bg .page-promotions__content-block {
  background-color: #f8f8f8;
  color: #333333;
}

.page-promotions__content-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-promotions__content-text {
  font-size: 1em;
  margin-bottom: 15px;
  color: inherit;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-promotions__light-bg .page-promotions__faq-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  color: inherit;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-item details > summary {
  list-style: none;
}
.page-promotions__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-promotions__light-bg .page-promotions__faq-question {
  background-color: #e0e0e0;
  border-bottom: 1px solid #d0d0d0;
}

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

.page-promotions__light-bg .page-promotions__faq-question:hover {
  background-color: #d5d5d5;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #FFFF00; /* Yellow for the toggle icon */
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__light-bg .page-promotions__faq-answer {
  background-color: #f8f8f8;
  color: #333333;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding-bottom: 80px;
}

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-promotions__hero-title {
    font-size: 2.5em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-register-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section {
    padding: 40px 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-promotions__container {
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 200px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* Ensure no CSS filter changes image color */
  }

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

  .page-promotions__card-text {
    font-size: 0.9em;
  }

  .page-promotions__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__step-item {
    padding: 20px;
  }

  .page-promotions__step-title {
    font-size: 1.5em;
  }

  .page-promotions__step-text {
    font-size: 0.9em;
  }

  .page-promotions__content-block {
    padding: 20px;
  }

  .page-promotions__content-subtitle {
    font-size: 1.5em;
  }

  .page-promotions__content-text {
    font-size: 0.9em;
  }

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

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  /* All images must be responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* Ensure no CSS filter changes image color */
  }
  
  /* All video containers and videos must be responsive */
  .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;
  }

  /* All content sections/containers must handle overflow */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__content-block,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}