/* style/promotions.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a2e, so text should be light */
  background-color: transparent; /* Shared.css defines body background */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-block a {
  color: #FFFF00; /* Yellow for links to stand out */
  text-decoration: underline;
}

.page-promotions__text-block a:hover {
  color: #f0f0f0;
}

.page-promotions__highlight {
  color: #FFFF00; /* Yellow highlight for keywords */
  font-weight: bold;
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-promotions__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Custom colors for Register/Login buttons */
.page-promotions__btn-primary--register {
  background-color: #C30808; /* Red for register */
  border-color: #C30808;
  color: #FFFF00; /* Yellow font for register */
}

.page-promotions__btn-primary--register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-promotions__btn-secondary--login {
  background-color: transparent;
  border-color: #C30808; /* Red border for login */
  color: #FFFF00; /* Yellow font for login */
}

.page-promotions__btn-secondary--login:hover {
  background-color: #C30808;
  color: #ffffff; /* White font on hover for login */
}


/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #1a1a2e; /* Inherit from body or shared.css if defined, otherwise ensure contrast */
}

.page-promotions__dark-bg {
  background-color: #1a1a2e; /* Ensure dark background for sections */
  color: #ffffff; /* Light text for dark background */
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay for text readability */
  filter: none; /* Ensure no color filters */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  color: #ffffff; /* Ensure text is white on dark overlay */
}

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__overview-section .page-promotions__section-title {
  color: #333333;
}

.page-promotions__overview-section .page-promotions__section-title::after {
  background-color: #017439;
}

.page-promotions__overview-section .page-promotions__text-block a {
  color: #017439;
}

.page-promotions__overview-section .page-promotions__text-block a:hover {
  color: #005f2e;
}

.page-promotions__overview-section .page-promotions__highlight {
  color: #017439;
}

.page-promotions__content-image {
  display: block;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Categories Section */
.page-promotions__categories-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-promotions__categories-section .page-promotions__section-title {
  color: #ffffff;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px; /* Ensure cards have some height */
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}