:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page, will be #F3F8FF */
  background-color: var(--deep-navy); /* From shared.css, body background is dark */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
  margin-bottom: 40px; /* Space between image and content */
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main); /* Light text on dark background */
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--gold); /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-promotions__hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-secondary); /* Secondary text color */
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure button container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button adapts to screen width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Light text on dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--gold); /* Gold text on dark background */
  border: 2px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: var(--gold);
  color: var(--deep-navy); /* Dark text on gold hover */
}

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: bold;
}

.page-promotions__section-title--light {
  color: var(--text-main); /* Light text for dark sections */
}

/* Text Blocks */
.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

.page-promotions__text-block--light {
  color: var(--text-main);
}

/* Promo Grid Section */
.page-promotions__promo-grid-section {
  padding: 60px 0;
  background-color: var(--deep-navy); /* Dark background for card section */
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border: 1px solid var(--border);
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
  padding: 0 20px;
  text-align: center;
}

.page-promotions__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 20px;
  flex-grow: 1; /* Allow description to take up available space */
  margin-bottom: 20px;
}

.page-promotions__promo-card .page-promotions__btn-primary {
  margin: 0 20px;
  width: calc(100% - 40px);
  max-width: none; /* Override max-width for card buttons */
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: var(--deep-navy); /* Dark background */
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--deep-navy);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--deep-navy); /* Dark background */
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg); /* Dark background for FAQ item */
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-promotions__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for webkit browsers */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--gold);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Responsible Gambling Section */
.page-promotions__responsible-gambling-section {
  padding: 60px 0 80px 0;
  background-color: var(--deep-navy);
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-promotions__hero-description {
    font-size: 1.1rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-promotions__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-promotions__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-promotions__hero-content {
    padding: 0 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-promotions__container,
  .page-promotions__overview-section .page-promotions__container,
  .page-promotions__promo-grid-section .page-promotions__container,
  .page-promotions__cta-section .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__responsible-gambling-section .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-promotions__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
  .page-promotions__promo-card .page-promotions__btn-primary {
    width: calc(100% - 30px) !important;
    margin: 0 15px !important;
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 产品展示图区域 (Promo Grid) */
  .page-promotions__promo-grid-section {
    padding: 40px 0;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding-bottom: 15px;
  }
  .page-promotions__promo-image {
    height: 150px;
    margin-bottom: 15px;
  }
  .page-promotions__card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding: 0 15px;
  }
  .page-promotions__card-description {
    font-size: 0.9rem;
    padding: 0 15px;
    margin-bottom: 15px;
  }

  /* Other content modules */
  .page-promotions__section-title {
    font-size: 1.8rem;
    padding-top: 30px;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 1rem;
    margin: 0 auto 20px auto;
  }
  .page-promotions__faq-section {
    padding: 40px 0;
  }
  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-promotions__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
  }
  .page-promotions__responsible-gambling-section {
    padding: 40px 0 60px 0;
  }
}