/* style/promotions.css */
/* 🚨 Body background: #121212 (dark). Text should be light. */
/* Main page content container */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Matches body background for consistency */
  padding-top: 120px; /* Fixed header spacing for desktop */
}

/* Responsive images base style */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Banner Section */
.page-promotions__hero-banner {
  position: relative;
  width: 100%;
  height: 450px; /* Adjusted height for content */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

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

.page-promotions__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Dim image slightly to make text readable, NOT changing color */
}

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

.page-promotions__main-heading {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold brand color for main heading */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

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

/* General Section Styles */
.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__section--introduction {
  background-color: #1A1A1A; /* Dark auxiliary color */
  color: #f0f0f0;
}

.page-promotions__section--featured {
  background-color: #121212; /* Body background color */
}

.page-promotions__section--guide,
.page-promotions__section--terms,
.page-promotions__section--faq {
  background-color: #1A1A1A; /* Dark auxiliary color */
  color: #f0f0f0;
}

.page-promotions__section--cta {
  background-color: #FFD700; /* Gold brand color */
  color: #1A1A1A; /* Dark text for gold background */
  text-align: center;
  padding: 80px 0;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-block strong {
  color: #FFD700; /* Highlight keywords with gold */
}

.page-promotions__text-link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
  color: #ffd700; /* Slightly darker gold on hover */
}

/* Buttons */
.page-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-promotions__btn--primary {
  background-color: #FFD700;
  color: #1A1A1A; /* Dark text on gold background */
  border: 2px solid #FFD700;
}

.page-promotions__btn--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  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: #1A1A1A;
  transform: translateY(-3px);
}

.page-promotions__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Promo Grid */
.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: #1A1A1A; /* Dark auxiliary color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-promotions__promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-promotions__promo-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-promotions__promo-description {
  padding: 0 20px 20px;
  font-size: 1em;
  flex-grow: 1; /* Make description take up available space */
}

.page-promotions__promo-card .page-promotions__btn {
  margin: 0 20px 20px;
  text-align: center;
}

/* Guide List */
.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-promotions__guide-item {
  background-color: #2a2a2a; /* Slightly lighter dark */
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px; /* Space for step number */
}

.page-promotions__guide-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  line-height: 1;
}

.page-promotions__guide-item:nth-child(n+10)::before {
  content: counter(guide-step); /* For numbers 10 and above */
}

.page-promotions__guide-step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__guide-item p {
  font-size: 1.1em;
  margin-bottom: 0;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
}

.page-promotions__terms-item {
  background-color: #2a2a2a;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-promotions__terms-item strong {
  color: #FFD700;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

/* FAQ container style */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ item */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 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; /* Adjusted padding */
  opacity: 0;
  color: #e0e0e0;
}

/* 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 ensure priority, value large enough to accommodate any content */
  padding: 20px 25px !important; /* Adjusted padding */
  opacity: 1;
  background: #1A1A1A; /* Slightly different background for expanded answer */
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Question style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Adjusted padding */
  background: #2a2a2a; /* Darker background */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #3a3a3a; /* Lighter dark on hover */
  border-color: #FFD700;
}

.page-promotions__faq-question:active {
  background: #4a4a4a;
}

/* Question title style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold color for question text */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or use '-' */
  color: #ffffff; /* White when active */
}

/* Footer Placeholder Styling (to ensure padding for main content) */
.page-promotions + .shared-footer {
  margin-top: 0;
}

/* 🚨 Responsive design for mobile */
@media (max-width: 1024px) {
  .page-promotions {
    padding-top: 100px; /* Adjust padding for smaller screens */
  }

  .page-promotions__main-heading {
    font-size: 2.8em;
  }

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

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

  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

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

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 80px !important; /* Ensure content is not hidden by fixed header on mobile */
    font-size: 15px;
    line-height: 1.6;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__promo-card,
  .page-promotions__container,
  .page-promotions__hero-banner,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-banner {
    height: 350px;
  }

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

  .page-promotions__main-heading {
    font-size: 2.2em;
  }

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

  .page-promotions__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

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

  .page-promotions__promo-grid {
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding-bottom: 15px;
  }

  .page-promotions__promo-image {
    height: 180px;
  }

  .page-promotions__promo-title {
    font-size: 1.3em;
    padding: 15px 15px 10px;
  }

  .page-promotions__promo-description {
    padding: 0 15px 15px;
  }

  .page-promotions__promo-card .page-promotions__btn {
    margin: 0 15px 15px;
  }

  .page-promotions__guide-item {
    padding: 20px 15px 20px 60px;
  }

  .page-promotions__guide-item::before {
    left: 15px;
    top: 20px;
    font-size: 2em;
  }

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

  .page-promotions__terms-item {
    padding: 15px;
    font-size: 1em;
  }

  /* FAQ Mobile Styles */
  .page-promotions__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
}

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

  .page-promotions__hero-banner {
    height: 300px;
  }

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

  .page-promotions__btn--large {
    padding: 12px 25px;
    font-size: 1em;
  }
}