.page-resources {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-section {
  background-color: #1A202C; /* Main brand color */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-resources__hero-title {
  font-size: 2.8em;
  color: #FFD700; /* Auxiliary brand color for highlight */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__articles-section {
  padding: 60px 20px;
  background-color: #121212; /* Body background color */
}

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

.page-resources__articles-title {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.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-heading {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-resources__article-heading a:hover {
  color: #e5c300;
}

.page-resources__article-category {
  display: inline-block;
  background-color: #1A202C;
  color: #FFD700;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-resources__article-summary {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__article-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__article-button:hover {
  background-color: #e5c300;
}

.page-resources__deep-content {
  padding: 60px 20px;
  background-color: #1A202C;
  color: #f0f0f0;
}

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

.page-resources__deep-content-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources__deep-content p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-resources__deep-content-button {
  display: block;
  width: fit-content;
  margin: 50px auto 20px auto;
  background-color: #FFD700;
  color: #1A202C;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__deep-content-button:hover {
  background-color: #e5c300;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__articles-title {
    font-size: 1.8em;
  }
  .page-resources__deep-content-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    gap: 30px;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-section {
    padding: 40px 15px;
  }
  .page-resources__articles-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-content {
    padding: 20px;
  }
  .page-resources__article-heading {
    font-size: 1.2em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__deep-content {
    padding: 40px 15px;
  }
  .page-resources__deep-content-title {
    font-size: 1.8em;
  }
  .page-resources__deep-content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__deep-content p {
    font-size: 0.95em;
  }
  .page-resources__deep-content-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure all content images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  /* Specific rule for article images to ensure they don't get smaller than 200px if not needed, but scale down */
  .page-resources__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.5em;
  }
  .page-resources__articles-title {
    font-size: 1.4em;
  }
  .page-resources__deep-content-title {
    font-size: 1.6em;
  }
  .page-resources__deep-content-subtitle {
    font-size: 1.3em;
  }
}