/* style/promotions.css */

/* Variables */
:root {
  --primary-color: #0056B3; /* Dark Blue */
  --secondary-color: #FFC107; /* Bright Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212; /* Body background from shared.css */
  --background-light-card: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-promotions__section-title--light {
  color: var(--text-light);
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-description--light {
  color: var(--text-light);
}

/* CTA Buttons general style */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-promotions__cta-button--primary:hover {
  background: #e6b000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: #004499;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Section 1: Hero/Main Promotions */
.page-promotions__hero-section {
  position: relative;
  padding: 120px 20px 60px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #003366);
  text-align: center;
}

.page-promotions__hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-promotions__main-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Section 2: Overview of Promotion Categories */
.page-promotions__category-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-promotions__category-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__category-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__category-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__category-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.7);
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #e6b000;
  transform: translateY(-2px);
}

/* Section 3: Detailed Promotion Examples */
.page-promotions__details-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark blue background */
}

.page-promotions__dark-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__dark-section .page-promotions__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-promotions__promo-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__promo-item:last-child {
  margin-bottom: 0;
}

.page-promotions__promo-item--reverse {
  flex-direction: row-reverse;
}

.page-promotions__promo-content {
  flex: 1;
  color: var(--text-light);
}

.page-promotions__promo-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__promo-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__promo-text {
  font-size: 17px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-promotions__promo-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-promotions__promo-features li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-light);
}

.page-promotions__promo-features li i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Section 4: Why Choose 88fc (Brand Advantage Integration) */
.page-promotions__brand-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-promotions__brand-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-promotions__brand-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__brand-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__brand-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Section 5: FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #202020; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--background-light-card); /* White background for question card */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark); /* Dark text for question card */
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-promotions__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 15px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark); /* Dark text for answer content */
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
}

/* Section 6: Blog List */
.page-promotions__blog-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-promotions__blog-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  color: var(--text-light);
}

.page-promotions__blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__blog-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--text-light);
}

.page-promotions__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__blog-item-excerpt {
  font-size: 16px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.page-promotions__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Section 7: Final Call to Action */
.page-promotions__final-cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
}

/* General image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 40px;
  }

  .page-promotions__hero-container,
  .page-promotions__container,
  .page-promotions__category-card,
  .page-promotions__promo-item,
  .page-promotions__brand-item,
  .page-promotions__blog-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__main-title {
    font-size: 36px;
  }

  .page-promotions__hero-description {
    font-size: 18px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__cta-button {
    width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-promotions__section-title {
    font-size: 30px;
  }

  .page-promotions__section-description {
    font-size: 16px;
  }

  .page-promotions__category-grid,
  .page-promotions__brand-grid,
  .page-promotions__blog-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__category-image {
    height: 180px;
  }

  .page-promotions__promo-item {
    flex-direction: column !important;
    gap: 25px;
    padding: 25px;
  }

  .page-promotions__promo-image {
    max-width: 100%;
  }

  .page-promotions__promo-title {
    font-size: 24px;
  }

  .page-promotions__promo-text {
    font-size: 16px;
  }

  .page-promotions__blog-image {
    height: 180px;
  }

  /* FAQ Mobile Specific */
  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images, videos, and buttons are responsive */
  .page-promotions img,
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !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;
  }
}