/* style/promotions.css */
.page-promotions {
  color: #ffffff; /* Mặc định chữ trắng trên nền tối */
  background-color: var(--dark-bg-1);
}

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

/* Cần thêm padding-top cho module đầu tiên vì header là fixed */
.page-promotions__hero-banner {
  padding-top: 120px; /* Desktop fixed header offset */
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2463, #1A3E8A); /* Màu nền đậm hơn */
  padding-bottom: 80px;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-promotions__main-heading {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E0B14A;
}

.page-promotions__sub-heading {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-promotions__btn--primary {
  background-color: #E0B14A;
  color: #0A2463;
  border-color: #E0B14A;
}

.page-promotions__btn--primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 177, 74, 0.4);
}

.page-promotions__btn--secondary {
  background-color: transparent;
  color: #E0B14A;
  border-color: #E0B14A;
}

.page-promotions__btn--secondary:hover {
  background-color: #E0B14A;
  color: #0A2463;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 177, 74, 0.4);
}

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  color: #E0B14A;
}

.page-promotions__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-promotions__section-description--light {
  color: #333333;
}

.page-promotions__intro-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__intro-section .page-promotions__section-title {
  color: #0A2463;
}

.page-promotions__intro-section .page-promotions__section-description {
  color: #333333;
}

.page-promotions__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__types-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  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;
  justify-content: space-between;
  border: 1px solid rgba(224, 177, 74, 0.3);
}

.page-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(224, 177, 74, 0.2);
}

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

.page-promotions__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E0B14A;
  line-height: 1.4;
}

.page-promotions__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 25px;
}

.page-promotions__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__guide-section .page-promotions__section-title {
  color: #0A2463;
}

.page-promotions__guide-section .page-promotions__section-description {
  color: #333333;
}

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

.page-promotions__step-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  background-color: #E0B14A;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(224, 177, 74, 0.3);
}

.page-promotions__step-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

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

.page-promotions__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__terms-note {
  font-size: 0.95em;
  color: #777777;
  text-align: center;
  margin-top: 40px;
  line-height: 1.6;
}

.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-promotions__feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  gap: 20px;
  border: 1px solid rgba(224, 177, 74, 0.2);
}

.page-promotions__list-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  background-color: #E0B14A;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(224, 177, 74, 0.3);
}

.page-promotions__list-content h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #E0B14A;
}

.page-promotions__list-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 0;
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__faq-section .page-promotions__section-title {
  color: #0A2463;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo mở rộng */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề vấn đề style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #0A2463;
  pointer-events: none; /* Ngăn chặn h3 chặn sự kiện click */
}

/* Biểu tượng chuyển đổi */
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0B14A;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #0A2463;
  transform: rotate(45deg);
}

.page-promotions__latest-news-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

.page-promotions__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(224, 177, 74, 0.3);
}

.page-promotions__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(224, 177, 74, 0.25);
}

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

.page-promotions__news-content {
  padding: 25px;
}

.page-promotions__news-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-promotions__news-title a {
  color: #E0B14A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__news-title a:hover {
  color: #ffc107;
}

.page-promotions__news-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-promotions__news-excerpt a {
  color: #E0B14A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__news-excerpt a:hover {
  color: #ffc107;
}

.page-promotions__news-date {
  font-size: 0.85em;
  color: #aaaaaa;
  display: block;
}

.page-promotions__inline-link {
  color: #E0B14A;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__inline-link:hover {
  color: #ffc107;
}

.page-promotions__inline-link--light {
  color: #0A2463;
}

.page-promotions__inline-link--light:hover {
  color: #000000;
}

.page-promotions__highlight {
  color: #E0B14A;
  font-weight: 600;
}

.page-promotions__highlight--light {
  color: #0A2463;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-heading {
    font-size: 2.8em;
  }

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

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-promotions__container {
    padding: 30px 15px;
  }

  .page-promotions__hero-banner {
    padding-top: 100px; /* Adjust for tablet fixed header */
    padding-bottom: 60px;
  }

  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__guide-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__latest-news-section {
    padding: 50px 0;
  }

  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__feature-item,
  .page-promotions__news-card {
    padding: 20px;
  }

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

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

  .page-promotions__news-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-banner {
    padding-top: 100px !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
  }

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

  .page-promotions__sub-heading {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-promotions__image-full {
    margin: 30px 0;
  }

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

  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__feature-item,
  .page-promotions__news-card {
    padding: 15px;
  }

  .page-promotions__card-image {
    max-height: 180px;
  }

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

  .page-promotions__card-description {
    font-size: 0.9em;
  }

  .page-promotions__step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .page-promotions__step-icon img {
    width: 45px;
    height: 45px;
  }

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

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

  .page-promotions__terms-note {
    font-size: 0.85em;
    margin-top: 30px;
  }

  .page-promotions__feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .page-promotions__list-icon {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .page-promotions__list-content h3 {
    font-size: 1.2em;
  }

  .page-promotions__list-content p {
    font-size: 0.9em;
  }

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

  .page-promotions__faq-list {
    margin-top: 30px;
  }

  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__news-image {
    height: 180px;
  }

  .page-promotions__news-content {
    padding: 20px;
  }

  .page-promotions__news-title {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .page-promotions__news-excerpt {
    font-size: 0.85em;
    margin-bottom: 10px;
  }
  
  /* Ensure all images and containers are fully responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__container,
  .page-promotions__hero-banner,
  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__guide-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__latest-news-section,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__feature-item,
  .page-promotions__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}