/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  --color-main: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;

  background-color: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-promotions__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__text-block .text-highlight {
  color: var(--color-gold);
  font-weight: bold;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles header-offset */
  overflow: hidden;
  background-color: var(--color-card-bg);
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Limit hero image height */
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--color-background) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px); /* H1 font size clamp */
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__hero-description {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--color-button-gradient-start);
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-background);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 30px;
  background: var(--color-button-gradient-start);
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 3px 10px rgba(17, 168, 78, 0.3);
}

.page-promotions__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(17, 168, 78, 0.5);
}

/* Introduction Section */
.page-promotions__introduction-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
}

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

.page-promotions__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

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

.page-promotions__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: var(--color-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-divider);
}

.page-promotions__step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__step-content {
  flex-grow: 1;
}

.page-promotions__step-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.page-promotions__step-content p {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background-color: var(--color-background);
  border-left: 5px solid var(--color-gold);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--color-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__terms-list li .text-highlight {
  color: var(--color-gold);
  font-weight: bold;
}

.page-promotions__terms-section .page-promotions__btn-secondary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-promotions__faq-question .page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.page-promotions__faq-answer p .text-highlight {
  color: var(--color-gold);
  font-weight: bold;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
  margin-bottom: 20px;
}

.page-promotions__cta-final-section .page-promotions__text-block {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
  }
}

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

  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions__hero-image {
    max-height: 400px;
  }

  .page-promotions__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-promotions__hero-description {
    font-size: clamp(15px, 2.8vw, 18px);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-promotions__text-block {
    font-size: 16px;
  }

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

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__card-description {
    font-size: 15px;
  }

  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 25px;
  }

  .page-promotions__step-number {
    font-size: 38px;
  }

  .page-promotions__step-title {
    font-size: 24px;
  }

  .page-promotions__step-content p {
    font-size: 15px;
  }

  .page-promotions__terms-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

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

  .page-promotions__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }

  /* Image and video responsive rules */
  .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__promotion-grid,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}