/* style/promotions.css */
:root {
  --page-promotions-primary-color: #11A84E;
  --page-promotions-secondary-color: #22C768;
  --page-promotions-bg-color: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border-color: #2E7A4E;
  --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-glow-color: #57E38D;
  --page-promotions-gold-color: #F2C14E;
  --page-promotions-divider-color: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
  background-color: var(--page-promotions-bg-color);
  color: var(--page-promotions-text-main); /* Dark body background, so light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: cover;
}

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-promotions-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* General Section Styles */
.page-promotions__intro-section,
.page-promotions__guide-section,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--page-promotions-bg-color);
}

.page-promotions__dark-section {
  background-color: var(--page-promotions-card-bg);
  padding: 80px 0;
  color: var(--page-promotions-text-main);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--page-promotions-primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-promotions__section-description {
  font-size: 1.05rem;
  color: var(--page-promotions-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Benefit Grid */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__benefit-card {
  background-color: var(--page-promotions-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__benefit-title {
  font-size: 1.5rem;
  color: var(--page-promotions-primary-color);
  margin-bottom: 15px;
}

.page-promotions__benefit-text {
  color: var(--page-promotions-text-secondary);
  font-size: 0.95rem;
}

/* Promotion Categories */
.page-promotions__promo-category {
  margin-bottom: 80px;
}

.page-promotions__category-title {
  font-size: 2rem;
  color: var(--page-promotions-gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-promotions__category-desc {
  font-size: 1.1rem;
  color: var(--page-promotions-text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

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

.page-promotions__promo-grid--5-cols {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border-color);
  display: flex;
  flex-direction: column;
  text-decoration: none; /* For game cards */
  color: var(--page-promotions-text-main);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-promotions__game-card .page-promotions__card-image {
  height: 160px;
}

.page-promotions__card-title {
  font-size: 1.25rem;
  color: var(--page-promotions-primary-color);
  padding: 15px 20px 10px;
  margin: 0;
}

.page-promotions__card-text {
  font-size: 0.9rem;
  color: var(--page-promotions-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* Guide Section */
.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 800px;
}

.page-promotions__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--page-promotions-card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-promotions-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-step-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--page-promotions-gold-color);
  margin-right: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.page-promotions__guide-step-title {
  font-size: 1.4rem;
  color: var(--page-promotions-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__guide-step-text {
  font-size: 1rem;
  color: var(--page-promotions-text-secondary);
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 900px;
}

.page-promotions__terms-item {
  background-color: var(--page-promotions-bg-color);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--page-promotions-divider-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__terms-item-title {
  font-size: 1.3rem;
  color: var(--page-promotions-gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__terms-item-text {
  font-size: 0.95rem;
  color: var(--page-promotions-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-promotions-primary-color);
  background-color: var(--page-promotions-deep-green);
  border-bottom: 1px solid var(--page-promotions-border-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--page-promotions-border-color);
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-promotions-text-secondary);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__final-cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background: none;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__promo-grid--5-cols {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

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

  .page-promotions__hero-section {
    padding: 40px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: 1rem;
  }

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

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

  .page-promotions__intro-section,
  .page-promotions__dark-section,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__terms-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__benefits-grid,
  .page-promotions__promo-grid,
  .page-promotions__promo-grid--5-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__game-card .page-promotions__card-image {
    height: 140px;
  }

  .page-promotions__card-title {
    font-size: 1.1rem;
  }

  .page-promotions__guide-item {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__guide-step-num {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-promotions__guide-step-title {
    font-size: 1.2rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__final-cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }

  /* Ensure all containers with buttons also adapt */
  .page-promotions__hero-cta-buttons,
  .page-promotions__cta-wrapper,
  .page-promotions__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* For vertical stacking of buttons */
  }
}

/* Ensure images are never smaller than 200px in content areas */
.page-promotions img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-image {
  min-width: unset; /* Override general min-width for card images to allow smaller display sizes within cards if needed for layout, but ensure they are large enough content-wise */
  min-height: unset;
}

/* Specifically target content area images for min-size if not already handled by layout */
.page-promotions__promo-grid img,
.page-promotions__final-cta-image {
  min-width: 200px;
  min-height: 200px;
}