.page-resources {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure page background matches body if needed */
  padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
}

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

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

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

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

.page-resources__button--register {
  background-color: #FCBC45; /* Login color for register button */
  color: #000000;
}

.page-resources__button--register:hover {
  background-color: #e0a73d;
}

.page-resources__button--explore {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-resources__button--explore:hover {
  background-color: #1a1a1a;
  border-color: #e0a73d;
}

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

.page-resources__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-resources__introduction-section,
.page-resources__deep-dive-section,
.page-resources__cta-section,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-resources__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.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: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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__card-content {
  padding: 25px;
}

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-resources__card-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources__button--read-more:hover {
  background-color: #1a1a1a;
}

.page-resources__button--view-all {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__button--view-all:hover {
  background-color: #e0a73d;
}

.page-resources__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__cta-section .page-resources__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-resources__button--download {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources__button--download:hover {
  background-color: #e0e0e0;
}

.page-resources__button--faq {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1em;
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__button--faq:hover {
  background-color: #1a1a1a;
  border-color: #e0a73d;
}

/* 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__card-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-content {
    padding: 60px 15px;
  }

  .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__button--large {
    width: 100%;
  }

  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__introduction-section,
  .page-resources__deep-dive-section,
  .page-resources__cta-section,
  .page-resources__faq-section {
    padding: 40px 0;
  }

  .page-resources__text-content {
    font-size: 1em;
  }

  /* Ensure images in content area are responsive and not too small */
  .page-resources img {
    max-width: 100%;
    height: auto; /* Important for responsiveness */
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }

  /* Override specific image sizes if they conflict with min-width/height */
  .page-resources__article-image {
    height: auto; /* Let height adjust with max-width: 100% */
  }

  .page-resources__button--view-all,
  .page-resources__button--faq {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

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

  .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__button--large {
    font-size: 1em;
    padding: 15px 25px;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-resources__container img,
.page-resources__articles-grid img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover; /* Ensure images fill their space */
}

/* Filter brightness is allowed as it's not changing the image's original color */
.page-resources__hero-image {
  filter: brightness(0.5);
}