/* style/promotions.css */

/* Cấu hình màu sắc */
:root {
  --page-promotions-primary-color: #003366;
  --page-promotions-secondary-color: #FFCC00;
  --page-promotions-text-light: #ffffff;
  --page-promotions-text-dark: #333333;
  --page-promotions-background-dark: #0d0d0d;
  --page-promotions-background-light: #f8f8f8;
  --page-promotions-card-bg-dark: rgba(255, 255, 255, 0.08);
  --page-promotions-card-bg-light: #ffffff;
  --page-promotions-border-color: #e0e0e0;
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-promotions {
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
  color: var(--page-promotions-text-light); /* Mặc định chữ sáng trên nền tối của body */
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px; /* Khoảng cách cho header cố định trên mobile */
  }
}

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

.page-promotions__main-heading {
  font-size: 42px;
  color: var(--page-promotions-secondary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-promotions-text-light);
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-promotions__section-description {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Sections */
.page-promotions__intro-section,
.page-promotions__new-member-section,
.page-promotions__existing-member-section,
.page-promotions__game-specific-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
  padding: 80px 0;
}

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

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

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description {
  color: var(--page-promotions-text-dark);
}

/* Buttons */
.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.page-promotions__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Image Full Width for Intro Section */
.page-promotions__image-full-width {
  width: 100%;
  margin-top: 50px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__image-full-width .page-promotions__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

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

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

.page-promotions__dark-bg-card .page-promotions__card-title,
.page-promotions__dark-bg-card .page-promotions__card-text {
  color: var(--page-promotions-text-light);
}

.page-promotions__promo-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-promotions__promo-image-wrapper .page-promotions__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: var(--page-promotions-primary-color);
}

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-secondary,
.page-promotions__game-promo-card .page-promotions__btn-secondary {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

/* How-to-claim list */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 60px auto 0 auto;
  max-width: 900px;
}

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions__step-item:last-child {
  margin-bottom: 0;
}

.page-promotions__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-promotions-secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--page-promotions-text-light);
}

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 60px auto 0 auto;
  max-width: 900px;
}

.page-promotions__terms-item {
  background-color: var(--page-promotions-card-bg-light);
  border-left: 5px solid var(--page-promotions-secondary-color);
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--page-promotions-text-dark);
}

.page-promotions__terms-item:last-child {
  margin-bottom: 0;
}

.page-promotions__terms-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--page-promotions-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__terms-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-promotions-text-dark);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 60px auto 0 auto;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--page-promotions-card-bg-dark);
}

.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 25px;
  opacity: 0;
  color: var(--page-promotions-text-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background-color: var(--page-promotions-card-bg-dark);
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--page-promotions-card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--page-promotions-secondary-color);
}

.page-promotions__faq-question:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.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(--page-promotions-text-light);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-promotions-secondary-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: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--page-promotions-text-light);
  transform: rotate(45deg);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-promotions__main-heading {
    font-size: 38px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__promo-grid,
  .page-promotions__game-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__intro-section,
  .page-promotions__new-member-section,
  .page-promotions__existing-member-section,
  .page-promotions__game-specific-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 50px 0;
  }
  .page-promotions__main-heading {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-promotions__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__promo-image-wrapper {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }
  .page-promotions__card-text {
    font-size: 15px;
    margin: 0 15px 15px 15px;
  }
  .page-promotions__promo-card .page-promotions__btn-secondary,
  .page-promotions__game-promo-card .page-promotions__btn-secondary {
    margin: 0 15px 15px 15px;
  }
  .page-promotions__step-item {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-promotions__step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-promotions__step-text {
    font-size: 15px;
  }
  .page-promotions__terms-item {
    padding: 20px;
    margin-bottom: 15px;
  }
  .page-promotions__terms-subtitle {
    font-size: 18px;
  }
  .page-promotions__terms-text {
    font-size: 15px;
  }
  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__game-promo-card,
  .page-promotions__image-full-width,
  .page-promotions__promo-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}