/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

/* Section spacing and container */
.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-promotions__section-title {
  font-size: 3em;
  margin-bottom: 30px;
  color: #017439;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-promotions__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* Promotions Grid */
.page-promotions__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-promotions__promo-content p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Guide Steps */
.page-promotions__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__step-item {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-promotions__step-icon {
  font-size: 2.5em;
  color: #017439;
  background-color: #e6ffe6; /* Light green background */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-weight: bold;
}

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

.page-promotions__image-centered {
  margin-top: 50px;
  text-align: center;
}

.page-promotions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensures proper spacing */
  margin: 0 auto;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  color: #f0f0f0;
}

.page-promotions__terms-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1.05em;
}

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

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

.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: #017439;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

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

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

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar */
}

.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__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #017439, #005a2e);
}

.page-promotions__cta-content {
  max-width: 800px;
}

.page-promotions__cta-title {
  font-size: 3.5em;
  margin-bottom: 25px;
  color: #FFFFFF;
  font-weight: 900;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow text */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background: #a30606;
  color: #fff;
  border-color: #a30606;
}

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

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

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

/* Color contrast classes */
.page-promotions__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Floating Buttons */
.page-promotions__floating-button {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1000;
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  max-width: 150px; /* Constrain width for mobile */
  box-sizing: border-box;
}

.page-promotions__floating-button:hover {
  transform: translateY(-3px);
}

.page-promotions__floating-register-btn {
  background-color: #C30808; /* Register red */
  color: #FFFF00; /* Register yellow text */
  bottom: 80px;
}

.page-promotions__floating-register-btn:hover {
  background-color: #a30606;
}

.page-promotions__floating-login-btn {
  background-color: #C30808; /* Login red */
  color: #FFFF00; /* Login yellow text */
  bottom: 20px;
}

.page-promotions__floating-login-btn:hover {
  background-color: #a30606;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.3em;
  }
  .page-promotions__section-title {
    font-size: 2.5em;
  }
  .page-promotions__cta-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__text-block {
    font-size: 1em;
  }
  .page-promotions__grid,
  .page-promotions__promotions-grid,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding: 20px;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
  .page-promotions__cta-title {
    font-size: 2.5em;
  }
  .page-promotions__cta-description {
    font-size: 1.1em;
  }
  .page-promotions__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  
  /* Mobile image, video, button, 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__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item,
  .page-promotions__cta-content,
  .page-promotions__guide-steps,
  .page-promotions__promotions-grid,
  .page-promotions__grid,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .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;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .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; /* Ensure buttons wrap */
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-promotions__floating-button {
    right: 10px;
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 120px; /* Adjust max-width for smaller screens */
  }
  .page-promotions__floating-register-btn {
    bottom: 70px;
  }
  .page-promotions__floating-login-btn {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__cta-description {
    font-size: 1em;
  }
  .page-promotions__card-title,
  .page-promotions__promo-title,
  .page-promotions__step-title {
    font-size: 1.4em;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
  }
  .page-promotions__floating-button {
    max-width: 100px; /* Further adjust for very small screens */
    padding: 8px 15px;
  }
}