/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-text: #FFFF00;
  --background-color-page: #FFFFFF;
  --border-color: #e0e0e0;
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  box-sizing: border-box;
}

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

.page-promotions__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--register-login-text);
  border: 2px solid var(--register-button-bg);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: var(--login-button-bg);
  color: var(--register-login-text);
  border: 2px solid var(--login-button-bg);
}

.page-promotions__btn-secondary:hover {
  background-color: darken(var(--login-button-bg), 10%);
  transform: translateY(-2px);
}

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

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

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

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit;
}

.page-promotions__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: inherit;
}

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

.page-promotions__features-grid,
.page-promotions__promotion-cards-grid,
.page-promotions__steps-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

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

.page-promotions__feature-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text-dark);
}

.page-promotions__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__feature-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-promotions__promotion-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  text-align: left;
}

.page-promotions__promotion-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-dark);
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__card-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-dark);
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__card-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

.page-promotions__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-promotions__step-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text-dark);
  position: relative;
}

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-block;
  padding-right: 10px;
}

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

.page-promotions__step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-promotions__cta-bottom {
  margin-top: 50px;
}

.page-promotions__terms-list,
.page-promotions__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-promotions__terms-list li,
.page-promotions__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__list-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-promotions__terms-list p,
.page-promotions__tips-list p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

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

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none;
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-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: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  border-top: none;
}

.page-promotions__conclusion .page-promotions__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  }
}

@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__hero-content {
    margin-top: 20px;
    padding: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
  }

  .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__section {
    padding: 50px 15px;
  }

  .page-promotions__text-block {
    font-size: 1rem;
  }

  .page-promotions__features-grid,
  .page-promotions__promotion-cards-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__feature-item,
  .page-promotions__promotion-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 1.25rem;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

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

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

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-promotions__hero-section,
  .page-promotions__promotion-types,
  .page-promotions__terms-conditions,
  .page-promotions__conclusion {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-promotions__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}