/* style/promotions.css */

/* Biến màu sắc */
:root {
  --primary-color: #E44D26;
  --secondary-color: #333333;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Từ body background của shared.css */
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Tổng thể trang chữ sáng vì body nền tối */
  background-color: var(--bg-dark);
}

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

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

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-promotions__dark-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 80px 0;
  overflow: hidden;
  min-height: 600px; /* Đảm bảo chiều cao tối thiểu */
  padding-top: var(--header-offset, 120px);
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Làm tối ảnh nền để chữ nổi bật */
}

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

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

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

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

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

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

/* Introduction Section */
.page-promotions__introduction-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

/* Promotion Types Section */
.page-promotions__types-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.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(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
}

.page-promotions__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* How to Join Section */
.page-promotions__how-to-join-section {
  padding: 60px 0;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__steps-list li {
  background-color: var(--card-bg-dark-mode);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__steps-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__steps-list li a:hover {
  text-decoration: underline;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.page-promotions__terms-list {
  list-style: disc;
  margin-left: 25px;
  color: var(--text-light);
  font-size: 1.1em;
}

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

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

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-dark-mode);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question:hover {
  background-color: lighten(var(--secondary-color), 5%);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  background-color: var(--card-bg-dark-mode);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-promotions__cta-buttons .page-promotions__btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-promotions__cta-buttons .page-promotions__btn-primary:hover {
  background-color: lighten(var(--secondary-color), 10%);
  border-color: lighten(var(--secondary-color), 10%);
}

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

.page-promotions__cta-buttons .page-promotions__btn-secondary:hover {
  background-color: lighten(var(--text-light), 5%);
  border-color: lighten(var(--text-light), 5%);
}

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

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

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

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .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-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__text-block,
  .page-promotions__steps-list li,
  .page-promotions__terms-list li,
  .page-promotions__faq-question,
  .page-promotions__card-description {
    font-size: 1em;
  }

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

  .page-promotions__card-image,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }
}

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__hero-buttons,
  .page-promotions__cta-buttons {
    flex-direction: column;
  }
}