.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  color: #ffffff; /* Light text for dark body background */
  background-color: #2D3748; /* Matches body background for consistency */
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(26, 32, 44, 0.7); /* Primary color with transparency */
  border-radius: 12px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold accent for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold for CTA */
  color: #1A202C; /* Dark text on gold */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__about-section,
.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__more-resources {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

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

.page-resources__article-card {
  background-color: #1A202C; /* Primary color for card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 250px;
  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.8em;
  margin-bottom: 15px;
}

.page-resources__article-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #a0a0a0;
  margin-bottom: 10px;
}

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__read-more-button:hover {
  background-color: #e5c100;
}

.page-resources__cta-section {
  background-color: #1A202C; /* Primary color background */
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
}

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

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

.page-resources__cta-button--primary {
  background-color: #FFD700;
  color: #1A202C;
}

.page-resources__cta-button--primary:hover {
  background-color: #e5c100;
}

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

.page-resources__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__article-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__hero-content {
    padding: 30px 20px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-content {
    padding: 20px;
  }
  .page-resources__article-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 80%;
    margin: 0 auto;
  }
  /* Mobile content area images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    height: 100%; /* Ensure hero image scales correctly on mobile */
    position: static; /* Adjust position for mobile to not interfere with content flow */
  }
  .page-resources__hero-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__hero-content {
    padding: 20px 15px;
  }
  .page-resources__cta-button {
    width: 90%;
  }
}