/* style/promotions.css */

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

.page-promotions {
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Thêm khoảng đệm dưới cùng cho nội dung chính */
}

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

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

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

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--page-bg);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  position: relative; /* Đặt nội dung dưới ảnh hero trong luồng tài liệu */
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Kéo lên một chút để tạo hiệu ứng lớp */
  background-color: rgba(8, 22, 15, 0.9); /* Nền tối nhẹ để chữ nổi bật */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
  color: var(--gold-color);
  font-size: clamp(2.5em, 4vw, 3.5em); /* Sử dụng clamp cho kích thước chữ H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-promotions__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-promotions__cta-center {
  margin-top: 40px;
}

/* Promotion Grid */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.page-promotions__card-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho ảnh thẻ */
  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.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

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

/* VIP Club Section */
.page-promotions__vip-club {
  background-color: var(--deep-green);
  padding: 80px 0;
}

.page-promotions__vip-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap;
}

.page-promotions__vip-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  object-fit: cover;
}

.page-promotions__vip-text {
  flex: 1;
  min-width: 300px;
}

.page-promotions__vip-benefits {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-promotions__vip-benefits li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
}

.page-promotions__bullet {
  color: var(--glow-color);
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 10px;
  line-height: 1;
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
  background-color: var(--page-bg);
  color: var(--text-main);
}

.page-promotions__link-text {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-promotions__guide-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  text-align: center;
}

.page-promotions__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__guide-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: var(--card-bg);
  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.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(0,0,0,0.2);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--divider-color);
}

/* Conclusion Section */
.page-promotions__conclusion {
  padding: 80px 0;
  background-color: var(--page-bg);
}

.page-promotions__conclusion .page-promotions__section-title {
  color: var(--gold-color);
}

.page-promotions__conclusion .page-promotions__text-block {
  font-size: 1.2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Copyright */
.page-promotions__copyright {
  text-align: center;
  padding: 20px;
  background-color: var(--deep-green);
  border-top: 1px solid var(--divider-color);
  color: var(--text-secondary);
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-promotions__vip-content {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .page-promotions__vip-image {
    order: 2; /* Image on right for desktop */
  }
  .page-promotions__vip-text {
    order: 1;
  }
}

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

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

  .page-promotions__hero-content {
    padding: 30px 15px;
    margin-top: -50px; /* Adjust overlap for mobile */
  }

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

  .page-promotions__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__cta-center .page-promotions__cta-button {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promotion-grid,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__card-text {
    font-size: 0.95em;
  }

  .page-promotions__vip-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__vip-image {
    max-width: 100%;
    order: unset;
  }
  .page-promotions__vip-text {
    order: unset;
  }

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

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

  /* Mobile image and container responsiveness */
  .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__vip-content,
  .page-promotions__guide-item,
  .page-promotions__promotion-grid,
  .page-promotions__guide-steps,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll for containers */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Buttons within flex containers on mobile */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__cta-button[class*="btn"] {
    margin: 0; /* Remove any conflicting margins */
  }
}