/* style/promotions.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-background: #08160F;
  --color-card-bg: #11271B;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: none;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-promotions__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-card-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

/* Hero Section */
.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, body handles header offset */
  overflow: hidden;
}

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

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

.page-promotions__hero-content {
  max-width: 900px;
  text-align: center;
  color: var(--color-text-main);
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Introduction Section */
.page-promotions__introduction-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-divider);
}

/* Featured Offers Section */
.page-promotions__featured-offers-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

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

.page-promotions__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

/* How to Participate Section */
.page-promotions__how-to-participate-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
  border-top: 1px solid var(--color-divider);
}

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

.page-promotions__list-item {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__list-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: bold;
  color: var(--color-gold);
  background-color: var(--color-deep-green);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gold);
}

.page-promotions__list-item:nth-child(n+10)::before {
    content: counter(step-counter);
}

.page-promotions__list-title {
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-promotions__list-item p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

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

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.page-promotions__checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-promotions__checklist .page-promotions__list-item {
  background-color: var(--color-card-bg);
  border-left: 5px solid var(--color-gold);
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--color-text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 30px;
}

.page-promotions__checklist .page-promotions__list-item::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  font-weight: bold;
  font-size: 18px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-divider);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__faq-item {
  background-color: var(--color-deep-green);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--color-gold);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--color-gold);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  background-color: var(--color-card-bg);
}

/* Why Choose Us Section */
.page-promotions__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-promotions__advantages-list .page-promotions__list-item {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--color-secondary);
  display: flex;
  align-items: center;
  font-size: 17px;
  color: var(--color-text-secondary);
}

.page-promotions__advantages-list .page-promotions__list-item strong {
  color: var(--color-gold);
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__offer-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

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

  .page-promotions__main-title {
    font-size: 32px;
  }

  .page-promotions__hero-description {
    font-size: 18px;
  }

  .page-promotions__section-title {
    font-size: 28px;
  }

  .page-promotions__text-block {
    font-size: 16px;
  }

  .page-promotions__cta-button,
  .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__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__offer-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__card-description {
    font-size: 15px;
  }

  .page-promotions__list-item {
    padding-left: 60px;
    padding: 20px;
  }

  .page-promotions__list-item::before {
    font-size: 24px;
    width: 40px;
    height: 40px;
    left: 15px;
  }

  .page-promotions__list-title {
    font-size: 20px;
  }

  .page-promotions__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 15px;
  }

  .page-promotions__advantages-list {
    grid-template-columns: 1fr;
  }

  /* Mobile image and video responsive adaptation */
  .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__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure images within content sections are not too small */
.page-promotions img:not(.page-promotions__card-image) {
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-image {
  min-width: 200px;
  min-height: 150px; /* Card images can be slightly smaller height but still substantial */
}