/* style/index-latest-promotions.css */

/* Định nghĩa biến màu dựa trên chủ đề tối */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #8B0000; /* Đỏ đậm */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0d0d0d; /* Giả định body background từ shared.css là màu tối */
  --background-light: #f5f5f5;
  --card-bg: #1a1a1a; /* Nền thẻ tối hơn một chút */
  --border-color: rgba(255, 255, 255, 0.1);
}

.page-index-latest-promotions {
  color: var(--text-light); /* Mặc định chữ màu sáng trên nền tối của body */
  background-color: var(--background-dark); /* Đảm bảo màu nền cho trang nếu body không set */
}

/* Đảm bảo khoảng cách với fixed header */
.page-index-latest-promotions__hero-banner {
  padding-top: 120px; /* Khoảng cách cho desktop */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-index-latest-promotions__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-index-latest-promotions__main-title {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-latest-promotions__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-index-latest-promotions__hero-description .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-index-latest-promotions__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__content-section,
.page-index-latest-promotions__terms-section,
.page-index-latest-promotions__faq-section {
  padding: 60px 0;
  color: var(--text-dark); /* Chữ tối trên nền sáng */
  background-color: var(--background-light);
}

.page-index-latest-promotions__quick-access-section,
.page-index-latest-promotions__how-to-section,
.page-index-latest-promotions__benefits-section,
.page-index-latest-promotions__latest-news-section {
  padding: 60px 0;
  color: var(--text-light); /* Chữ sáng trên nền tối */
  background-color: var(--card-bg);
}

.page-index-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-latest-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Kế thừa màu chữ từ section */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

.page-index-latest-promotions__text-block .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-index-latest-promotions__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--background-dark);
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index-latest-promotions__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__quick-link-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-latest-promotions__quick-link-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-light);
  margin: 0;
}

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

.page-index-latest-promotions__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index-latest-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__promo-link {
  display: block;
  text-decoration: none;
  color: var(--text-dark); /* Màu chữ mặc định cho card */
}

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

.page-index-latest-promotions__promo-title {
  font-size: 22px;
  font-weight: bold;
  padding: 15px 20px 10px;
  color: var(--primary-color); /* Tiêu đề card sử dụng màu chính */
  margin: 0;
}

.page-index-latest-promotions__promo-description {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-light);
  margin: 0;
}

.page-index-latest-promotions__promo-description .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-index-latest-promotions__step-card {
  background-color: var(--background-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.page-index-latest-promotions__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  object-fit: contain;
}

.page-index-latest-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-latest-promotions__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-index-latest-promotions__step-description .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-latest-promotions__terms-list,
.page-index-latest-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-index-latest-promotions__terms-item {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 5px solid var(--primary-color);
}

.page-index-latest-promotions__terms-item strong {
  color: var(--secondary-color);
}

.page-index-latest-promotions__terms-item .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-latest-promotions__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index-latest-promotions__benefits-item {
  background-color: var(--background-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-index-latest-promotions__benefits-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__benefits-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-index-latest-promotions__benefits-item p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-light);
}

.page-index-latest-promotions__benefits-item strong {
  color: var(--primary-color);
}

.page-index-latest-promotions__benefits-item .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-index-latest-promotions__faq-list {
  margin-top: 30px;
}

.page-index-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-index-latest-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: var(--primary-color);
}

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

.page-index-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-index-latest-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu + thành X */
}

.page-index-latest-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 25px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-index-latest-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-index-latest-promotions__faq-answer .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-index-latest-promotions__news-card {
  background-color: var(--background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index-latest-promotions__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

.page-index-latest-promotions__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index-latest-promotions__news-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-index-latest-promotions__news-excerpt .page-index-latest-promotions__link-text {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-latest-promotions__news-date {
  font-size: 14px;
  color: #aaaaaa;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index-latest-promotions__main-title {
    font-size: 40px;
  }

  .page-index-latest-promotions__hero-description {
    font-size: 18px;
  }

  .page-index-latest-promotions__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index-latest-promotions__hero-banner {
    padding-top: 100px !important;
  }
  
  .page-index-latest-promotions__hero-content {
    padding: 30px 15px;
  }

  .page-index-latest-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-index-latest-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index-latest-promotions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-promotions__btn-primary,
  .page-index-latest-promotions__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-index-latest-promotions__content-section,
  .page-index-latest-promotions__quick-access-section,
  .page-index-latest-promotions__promotions-grid-section,
  .page-index-latest-promotions__how-to-section,
  .page-index-latest-promotions__terms-section,
  .page-index-latest-promotions__benefits-section,
  .page-index-latest-promotions__faq-section,
  .page-index-latest-promotions__latest-news-section {
    padding: 40px 0;
  }

  .page-index-latest-promotions__container {
    padding: 0 15px;
  }

  .page-index-latest-promotions__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-index-latest-promotions__text-block {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-index-latest-promotions__link-grid,
  .page-index-latest-promotions__promo-grid,
  .page-index-latest-promotions__step-grid,
  .page-index-latest-promotions__benefits-list,
  .page-index-latest-promotions__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-latest-promotions__quick-link-card,
  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__step-card,
  .page-index-latest-promotions__benefits-item,
  .page-index-latest-promotions__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-latest-promotions__promo-image {
    height: 180px;
  }

  .page-index-latest-promotions__promo-title {
    font-size: 18px;
  }

  .page-index-latest-promotions__promo-description {
    font-size: 14px;
  }

  .page-index-latest-promotions__step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-index-latest-promotions__step-title {
    font-size: 18px;
  }

  .page-index-latest-promotions__step-description {
    font-size: 14px;
  }

  .page-index-latest-promotions__terms-item {
    padding: 15px;
    font-size: 15px;
  }

  .page-index-latest-promotions__benefits-icon {
    width: 50px;
    height: 50px;
  }

  .page-index-latest-promotions__benefits-item p {
    font-size: 15px;
  }

  .page-index-latest-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-index-latest-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-index-latest-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

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

  .page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-index-latest-promotions__news-image {
    height: 160px;
  }

  .page-index-latest-promotions__news-title {
    font-size: 18px;
  }

  .page-index-latest-promotions__news-excerpt {
    font-size: 14px;
  }

  .page-index-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}