/* style/promotions.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

/* Phong cách chung cho trang */
.page-promotions {
  background-color: #08160F; /* Màu nền tùy chỉnh */
  color: #F2FFF6; /* Màu văn bản chính cho nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Thêm một số đệm ở phía dưới */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Màu văn bản chính */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #22C768; /* Màu phụ trợ cho điểm nhấn */
  border-radius: 2px;
}

.page-promotions__section-intro {
  text-align: center;
  font-size: 1.1em;
  color: #A7D9B8; /* Màu văn bản phụ */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Màu văn bản chính */
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid #22C768; /* Điểm nhấn màu phụ trợ */
  padding-left: 15px;
}

.page-promotions p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Đảm bảo văn bản đoạn văn hiển thị */
}

.page-promotions strong {
  color: #57E38D; /* Màu sáng cho điểm nhấn */
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6; /* Đảm bảo văn bản mục danh sách hiển thị */
}

.page-promotions__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #22C768; /* Màu phụ trợ */
  font-weight: bold;
}

.page-promotions__numbered-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  counter-reset: item;
}

.page-promotions__numbered-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6; /* Đảm bảo văn bản mục danh sách được đánh số hiển thị */
}

.page-promotions__numbered-list li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  color: #22C768; /* Màu phụ trợ */
  font-weight: bold;
}

/* Phần Hero */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh ở trên văn bản */
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Chiều cao tối thiểu cho hero */
  background-color: #08160F; /* Nền dự phòng */
  padding-top: 10px; /* Đệm trên nhỏ */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Giới hạn chiều cao hình ảnh */
}

.page-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Khoảng cách dưới hình ảnh */
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Kích thước font H1 đáp ứng */
  color: #F2C14E; /* Màu vàng cho tiêu đề chính */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Màu văn bản phụ */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Nút CTA */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Gradient nút tùy chỉnh */
  color: #F2FFF6; /* Màu văn bản nút */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__cta-button--small {
    padding: 12px 25px;
    font-size: 1em;
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Trình bao nội dung với hình ảnh */
.page-promotions__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.page-promotions__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-promotions__content-wrapper .page-promotions__text-block {
  flex: 1;
}

.page-promotions__content-wrapper .page-promotions__image-left,
.page-promotions__content-wrapper .page-promotions__image-right {
  flex: 0 0 400px; /* Chiều rộng cố định cho hình ảnh trên máy tính để bàn */
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #2E7A4E; /* Màu viền */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Lưới thẻ */
.page-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: #11271B; /* Màu nền thẻ tùy chỉnh */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2E7A4E; /* Màu viền */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Màu vàng cho tiêu đề thẻ */
  margin-bottom: 15px;
}

.page-promotions__card-text {
  color: #A7D9B8; /* Màu văn bản phụ */
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Gradient nút tùy chỉnh */
  color: #F2FFF6;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

/* Phần Câu hỏi thường gặp */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Màu văn bản chính */
  cursor: pointer;
  background-color: #11271B; /* Màu nền thẻ */
  transition: background-color 0.3s ease;
  list-style: none; /* Đối với details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho details/summary */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #0A4B2C; /* Màu xanh đậm cho mục FAQ đang hoạt động */
}

.page-promotions__faq-question:hover {
  background-color: #0A4B2C; /* Màu xanh đậm khi di chuột qua */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Màu bắt đầu gradient nút cho nút chuyển đổi */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Màu văn bản phụ */
  line-height: 1.7;
}

.page-promotions__faq-answer p {
  color: #A7D9B8; /* Đảm bảo văn bản đoạn văn trong câu trả lời hiển thị */
}

.page-promotions__faq-image {
  display: block;
  margin: 40px auto 0;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Màu viền */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__contact-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Gradient nút tùy chỉnh */
  color: #F2FFF6;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__contact-button:hover {
  opacity: 0.9;
}

/* Phong cách đáp ứng */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__sub-title {
    font-size: 1.6em;
  }
  .page-promotions__hero-content {
    padding: 30px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-promotions__content-wrapper .page-promotions__image-left,
  .page-promotions__content-wrapper .page-promotions__image-right {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .page-promotions__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__section {
    padding: 30px 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-section {
    min-height: 400px;
  }
  .page-promotions__hero-image {
    max-height: 400px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em) !important; /* Kích thước font H1 trên di động */
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-button,
  .page-promotions__card-button,
  .page-promotions__contact-button {
    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;
    text-align: center; /* Căn giữa văn bản nút khi xuống dòng */
  }

  /* Xử lý cụ thể cho các nhóm nút nếu có */
  .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; /* Xếp chồng các nút theo chiều dọc trên di động */
  }

  .page-promotions__image-left,
  .page-promotions__image-right,
  .page-promotions__faq-image,
  .page-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__content-wrapper,
  .page-promotions__giftcode-types,
  .page-promotions__guide,
  .page-promotions__expert-advice,
  .page-promotions__faq,
  .page-promotions__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ngăn chặn cuộn ngang */
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }
  .page-promotions__card-image {
    height: 180px; /* Điều chỉnh chiều cao cho hình ảnh thẻ trên di động */
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
}