/* style/promotions.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không lặp lại tại đây. */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #0d0d0d; /* Giả định từ shared.css var(--dark-bg) */
  --button-login: #EA7C07;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Mặc định cho nền tối của body */
  background-color: var(--background-dark); /* Giả định body background */
}

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

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

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhỏ hơn để không bị double padding-top */
  text-align: center;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 800px;
  margin-top: -80px; /* Kéo nội dung lên một chút để gần ảnh hơn */
  background: linear-gradient(to top, rgba(38, 169, 224, 0.95), rgba(38, 169, 224, 0.7));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--light-text-color);
  margin-bottom: 20px;
  max-width: 100%;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Kế thừa từ section */
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--button-login); /* Màu cam cho login */
  color: var(--light-text-color);
  border: 2px solid var(--button-login);
}

.page-promotions__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-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(--secondary-color);
  color: var(--dark-text-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 450px; /* Đảm bảo chiều cao tối thiểu cho card */
}

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

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

.page-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__vip-program .page-promotions__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-promotions__vip-program .page-promotions__text-block-left {
  flex: 1;
}

.page-promotions__vip-program .page-promotions__image-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__vip-program .page-promotions__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

.page-promotions__step-card {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 120px;
  min-height: 120px;
}

.page-promotions__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__step-description {
  font-size: 0.95em;
}

.page-promotions__cta-button--large {
  margin-top: 40px;
  font-size: 1.2em;
  padding: 18px 35px;
}

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

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  background-color: #f0f8ff; /* Nền nhẹ cho câu hỏi */
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

.page-promotions__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: var(--dark-text-color);
  background-color: var(--secondary-color);
  border-top: 1px solid #f0f0f0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-promotions__vip-program .page-promotions__content-wrapper {
    flex-direction: column;
  }
  .page-promotions__vip-program .page-promotions__text-block-left,
  .page-promotions__vip-program .page-promotions__image-right {
    flex: none;
    width: 100%;
  }
}

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

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

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

  .page-promotions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

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

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

  .page-promotions__text-block {
    font-size: 1em;
  }

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

  .page-promotions__promo-card,
  .page-promotions__step-card {
    padding: 20px;
    min-height: auto;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Thêm khoảng cách giữa các nút nếu có nhiều nút */
  }

  .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;
  }

  .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__promo-card,
  .page-promotions__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-image-wrapper {
    padding: 0;
  }

  .page-promotions__step-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }

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

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