/* style/promotions.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-dark: #08160F;
    --card-bg-dark: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --light-bg: #ffffff; /* Assuming default light background for contrast */
    --dark-text: #333333; /* Default dark text for light backgrounds */
}

/* Base styles for the page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Assume body background is dark from shared.css */
}

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

.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.page-promotions__light-bg {
  background-color: var(--light-bg);
  color: var(--dark-text);
}

.page-promotions__dark-section {
  background-color: var(--card-bg-dark);
  color: var(--text-main);
}

.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__sub-section-title {
  font-size: 1.8rem;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-promotions__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-promotions__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
}

.page-promotions__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  max-width: 900px;
  line-height: 1.2;
}

.page-promotions__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--dark-text);
  box-shadow: 0 0 15px var(--gold-color);
}

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

.page-promotions__grid-layout--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__card {
  background-color: var(--light-bg);
  color: var(--dark-text);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__card--dark {
  background-color: var(--card-bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-promotions__card--dark .page-promotions__card-title {
  color: var(--gold-color);
}

.page-promotions__card--dark .page-promotions__card-text {
  color: var(--text-secondary);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-button {
  width: 100%;
  max-width: 250px;
  margin-top: auto; /* Push button to the bottom */
}

.page-promotions__how-to-claim .page-promotions__content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-promotions__ordered-list,
.page-promotions__unordered-list {
  list-style: none;
  padding-left: 0;
}

.page-promotions__ordered-list li,
.page-promotions__unordered-list li {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.page-promotions__ordered-list li strong {
    color: var(--text-main);
}

.page-promotions__ordered-list li::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  color: var(--gold-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__unordered-list li::before {
  content: "\2022"; /* Bullet point */
  color: var(--gold-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
  background-color: var(--deep-green);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

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

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

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

.page-promotions__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-promotions__hero-content {
    position: static;
    background: none;
    padding: 60px 20px;
    height: auto;
  }
  
  .page-promotions__hero-image {
    height: 400px; /* Adjust as needed for desktop hero image */
  }

  .page-promotions__hero-section {
    flex-direction: column;
    padding: 0;
  }

  .page-promotions__hero-image {
    order: 1;
    margin-bottom: 40px;
  }

  .page-promotions__hero-content {
    order: 2;
    margin-top: -100px; /* Pull content up over the image slightly */
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
    padding-top: 100px; /* Adjust padding to make space for overlay */
    position: relative; /* Ensure z-index works */
    z-index: 1;
    color: var(--text-main);
  }
  
  .page-promotions__how-to-claim .page-promotions__content-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-content {
    background: rgba(0, 0, 0, 0.6);
  }

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

  .page-promotions__main-title {
    font-size: 2.2rem;
  }

  .page-promotions__subtitle {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    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__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;
  }

  .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__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
  }

  .page-promotions__card {
    min-height: auto;
  }

  .page-promotions__card-image {
    height: auto;
    max-height: 250px;
  }

  .page-promotions__how-to-claim .page-promotions__content-wrapper {
    grid-template-columns: 1fr;
  }
}