/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles top padding, use small decorative top padding */
  background-color: #f0f8ff; /* Light blue background for hero */
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 1px solid #26A9E0;
}

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

.page-promotions__section-title {
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.3;
}

.page-promotions__featured-promotions,
.page-promotions__how-to-participate,
.page-promotions__terms-conditions,
.page-promotions__faq-section,
.page-promotions__why-choose {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-promotions__featured-promotions {
  background-color: #f9f9f9;
}

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

.page-promotions__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__card-title {
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-promotions__card-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-promotions__step-item {
  background-color: #ffffff;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 20px;
  left: -15px;
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-promotions__step-title {
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  padding-left: 25px; /* Adjust for counter */
}

.page-promotions__steps-list p {
  color: #555555;
  padding-left: 25px;
}

.page-promotions__terms-conditions .page-promotions__cta-buttons {
  margin-top: 30px;
}

.page-promotions__conditions-list {
  list-style: disc;
  margin-left: 20px;
  color: #555555;
}

.page-promotions__condition-item {
  margin-bottom: 10px;
}

.page-promotions__text-block {
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Styles */
.page-promotions__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #26A9E0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: #e0e0e0;
}

.page-promotions__faq-answer {
    padding: 15px 20px;
    background-color: #ffffff;
    color: #555555;
    line-height: 1.6;
}

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

.page-promotions__benefit-item {
  background-color: #f0f8ff; /* Light blue background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-promotions__benefit-title {
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__benefit-item p {
  color: #555555;
}

.page-promotions__why-choose .page-promotions__cta-buttons {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-width: 90%;
  }
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

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

  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0;
  }

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

  .page-promotions__main-title {
    font-size: 2em;
    margin-top: 20px;
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important; /* Adjust padding for mobile */
  }

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

  .page-promotions__featured-promotions,
  .page-promotions__how-to-participate,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__why-choose {
    padding: 40px 0;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-promotions__step-item {
    margin: 0 15px;
  }

  .page-promotions__text-block {
    padding: 0 15px;
  }

  .page-promotions__conditions-list {
    margin-left: 35px;
    padding-right: 15px;
  }

  .page-promotions__faq-item {
    margin: 0 15px 15px 15px;
  }

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

  .page-promotions__benefit-item {
    margin: 0 15px;
  }

  /* Mobile image specific rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/buttons */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__promotions-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons in mobile */
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Override for specific elements if needed, ensuring padding */
  .page-promotions__hero-content .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__how-to-participate .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__terms-conditions .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__why-choose .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure no top padding conflict for hero section */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}