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

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #007bff; /* Fallback background */
  color: #ffffff;
  padding: 0;
  text-align: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-resources__hero-cta {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-cta:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-resources__introduction-section,
.page-resources__why-choose-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  margin-bottom: 20px;
}

.page-resources__introduction-section {
  background-color: #ffffff;
}

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

.page-resources__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #e9ecef;
}

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

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

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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.6em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 15px;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__article-button:hover {
  background-color: #0056b3;
}

.page-resources__why-choose-section {
  background-color: #f8f9fa;
}

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

.page-resources__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
}

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

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

.page-resources__faq-section {
  background-color: #e9ecef;
}

.page-resources__faq-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-resources__cta-section {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-content {
  max-width: 900px;
}

.page-resources__cta-section .page-resources__section-title {
  color: #ffc107;
}

.page-resources__cta-section .page-resources__section-text {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-resources__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #ffc107;
  color: #ffc107;
}

.page-resources__cta-button--secondary:hover {
  background-color: #ffc107;
  color: #007bff;
}

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

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

  .page-resources__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }

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

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

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

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

  /* Ensure content images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  /* Specific rule for article images to maintain aspect ratio on small screens */
  .page-resources__article-image {
    height: auto; /* Allow height to adjust */
    max-height: 200px; /* Cap maximum height for smaller screens if needed */
  }

  .page-resources__cta-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }
}

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

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

  .page-resources__hero-content {
    padding: 15px;
  }

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

  .page-resources__article-title {
    font-size: 1.4em;
  }

  .page-resources__feature-title {
    font-size: 1.3em;
  }

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