.page-resources {
  color: #ffffff; /* Sẽ sử dụng màu chữ trắng trên nền body tối */
  background-color: #0a0a0a; /* Nền body tối từ shared.css */
}

.page-resources__padding-top {
  padding-top: 120px; /* Đảm bảo nội dung không bị che bởi fixed header trên desktop */
}

.page-resources__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Nền tối nhẹ cho các section */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__section--intro {
  background-color: #007BFF; /* Màu chủ đạo cho phần giới thiệu nổi bật */
  color: #ffffff;
  text-align: center;
  padding-bottom: 80px;
}

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

.page-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #28A745; /* Màu xanh lá nổi bật cho tiêu đề chính */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #007BFF;
  border-radius: 2px;
}

.page-resources__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: #007BFF; /* Màu xanh dương cho tiêu đề phụ */
  margin-top: 35px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 5px solid #28A745;
}

.page-resources__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #f0f0f0;
}

.page-resources__strong-text {
  font-weight: bold;
  color: #FFD700; /* Màu vàng kim cho các từ khóa nổi bật */
}

.page-resources__link-text {
  color: #87CEEB; /* Màu xanh da trời nhạt cho link trong đoạn văn */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources__link-text:hover {
  color: #007BFF;
}

.page-resources__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__list-item {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-resources__list-item strong {
  color: #FFD700; /* Màu vàng kim cho từ khóa trong list item */
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #28A745, #007BFF); /* Nút CTA với gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background: linear-gradient(135deg, #007BFF, #28A745);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
}

.page-resources__cta-button--small {
  padding: 12px 25px;
  font-size: 16px;
}

/* FAQ Styles */
.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Nền tối nhẹ cho câu trả lời */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Nền tối nhẹ cho câu hỏi */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #28A745; /* Màu xanh lá cho dấu cộng/trừ */
  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: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #007BFF; /* Màu xanh dương khi mở */
  transform: rotate(45deg); /* Xoay dấu cộng thành dấu x */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 38px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__sub-title {
    font-size: 22px;
  }

  .page-resources__paragraph,
  .page-resources__list-item {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-resources__padding-top {
    padding-top: 100px !important; /* Đảm bảo nội dung không bị che bởi fixed header trên mobile */
  }

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

  .page-resources__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-resources__paragraph,
  .page-resources__list-item {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 20px;
  }

  .page-resources__cta-button--large {
    padding: 15px 30px;
    font-size: 17px;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-question h3 {
    font-size: 16px;
  }

  .page-resources__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
    margin-left: 10px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Force responsive images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources__container,
  .page-resources__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Contrast Fixes */
.page-resources__faq-answer p {
  color: #f0f0f0; /* Đảm bảo màu chữ trong FAQ answer trên nền tối */
}