.page-resources {
  color: #ffffff; /* Sẽ sử dụng màu chữ sáng do nền body tối */
  background-color: #0a0a0a; /* Kế thừa hoặc đặt rõ ràng để nhất quán */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
  box-sizing: border-box;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Lớp phủ tối để chữ dễ đọc */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

.page-resources__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Màu đăng ký/đăng nhập */
  color: #FFFF00; /* Màu chữ đăng ký/đăng nhập */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #017439; /* Màu chủ đạo */
}

.page-resources__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0a0a0a;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it respects max-width */
}

.page-resources__btn-video-cta {
  margin-top: 20px;
}

/* Intro Section */
.page-resources__intro-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

/* Cards Section */
.page-resources__cards-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources__card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-resources__why-choose-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-resources__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-resources__feature-item {
  background: rgba(1, 116, 57, 0.1); /* Nền nhẹ từ màu chủ đạo */
  border-left: 5px solid #017439;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__feature-title {
  font-size: 1.8em;
  color: #017439; /* Màu chủ đạo */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__feature-description {
  color: #f0f0f0;
  font-size: 1em;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
}

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

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /*  */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Đảm bảo đủ cao để chứa nội dung */
  padding: 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__hero-description {
    font-size: 1.2em;
  }
}

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

  .page-resources__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Đảm bảo không bị header che */
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    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__video-section .page-resources__container,
  .page-resources__intro-section .page-resources__container,
  .page-resources__cards-section .page-resources__container,
  .page-resources__why-choose-section .page-resources__container,
  .page-resources__cta-section .page-resources__container,
  .page-resources__faq-section .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__section-subtitle {
    font-size: 1em;
  }

  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__card-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__card-image {
    height: 200px;
  }

  .page-resources__feature-list {
    grid-template-columns: 1fr;
  }

  /* Mobile responsive images */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive video */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}