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

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-register-login-btn-color: #C30808;
  --page-register-login-font-color: #FFFF00;
  --page-body-bg: #0a0a0a; /* From shared.css */
  --page-text-color-on-dark: #ffffff; /* Text on dark background */
  --page-text-color-on-light: #333333; /* Text on light background */
}

/* Base styles for the page content */
.page-resources-latest-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-on-dark); /* Default text color for the page, as body is dark */
  background-color: var(--page-body-bg); /* Inherited from body, ensure consistency */
}

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

.page-resources-latest-promotions__section-title {
  font-size: 2.5em;
  color: var(--page-secondary-color); /* White text on dark background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-latest-promotions__text-block {
  font-size: 1.1em;
  color: var(--page-text-color-on-dark); /* White text on dark background */
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Section */
.page-resources-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  box-sizing: border-box;
}

.page-resources-latest-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* No filter property to change color */
}

.page-resources-latest-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources-latest-promotions__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-secondary-color);
  max-width: 900px;
  padding: 20px;
}

.page-resources-latest-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--page-secondary-color);
}

.page-resources-latest-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-secondary-color);
}

.page-resources-latest-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.page-resources-latest-promotions__btn-primary,
.page-resources-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding and border are included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-resources-latest-promotions__btn-primary {
  background-color: var(--page-register-login-btn-color); /* Red for CTA */
  color: var(--page-register-login-font-color); /* Yellow font */
  border: 2px solid var(--page-register-login-btn-color);
}

.page-resources-latest-promotions__btn-primary:hover {
  background-color: #a30606; /* Darker red */
  border-color: #a30606;
  color: var(--page-register-login-font-color);
}

.page-resources-latest-promotions__btn-secondary {
  background-color: transparent;
  color: var(--page-secondary-color); /* White text */
  border: 2px solid var(--page-secondary-color);
}

.page-resources-latest-promotions__btn-secondary:hover {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color); /* Dark green text */
  border-color: var(--page-secondary-color);
}

/* Section Styling */
.page-resources-latest-promotions__introduction-section,
.page-resources-latest-promotions__promo-category-section,
.page-resources-latest-promotions__vip-section,
.page-resources-latest-promotions__terms-section,
.page-resources-latest-promotions__cta-section {
  padding: 60px 0;
}

.page-resources-latest-promotions__dark-bg {
  background-color: var(--page-primary-color); /* Dark green background */
  color: var(--page-secondary-color); /* White text */
}

.page-resources-latest-promotions__dark-bg .page-resources-latest-promotions__section-title {
  color: var(--page-secondary-color);
}

.page-resources-latest-promotions__dark-bg .page-resources-latest-promotions__text-block {
  color: var(--page-secondary-color);
}

/* Card Grid */
.page-resources-latest-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-promotions__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--page-text-color-on-dark); /* White text */
}

.page-resources-latest-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  /* No filter property to change color */
}

.page-resources-latest-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-secondary-color); /* White text */
}

.page-resources-latest-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
  color: var(--page-text-color-on-dark); /* White text */
}

/* Info Blocks (for Terms & Conditions) */
.page-resources-latest-promotions__info-block {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--page-text-color-on-dark); /* White text */
}

.page-resources-latest-promotions__info-title {
  font-size: 1.4em;
  color: var(--page-secondary-color); /* White text */
  margin-bottom: 10px;
}

.page-resources-latest-promotions__info-description {
  font-size: 1em;
  color: var(--page-text-color-on-dark); /* White text */
}

/* Video Section */
.page-resources-latest-promotions__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-latest-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto 20px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer; /* Indicate clickability */
}

.page-resources-latest-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  /* No filter property to change color */
}

.page-resources-latest-promotions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Subtle overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--page-secondary-color);
  font-size: 1.5em;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.page-resources-latest-promotions__video-wrapper:hover .page-resources-latest-promotions__video-overlay {
  opacity: 1;
}

.page-resources-latest-promotions__video-cta-text {
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}

.page-resources-latest-promotions__video-caption {
  font-style: italic;
  font-size: 0.95em;
  color: var(--page-text-color-on-dark);
}

/* FAQ Section */
.page-resources-latest-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--page-primary-color); /* Dark green background */
}

.page-resources-latest-promotions__faq-section .page-resources-latest-promotions__section-title {
  color: var(--page-secondary-color);
}

.page-resources-latest-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-secondary-color); /* White text */
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-resources-latest-promotions__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-resources-latest-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-secondary-color);
}

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

.page-resources-latest-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-text-color-on-dark); /* White text */
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content, with !important */
  padding: 15px 25px;
}

.page-resources-latest-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--page-text-color-on-dark); /* White text */
}

/* CTA Section (Conclusion) */
.page-resources-latest-promotions__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-resources-latest-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-promotions__hero-title {
    font-size: 3em;
  }
  .page-resources-latest-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-resources-latest-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-resources-latest-promotions__hero-section {
    height: 500px; /* Adjust height for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-latest-promotions__hero-title {
    font-size: 2.5em;
  }

  .page-resources-latest-promotions__hero-description {
    font-size: 1em;
  }

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

  .page-resources-latest-promotions__text-block {
    font-size: 1em;
  }

  .page-resources-latest-promotions__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-resources-latest-promotions__card {
    padding: 20px;
  }

  .page-resources-latest-promotions__card-image {
    height: 200px;
  }

  .page-resources-latest-promotions__info-block {
    padding: 20px;
  }

  .page-resources-latest-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-latest-promotions__faq-answer {
    padding: 0 20px;
  }

  .page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
    padding: 15px 20px;
  }

  .page-resources-latest-promotions__btn-primary,
  .page-resources-latest-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-promotions__hero-cta-buttons,
  .page-resources-latest-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to button containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsive adaptation */
  .page-resources-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content need max-width/width/box-sizing */
  .page-resources-latest-promotions__section,
  .page-resources-latest-promotions__card,
  .page-resources-latest-promotions__container,
  .page-resources-latest-promotions__video-section,
  .page-resources-latest-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsive adaptation */
  .page-resources-latest-promotions video,
  .page-resources-latest-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers for mobile */
  .page-resources-latest-promotions__video-section .page-resources-latest-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-latest-promotions__video-wrapper {
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure main content area does not overflow */
  .page-resources-latest-promotions {
    overflow-x: hidden;
  }
}