:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A2E;
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --card-border-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-promotions {
  color: var(--text-light);
  padding-top: 120px; /* Adjust for fixed header */
  background-color: var(--background-dark);
}

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

.page-promotions__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.page-promotions__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(26, 26, 46, 0.8) 100%), url('[GALLERY:hero:69vin_game,khuyen_mai,background]') no-repeat center center/cover;
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--primary-color);
}

.page-promotions__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

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

.page-promotions__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

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

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

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

/* Offers Section */
.page-promotions__offers-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-promotions__offer-card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-promotions__offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-promotions__offer-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--card-border-dark-mode);
}

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

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

.page-promotions__offer-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__offer-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__offer-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-promotions__guide-block {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-promotions__guide-list,
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__guide-list li,
.page-promotions__terms-list li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

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

.page-promotions__guide-list li:before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__terms-list li:before {
  content: "\2022"; /* Bullet point */
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 24px;
  line-height: 1;
}

.page-promotions__guide-block p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__faq-question:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--primary-color);
}

.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(--primary-color);
}

.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(--primary-color);
  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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border-dark-mode);
  border-top: none;
  border-radius: 0 0 10px 10px;
  color: var(--text-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-promotions__faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

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

.page-promotions__brand-content {
  font-size: 17px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.page-promotions__brand-content p {
  margin-bottom: 20px;
}

.page-promotions__brand-content strong {
  color: var(--primary-color);
}

/* Blog Section */
.page-promotions__blog-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-promotions__blog-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-promotions__blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-promotions__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--card-border-dark-mode);
}

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

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.4;
}

.page-promotions__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__blog-item-date {
  font-size: 14px;
  color: #aaa;
  text-align: right;
  margin-top: auto;
}

.page-promotions__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 44px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__guide-block,
  .page-promotions__brand-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important;
  }
  .page-promotions__hero-section {
    padding: 60px 0;
  }
  .page-promotions__main-title {
    font-size: 36px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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: 16px !important;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-promotions__offers-section,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section {
    padding: 50px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__offer-image,
  .page-promotions__blog-image {
    height: 180px;
  }
  .page-promotions__offer-title,
  .page-promotions__blog-item-title {
    font-size: 20px;
  }
  .page-promotions__offer-description,
  .page-promotions__blog-item-excerpt,
  .page-promotions__guide-list li,
  .page-promotions__terms-list li,
  .page-promotions__guide-block p,
  .page-promotions__brand-content p,
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  .page-promotions__guide-block {
    padding: 25px;
  }
  .page-promotions__guide-title {
    font-size: 24px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image and Video Responsive Fixes */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-section,
  .page-promotions__offers-section,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__brand-section,
  .page-promotions__blog-section,
  .page-promotions__container,
  .page-promotions__offers-grid,
  .page-promotions__offer-card,
  .page-promotions__guide-block,
  .page-promotions__faq-list,
  .page-promotions__faq-item,
  .page-promotions__blog-list,
  .page-promotions__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons,
  .page-promotions__view-all-button-container {
    padding-left: 0;
    padding-right: 0;
  }
}