.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #333; /* Inherited from shared, but ensuring contrast */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-resources__hero-section {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #000080, #333366); /* Dark blue gradient */
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text on gold */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__hero-cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
}

.page-resources__hero-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.page-resources__articles-overview,
.page-resources__deep-dive-section,
.page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.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); /* Semi-transparent white for cards */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Enforcing minimum height for card images */
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-resources__card-title a:hover {
  color: #e6c200;
}

.page-resources__card-summary {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.8;
  flex-grow: 1;
}

.page-resources__card-button {
  display: inline-block;
  background-color: #000080; /* Dark blue button */
  color: #FFD700; /* Gold text on dark blue */
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: #000066; /* Slightly darker blue on hover */
  transform: translateY(-2px);
}

.page-resources__deep-dive-section {
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for contrast */
}

.page-resources__content-block {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for content blocks */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__content-subtitle {
  font-size: 2em;
  color: #FFD700; /* Gold for subtitles */
  margin-bottom: 20px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

.page-resources__content-block p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-resources__content-image {
  width: 100%;
  height: auto; /* Allow image to scale */
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-resources__faq-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text on gold */
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

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

.page-resources__cta-section {
  background-color: #000080; /* Dark blue background for CTA */
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: 3em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text on gold */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

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

/* 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__hero-section {
    padding: 60px 15px 30px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__content-subtitle {
    font-size: 1.8em;
  }
  .page-resources__content-block {
    padding: 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__card-image {
    height: 200px; /* Ensure card images remain at least 200px high */
  }
}