.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-resources__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-resources__button--secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__articles-section,
.page-resources__faq-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

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

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

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

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__article-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--link {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
  padding: 10px 20px;
  align-self: flex-start;
}

.page-resources__button--link:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.page-resources__faq-question {
  font-size: 1.3em;
  color: #000000;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 500px; /* Adjust based on expected content height */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin: 0 0 10px 0;
  color: #555555;
}

.page-resources__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

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

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

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

  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-resources__article-image,
  .page-resources__article-card img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }

  .page-resources__cta-section {
    padding: 60px 20px;
  }

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

  /* Ensure all content area images are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must not be rendered smaller than 200px. */
  /* This rule explicitly prevents smaller sizes, while max-width: 100% handles responsiveness */
  .page-resources__hero-image,
  .page-resources__article-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* Specific override for card images to ensure they meet minimum size if card is too small */
  .page-resources__article-card .page-resources__article-image {
    width: 100%; /* Take full width of parent */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
  }
}