.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #f4f4f4; /* Light background from shared.css */
  color: #1A1A1A; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* Light text for hero content */
  text-align: center;
}

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

.page-resources__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-resources__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources__hero-button--primary {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
  background-color: #1A1A1A;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-resources__content-area,
.page-resources__articles-section,
.page-resources__deep-dive-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-resources__section--dark {
  background-color: #1A1A1A;
  color: #F0F0F0;
}

.page-resources__section--dark .page-resources__section-title,
.page-resources__section--dark .page-resources__subsection-title {
  color: #FFD700;
}

.page-resources__section--dark .page-resources__section-intro,
.page-resources__section--dark .page-resources__text-content {
  color: #CCCCCC;
}

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

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

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

.page-resources__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.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: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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__article-content {
  padding: 25px;
  color: #1A1A1A;
}

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

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

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

.page-resources__article-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

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

.page-resources__deep-dive-section {
  background-color: #1A1A1A;
  color: #F0F0F0;
  padding: 80px 20px;
}

.page-resources__subsection-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-resources__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #CCCCCC;
}

.page-resources__cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #333333;
  border-radius: 10px;
}

.page-resources__cta-text {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* 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;
  }
  .page-resources__subsection-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-content {
    max-width: 90%;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__content-area,
  .page-resources__articles-section,
  .page-resources__deep-dive-section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__articles-grid,
  .page-resources__features-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__text-content {
    font-size: 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.5em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__subsection-title {
    font-size: 1.5em;
  }
  .page-resources__cta-text {
    font-size: 1.2em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}