/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default to light text for overall page, adjusted by section */
  background-color: var(--background, #08160F); /* Dark background for overall page */
}

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

/* Section styling */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
  color: var(--text-main, #F2FFF6);
  background-color: var(--background, #08160F);
}

.page-promotions__section--light {
  background-color: #f5f5f5;
  color: #333333;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  letter-spacing: 0.05em;
}

.page-promotions__section-title--light {
  color: #333333;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__text-block--light {
  color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: var(--background, #08160F);
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 170, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 170, 0, 0.4);
}

.page-promotions__btn-secondary {
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-promotions__card-description {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* List styling */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__list-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-promotions__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-size: 0.9em;
}

.page-promotions__list--light-text .page-promotions__list-item {
  color: var(--text-main, #F2FFF6);
}

.page-promotions__list--light-text .page-promotions__list-item::before {
  color: var(--glow, #57E38D);
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions .page-promotions__container {
  background-color: var(--background, #08160F);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__terms-conditions .page-promotions__content-area {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 30px;
  gap: 30px;
}

.page-promotions__terms-item {
  flex: 1 1 calc(50% - 15px);
  min-width: 300px;
  text-align: left;
}

.page-promotions__terms-item .page-promotions__sub-title {
  color: var(--text-main, #F2FFF6);
  margin-top: 0;
}

.page-promotions__terms-item .page-promotions__text-block {
  color: var(--text-secondary, #A7D9B8);
  margin-left: 0;
  margin-right: 0;
}

.page-promotions__terms-image {
  flex: 1 1 300px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border, #2E7A4E);
}

/* FAQ Section */
.page-promotions__faq {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question:hover {
  background-color: var(--divider, #1E3A2A);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow, #57E38D);
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed */
}

.page-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    min-height: 400px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  .page-promotions__text-block {
    font-size: 1em;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    margin-bottom: 10px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__terms-conditions .page-promotions__content-area {
    flex-direction: column;
  }

  .page-promotions__terms-item {
    flex: 1 1 100%;
  }

  .page-promotions__terms-image {
    margin-top: 20px;
  }

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

  /* Mobile image and video adaptation */
  .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-section,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding-top: 20px; /* Small top padding for mobile hero content */
    padding-bottom: 20px;
  }

  .page-promotions__hero-image {
    position: relative; /* Adjust for mobile flow */
    filter: brightness(0.5); /* Darken image more for text contrast on smaller screens */
  }

  .page-promotions__hero-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: auto;
  }

  .page-promotions__hero-image {
    order: 1; /* Image first */
  }

  .page-promotions__hero-content {
    order: 2; /* Content second */
    padding-top: 0; /* Handled by section padding */
    padding-bottom: 0;
  }

  .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;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

/* Color Contrast Fixes */
.page-promotions__dark-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__card-title {
  color: #333333;
}

.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__card-description,
.page-promotions__light-bg .page-promotions__list-item {
  color: #555555;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Sufficient for content */
  transition: max-height 0.5s ease-in;
}