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

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

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

.page-resources__section-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__section-title--white {
  color: #ffffff;
}

.page-resources__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__paragraph--white {
  color: #ffffff;
}

.page-resources__link--white {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-resources__link--white:hover {
  color: #ffffff;
}

.page-resources__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow font for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #017439; /* Primary color for text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 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);
  background-color: #017439; /* Primary color background */
}

.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%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-resources__intro-section {
  background-color: #ffffff;
  color: #333333;
}

/* Resource Index */
.page-resources__resource-index {
  background-color: #017439;
}

.page-resources__grid {
  display: grid;
  gap: 20px;
}

.page-resources__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-resources__card--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__card--dark .page-resources__card-title a {
  color: #FFFF00;
}

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

.page-resources__card--dark .page-resources__card-description {
  color: #f0f0f0;
}

.page-resources__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-description {
  font-size: 15px;
  color: #555555;
}

.page-resources__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

/* Guides Section */
.page-resources__guides-section {
  background-color: #f9f9f9;
}

.page-resources__guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #e0e0e0;
}

.page-resources__guide-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.page-resources__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__guide-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
  text-align: center;
}

.page-resources__guide-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources__guide-title a:hover {
  text-decoration: underline;
}

/* Strategies Section */
.page-resources__strategies-section {
  background-color: #017439;
  color: #ffffff;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__list--white li {
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-resources__list--white li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* News Section */
.page-resources__news-section {
  background-color: #ffffff;
}

/* Security Section */
.page-resources__security-section {
  background-color: #017439;
  color: #ffffff;
}

.page-resources__content-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__content-box--full-width {
  grid-column: 1 / -1; /* Spans full width in grid */
}

.page-resources__content-box-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__image-box .page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #f9f9f9;
}

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

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

/* FAQ默认状态 - 答案 ẩ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 15px;
  opacity: 0;
  background: #fcfcfc;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng!important và đủ lớn max-height */
.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: #fcfcfc;
  border-radius: 0 0 5px 5px;
}