.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000; /* Ensuring the main content area has a consistent dark background */
  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;
  padding-bottom: 60px; /* Space below hero content */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image slightly for text readability */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero section */
  padding: 80px 20px;
  z-index: 2;
  color: #ffffff;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image */
  z-index: 3;
}

.page-resources__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources__button--primary {
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text */
  border: 2px solid #FFD700;
}

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

.page-resources__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources__button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 6px;
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text */
  border: none;
}

.page-resources__button--small:hover {
  background-color: #e6c200;
}

.page-resources__articles-section {
  padding: 80px 0;
  background-color: #1A1A1A; /* Dark background for articles */
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

.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.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  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.6);
}

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #FFD700; /* Gold border */
}

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

.page-resources__article-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.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: #e6c200;
}

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

.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

.page-resources__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled) {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources__pagination-link--active {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-resources__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-resources__cta-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%); /* Gradient dark background */
  border-top: 5px solid #FFD700;
}

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

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

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

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

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

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

  .page-resources__hero-container {
    min-height: 400px;
    padding: 60px 15px;
  }

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

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

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

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

  .page-resources__articles-section {
    padding: 60px 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-resources__article-image {
    height: 180px;
  }

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

  .page-resources__article-summary {
    font-size: 0.9em;
  }

  .page-resources__cta-section {
    padding: 80px 15px;
  }

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

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

  /* CRITICAL: Mobile content images must not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  .page-resources__container {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__article-image {
    height: 150px;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__article-summary {
    font-size: 0.85em;
  }
}