/* style/promotions.css */

/* Variables (if not already in shared.css) */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000000; /* Black */
  --accent-color: #DC143C; /* Crimson for highlights/CTA */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark-1: #0d0d0d; /* Assuming this is the body background from shared.css */
  --bg-dark-2: #1a1a1a;
  --border-color: #e0e0e0;
}

/* Base styles for the page content wrapper */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark-1); /* Assuming body background is dark */
  padding-bottom: 50px; /* Space above footer */
}

/* Fixed Header Spacing - Crucial for content visibility */
.page-promotions__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--secondary-color), #333333);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

/* Hero Section */
.page-promotions__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold */
}

.page-promotions__cta-button--primary:hover {
  background: #e0b000; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color); /* Gold text on black */
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles & Descriptions */
.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: var(--bg-dark-2); /* Slightly lighter dark background */
}

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

.page-promotions__overview-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-promotions__overview-image {
  width: 150px; /* Example size, actual image from gallery will be >200px */
  height: 150px; /* Example size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.page-promotions__overview-item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__overview-item-text {
  font-size: 1em;
  color: var(--text-light);
}

/* Details Section */
.page-promotions__details-section {
  padding: 80px 0;
  background-color: var(--bg-dark-1);
}

.page-promotions__promo-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.15);
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__promo-card--reverse {
  flex-direction: row-reverse;
}

.page-promotions__promo-image {
  flex: 1;
  min-width: 300px; /* Ensure image is not too small */
  max-width: 450px; /* Control max width */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__promo-content {
  flex: 2;
  color: var(--text-light);
}

.page-promotions__promo-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__promo-text {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-promotions__promo-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-promotions__promo-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--text-light);
}

.page-promotions__promo-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Claim Guide Section */
.page-promotions__claim-guide-section {
  padding: 80px 0;
  background-color: var(--bg-dark-2);
}

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

.page-promotions__guide-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--text-light);
}

.page-promotions__guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 2em;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__guide-item-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-promotions__guide-cta {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

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

.page-promotions__feature-icon {
  width: 120px; /* Adjust size, actual image from gallery will be >200px */
  height: 120px; /* Adjust size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.page-promotions__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 1em;
  color: var(--text-light);
}

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

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

/* FAQ container style */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* FAQ default state - answer hidden */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important, value large enough for any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
}

/* Question style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

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

.page-promotions__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate to form 'x' or '-' */
  background: var(--primary-color);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--secondary-color), #333333);
  text-align: center;
}

.page-promotions__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__promo-card {
    gap: 30px;
  }
  .page-promotions__promo-image {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  /* Fixed Header Spacing for Mobile */
  .page-promotions__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual fixed header height */
    padding-bottom: 40px;
  }

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

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

  .page-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
  }

  /* Buttons Responsive */
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 25px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-promotions__overview-section,
  .page-promotions__details-section,
  .page-promotions__claim-guide-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 60px 0;
  }

  .page-promotions__overview-grid,
  .page-promotions__guide-steps,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Images Responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__overview-image {
    width: 100px;
    height: 100px;
  }

  .page-promotions__promo-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-promotions__promo-card--reverse {
    flex-direction: column; /* Reset to column for mobile */
  }

  .page-promotions__promo-image {
    width: 100% !important;
    min-width: unset;
    max-width: 100%;
  }

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

  .page-promotions__promo-text {
    font-size: 0.95em;
  }

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

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

  .page-promotions__feature-icon {
    width: 100px;
    height: 100px;
  }

  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

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

  /* Ensure all containers are responsive */
  .page-promotions__container,
  .page-promotions__overview-section,
  .page-promotions__details-section,
  .page-promotions__claim-guide-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section,
  .page-promotions__overview-grid,
  .page-promotions__overview-item,
  .page-promotions__promo-card,
  .page-promotions__guide-steps,
  .page-promotions__guide-item,
  .page-promotions__features-grid,
  .page-promotions__feature-item,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }
  /* Specific override for hero container padding to avoid double padding */
  .page-promotions__hero-container {
      padding-left: 0;
      padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__promo-title {
    font-size: 1.3em;
  }
  .page-promotions__overview-image,
  .page-promotions__feature-icon {
    width: 80px;
    height: 80px;
  }
}