/* style/promotions.css */

/* Custom Properties based on Color Palette */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --body-bg: #0A0A0A; /* Fallback, actual from shared.css */
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --button-text-color: #ffffff; /* White text for gradient buttons */
  --dark-text-color: #333333; /* For light backgrounds */
}

/* Base styles for the promotions page, assuming dark body background from shared.css */
.page-promotions {
  background-color: var(--body-bg); /* Fallback, actual from shared.css */
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure no overflow from image */
  background-color: var(--body-bg);
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: relative; 
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up, but remains in document flow below image */
  background: var(--body-bg); /* Background to ensure readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2; 
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--button-text-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--button-text-color);
  transform: translateY(-2px);
}

.page-promotions__section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

.page-promotions__section--dark {
  background-color: var(--card-bg); /* Slightly different dark background for contrast */
}

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

.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-promotions__text-block {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: justify;
}

.page-promotions__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

.page-promotions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-promotions__promo-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__promo-item-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-promotions__promo-item-description {
  color: var(--text-main);
  font-size: 1rem;
}

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

.page-promotions__card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-promotions__card-title {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-promotions__card-description {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.page-promotions__btn-primary--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  min-width: unset; /* Override min-width for smaller buttons */
}

.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin: 40px 0;
}

.page-promotions__claim-steps li {
  position: relative;
  margin-bottom: 30px;
  padding-left: 50px;
}

.page-promotions__claim-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: var(--button-text-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-promotions__step-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.page-promotions__step-description {
  color: var(--text-main);
  font-size: 1rem;
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.1); /* Subtle hover effect */
}

.page-promotions__faq-question h3 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px; /* Padding for expanded state */
}

.page-promotions__faq-answer p {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
}

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

  .page-promotions__hero-section {
    padding-bottom: 20px;
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-promotions__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
    padding: 15px;
    width: calc(100% - 30px); /* Account for padding */
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    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 {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-promotions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset; /* Remove min-width for mobile flexibility */
    min-height: unset; /* Remove min-height for mobile flexibility */
  }
  
  .page-promotions__image-wrapper {
    margin: 20px auto;
  }

  .page-promotions__promo-list,
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__claim-steps li {
    padding-left: 45px;
    margin-bottom: 20px;
  }

  .page-promotions__claim-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-promotions__step-title {
    font-size: 1.3rem;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 1.1rem;
  }

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  
  /* Ensure all containers for images and buttons are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons container for multiple buttons */
  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  /* Specific override for hero content to ensure width */
  .page-promotions__hero-content {
      width: 100% !important;
      max-width: 100% !important;
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box !important;
  }
}