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

.page-promotions {
  color: var(--text-main-color);
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main-color);
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-promotions__hero-content {
  position: relative; /* Changed from absolute to relative for better document flow and "image above text" rule */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 8px;
  margin-top: -100px; /* Overlap slightly with image for visual appeal, but text is not ON the image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin: 0 10px;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-promotions__btn-secondary {
  background: none;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  margin: 0 10px;
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.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: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

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

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

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-link {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions__card-link:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-promotions__vip-program .page-promotions__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-promotions__vip-content {
  flex: 1;
}

.page-promotions__vip-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-promotions__vip-list li {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2357E38D'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-main-color);
}

.page-promotions__vip-image {
  flex: 0 0 auto;
  width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__how-to-claim .page-promotions__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  flex-direction: row-reverse; /* Image on left, content on right */
}

.page-promotions__guide-content {
  flex: 1;
}

.page-promotions__guide-image {
  flex: 0 0 auto;
  width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-promotions__guide-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text-main-color);
  position: relative;
  padding-left: 35px;
}

.page-promotions__guide-list li strong {
  color: var(--gold-color);
}

.page-promotions__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--glow-color);
  color: var(--deep-green);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: var(--deep-green);
}

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

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

.page-promotions__paragraph {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-promotions__conclusion .page-promotions__container {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -50px;
    padding: 30px;
  }

  .page-promotions__vip-program .page-promotions__container,
  .page-promotions__how-to-claim .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__vip-image,
  .page-promotions__guide-image {
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
  }
  
  .page-promotions__vip-content,
  .page-promotions__guide-content {
    text-align: center;
  }

  .page-promotions__vip-list li,
  .page-promotions__guide-list li {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

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

  .page-promotions__hero-content {
    margin-top: -30px;
    padding: 20px;
  }

  .page-promotions__main-title {
    font-size: 2rem;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
  }

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

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }
  
  .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;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

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

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

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

  .page-promotions__vip-program .page-promotions__container,
  .page-promotions__how-to-claim .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__vip-image,
  .page-promotions__guide-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

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

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

  /* Image responsive for mobile */
  .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 {
    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 */
  }

  /* Video responsive for mobile (if any, though not in this page) */
  .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__guide-list li {
    padding-left: 30px;
  }
  .page-promotions__guide-list li::before {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }
}