/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default page background */
}

/* Color contrast enforcement based on body background (var(--black-color)) */
/* Assuming --black-color is a dark background, main content will have light text on brand/dark backgrounds and dark text on white/light backgrounds. */
.page-promotions__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for contrast */
}

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

.page-promotions__heading {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color for headings */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-promotions__dark-bg .page-promotions__heading {
  color: #ffffff; /* White heading on dark background */
}

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87b6; /* Darker shade for hover */
  border-color: #1e87b6;
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f8ff; /* Lighter shade for hover */
  color: #1e87b6;
  border-color: #1e87b6;
}

/* Hero Section */
.page-promotions__hero-section {
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.page-promotions__hero-content {
  flex: 1;
  padding-right: 40px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Featured Promotions & Category Grid */
.page-promotions__featured-promos,
.page-promotions__types-of-promos,
.page-promotions__how-to-claim,
.page-promotions__vip-affiliate,
.page-promotions__cta-section {
  padding: 60px 0;
}

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

.page-promotions__card {
  background-color: #f8f8f8; /* Light background for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on light card background */
}

.page-promotions__dark-bg .page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: #ffffff; /* White text */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  /* No CSS filters */
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-title a {
  color: #26A9E0; /* Brand primary for links in card titles */
  text-decoration: none;
}

.page-promotions__dark-bg .page-promotions__card-title a {
  color: #ffffff; /* White for links in card titles on dark background */
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-item .page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: center;
}

/* Video Section */
.page-promotions__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-promotions__video-link {
  display: block; /* Make the whole video wrapper clickable */
  text-decoration: none;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff; /* White text */
}

.page-promotions__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly off-white for body text in FAQ */
}

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

.page-promotions__faq-answer a {
  color: #ffffff; /* White link on dark background */
  text-decoration: underline;
}

/* CTA Section */
.page-promotions__cta-section {
  text-align: center;
  padding: 80px 0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-promotions__hero-image-wrapper {
    width: 100%;
  }

  .page-promotions__hero-title {
    font-size: 2.8em;
  }

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

  .page-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__promo-grid,
  .page-promotions__promo-category-grid,
  .page-promotions__steps-grid,
  .page-promotions__grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__heading {
    font-size: 2em;
    padding-top: 30px;
  }

  .page-promotions__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

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

  .page-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__featured-promos,
  .page-promotions__types-of-promos,
  .page-promotions__how-to-claim,
  .page-promotions__vip-affiliate,
  .page-promotions__cta-section,
  .page-promotions__video-section,
  .page-promotions__faq-section {
    padding: 40px 0;
  }

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

  .page-promotions__promo-grid,
  .page-promotions__promo-category-grid,
  .page-promotions__steps-grid,
  .page-promotions__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

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

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

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive rules */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-content,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__category-card,
  .page-promotions__step-item,
  .page-promotions__vip-card,
  .page-promotions__affiliate-card,
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
}