/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-promotions__hero-section {
  position: relative;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg:1920x1080:b52_login,promotions,background_pattern]') center/cover no-repeat;
  padding: 120px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  display: flex;
  align-items: center;
  min-height: 600px;
  color: #ffffff;
}

.page-promotions__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

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

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

.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, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

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

.page-promotions__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

.page-promotions__btn-full-width {
  width: 100%;
  display: block;
  margin-top: 30px;
}

.page-promotions__btn-huge {
  padding: 20px 40px;
  font-size: 1.3em;
}

.page-promotions__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  color: #f0f0f0;
}

.page-promotions__intro-section,
.page-promotions__new-member-promo-section,
.page-promotions__vip-program-section,
.page-promotions__events-tournaments-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-promotions__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-promotions__text-light {
  color: #f0f0f0;
}

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

.page-promotions__promo-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

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

.page-promotions__dark-bg {
  background-color: #017439; /* Brand green for dark background cards */
  color: #ffffff;
}

.page-promotions__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

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

.page-promotions__promo-card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-promotions__note-text {
  font-size: 0.9em;
  text-align: center;
  margin-top: 40px;
  color: #aaaaaa;
}

.page-promotions__vip-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-promotions__vip-text {
  flex: 1;
  min-width: 300px;
}

.page-promotions__vip-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__vip-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Enforce min size */
}

.page-promotions__sub-title {
  font-size: 2em;
  margin-bottom: 25px;
  font-weight: bold;
  color: #ffffff;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-promotions__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-promotions__list-item::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-promotions__event-card {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  color: #ffffff;
}

.page-promotions__event-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

.page-promotions__event-content {
  flex: 2;
  min-width: 300px;
}

.page-promotions__event-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-promotions__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin: 40px auto 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__video-link-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

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

.page-promotions__steps-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  line-height: 1;
}

.page-promotions__step-content .page-promotions__sub-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-promotions__terms-conditions-section {
  padding: 80px 0;
}

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

.page-promotions__terms-card {
  background-color: #017439;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-promotions__terms-card .page-promotions__sub-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-promotions__faq-section {
  padding: 80px 0;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #017439; /* Brand green for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  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 for content */
  padding: 20px 30px;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-promotions__conclusion-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(rgba(1, 116, 57, 0.9), rgba(1, 116, 57, 0.9)), url('[GALLERY:bg:1920x1080:b52_login,call_to_action,final_section_background]') center/cover no-repeat;
}

/* -------------------------------------------------- */
/* Responsive Design */
/* -------------------------------------------------- */

@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }

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

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

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

  .page-promotions__vip-content,
  .page-promotions__event-card {
    flex-direction: column;
  }

  .page-promotions__vip-image-wrapper,
  .page-promotions__event-image {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-promotions__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain buttons */
    margin: 0 auto;
  }

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

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

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

  .page-promotions__intro-section,
  .page-promotions__new-member-promo-section,
  .page-promotions__vip-program-section,
  .page-promotions__events-tournaments-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__dark-section {
    padding: 60px 0;
  }

  .page-promotions__promo-card,
  .page-promotions__vip-content,
  .page-promotions__event-card,
  .page-promotions__steps-item,
  .page-promotions__terms-card,
  .page-promotions__faq-item {
    padding: 20px;
  }

  .page-promotions__promo-card-image,
  .page-promotions__vip-image,
  .page-promotions__event-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-promotions__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
    width: auto;
  }

  .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__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }

  .page-promotions__conclusion-cta {
    padding: 60px 0;
  }

  .page-promotions__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }

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

  .page-promotions__promo-card-title {
    font-size: 1.4em;
  }

  .page-promotions__sub-title {
    font-size: 1.6em;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}