.page-resources {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Main background color */
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  z-index: 1;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the background image */
  z-index: 0;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-resources__hero-button--primary {
  background-color: #FFD700; /* Gold button */
  color: #000000;
}

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

.page-resources__hero-button--secondary {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__hero-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.page-resources__introduction-section,
.page-resources__deep-dive-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
}

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

.page-resources__sub-section-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-resources__section-text a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__section-text a:hover {
  color: #e0b000;
}

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

.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); /* Semi-transparent dark card */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px 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(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__article-image {
  width: 100%;
  height: 225px; /* 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.5em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__article-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__article-title a:hover {
  color: #e0b000;
  text-decoration: underline;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #FFD700;
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-resources__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-section {
  background: linear-gradient(90deg, #000000, #333333, #000000); /* Gradient background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-resources__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #000000;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

/* 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: 2em;
  }
  .page-resources__sub-section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-container {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__introduction-section,
  .page-resources__deep-dive-section,
  .page-resources__articles-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-section-title {
    font-size: 1.6em;
  }
  .page-resources__section-text {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure images in content area are responsive and don't overflow */
  .page-resources__container {
    overflow-x: hidden;
  }
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-section-title {
    font-size: 1.4em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}