/* style/resources.css */
.page-resources {
  color: #ffffff; /* Sẽ được điều chỉnh bởi hệ thống màu thông minh */
  background-color: #0d0d0d; /* Body background color from shared.css */
}

.page-resources__hero-section {
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #003366 0%, #0a2647 100%); /* Dark gradient for hero */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFCC00; /* Accent color for title */
}

.page-resources__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-resources__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-resources__btn--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-3px);
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border-color: #FFCC00;
}

.page-resources__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-3px);
}

.page-resources__section {
  padding: 80px 0;
  position: relative;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-resources__section--guides, .page-resources__section--strategies {
  background-color: #1a1a1a;
}

.page-resources__section--news {
  background-color: #0d0d0d;
}

.page-resources__section--faq {
  background-color: #1a1a1a;
}

.page-resources__section--cta {
  background: linear-gradient(90deg, #003366, #0a2647);
  padding: 60px 0;
  text-align: center;
}

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

.page-resources__container--flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0.8;
}

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

.page-resources__card {
  background-color: #2a2a2a; /* Slightly lighter dark for card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 204, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__card-title a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #003366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-link:hover {
  background-color: #0a2647;
  transform: translateY(-2px);
}

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

.page-resources__article-item {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 204, 0, 0.15);
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__article-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
}

.page-resources__article-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #003366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-link:hover {
  background-color: #0a2647;
  transform: translateY(-2px);
}

/* FAQ Section Styles */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #003366; /* Main brand color for question background */
  border: 1px solid #0a2647;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-radius: 8px 8px 0 0;
  background-color: #0a2647;
}

.page-resources__faq-question:hover {
  background: #0a2647;
  border-color: #1a1a1a;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFCC00; /* Accent color for question title */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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 25px;
  opacity: 0;
  background-color: #2a2a2a; /* Card background for answer */
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.7;
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources__cta-content {
  flex: 2;
  text-align: left;
}

.page-resources__cta-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFCC00;
}

.page-resources__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 0;
}

.page-resources__cta-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__container--flex {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__cta-content {
    text-align: center;
  }
  .page-resources__cta-buttons {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: 100px !important; /* Mobile adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__btn {
    width: 100%;
    max-width: 280px;
  }

  .page-resources__section {
    padding: 50px 0;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__card-text {
    font-size: 0.95em;
  }
  .page-resources__article-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__article-excerpt {
    font-size: 0.95em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    width: 100%;
    align-items: center;
  }
  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile image responsive adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.4em;
  }
  .page-resources__card-image {
    height: 150px;
  }
  .page-resources__article-image {
    height: 150px;
  }
}