/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff; /* White for dark backgrounds */
  --text-color-light-bg: #333333; /* Dark gray for light backgrounds */
  --background-dark: #121212; /* Body background from shared.css */
  --background-light: #f8f8f8; /* Light background for sections/cards */
  --border-color: #333333;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for page content on dark body bg */
  background-color: var(--background-dark); /* Ensure main content respects body background */
}

.page-promotions a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-promotions__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark-bg);
}

.page-promotions__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 150px 0 80px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('[GALLERY:promotions:u888vip,khuyenmai,main,banner,2026,social_share]') no-repeat center center/cover;
  background-blend-mode: multiply;
  text-align: center;
  color: var(--text-color-dark-bg);
  border-bottom: 5px solid var(--primary-color);
}

.page-promotions__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: #e0e0e0;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 18px 45px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

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

.page-promotions__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  background-color: var(--background-light);
  padding: 80px 0;
  color: var(--text-color-light-bg);
}

.page-promotions__featured-promos .page-promotions__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

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

.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: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__promo-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--background-dark);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-promotions__promo-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  transform: translateY(-2px);
}

.page-promotions__view-all-cta {
  text-align: center;
  margin-top: 60px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--background-dark);
  padding: 80px 0;
  color: var(--text-color-dark-bg);
}

.page-promotions__how-to-claim .page-promotions__section-description {
  color: #e0e0e0;
}

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

.page-promotions__step-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-promotions__step-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--background-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-promotions__bottom-cta {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--background-light);
  padding: 80px 0;
  color: var(--text-color-light-bg);
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

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

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-light-bg);
  pointer-events: none; /* Prevents h3 from blocking click event on parent */
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevents toggle icon from blocking click event on parent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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 25px;
  opacity: 0;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* CTA Download Section */
.page-promotions__cta-download {
  background-color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--text-color-dark-bg);
}

.page-promotions__cta-download .page-promotions__section-title {
  color: var(--text-color-dark-bg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-download .page-promotions__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-promotions__cta-download .page-promotions__cta-button {
  background: var(--primary-color);
  color: var(--background-dark);
  border: none;
}

.page-promotions__cta-download .page-promotions__cta-button:hover {
  background: #e6c200;
  color: var(--background-dark);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 44px;
  }
  .page-promotions__section-title {
    font-size: 34px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
  .page-promotions__promo-title {
    font-size: 22px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 100px 0 60px; /* Mobile padding-top for fixed header */
  }
  .page-promotions__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 25px;
    font-size: 18px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-promotions__featured-promos, .page-promotions__how-to-claim, .page-promotions__faq-section, .page-promotions__cta-download {
    padding: 60px 0;
  }

  .page-promotions__promo-grid, .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__promo-title {
    font-size: 20px;
  }
  .page-promotions__promo-text {
    font-size: 15px;
  }
  .page-promotions__promo-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__faq-question {
    padding: 18px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 18px 20px !important;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }

  /* Image responsive for mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Container responsive for mobile */
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__featured-promos,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 30px;
  }
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__cta-button {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-promotions__hero-description {
    font-size: 15px;
  }
  .page-promotions__promo-title {
    font-size: 18px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__step-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-promotions__promo-image {
    height: 150px;
  }
}