/* style/promotions.css */
/* Body background is #1a1a2e (dark), so text color should be light */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  background-color: #1a1a2e; /* Inherits from body, but explicitly set for sections */
  color: #ffffff; /* Ensure text is white on dark background */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure image does not overflow */
}

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

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the area without distortion */
  display: block;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 80px; /* Push content down slightly from top of image */
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-promotions__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary,
.page-promotions__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Cor de Registro/Login */
  color: #FFFF00; /* Cor de fonte de Registro/Login */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-promotions__btn-secondary {
  background-color: #017439; /* Cor principal */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-promotions__btn-tertiary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-promotions__btn-link {
  color: #FFFF00; /* Cor de fonte de Registro/Login */
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
}

.page-promotions__btn-link:hover {
  color: #e0e000;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-promotions__feature-card:hover {
  transform: translateY(-5px);
}

.page-promotions__feature-icon {
  width: 80px; /* Min size 200x200, so this icon is for visual only, not a small image */
  height: auto;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Responsive for smaller screens */
  height: auto; /* Maintain aspect ratio */
}

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

.page-promotions__feature-text {
  color: #e0e0e0;
}

/* Promotion Categories */
.page-promotions__promotion-category {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
  font-size: 2em;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-align: center;
}

.page-promotions__category-text {
  color: #e0e0e0;
  margin-bottom: 25px;
  text-align: justify;
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

/* How to Claim Steps */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #FFFF00; /* Use bright color for emphasis */
  margin-bottom: 10px;
}

.page-promotions__step-text {
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__terms-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-title {
  font-size: 1.3em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.page-promotions__terms-text {
  color: #e0e0e0;
}

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

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

.page-promotions__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #FFFFFF;
  background-color: #017439; /* Brand color for summary */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFF00; /* Bright color for the toggle */
}

.page-promotions__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  color: #e0e0e0;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA */
.page-promotions__final-cta {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Disclaimer */
.page-promotions__disclaimer {
  font-size: 0.9em;
  color: #aaaaaa;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: 60px;
    padding: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__category-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__hero-content {
    margin-top: 40px;
    padding: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-promotions__intro-text {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary,
  .page-promotions__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 1em;
  }
  .page-promotions__feature-card,
  .page-promotions__promotion-category,
  .page-promotions__step-item,
  .page-promotions__terms-item,
  .page-promotions__faq-item {
    padding: 20px;
  }
  .page-promotions__category-title,
  .page-promotions__step-title,
  .page-promotions__terms-title {
    font-size: 1.3em;
  }
  .page-promotions__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-promotions__faq-answer {
    padding: 15px;
  }

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-category,
  .page-promotions__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already has --header-offset */
  }
}

/* Ensure all images maintain aspect ratio and don't overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No CSS filters allowed for images */
.page-promotions img[src*="GALLERY"] {
  filter: none;
}