/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  background-color: #121212; /* Dark background from shared.css */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

.page-promotions a {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: none;
}

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

/* Container for consistent content width */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #0a0a0a; /* Slightly darker than body for contrast */
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4; /* Slightly transparent to let content stand out */
  filter: none !important; /* Ensure no filter on images */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-promotions__hero-cta-button {
  display: inline-block;
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-promotions__hero-cta-button:hover {
  background-color: #1a8cc4; /* Darker shade on hover */
  transform: translateY(-2px);
  text-decoration: none;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color for section titles */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Accent color */
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for main content */
}

/* Featured Promotions Section */
.page-promotions__featured-section {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

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

.page-promotions__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: none !important; /* Ensure no filter on images */
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to fill available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

.page-promotions__promo-card-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__promo-card-title a {
  color: #FFFFFF; /* Ensure link in title is white */
  text-decoration: none;
}

.page-promotions__promo-card-title a:hover {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take up space */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push button to bottom of card content */
}

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

.page-promotions__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
  text-decoration: none;
}

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

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

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Slightly darker background */
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #EA7C07; /* Accent color */
  color: #FFFFFF;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #cccccc;
}

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
}

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

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width of video */
  margin: 0 auto 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it takes up full space */
  cursor: pointer; /* Indicate clickable */
  filter: none !important; /* Ensure no filter on images */
}

.page-promotions__video-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-promotions__faq-question a {
  color: #FFFFFF; /* Ensure link in FAQ question is white */
  text-decoration: none;
}

.page-promotions__faq-question a:hover {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__faq-question:hover {
  color: #26A9E0;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }

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

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__promo-card-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  /* Ensure padding-top for fixed header in mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-promotions__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-promotions__container {
    padding: 0 15px !important; /* Ensure content is not too wide */
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-promotions__promo-card-image {
    height: 200px; /* Adjust image height for mobile */
    min-width: 100%; /* Ensure card images fill width */
    object-fit: cover;
  }

  .page-promotions__promo-card-content {
    padding: 20px;
  }

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
  }

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

  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  /* Video responsiveness for mobile */
  .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__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

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

  /* Images in content area should not be smaller than 200px */
  .page-promotions img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important; /* Override any smaller width from shared */
    height: auto !important;
    filter: none !important; /* Ensure no filter on images */
  }
}