/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-text: #FFFFFF; /* Adjusted for contrast */
  --dark-text: #333333;
  --light-text: #FFFFFF;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

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

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

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

.page-promotions__section-title {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__section-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
}

.page-promotions__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: var(--header-offset, 120px);
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9c68 100%); /* Green gradient */
  color: var(--light-text);
  overflow: hidden;
}

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

.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;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__hero-title {
  font-size: 52px;
  margin-bottom: 15px;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--light-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-promotions__btn-register:hover {
  background: darken(var(--register-button-bg), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-login:hover {
  background: darken(var(--login-button-bg), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-promotions__introduction-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__introduction-section .page-promotions__text-block {
  color: var(--dark-text);
}

/* Types Section */
.page-promotions__types-section {
  background: var(--primary-color);
  color: var(--light-text);
}

.page-promotions__types-section .page-promotions__section-title {
  color: var(--light-text);
}

.page-promotions__types-section .page-promotions__section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-promotions__card {
  background: var(--secondary-color);
  color: var(--dark-text);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  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(--dark-text);
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

/* How to Claim Section */
.page-promotions__how-to-claim-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-promotions__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--light-text);
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-content h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-content p {
  font-size: 17px;
  color: var(--dark-text);
  margin-bottom: 0;
}

.page-promotions__step-content p a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

/* Terms Section */
.page-promotions__terms-section {
  background: var(--primary-color);
  color: var(--light-text);
}

.page-promotions__terms-section .page-promotions__section-title {
  color: var(--light-text);
}

.page-promotions__terms-section .page-promotions__text-block {
  color: rgba(255, 255, 255, 0.9);
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--secondary-color);
  margin-top: 30px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-secondary:hover {
  background: transparent;
  color: var(--light-text);
  border-color: var(--light-text);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--primary-color);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--border-color);
}

.page-promotions__faq-answer p {
  color: var(--dark-text);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--dark-text);
  transform: rotate(180deg);
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9c68 100%);
  color: var(--light-text);
  padding: 80px 0;
}

.page-promotions__cta-final-content {
  max-width: 900px;
}

.page-promotions__cta-final-section .page-promotions__section-title {
  color: var(--light-text);
  font-size: 42px;
}

.page-promotions__cta-final-section .page-promotions__text-block {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Global image settings to prevent small icons */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block; /* Ensure no extra space below images */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 44px;
  }
  .page-promotions__hero-description {
    font-size: 20px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__section-subtitle {
    font-size: 18px;
  }
  .page-promotions__text-block {
    font-size: 17px;
  }
  .page-promotions__card-title {
    font-size: 22px;
  }
  .page-promotions__card-description {
    font-size: 15px;
  }
}

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

  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-title {
    font-size: 36px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }

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

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

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

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

  .page-promotions__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
    border-radius: 8px;
  }

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-promotions__list-item {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-promotions__step-content {
    text-align: center;
  }

  .page-promotions__step-content h3 {
    font-size: 20px;
  }

  .page-promotions__step-content p {
    font-size: 15px;
  }

  .page-promotions__content-image {
    border-radius: 8px;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__cta-final-section .page-promotions__section-title {
    font-size: 32px;
  }
  
  .page-promotions__cta-final-section .page-promotions__text-block {
    font-size: 16px;
  }

  /* Mobile image specific rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-container,
  .page-promotions__cta-final-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}