/* style/promotions.css */

/* Base styles for the page */
.page-promotions {
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: 'Arial', sans-serif;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-promotions__hero-title {
  font-size: 3.8em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #ffffff;
}

.page-promotions__hero-cta {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

/* Video Section */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: #1a1a2e;
  text-align: center;
}

.page-promotions__video-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-promotions__video-overlay {
  color: #ffffff;
  margin-top: 20px;
}

.page-promotions__video-title {
  font-size: 2.2em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-promotions__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-promotions__video-cta {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  background-color: #1a1a2e;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-promotions__promo-card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__promo-card-title a {
  color: #FFFF00; /* Yellow for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
  color: #ffffff;
}

.page-promotions__promo-card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* How to Join Section */
.page-promotions__how-to-join {
  background-color: #017439;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.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.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

/* Terms & Conditions Section */
.page-promotions__terms {
  background-color: #1a1a2e;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-promotions__terms-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-promotions__terms-subtitle {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__terms-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-promotions__terms-cta {
  margin-top: 30px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-promotions__benefits {
  background-color: #017439;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__benefits-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFFF00;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-promotions__faq {
  background-color: #1a1a2e;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.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;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
  margin: 0;
  color: #FFFF00;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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;
  color: #f0f0f0;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  background-color: #017439;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

/* Buttons */
.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;
  transform: translateY(-3px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.2em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__hero-cta, .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

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

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__promo-image {
    height: 220px;
  }
  .page-promotions__promo-card-title {
    font-size: 1.3em;
  }

  .page-promotions__step-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__step-title {
    font-size: 1.4em;
  }

  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100%;
    max-width: 300px; /* Limit width for stacked buttons */
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile video responsiveness */
  .page-promotions video, .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile container responsiveness */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  /* Ensure padding for hero section in mobile */
  .page-promotions__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons specific mobile */
  .page-promotions__cta-button,
  .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;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 0.9em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
}