.page-resources {
  color: #333333; /* Dark text for light body background */
}

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

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

.page-resources__btn--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__btn--primary:hover {
  background-color: #E0A83D;
  color: #000000;
  transform: translateY(-2px);
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources__btn--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
}

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

.page-resources__overview-section,
.page-resources__articles-section,
.page-resources__deep-dive-section,
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

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

.page-resources__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  max-height: 250px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  display: block;
}

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

.page-resources__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

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

.page-resources__article-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px; /* 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.6em;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

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

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

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

.page-resources__btn--link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-resources__btn--link:hover {
  border-color: #FCBC45;
  color: #E0A83D;
}

.page-resources__deep-dive-section h2,
.page-resources__deep-dive-section h3,
.page-resources__deep-dive-section h4 {
  color: #000000;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__deep-dive-section h2 {
  font-size: 2.5em;
  text-align: center;
}

.page-resources__deep-dive-section h3 {
  font-size: 2em;
  margin-top: 40px;
}

.page-resources__deep-dive-section h4 {
  font-size: 1.6em;
  margin-top: 30px;
  color: #FCBC45;
}

.page-resources__deep-dive-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__deep-dive-section ul {
  list-style: disc;
  padding-left: 30px;
  margin-bottom: 20px;
}

.page-resources__deep-dive-section li {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #555555;
}

.page-resources__deep-dive-section a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: 600;
}

.page-resources__deep-dive-section a:hover {
  text-decoration: underline;
}

.page-resources__cta-section {
  background-color: #000000;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

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

.page-resources__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 60px 20px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources__feature-icon, .page-resources__article-image, .page-resources__cta-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__articles-grid, .page-resources__features-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__deep-dive-section h2 {
    font-size: 2em;
  }
  .page-resources__deep-dive-section h3 {
    font-size: 1.6em;
  }
  .page-resources__deep-dive-section h4 {
    font-size: 1.3em;
  }
  .page-resources__deep-dive-section p,
  .page-resources__deep-dive-section li {
    font-size: 0.95em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__overview-section,
  .page-resources__articles-section,
  .page-resources__deep-dive-section,
  .page-resources__cta-section {
    padding: 60px 0;
  }
  /* Ensure content images do not overflow */
  .page-resources__hero-section img,
  .page-resources__overview-section img,
  .page-resources__articles-section img,
  .page-resources__deep-dive-section img,
  .page-resources__cta-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
  .page-resources__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
}