/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
  --login-button-color: #EA7C07;
}

.page-promotions {
  color: var(--text-color-dark);
  background-color: var(--background-light);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-promotions__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-promotions__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-promotions h1 {
  font-weight: bold;
  line-height: 1.2;
  color: inherit;
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: clamp(28px, 4vw, 48px); /* H1 size with clamp */
}

.page-promotions h2 {
  font-weight: bold;
  line-height: 1.3;
  color: inherit;
  font-size: clamp(24px, 3.5vw, 36px);
}

.page-promotions h3 {
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
  font-size: clamp(20px, 2.5vw, 24px);
}

.page-promotions a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 600px;
  overflow: hidden;
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-promotions__subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Using login color for primary CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
  background: #E06C00; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--inverted {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--inverted:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Promotion Types Section */
.page-promotions__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
  color: var(--text-color-dark);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-primary:hover {
  background: #1e87b7; /* Slightly darker primary */
}

/* How to Participate Section */
.page-promotions__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-promotions__step-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-light);
}

.page-promotions__step-description a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: var(--login-button-color);
}

.page-promotions__centered-button {
  text-align: center;
  margin-top: 40px;
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-promotions__terms-item {
  background: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.6;
}

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

.page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__feature-description {
  font-size: 16px;
  line-height: 1.6;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: var(--text-color-dark);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.6;
}

.page-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 80px 20px;
}

.page-promotions__final-cta .page-promotions__section-title {
  color: var(--text-color-light);
}

.page-promotions__final-cta .page-promotions__paragraph {
  color: var(--text-color-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    min-height: 500px;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__hero-content {
    padding: 0 15px;
  }
  .page-promotions h1 {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-promotions__subtitle {
    font-size: 18px;
  }
  .page-promotions__section-title {
    font-size: clamp(30px, 4vw, 32px);
  }
  .page-promotions__paragraph {
    font-size: 17px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-description {
    font-size: 15px;
  }
  .page-promotions__step-title {
    font-size: 22px;
  }
  .page-promotions__feature-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    min-height: auto;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__hero-image-wrapper {
    border-radius: 8px;
  }
  .page-promotions__hero-image-wrapper img,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions h1 {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-promotions__subtitle {
    font-size: 16px;
  }
  .page-promotions__section-title {
    font-size: clamp(26px, 5vw, 30px);
  }
  .page-promotions__paragraph {
    font-size: 16px;
  }
  .page-promotions__cta-button,
  .page-promotions__btn-primary {
    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__promo-card-image {
    height: auto;
  }
  .page-promotions__promo-card {
    padding: 20px;
  }
  .page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-qtext {
    font-size: 15px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  .page-promotions__final-cta {
    padding: 50px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions h1 {
    font-size: 28px;
  }
  .page-promotions__promo-card-image {
    height: 180px;
  }
  .page-promotions__step-number {
    font-size: 40px;
  }
  .page-promotions__feature-icon {
    width: 80px;
    height: 80px;
  }
}