/* style/promotions.css */
/* 
  Body background: #0a0a0a (dark), so main text color should be light (#ffffff).
  Cards/sections with specific backgrounds will have their own text colors.
*/

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Main content area will inherit body background */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text content */
  border-radius: 8px;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  color: #ffffff; /* Text on dark background */
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-promotions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  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, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-small:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* 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: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for section titles */
}

.page-promotions__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark sections */
  text-align: justify;
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  color: #ffffff;
}

/* Featured Promos Grid */
.page-promotions__featured-promos {
  padding: 60px 0;
  background-color: #0a0a0a; /* Same as body background */
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits Section */
.page-promotions__benefits-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for this section */
  color: #ffffff;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-promotions__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-promotions__list-description {
  color: #f0f0f0;
}

/* How-To Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-promotions__step-description {
  color: #f0f0f0;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for open state */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  /* Hero Section */
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }

  .page-promotions__hero-image {
    margin-bottom: 20px;
  }

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

  .page-promotions__main-title {
    font-size: 1.8em !important; /* Smaller font size for mobile */
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px !important; /* Add padding to container for buttons */
  }

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

  /* General Section Styling */
  .page-promotions__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: 1.7em;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95em;
  }

  /* Featured Promos Grid */
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-image {
    height: 200px !important; /* Adjust image height for mobile cards */
  }

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

  /* Benefits Section */
  .page-promotions__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* How-To Claim Section */
  .page-promotions__step-item {
    padding: 20px 25px;
  }

  .page-promotions__step-title {
    font-size: 1.2em;
  }

  /* FAQ Section */
  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  /* Image responsiveness for all images within .page-promotions */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness (if any, though none explicitly added) */
  .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__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}

/* Desktop specific rule for hero image container width */
/* Ensure hero image container has width: 100% with max-width */
.page-promotions__hero-section .page-promotions__hero-image-container {
  width: 100%; /* Explicitly set width to 100% */
  max-width: 1200px; /* Example max-width */
  margin: 0 auto;
}

/* Color contrast adjustments */
/* Main sections are dark, so text is light. */
/* Overview Section and How-To Claim Section have rgba(255, 255, 255, 0.05) background, which is still very dark. */
/* Benefits Section and CTA Bottom have #1a1a1a background, also dark. */
/* All text within these dark sections remains #ffffff or #f0f0f0 for good contrast. */
/* Titles are #26A9E0, which has good contrast on dark backgrounds (WCAG AA is 4.5:1, #26A9E0 on #0a0a0a is ~7.5:1). */