.page-promotions-latest-offers {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff);
}

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

.page-promotions-latest-offers__section {
  padding: 60px 0;
}

.page-promotions-latest-offers__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions-latest-offers__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions-latest-offers__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-promotions-latest-offers__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions-latest-offers__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions-latest-offers__link-text {
  color: #26A9E0;
  text-decoration: underline;
}

/* Hero Section */
.page-promotions-latest-offers__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #26A9E0;
  padding-top: 0; /* Assumes shared.css handles body padding for header offset */
  color: #ffffff;
  overflow: hidden;
}

.page-promotions-latest-offers__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-promotions-latest-offers__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.page-promotions-latest-offers__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions-latest-offers__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-promotions-latest-offers__btn-primary,
.page-promotions-latest-offers__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions-latest-offers__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions-latest-offers__btn-primary:hover {
  background-color: #d16b06;
}

.page-promotions-latest-offers__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions-latest-offers__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Intro Section */
.page-promotions-latest-offers__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions-latest-offers__ordered-list,
.page-promotions-latest-offers__unordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #333333;
}

.page-promotions-latest-offers__unordered-list {
  list-style-type: disc;
}

.page-promotions-latest-offers__ordered-list li,
.page-promotions-latest-offers__unordered-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Promotions Grid Section */
.page-promotions-latest-offers__promotions-grid-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-promotions-latest-offers__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
  height: 100%;
}

.page-promotions-latest-offers__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions-latest-offers__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-promotions-latest-offers__card-description {
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-promotions-latest-offers__card .page-promotions-latest-offers__btn-primary {
  margin: 0 20px;
  width: calc(100% - 40px);
}

/* Terms Section */
.page-promotions-latest-offers__terms-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Why Choose Section */
.page-promotions-latest-offers__why-choose-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-promotions-latest-offers__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions-latest-offers__feature-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions-latest-offers__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-promotions-latest-offers__feature-description {
  font-size: 16px;
  color: #ffffff;
  flex-grow: 1;
}

/* FAQ Section */
.page-promotions-latest-offers__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-promotions-latest-offers__faq-list {
  margin-top: 40px;
}

.page-promotions-latest-offers__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
}

.page-promotions-latest-offers__faq-question:hover {
  background-color: #f0f0f0;
}

.page-promotions-latest-offers__faq-title {
  margin: 0;
  font-size: 20px;
  color: #333333;
}

.page-promotions-latest-offers__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-promotions-latest-offers__faq-item.active .page-promotions-latest-offers__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-latest-offers__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 16px;
  color: #555555;
}

.page-promotions-latest-offers__faq-item.active .page-promotions-latest-offers__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-promotions-latest-offers__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555;
}

/* Conclusion Section */
.page-promotions-latest-offers__conclusion-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

/* Global image and container responsive styles */
.page-promotions-latest-offers img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions-latest-offers__section,
.page-promotions-latest-offers__container,
.page-promotions-latest-offers__card,
.page-promotions-latest-offers__feature-card,
.page-promotions-latest-offers__faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-promotions-latest-offers__main-title {
    font-size: 40px;
  }

  .page-promotions-latest-offers__hero-description {
    font-size: 20px;
  }

  .page-promotions-latest-offers__section-title {
    font-size: 32px;
  }

  .page-promotions-latest-offers__sub-title {
    font-size: 24px;
  }

  .page-promotions-latest-offers__text-block,
  .page-promotions-latest-offers__ordered-list li,
  .page-promotions-latest-offers__unordered-list li,
  .page-promotions-latest-offers__card-description,
  .page-promotions-latest-offers__feature-description,
  .page-promotions-latest-offers__faq-answer p {
    font-size: 17px;
  }

  .page-promotions-latest-offers__card-title,
  .page-promotions-latest-offers__feature-title,
  .page-promotions-latest-offers__faq-title {
    font-size: 22px;
  }

  .page-promotions-latest-offers__btn-primary,
  .page-promotions-latest-offers__btn-secondary {
    font-size: 17px;
    padding: 12px 25px;
  }

  .page-promotions-latest-offers__promotions-grid,
  .page-promotions-latest-offers__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-promotions-latest-offers__hero-section {
    min-height: 400px;
    padding: 60px 0;
  }

  .page-promotions-latest-offers__hero-content {
    padding: 20px 15px;
  }

  .page-promotions-latest-offers__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions-latest-offers__hero-description {
    font-size: 18px;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-promotions-latest-offers__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-latest-offers__btn-primary,
  .page-promotions-latest-offers__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }

  /* 其他内容模块 */
  .page-promotions-latest-offers__section {
    padding: 40px 0;
  }

  .page-promotions-latest-offers__container {
    padding: 0 15px;
  }

  .page-promotions-latest-offers__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-promotions-latest-offers__sub-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-promotions-latest-offers__text-block,
  .page-promotions-latest-offers__ordered-list li,
  .page-promotions-latest-offers__unordered-list li,
  .page-promotions-latest-offers__card-description,
  .page-promotions-latest-offers__feature-description,
  .page-promotions-latest-offers__faq-answer p {
    font-size: 16px;
  }

  .page-promotions-latest-offers__ordered-list,
  .page-promotions-latest-offers__unordered-list {
    padding-left: 20px;
  }

  /* 游戏展示区域 (Promotions Grid) */
  .page-promotions-latest-offers__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-latest-offers__card {
    margin-bottom: 20px;
  }

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

  .page-promotions-latest-offers__card-title,
  .page-promotions-latest-offers__feature-title,
  .page-promotions-latest-offers__faq-title {
    font-size: 20px;
  }

  .page-promotions-latest-offers__card .page-promotions-latest-offers__btn-primary {
    margin: 0 15px;
    width: calc(100% - 30px);
  }

  /* Feature Grid (Why Choose Section) */
  .page-promotions-latest-offers__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-latest-offers__feature-card {
    padding: 25px;
  }

  .page-promotions-latest-offers__feature-image {
    width: 120px;
    height: 120px;
  }

  /* FAQ Section */
  .page-promotions-latest-offers__faq-question {
    padding: 15px;
    font-size: 18px;
  }

  .page-promotions-latest-offers__faq-title {
    font-size: 18px;
  }

  .page-promotions-latest-offers__faq-answer {
    padding: 0 15px;
  }

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

  /* 通用图片与容器 */
  .page-promotions-latest-offers img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 🚨 LOGO轮播项特殊要求：确保 .page-promotions-latest-offers__logo-item 保持 80x80px */
  /* 如果有logo轮播，需要特别排除 */
  /* .page-promotions-latest-offers__logo-item { */
  /*   width: 80px !important; */
  /*   height: 80px !important; */
  /*   max-width: 80px !important; */
  /*   flex-shrink: 0; */
  /* } */

  .page-promotions-latest-offers__section,
  .page-promotions-latest-offers__card,
  .page-promotions-latest-offers__container,
  .page-promotions-latest-offers__feature-card,
  .page-promotions-latest-offers__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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