/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark background */
  background-color: var(--dark-background-1); /* Inherited from shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #1E90FF, #0f4c81);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 10;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* General Section Styles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #FFD700;
  color: #1E90FF; /* Dark text for primary button */
  border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
  background-color: #e6c200;
  color: #0f4c81;
  transform: translateY(-3px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
  transform: translateY(-3px);
}

.page-promotions__btn-tertiary {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-promotions__btn-tertiary:hover {
  background-color: #0f4c81;
  border-color: #0f4c81;
  transform: translateY(-2px);
}

/* Highlights Section */
.page-promotions__highlights-section {
  padding: 80px 20px;
  background-color: var(--dark-background-2);
}

.page-promotions__highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__highlight-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-promotions__highlight-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__highlight-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-promotions__highlight-text {
  color: #c0c0c0;
  font-size: 0.95em;
  margin-bottom: 25px;
  padding: 0 15px;
}

/* Detailed Promotions Section */
.page-promotions__detailed-promos-section {
  padding: 80px 20px;
  background-color: var(--dark-background-1);
}

.page-promotions__promo-category {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(30, 144, 255, 0.2);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__category-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
  border-bottom: 2px solid #1E90FF;
  padding-bottom: 10px;
}

.page-promotions__category-text {
  color: #c0c0c0;
  font-size: 1.05em;
  margin-bottom: 25px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 20px;
  background-color: var(--dark-background-2);
}

.page-promotions__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__why-choose-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-promotions__why-choose-item:hover {
  transform: translateY(-5px);
}

.page-promotions__why-choose-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-promotions__item-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-promotions__item-text {
  color: #c0c0c0;
  font-size: 0.95em;
}

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

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.page-promotions__step-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(30, 144, 255, 0.2);
}

.page-promotions__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #1E90FF;
  margin-bottom: 15px;
  background-color: #FFD700;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: #1a1a1a; /* Dark text for yellow circle */
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  color: #c0c0c0;
  font-size: 0.95em;
}

.page-promotions__claim-cta {
  text-align: center;
}

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

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

.page-promotions__faq-item {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

.page-promotions__faq-question:hover {
  background-color: #3a3a3a;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
  color: #FFD700;
}

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

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

.page-promotions__faq-answer-text {
  color: #c0c0c0;
  font-size: 1em;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(45deg, #1E90FF, #FFD700);
  color: #ffffff;
}

.page-promotions__cta-final-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-final-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* --- Responsive Styles --- */

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

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

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

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary {
    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__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-promotions__highlights-section,
  .page-promotions__detailed-promos-section,
  .page-promotions__why-choose-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 40px 15px;
  }

  .page-promotions__highlight-card,
  .page-promotions__why-choose-item,
  .page-promotions__step-card,
  .page-promotions__promo-category,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__hero-image-wrapper,
  .page-promotions__highlight-card,
  .page-promotions__why-choose-item,
  .page-promotions__step-card,
  .page-promotions__promo-category,
  .page-promotions__faq-item,
  .page-promotions__cta-final-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-promotions__cta-final-description {
    font-size: 1em;
    padding: 0 15px;
  }

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

  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* Ensure content area images are not too small */
.page-promotions__highlights-grid img,
.page-promotions__why-choose-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Fixes (if needed, though design aims for good contrast) */
.page-promotions__dark-bg-text {
  color: #ffffff; /* Explicitly white text for dark backgrounds */
}
.page-promotions__light-bg-text {
  color: #333333; /* Explicitly dark text for light backgrounds */
}

/* No CSS filters for images */
.page-promotions img {
  filter: none; /* Ensure no filters are applied */
}