/* style/resources.css */
/* 
  Màu sắc chính: #26A9E0
  Màu sắc phụ: #FFFFFF
  Màu nền body (từ shared.css): var(--background-color) - giả định là màu sáng
  Màu chữ mặc định cho nền sáng: #333333
  Màu chữ cho nền tối (brand color): #FFFFFF
*/

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định cho nền sáng */
  background-color: var(--background-color, #f8f8f8); /* Sử dụng biến từ shared.css hoặc fallback */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f0f0f0; /* Nền nhẹ cho hero */
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị che bởi header */
  overflow: hidden; /* Ngăn tràn ảnh */
}

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

.page-resources__hero-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555555;
}

.page-resources__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Làm tối ảnh nền để chữ nổi bật */
}

.page-resources__hero-section .page-resources__hero-title,
.page-resources__hero-section .page-resources__hero-description,
.page-resources__hero-section .page-resources__btn-primary,
.page-resources__hero-section .page-resources__btn-secondary {
  color: #ffffff; /* Chữ trắng trên nền ảnh tối */
}

.page-resources__hero-section .page-resources__btn-primary {
  background-color: #EA7C07; /* Màu cam cho nút đăng ký */
  border-color: #EA7C07;
}

.page-resources__hero-section .page-resources__btn-secondary {
  background-color: transparent;
  border-color: #ffffff;
}

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
  color: #333333;
}

.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: inherit; /* Kế thừa màu từ section cha */
}

.page-resources__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit; /* Kế thừa màu từ section cha */
}

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

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

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

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

.page-resources__card--dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: none;
}

.page-resources__card--dark:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

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

.page-resources__card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-resources__card-link {
  color: #26A9E0; /* Màu thương hiệu cho link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card--dark .page-resources__card-link {
  color: #ffffff;
}

.page-resources__card-link:hover {
  text-decoration: underline;
  color: #1a7bb7; /* Màu đậm hơn khi hover */
}

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

.page-resources__card-text {
  font-size: 1em;
  padding: 0 20px;
  flex-grow: 1; /* Đảm bảo chiều cao đồng đều */
}

.page-resources__btn-text-link {
  display: inline-block;
  margin: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-text-link:hover {
  color: #1a7bb7;
  text-decoration: underline;
}

.page-resources__btn-text-link--white {
  color: #ffffff;
}

.page-resources__btn-text-link--white:hover {
  color: #f0f0f0;
}

/* Video Section */
.page-resources__video-section {
  background-color: #f8f8f8;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f0f0f0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #e5e5e5;
}

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__faq-title {
  margin: 0;
  font-size: 1em; /* Kế thừa từ question */
}

.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); /* "+" to "−" is handled by JS textContent */
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 15px 25px 25px 25px;
}

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

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__cta-container {
  max-width: 800px;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Đảm bảo padding không làm tràn */
}