.page-resources {
  color: #333333; /* Dark text for default white body background */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff; /* White text over dark/rich image */
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold brand color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-resources__hero-button,
.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Deep Red for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__hero-button:hover,
.page-resources__cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #5a0000; /* Darker red on hover */
}

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

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__faq-section,
.page-resources__cta-section,
.page-resources__advanced-insights-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep Red secondary color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold accent */
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-resources__section-description,
.page-resources__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__text-content {
  text-align: left;
  margin-bottom: 15px;
}

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

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

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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.6em;
  margin-bottom: 10px;
  color: #8B0000; /* Deep Red */
}

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #FFD700; /* Gold on hover */
}

.page-resources__card-category {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-resources__card-button {
  display: inline-block;
  background-color: #8B0000; /* Deep Red */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #a00000; /* Lighter red on hover */
}

.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 25px;
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-resources__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #FFD700; /* Gold accent */
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-question::after {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  display: none; /* Hidden by default, toggled by JS */
  margin-top: 15px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  display: block;
}

.page-resources__cta-section {
  background-color: #8B0000; /* Deep Red background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button,
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__faq-section,
  .page-resources__cta-section,
  .page-resources__advanced-insights-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description,
  .page-resources__text-content {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  
  /* Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}