/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-bg: #C30808;
  --register-login-text: #FFFF00;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --background-color: #FFFFFF;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default to light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

/* Sections */
.page-promotions__hero-section,
.page-promotions__claim-guide-section,
.page-promotions__faq-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-promotions__featured-section,
.page-promotions__terms-section,
.page-promotions__cta-bottom-section {
  background-color: var(--background-color);
  color: var(--dark-text-color);
}

.page-promotions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
}

.page-promotions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__read-more-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-promotions__btn-primary:hover {
  background-color: darken(var(--register-login-bg), 10%);
  border-color: darken(var(--register-login-bg), 10%);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

.page-promotions__featured-section,
.page-promotions__claim-guide-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promotion-card {
  background-color: var(--card-bg-light);
  color: var(--dark-text-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-promotions__card-button {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
  align-self: flex-start;
}

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

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-promotions__guide-step-number {
  background-color: var(--register-login-bg);
  color: var(--register-login-text);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-promotions__guide-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

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

.page-promotions__guide-text a {
  color: var(--register-login-text);
  text-decoration: none;
}

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

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

.page-promotions__terms-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--dark-text-color);
}

.page-promotions__terms-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__read-more-button {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
}

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

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 1em;
  color: var(--light-text-color);
}

.page-promotions__cta-bottom-section .page-promotions__cta-image {
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  background-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section,
  .page-promotions__featured-section,
  .page-promotions__claim-guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section {
    padding: 40px 15px;
  }

  .page-promotions__hero-title {
    font-size: 2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__read-more-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

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

  .page-promotions__card-title {
    font-size: 1.2em;
  }

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

  /* Images responsiveness */
  .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-section,
  .page-promotions__promotion-card,
  .page-promotions__claim-guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom-section {
    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 {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }

  .page-promotions__section-title {
    font-size: 1.6em;
  }

  .page-promotions__hero-description {
    font-size: 0.9em;
  }
  
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }
}