/* style/promotions.css */

/* Variables for custom colors */
:root {
  --color-primary: #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;
}

/* Base styles for the promotions page */
.page-promotions {
  color: var(--color-text-main); /* Light text for dark body background */
  background-color: var(--color-background); /* Ensure consistent background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--color-background);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary {
  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 4px 10px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 5px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(17, 168, 78, 0.4);
}

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

.page-promotions__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* About Promotions Section */
.page-promotions__about-promotions-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-promotions__feature-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* Promotion Types Section */
.page-promotions__promotion-types-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__dark-bg .page-promotions__section-description {
  color: var(--color-text-secondary);
}

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

.page-promotions__promotion-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__promotion-card .page-promotions__card-title {
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.page-promotions__promotion-card .page-promotions__card-text {
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
}

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

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

.page-promotions__step-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.page-promotions__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1;
  opacity: 0.7;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section {
  padding: 80px 0;
  background-color: #11271B; /* Lighter dark background for contrast */
  color: var(--color-text-main);
}

.page-promotions__terms-conditions-section .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__terms-conditions-section .page-promotions__section-description {
  color: var(--color-text-secondary);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-promotions__list-item {
  background-color: rgba(17, 168, 78, 0.05); /* Subtle background for list items */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 40px;
}

.page-promotions__list-item::before {
  content: '✓';
  color: var(--color-glow);
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-promotions__terms-conditions-section .page-promotions__btn-secondary {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

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

.page-promotions__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  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: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: rgba(17, 168, 78, 0.1);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-glow);
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  background-color: var(--color-card-bg);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: none;
}

.page-promotions__faq-section .page-promotions__btn-secondary {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

.page-promotions__cta-bottom-section .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__cta-bottom-section .page-promotions__section-description {
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-image {
    height: 400px; /* Adjust hero image height for mobile */
  }

  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

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

  .page-promotions__hero-description {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    padding: 0 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: 12px 20px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__about-promotions-section,
  .page-promotions__promotion-types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section {
    padding: 50px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__features-grid,
  .page-promotions__promotion-cards-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__list-item {
    font-size: 0.95rem;
    padding: 12px 15px 12px 35px;
  }
  .page-promotions__list-item::before {
    left: 10px;
  }

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

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

  /* Mobile image responsiveness */
  .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-image-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;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important;
  }
  .page-promotions__hero-section {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-image {
    height: 300px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-promotions__cta-buttons {
    max-width: 100%;
  }
}