/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light-transparent: rgba(255, 255, 255, 0.1);
  --border-light-transparent: rgba(255, 255, 255, 0.2);
}

/* 🚨 Cần thêm padding-top cho nội dung chính để tránh bị che bởi header cố định */
.page-promotions {
  padding-top: 120px; /* Điều chỉnh tùy theo chiều cao của header */
  background-color: var(--bg-dark); /* Body background is #000 */
  color: var(--text-light); /* Light text on dark body background */
  font-family: 'Arial', sans-serif;
}

/* 桌面端默认样式 */
.page-promotions__title-section,
.page-promotions__overview-section,
.page-promotions__detail-section,
.page-promotions__faq-section,
.page-promotions__brand-section,
.page-promotions__blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__title-section {
  text-align: center;
  padding-top: 60px; /* Adjust if needed, but main padding-top is on .page-promotions */
  padding-bottom: 60px;
}

.page-promotions__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-promotions__title-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Overview Section */
.page-promotions__overview-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-promotions__overview-title,
.page-promotions__detail-main-title,
.page-promotions__how-to-claim-title,
.page-promotions__faq-main-title,
.page-promotions__brand-title,
.page-promotions__blog-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-promotions__overview-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__overview-item {
  background: var(--bg-light-transparent);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light-transparent);
}

.page-promotions__overview-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__overview-icon {
  width: 120px; /* Min size 200x200, so this icon is for visual design, not small icons */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  max-width: 100%;
  height: auto;
}

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

.page-promotions__overview-item-text {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.5;
}

/* Detail Section */
.page-promotions__detail-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions__promotion-article {
  background: var(--bg-light-transparent);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light-transparent);
}

.page-promotions__article-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.page-promotions__article-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-promotions__promotion-article p {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 900px;
  text-align: justify;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-promotions__how-to-claim {
  background: var(--bg-light-transparent);
  border-radius: 12px;
  padding: 50px;
  margin-top: 50px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light-transparent);
  text-align: center;
}

.page-promotions__how-to-claim-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.page-promotions__how-to-claim p {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__claim-steps li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--primary-color);
  padding: 20px 30px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__claim-steps p {
  font-size: 1em;
  color: var(--text-light);
  margin: 0;
  text-align: left;
}

.page-promotions__claim-steps a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #1a1a1a; /* Lighter dark background for contrast with text */
  border-top: 1px solid var(--border-light-transparent);
}

.page-promotions__faq-main-title {
  color: var(--primary-color);
  margin-bottom: 50px;
  text-align: center;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light-transparent);
  border: 1px solid var(--border-light-transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__faq-question:hover {
  background: rgba(255, 215, 0, 0.05);
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  background: var(--primary-color);
  color: var(--bg-dark);
  border-bottom-color: var(--primary-color);
}

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

.page-promotions__faq-item.active .page-promotions__faq-question h3 {
  color: var(--bg-dark);
}

.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: 30px;
  height: 30px;
}

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

.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;
  background: rgba(255, 255, 255, 0.02);
  border-top: none;
  color: var(--text-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 8px 8px;
}

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

/* Brand Section */
.page-promotions__brand-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--bg-dark);
}

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

.page-promotions__brand-item {
  background: var(--bg-light-transparent);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light-transparent);
  text-align: center;
}

.page-promotions__brand-item-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promotions__brand-item p {
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__brand-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Blog Section */
.page-promotions__blog-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #1a1a1a; /* Lighter dark background */
  border-top: 1px solid var(--border-light-transparent);
}

.page-promotions__blog-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 50px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-promotions__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__blog-item {
  background: var(--bg-light-transparent);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light-transparent);
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px; /* Add padding at the bottom of the link area */
}

.page-promotions__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-promotions__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 0 20px 10px;
  line-height: 1.4;
  text-align: left;
}

.page-promotions__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  margin: 0 20px 15px;
  line-height: 1.5;
  text-align: left;
}

.page-promotions__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  margin: 0 20px;
  display: block;
  text-align: right;
}

.page-promotions__blog-view-all {
  text-align: center;
  margin-top: 50px;
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
  cursor: pointer;
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* 🚨 Responsive Design for Tablets and Mobiles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }
  .page-promotions__overview-title,
  .page-promotions__detail-main-title,
  .page-promotions__how-to-claim-title,
  .page-promotions__faq-main-title,
  .page-promotions__brand-title,
  .page-promotions__blog-title {
    font-size: 2.2em;
  }
  .page-promotions__article-title {
    font-size: 1.8em;
  }
  .page-promotions__claim-step-title {
    font-size: 1.3em;
  }
  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile padding-top to clear fixed header */
  }
  .page-promotions__title-section,
  .page-promotions__overview-section,
  .page-promotions__detail-section,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-promotions__title-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__overview-title,
  .page-promotions__detail-main-title,
  .page-promotions__how-to-claim-title,
  .page-promotions__faq-main-title,
  .page-promotions__brand-title,
  .page-promotions__blog-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__overview-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-promotions__overview-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__overview-item {
    padding: 25px;
  }
  .page-promotions__overview-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
  .page-promotions__overview-item-title {
    font-size: 1.4em;
  }
  .page-promotions__overview-item-text {
    font-size: 0.9em;
  }

  .page-promotions__promotion-article {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  .page-promotions__article-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-promotions__article-image {
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__promotion-article p {
    font-size: 0.95em;
    text-align: left;
  }
  .page-promotions__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__how-to-claim {
    padding: 40px 20px;
  }
  .page-promotions__how-to-claim-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-promotions__how-to-claim p {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-promotions__claim-steps li {
    padding: 15px 20px;
  }
  .page-promotions__claim-step-title {
    font-size: 1.2em;
  }
  .page-promotions__claim-steps p {
    font-size: 0.9em;
  }

  .page-promotions__faq-main-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 1em;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions__brand-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-promotions__brand-item {
    padding: 25px;
  }
  .page-promotions__brand-item-title {
    font-size: 1.5em;
  }
  .page-promotions__brand-item p {
    font-size: 0.95em;
  }
  .page-promotions__brand-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__blog-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-promotions__blog-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__blog-item-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__blog-item-title {
    font-size: 1.2em;
    margin: 0 15px 8px;
  }
  .page-promotions__blog-item-excerpt {
    font-size: 0.9em;
    margin: 0 15px 12px;
  }
  .page-promotions__blog-item-date {
    margin: 0 15px;
  }
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Ensure all images are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}