/* style/promotions.css */

.page-promotions {
  background-color: #08160F; /* Nền chính theo màu tùy chỉnh */
  color: #F2FFF6; /* Màu chữ chính cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Padding-top nhỏ, body đã xử lý header offset */
  text-align: center;
  background-color: #08160F;
}

.page-promotions__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;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề chính */
  margin-bottom: 15px;
}

.page-promotions__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #F2FFF6;
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Màu nút chính */
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F; /* Màu xanh lá cây cho nút phụ */
}

.page-promotions__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-promotions__overview-section,
.page-promotions__categories-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__register-cta {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: #0A4B2C; /* Deep Green cho các section nền tối */
  color: #F2FFF6;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề phần */
  margin-bottom: 25px;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  color: #F2FFF6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-promotions__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-promotions__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-card {
  text-align: center;
  align-items: center;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 1rem;
  color: #A7D9B8;
}

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

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

.page-promotions__terms-list li {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #F2FFF6;
  position: relative;
  padding-left: 35px;
}

.page-promotions__terms-list li::before {
  content: '✓';
  color: #2AD16F;
  position: absolute;
  left: 15px;
  top: 15px;
  font-weight: 700;
}

.page-promotions__link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.page-promotions__link:hover {
  color: #57E38D;
  text-decoration: underline;
}

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

.page-promotions__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  background-color: #0A4B2C;
  border-bottom: 1px solid #1E3A2A;
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

.page-promotions__faq-item summary {
  list-style: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  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: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.7;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-promotions__register-cta {
  padding: 80px 0;
  background-color: #08160F;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-promotions__description {
    font-size: 1rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .page-promotions__overview-section,
  .page-promotions__categories-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__register-cta {
    padding: 40px 0;
  }

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

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__image-wrapper,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__card,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content does not overflow */
  }
  /* Specific padding for sections in mobile to prevent content touching edges */
  .page-promotions__overview-section .page-promotions__container,
  .page-promotions__categories-section .page-promotions__container,
  .page-promotions__how-to-claim-section .page-promotions__container,
  .page-promotions__terms-section .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__register-cta .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile button responsiveness */
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
  .page-promotions__text-block {
    font-size: 0.95rem;
  }
  .page-promotions__card-title {
    font-size: 1.3rem;
  }
  .page-promotions__card-description,
  .page-promotions__step-description {
    font-size: 0.9rem;
  }
  .page-promotions__terms-list li {
    font-size: 0.95rem;
    padding: 12px 15px 12px 30px;
  }
  .page-promotions__terms-list li::before {
    top: 12px;
  }
  .page-promotions__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}