/* style/promotions.css */

/* --- General Page Styles --- */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color */
  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: #26A9E0;
  border-radius: 2px;
}

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

/* --- Buttons --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-promotions__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__btn-tertiary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-promotions__btn-tertiary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-promotions__cta-buttons--center {
    justify-content: center;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #f0f8ff; /* Light background for hero */
  overflow: hidden;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin: 20px;
}

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.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;
  filter: brightness(0.7); /* Darken image for text readability, but NOT changing color */
}

/* --- Overview Section --- */
.page-promotions__overview-section {
  padding: 80px 0;
}

/* --- Categories Section --- */
.page-promotions__categories-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-promotions__categories-section .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__categories-section .page-promotions__section-title::after {
    background-color: #ffffff;
}

.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: #ffffff;
  color: #333333; /* Dark text for light card background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-promotions__card-title {
  font-size: 1.6em;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-promotions__card-text {
  font-size: 1em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

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


/* --- How To Claim Section --- */
.page-promotions__how-to-claim {
  padding: 80px 0;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.page-promotions__list-item:hover {
    background-color: #f0f8ff;
}

.page-promotions__list-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

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

/* --- Terms & Conditions Section --- */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-promotions__terms-conditions .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__terms-conditions .page-promotions__section-title::after {
    background-color: #ffffff;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-promotions__terms-list .page-promotions__list-item {
    background-color: transparent;
    border-left: none;
    padding: 5px 0;
    margin-bottom: 10px;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    font-size: 1em;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
  padding: 80px 0;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 20px;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f0f8ff; /* Light background for answer */
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px !important; /* Restore padding when active */
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  color: #333333;
}

/* --- Final CTA Section --- */
.page-promotions__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-promotions__final-cta .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__final-cta .page-promotions__section-title::after {
    background-color: #ffffff;
}

.page-promotions__cta-content {
    max-width: 800px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 3em;
  }
  .page-promotions__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
  }

  .page-promotions__hero-content {
    padding: 20px;
    margin: 10px;
  }

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

  .page-promotions__intro-text {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-promotions__categories-section,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    padding: 50px 0;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-promotions__card-image {
    height: 200px; /* Adjust card image height for mobile */
  }

  .page-promotions__list-item,
  .page-promotions__faq-item,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-content {
    padding: 15px;
  }
  .page-promotions__btn-primary--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}