.page-promotions {
  color: #ffffff; /* Sẽ được điều chỉnh bởi hệ thống dựa trên độ sáng của body background */
  background-color: #121212; /* Body background từ shared.css, đảm bảo màu chữ sáng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Đảm bảo khoảng trống phía dưới footer */
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-promotions__hero-section {
  padding-top: 120px; /* Desktop: Điều chỉnh dựa trên chiều cao header */
  position: relative;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.9)), url('[GALLERY:bg:ibet188,promotions,background,dark,gold]') no-repeat center center/cover;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-promotions__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Màu vàng kim chủ đạo */
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  object-fit: cover;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Màu vàng kim */
  color: #1A1A1A; /* Màu đen đậm */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  background: #e6c200; /* Màu vàng đậm hơn khi hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Màu vàng kim */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px; /* Khoảng cách giữa các section */
}

.page-promotions__section-intro {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__featured-promos {
  background-color: #1A1A1A; /* Nền màu đen phụ */
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions__promo-card-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__promo-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__promo-card-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__promo-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: #FFD700;
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__promo-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.1);
  padding: 15px;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-promotions__step-item p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__step-item p a:hover {
  text-decoration: underline;
}

.page-promotions__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-promotions__terms-conditions {
  padding: 60px 0;
  background-color: #1A1A1A;
}

.page-promotions__terms-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__terms-content p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-promotions__terms-content ul {
  list-style-type: disc;
  margin-left: 25px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-promotions__terms-content li {
  font-size: 16px;
  margin-bottom: 10px;
}

.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  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: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  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, 255, 255, 0.12);
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #f0f0f0;
  transform: rotate(45deg); /* Thay đổi dấu + thành X */
}

.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;
  color: #e0e0e0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2); /* Nền tối hơn cho câu trả lời */
  border-radius: 0 0 10px 10px;
}

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

.page-promotions__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__faq-answer p a:hover {
  text-decoration: underline;
}

.page-promotions__cta-bottom {
  padding: 80px 0;
  background-color: #1A1A1A;
  text-align: center;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #FFD700;
  margin-bottom: 25px;
}

.page-promotions__cta-bottom p {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 42px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__promo-card-title {
    font-size: 22px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__hero-section {
    padding-top: 100px; /* Tablet: Điều chỉnh dựa trên chiều cao header */
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 100px !important; /* Mobile: Điều chỉnh dựa trên chiều cao header */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .page-promotions__hero-container {
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__main-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  .page-promotions__cta-button {
    font-size: 18px;
    padding: 12px 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__container {
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__section-title {
    font-size: 28px;
    padding-top: 20px;
  }
  .page-promotions__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card,
  .page-promotions__step-item {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__promo-card-image {
    height: 180px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-promotions__promo-card-title {
    font-size: 20px;
  }
  .page-promotions__promo-card-description,
  .page-promotions__terms-content p,
  .page-promotions__terms-content li,
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  .page-promotions__promo-card-button {
    font-size: 15px;
    padding: 10px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__step-icon {
    width: 100px;
    height: 100px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__cta-center {
    margin-top: 40px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions__cta-bottom {
    padding: 60px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__cta-bottom p {
    font-size: 16px;
  }

  /* General image and container responsive styles */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-section,
  .page-promotions__featured-promos,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-image {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__cta-button,
  .page-promotions__promo-card-button {
    padding-left: 15px;
    padding-right: 15px;
  }
}