.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  color: #333333; /* Dark text for light body background */
  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 {
  background-color: #000000; /* Dark background for hero section */
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* Light text for dark hero background */
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

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

.page-resources__hero-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-resources__hero-button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-resources__introduction-section,
.page-resources__categories-section,
.page-resources__articles-section,
.page-resources__call-to-action-section,
.page-resources__stay-updated-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content sections */
}

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

.page-resources__section-text {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

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

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

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

.page-resources__category-icon {
  width: 100%;
  height: 200px; /* Fixed height for category icons */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-resources__category-title,
.page-resources__article-title {
  font-size: 1.5em;
  color: #000000;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-resources__category-title a,
.page-resources__article-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-resources__category-description,
.page-resources__article-summary {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for article images */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

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

.page-resources__call-to-action-section {
  background-color: #FCBC45; /* Highlight color for CTA */
  color: #000000;
  text-align: center;
  padding: 80px 0;
}

.page-resources__call-to-action-content .page-resources__section-title,
.page-resources__call-to-action-content .page-resources__section-text {
  color: #000000;
}

.page-resources__call-to-action-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__call-to-action-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-resources__stay-updated-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

.page-resources__stay-updated-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-resources__stay-updated-button:hover {
    background-color: #333333;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
  }

  .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: 80%;
    margin: 0 auto;
  }

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

  .page-resources__section-text {
    font-size: 0.95em;
  }

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

  /* Ensure all content images are responsive and do not cause overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  .page-resources__category-icon, .page-resources__article-image {
    height: auto; /* Allow height to adjust for responsiveness */
    min-height: 200px; /* Ensure minimum size */
  }

  .page-resources__call-to-action-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

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

  .page-resources__hero-description {
    font-size: 0.9em;
  }

  .page-resources__hero-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-resources__section-text {
    font-size: 0.9em;
  }
}