.page-latest-promotions-details {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #f4f4f4; /* From shared.css body */
}

.page-latest-promotions-details__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #FFD700, #000080); /* Blend brand colors */
  color: #ffffff;
  overflow: hidden;
}

.page-latest-promotions-details__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-latest-promotions-details__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-latest-promotions-details__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-latest-promotions-details__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-latest-promotions-details__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-latest-promotions-details__intro-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-latest-promotions-details__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700; /* Primary brand color */
  color: #000080; /* Secondary brand color for text, for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-latest-promotions-details__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-latest-promotions-details__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.page-latest-promotions-details__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-latest-promotions-details__section-title {
  font-size: 2.2em;
  color: #000080; /* Secondary brand color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-latest-promotions-details__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Primary brand color */
  border-radius: 2px;
}

.page-latest-promotions-details__sub-title {
  font-size: 1.8em;
  color: #000080;
  margin-top: 40px;
  margin-bottom: 25px;
}

.page-latest-promotions-details__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-latest-promotions-details__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-latest-promotions-details__list-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 1.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-latest-promotions-details__list-item::before {
  content: '✔';
  color: #FFD700; /* Primary brand color */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-latest-promotions-details__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-latest-promotions-details__step-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-latest-promotions-details__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-latest-promotions-details__step-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-latest-promotions-details__step-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 15px;
}

.page-latest-promotions-details__step-description {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

.page-latest-promotions-details__step-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-latest-promotions-details__step-description a:hover {
  text-decoration: underline;
}

.page-latest-promotions-details__terms-conditions {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-bottom: 60px;
}

.page-latest-promotions-details__terms-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
}

.page-latest-promotions-details__terms-list .page-latest-promotions-details__list-item {
  background: none;
  border: none;
  box-shadow: none;
  padding: 8px 0;
  margin-bottom: 5px;
  font-size: 1em;
}

.page-latest-promotions-details__terms-list .page-latest-promotions-details__list-item::before {
  content: none;
}

.page-latest-promotions-details__terms-conditions a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-latest-promotions-details__terms-conditions a:hover {
  text-decoration: underline;
}

.page-latest-promotions-details__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-latest-promotions-details__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-latest-promotions-details__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-latest-promotions-details__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.page-latest-promotions-details__game-title {
  font-size: 1.4em;
  color: #000080;
  margin: 20px 15px 10px;
}

.page-latest-promotions-details__game-title a {
  color: #000080;
  text-decoration: none;
}

.page-latest-promotions-details__game-title a:hover {
  color: #FFD700;
}

.page-latest-promotions-details__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-latest-promotions-details__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

/* FAQ容器样式 */
.page-latest-promotions-details__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-latest-promotions-details__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 20px;
  opacity: 0;
  color: #333333;
  background: #fdfdfd;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-latest-promotions-details__faq-item.active .page-latest-promotions-details__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 12px 12px;
}

/* Vấn đề style */
.page-latest-promotions-details__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-latest-promotions-details__faq-question:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
}

.page-latest-promotions-details__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề style */
.page-latest-promotions-details__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #000080; /* Secondary brand color */
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
}

/* Chuyển đổi icon */
.page-latest-promotions-details__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Primary brand color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.page-latest-promotions-details__faq-item.active .page-latest-promotions-details__faq-toggle {
  color: #000080;
  border-color: #000080;
  transform: rotate(180deg);
}

.page-latest-promotions-details__cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #000080; /* Secondary brand color */
  border-radius: 12px;
  margin-top: 60px;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-latest-promotions-details__cta-section .page-latest-promotions-details__section-title {
  color: #FFD700;
}

.page-latest-promotions-details__cta-section .page-latest-promotions-details__section-title::after {
  background-color: #ffffff;
}

.page-latest-promotions-details__cta-section .page-latest-promotions-details__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-latest-promotions-details__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-latest-promotions-details__btn-primary,
.page-latest-promotions-details__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-latest-promotions-details__btn-primary {
  background: #FFD700; /* Primary brand color */
  color: #000080; /* Secondary brand color for text */
  border-color: #FFD700;
}

.page-latest-promotions-details__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-latest-promotions-details__btn-secondary {
  background: transparent;
  color: #FFD700; /* Primary brand color for text */
  border-color: #FFD700;
}

.page-latest-promotions-details__btn-secondary:hover {
  background: #FFD700;
  color: #000080;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-latest-promotions-details__main-title {
    font-size: 2.8em;
  }

  .page-latest-promotions-details__intro-description {
    font-size: 1.2em;
  }

  .page-latest-promotions-details__section-title {
    font-size: 2em;
  }

  .page-latest-promotions-details__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-latest-promotions-details__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-latest-promotions-details__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-latest-promotions-details__intro-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-latest-promotions-details__cta-button {
    padding: 15px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-latest-promotions-details__content-area {
    padding: 40px 15px;
  }

  .page-latest-promotions-details__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-latest-promotions-details__sub-title {
    font-size: 1.4em;
  }

  .page-latest-promotions-details__text-block {
    font-size: 1em;
  }

  .page-latest-promotions-details__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-latest-promotions-details__steps-grid,
  .page-latest-promotions-details__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-latest-promotions-details__step-card,
  .page-latest-promotions-details__game-card {
    padding: 20px;
  }

  .page-latest-promotions-details__step-title {
    font-size: 1.3em;
  }

  .page-latest-promotions-details__terms-conditions {
    padding: 30px;
  }

  .page-latest-promotions-details__terms-list {
    padding-left: 20px;
  }

  .page-latest-promotions-details__game-image {
    height: 180px;
  }

  .page-latest-promotions-details__game-title {
    font-size: 1.2em;
  }

  /* FAQ Mobile Styles */
  .page-latest-promotions-details__faq-question {
    padding: 15px 20px;
  }

  .page-latest-promotions-details__faq-question h3 {
    font-size: 1.05em;
  }

  .page-latest-promotions-details__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-latest-promotions-details__faq-item.active .page-latest-promotions-details__faq-answer {
    padding: 15px !important;
  }

  .page-latest-promotions-details__cta-section {
    padding: 40px 15px;
  }

  .page-latest-promotions-details__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-latest-promotions-details__btn-primary,
  .page-latest-promotions-details__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Image responsiveness for all images */
  .page-latest-promotions-details img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-latest-promotions-details__section,
  .page-latest-promotions-details__card,
  .page-latest-promotions-details__container,
  .page-latest-promotions-details__hero-container,
  .page-latest-promotions-details__terms-conditions,
  .page-latest-promotions-details__cta-section,
  .page-latest-promotions-details__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-latest-promotions-details__hero-section .page-latest-promotions-details__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-latest-promotions-details__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-latest-promotions-details__main-title {
    font-size: 1.8em;
  }

  .page-latest-promotions-details__section-title {
    font-size: 1.6em;
  }

  .page-latest-promotions-details__sub-title {
    font-size: 1.2em;
  }

  .page-latest-promotions-details__faq-question h3 {
    font-size: 1em;
  }
}