/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;
  --bg-color: #FFFFFF;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is light, so text is dark */
  background-color: var(--bg-color);
}

/* 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, header offset handled by body */
  background-color: #f8f8f8;
}

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

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

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

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

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__intro-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-register {
  background: var(--btn-register-bg);
  color: var(--btn-font-color);
}

.page-promotions__btn-login {
  background: var(--btn-login-bg);
  color: var(--btn-font-color);
}

.page-promotions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-large {
  padding: 18px 50px;
  font-size: 20px;
}

/* General Section Styles */
.page-promotions__section {
  padding: 60px 20px;
}

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

.page-promotions__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__dark-bg .page-promotions__text-link {
  color: var(--btn-font-color);
}

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

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

.page-promotions__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-promotions__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

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

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #005a2e;
}

/* Step List */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__step-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--btn-font-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-light);
}

.page-promotions__step-list li strong {
  color: var(--btn-font-color);
}

.page-promotions__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
  color: #005a2e;
}

.page-promotions__dark-bg .page-promotions__text-link {
  color: var(--btn-font-color);
}

.page-promotions__dark-bg .page-promotions__text-link:hover {
  color: #fff;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__terms-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
  transition: background-color 0.3s ease;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.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 5px 5px;
  color: var(--text-dark);
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* CTA Section */
.page-promotions__cta-section {
  background-color: #f0f0f0;
  text-align: center;
  padding: 80px 20px;
}

.page-promotions__cta-section .page-promotions__section-title {
  margin-bottom: 25px;
}

.page-promotions__cta-section .page-promotions__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 32px;
  }

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-image img {
    border-radius: 4px;
  }
  
  .page-promotions__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-promotions__intro-description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-promotions__cta-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-login,
  .page-promotions__btn-register,
  .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-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

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

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

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

  .page-promotions__promo-card img {
    height: 200px;
  }

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

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

  .page-promotions__card-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-promotions__step-list li {
    font-size: 15px;
    padding: 15px;
  }

  .page-promotions__terms-list {
    font-size: 15px;
    margin-left: 15px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 15px; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
  .page-promotions__faq-answer p { font-size: 15px; }

  .page-promotions__cta-section {
    padding: 60px 15px;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}