.page-resources {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #0d0d0d; /* Dark background for hero content */
  color: #ffffff;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #CC0000; /* Primary red */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__cta-button:hover {
  background: #FFD700; /* Secondary gold */
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #CC0000;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #CC0000; /* Primary red */
}

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

.page-resources__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-resources__card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: #CC0000; /* Primary red for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FFD700;
}

.page-resources__card-description {
  font-size: 15px;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #CC0000;
  border: 2px solid #CC0000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
}

.page-resources__btn-secondary:hover {
  background: #CC0000;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources__featured-articles-section {
  padding: 60px 0;
  background-color: #CC0000;
  color: #ffffff;
}

.page-resources__featured-articles-section .page-resources__section-title {
  color: #FFD700; /* Gold for titles on dark background */
}

.page-resources__featured-articles-section .page-resources__text-block {
  color: #f0f0f0;
}

.page-resources__article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__article-item {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-item img {
  width: 300px;
  
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources__article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources__article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__article-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #ffffff;
}

.page-resources__article-summary {
  font-size: 15px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-resources__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700; /* Secondary gold */
  color: #333333;
  border: 2px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
}

.page-resources__btn-primary:hover {
  background: #ffffff;
  color: #CC0000;
  border-color: #CC0000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-resources__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-resources__faq-item.active .page-resources__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 15px !important;
  opacity: 1;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  border-radius: 0 0 5px 5px;
}

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

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Vấn đề tiêu đề phong cách */
.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #333333;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

.page-resources__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-section .page-resources__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 36px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__article-item img {
    width: 250px;
    
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-resources__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__container {
    padding: 30px 15px;
  }
  .page-resources__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-resources__text-block {
    font-size: 16px;
  }
  .page-resources__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card img {
    
  }
  .page-resources__card-title {
    font-size: 18px;
  }
  .page-resources__article-list {
    gap: 20px;
  }
  .page-resources__article-item {
    flex-direction: column;
  }
  .page-resources__article-item img {
    width: 100% !important;
    height: 200px !important;
    max-width: 100% !important;
  }
  .page-resources__article-title {
    font-size: 18px;
  }
  .page-resources__btn-secondary,
  .page-resources__btn-primary {
    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;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile FAQ styles */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  /* Global image and container responsive rules for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__category-grid,
  .page-resources__article-list,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__article-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 24px;
  }
  .page-resources__section-title {
    font-size: 22px;
  }
  .page-resources__card-title {
    font-size: 16px;
  }
  .page-resources__description {
    font-size: 15px;
  }
  .page-resources__text-block {
    font-size: 15px;
  }
  .page-resources__article-item img {
    
  }
  .page-resources__article-title {
    font-size: 16px;
  }
}