/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-promotions {
  background-color: #08160F; /* Nền tối theo custom color */
  color: #F2FFF6; /* Màu chữ chính sáng theo custom color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  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 {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
  position: relative;
  z-index: 1;
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  color: #F2C14E; /* Gold color for main title */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
}

.page-promotions__intro-text {
  color: #A7D9B8; /* Secondary text color */
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__overview-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

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

.page-promotions__section-title {
  color: #57E38D; /* Glow color for section titles */
  font-size: clamp(1.8em, 3vw, 2.8em);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__section-description {
  color: #A7D9B8;
  font-size: 1.05em;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-promotions__card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__card-title {
  color: #F2FFF6; /* Text Main for card title */
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-text {
  color: #A7D9B8; /* Text Secondary for card text */
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__btn-secondary {
  display: inline-block;
  background: none;
  color: #2AD16F; /* Green color for secondary button text */
  border: 2px solid #2AD16F;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* Push button to bottom */
  cursor: pointer;
}

.page-promotions__btn-secondary:hover {
  background: #2AD16F;
  color: #11271B; /* Darker text on hover for contrast */
  transform: translateY(-2px);
}

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

.page-promotions__step-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__step-icon {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2C14E; /* Gold color */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  border: 2px solid #2E7A4E;
}

.page-promotions__step-title {
  color: #F2FFF6;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__step-text {
  color: #A7D9B8;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 25px;
}

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

.page-promotions__terms-item {
  text-align: left;
}

.page-promotions__terms-title {
  color: #F2FFF6;
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__terms-text {
  color: #A7D9B8;
  font-size: 0.95em;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-promotions__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.7;
}

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

  .page-promotions__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }

  .page-promotions__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.4em);
  }
}

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

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

  .page-promotions__hero-content {
    margin-top: -80px; /* Adjust overlap for smaller screens */
    padding: 25px 15px;
    border-radius: 8px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.6em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-promotions__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-promotions__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__overview-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 50px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.4em, 4.5vw, 2em);
    margin-bottom: 15px;
  }

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

  .page-promotions__promo-grid,
  .page-promotions__step-by-step,
  .page-promotions__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__terms-item,
  .page-promotions__faq-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__card-title,
  .page-promotions__step-title,
  .page-promotions__terms-title {
    font-size: 1.2em;
  }

  .page-promotions__card-text,
  .page-promotions__step-text,
  .page-promotions__terms-text {
    font-size: 0.9em;
  }

  .page-promotions__btn-secondary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

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

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

  /* Mobile image 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-section,
  .page-promotions__promo-grid,
  .page-promotions__step-by-step,
  .page-promotions__terms-list,
  .page-promotions__faq-list,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
  }
  
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -60px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
}