/* style/promotions.css */
:root {
  --page-promotions-primary-color: #11A84E;
  --page-promotions-secondary-color: #22C768;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-bg-dark: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-border-color: #2E7A4E;
  --page-promotions-glow-color: #57E38D;
  --page-promotions-gold-color: #F2C14E;
  --page-promotions-divider-color: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
  color: var(--page-promotions-text-main); /* Default text color for dark background */
  background-color: var(--page-promotions-bg-dark); /* Page background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure all images are responsive and content area doesn't cause overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background: var(--page-promotions-deep-green);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__main-title {
  color: var(--page-promotions-text-main);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-promotions__hero-description {
  color: var(--page-promotions-text-secondary);
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-text {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary {
  background-color: var(--page-promotions-card-bg);
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-border-color);
  padding: 12px 25px;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: #ffffff;
  border-color: var(--page-promotions-primary-color);
}

.page-promotions__btn-text {
  background: none;
  color: var(--page-promotions-glow-color);
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 10px;
}

.page-promotions__btn-text:hover {
  color: var(--page-promotions-gold-color);
}

.page-promotions__section-title {
  color: var(--page-promotions-text-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--page-promotions-primary-color) 0%, var(--page-promotions-secondary-color) 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__introduction-section,
.page-promotions__highlight-promotions,
.page-promotions__how-to-participate,
.page-promotions__terms-conditions,
.page-promotions__why-choose-us,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 80px 0;
}

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

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  color: var(--page-promotions-text-main);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-promotions__card-description {
  color: var(--page-promotions-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__step-title {
  color: var(--page-promotions-glow-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  color: var(--page-promotions-text-secondary);
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  color: var(--page-promotions-text-secondary);
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.page-promotions__list-icon {
  color: var(--page-promotions-gold-color);
  font-size: 1.2rem;
  margin-right: 10px;
  line-height: 1;
}

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

.page-promotions__feature-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__feature-title {
  color: var(--page-promotions-text-main);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-promotions__feature-item p {
  color: var(--page-promotions-text-secondary);
  font-size: 0.95rem;
}

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

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

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--page-promotions-text-main);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-item summary:hover {
  background-color: rgba(var(--page-promotions-primary-color), 0.1);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-promotions-glow-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-promotions-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__conclusion-section {
  text-align: center;
}

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

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

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

  .page-promotions__introduction-section,
  .page-promotions__highlight-promotions,
  .page-promotions__how-to-participate,
  .page-promotions__terms-conditions,
  .page-promotions__why-choose-us,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 60px 0;
  }

  .page-promotions__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .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__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

/* Ensure content area images are at least 200px */
.page-promotions__promo-card .page-promotions__card-image,
.page-promotions__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast specific rules for safety, overriding if necessary */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep green/dark backgrounds */
  background: var(--page-promotions-deep-green);
}

.page-promotions__light-bg {
  color: #333333; /* Light backgrounds (not used here, but for safety) */
  background: #ffffff;
}

.page-promotions__text-block, .page-promotions__card-description, .page-promotions__step-item p, .page-promotions__terms-list li, .page-promotions__feature-item p {
    color: var(--page-promotions-text-secondary); /* A7D9B8 on 08160F is good contrast */
}

.page-promotions__card-title, .page-promotions__feature-title {
    color: var(--page-promotions-text-main); /* F2FFF6 on 11271B is good contrast */
}

.page-promotions__step-title {
    color: var(--page-promotions-glow-color); /* 57E38D on 11271B is good contrast */
}