/* style/promotions.css */

/* Custom Colors */
:root {
  --af88-bg-dark: #08160F;
  --af88-card-bg: #11271B;
  --af88-text-main: #F2FFF6;
  --af88-text-secondary: #A7D9B8;
  --af88-border: #2E7A4E;
  --af88-glow: #57E38D;
  --af88-gold: #F2C14E;
  --af88-divider: #1E3A2A;
  --af88-deep-green: #0A4B2C;
  --af88-primary-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--af88-text-main); /* Default text color for dark background */
  background-color: var(--af88-bg-dark); /* Page background */
}

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

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

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

.page-promotions__light-bg {
  background-color: #f8f9fa; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__feature-title,
.page-promotions__light-bg .page-promotions__feature-text,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-text,
.page-promotions__light-bg .page-promotions__faq-qtext,
.page-promotions__light-bg .page-promotions__faq-answer p {
  color: #333333;
}

.page-promotions__light-bg .page-promotions__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-promotions__light-bg .page-promotions__link-text {
  color: #13994A; /* Brand green for links */
}

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: clamp(16px, 2vw, 18px);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--af88-text-secondary);
}

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

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--af88-text-main);
}

.page-promotions__hero-description {
  font-size: clamp(17px, 2.2vw, 20px);
  margin-bottom: 30px;
  color: var(--af88-text-secondary);
}

.page-promotions__highlight-text {
  color: var(--af88-glow);
  font-weight: bold;
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--af88-primary-gradient);
  color: #ffffff;
  border: none;
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 15px;
}

.page-promotions__btn-large {
  padding: 16px 35px;
  font-size: 18px;
}

/* Card styles */
.page-promotions__card {
  background-color: var(--af88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--af88-text-main);
}

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

.page-promotions__feature-card {
  align-items: center;
  text-align: center;
}

.page-promotions__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust size for feature icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--af88-glow);
}

.page-promotions__feature-text {
  font-size: 16px;
  color: var(--af88-text-secondary);
}

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

.page-promotions__promo-card {
  padding: 20px;
  text-align: left;
}

.page-promotions__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__promo-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--af88-glow);
}

.page-promotions__promo-text {
  font-size: 15px;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How-to-claim Steps */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-card {
  text-align: center;
  align-items: center;
  padding: 30px 20px;
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--af88-glow);
}

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

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

.page-promotions__term-item {
  padding: 25px;
}

.page-promotions__term-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--af88-glow);
}

.page-promotions__term-text {
  font-size: 16px;
  color: var(--af88-text-secondary);
}

.page-promotions__full-terms-link {
  margin-top: 40px;
}

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

.page-promotions__faq-item {
  background-color: var(--af88-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--af88-text-main);
}

.page-promotions__light-bg .page-promotions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--af88-deep-green);
  border-bottom: 1px solid var(--af88-divider);
  color: var(--af88-text-main);
  list-style: none; /* For details/summary */
}

.page-promotions__light-bg .page-promotions__faq-question {
  background-color: #f0f0f0;
  border-bottom-color: #e0e0e0;
  color: #333333;
}

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

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

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

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

.page-promotions__light-bg .page-promotions__faq-answer {
  color: #555555;
}

/* Conclusion */
.page-promotions__conclusion .page-promotions__section-description {
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    max-height: 500px;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__terms-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__feature-card,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__term-item {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Mobile image, video, button adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions video {
    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,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-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;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

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

  .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 !important; /* Adjust padding for full width buttons */
    padding-right: 15px !important;
  }

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

  .page-promotions__hero-description {
    font-size: 16px;
  }

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

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

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

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