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

.page-resources__section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for sections */
}

.page-resources__section:nth-of-type(even) {
  background-color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 32px;
  color: #017439; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.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); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #ffffff); /* Gradient from primary to white */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background effects */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain content width */
  margin-bottom: 30px;
}

.page-resources__hero-title {
  font-size: 48px;
  color: #ffffff; /* White text for dark background */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #f0f0f0; /* Slightly off-white for description */
  margin-bottom: 30px;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for image */
  margin-top: 20px; /* Space between content and image */
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Red for CTA, from custom colors */
  color: #FFFF00; /* Yellow text for CTA, from custom colors */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background: #a30606; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Grid for cards */
.page-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.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: 220px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

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

.page-resources__card-title a:hover {
  color: #005f2c; /* Darker primary on hover */
}

.page-resources__card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Ensure description takes available space */
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #017439; /* Primary brand color for dark background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #f0f5f0; /* Light green tint for FAQ section */
  padding: 80px 0;
}

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

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

/* FAQ默认 trạng thái - Câu trả lời ẩn */
.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, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd;
}

/* FAQ trạng thái mở rộng - Sử dụng!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 !important;
  opacity: 1;
  background: #fdfdfd;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* Phong cách câu hỏi */
.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

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

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

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

/* Biểu tượng chuyển đổi */
.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Màu chính cho biểu tượng chuyển đổi */
  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 nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e6ffe6; /* Nền sáng cho biểu tượng chuyển đổi */
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  background-color: #017439; /* Màu chính khi hoạt động */
  transform: rotate(180deg); /* Xoay cho dấu trừ */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* Mobile general styles */
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  /* Hero Section Mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-resources__hero-image img {
    border-radius: 8px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Ensure buttons are full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Grid Mobile */
  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    border-radius: 8px;
  }

  .page-resources__card img {
     /* Adjust card image height for mobile */
    min-width: 200px;
    min-
  }

  .page-resources__card-title {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }

  .page-resources__card-description {
    font-size: 15px;
    padding: 0 15px 15px 15px;
  }

  /* CTA Section Mobile */
  .page-resources__cta-section {
    padding: 50px 15px;
  }
  .page-resources__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-resources__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* FAQ Section Mobile */
  .page-resources__faq-section {
    padding: 50px 0;
  }
  .page-resources__faq-list {
    padding: 0 15px;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    border-radius: 6px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    pointer-events: none; /* Keep pointer-events none */
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
    pointer-events: none; /* Keep pointer-events none */
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness for all images in content area */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* No padding here, use padding on the inner content if needed */
  }
}

/* Ensure no filter is applied to images */
.page-resources img {
  filter: none;
}