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

/* Cài đặt màu sắc chung dựa trên body background #000 (dark) */
.page-resources-latest-promotions {
  background-color: #000000; /* Đảm bảo nền chính là đen */
  color: #ffffff; /* Văn bản chính màu trắng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Khoảng cách cho fixed header trên desktop */
}

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

.page-resources-latest-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-latest-promotions__section-description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-latest-promotions__section-description strong {
  color: #ffd700; /* Màu vàng kim cho các từ khóa nổi bật */
}

.text-highlight {
  color: #ffd700; /* Màu vàng kim cho các từ khóa nổi bật */
}

/* Hero Section */
.page-resources-latest-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Sử dụng màu chủ đạo */
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-latest-promotions__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-resources-latest-promotions__main-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-resources-latest-promotions__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: #e0e0e0;
  line-height: 1.5;
}

.page-resources-latest-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 0;
}

.page-resources-latest-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

/* Buttons */
.page-resources-latest-promotions__btn-primary,
.page-resources-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources-latest-promotions__btn-primary {
  background: #ffd700; /* Vàng kim */
  color: #000000; /* Chữ đen */
  border: 2px solid #ffd700;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-resources-latest-promotions__btn-primary:hover {
  background: #ffc107; /* Vàng sáng hơn */
  border-color: #ffc107;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.page-resources-latest-latest-promotions__btn-secondary {
  background: transparent;
  color: #ffd700; /* Chữ vàng kim */
  border: 2px solid #ffd700;
}

.page-resources-latest-promotions__btn-secondary:hover {
  background: #ffd700;
  color: #000000;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-resources-latest-promotions__introduction-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền tối hơn */
}

/* Promotions Grid Section */
.page-resources-latest-promotions__promotions-grid-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Nền rất tối */
}

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

.page-resources-latest-promotions__card {
  background: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-resources-latest-promotions__card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-resources-latest-promotions__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-latest-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-latest-promotions__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-resources-latest-promotions__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* How to Claim Section */
.page-resources-latest-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources-latest-promotions__step-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.page-resources-latest-promotions__step-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: rgba(0, 123, 255, 0.15); /* Màu xanh lam nhạt */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #007bff;
}

.page-resources-latest-promotions__step-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.page-resources-latest-promotions__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-resources-latest-promotions__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-resources-latest-promotions__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Terms & Conditions Section */
.page-resources-latest-promotions__terms-conditions-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-resources-latest-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-resources-latest-promotions__terms-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #007bff;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-promotions__terms-list li p {
  margin: 0;
  color: #f0f0f0;
}

.page-resources-latest-promotions__terms-list li strong {
  color: #ffd700;
}

/* Why Choose Section */
.page-resources-latest-promotions__why-choose-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-resources-latest-promotions__feature-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.page-resources-latest-promotions__feature-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: rgba(40, 167, 69, 0.15); /* Màu xanh lá nhạt */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #28a745;
}

.page-resources-latest-promotions__feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.page-resources-latest-promotions__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffd700;
}

.page-resources-latest-promotions__feature-text {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-resources-latest-promotions__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-resources-latest-promotions__faq-list {
  margin-top: 40px;
}

.page-resources-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-resources-latest-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-resources-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffd700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-latest-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffd700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-resources-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;
  color: #e0e0e0;
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-resources-latest-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Conclusion Section */
.page-resources-latest-promotions__conclusion-section {
  padding: 60px 0 80px;
  background-color: #1a1a1a;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-promotions__main-title {
    font-size: 44px;
  }
  .page-resources-latest-promotions__hero-description {
    font-size: 20px;
  }
  .page-resources-latest-promotions__section-title {
    font-size: 32px;
  }
  .page-resources-latest-promotions__card-title {
    font-size: 22px;
  }
  .page-resources-latest-promotions__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-promotions {
    padding-top: 100px !important; /* Khoảng cách cho fixed header trên mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-latest-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* All images responsive fix */
  .page-resources-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-latest-promotions__section,
  .page-resources-latest-promotions__card,
  .page-resources-latest-promotions__container,
  .page-resources-latest-promotions__hero-section,
  .page-resources-latest-promotions__introduction-section,
  .page-resources-latest-promotions__promotions-grid-section,
  .page-resources-latest-promotions__how-to-claim-section,
  .page-resources-latest-promotions__terms-conditions-section,
  .page-resources-latest-promotions__why-choose-section,
  .page-resources-latest-promotions__faq-section,
  .page-resources-latest-promotions__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-latest-promotions__hero-section {
    padding: 60px 15px;
  }

  .page-resources-latest-promotions__main-title {
    font-size: 36px;
  }

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

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

  .page-resources-latest-promotions__section-description {
    font-size: 16px;
  }

  .page-resources-latest-promotions__grid,
  .page-resources-latest-promotions__steps-grid,
  .page-resources-latest-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-latest-promotions__card-content {
    padding: 20px;
  }

  .page-resources-latest-promotions__card-title {
    font-size: 20px;
  }

  .page-resources-latest-promotions__card-text {
    font-size: 15px;
  }

  .page-resources-latest-promotions__btn-primary,
  .page-resources-latest-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-resources-latest-promotions__terms-list li {
    padding: 15px 20px;
    font-size: 16px;
  }

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

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

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

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

@media (max-width: 480px) {
  .page-resources-latest-promotions__main-title {
    font-size: 30px;
  }

  .page-resources-latest-promotions__hero-description {
    font-size: 16px;
  }

  .page-resources-latest-promotions__section-title {
    font-size: 24px;
  }

  .page-resources-latest-promotions__faq-question h3 {
    font-size: 15px;
  }
}