.page-resources {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
  overflow: hidden;
  color: #FFFFFF; /* Text over hero image */
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

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

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

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

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

.page-resources__articles-section,
.page-resources__deep-content-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__article-content {
  padding: 25px;
}

.page-resources__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  min-height: 70px; /* Ensure consistent card height */
}

.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-category {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  min-height: 100px; /* Ensure consistent card height */
}

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

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

.page-resources__sub-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-top: 60px;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-resources__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FCBC45;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px);
  }
  .page-resources__hero-section {
    padding: 40px 15px;
    min-height: 300px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__hero-button {
    width: 100%;
    max-width: 250px;
  }
  .page-resources__articles-section,
  .page-resources__deep-content-section {
    margin: 30px auto;
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.2em;
    min-height: auto;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
    min-height: auto;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__content-image {
    margin: 20px auto;
  }
  .page-resources__cta-banner {
    min-height: 250px;
    margin-top: 40px;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  /* Ensure images do not overflow on mobile */
  .page-resources__hero-section img,
  .page-resources__articles-grid img,
  .page-resources__deep-content-section img,
  .page-resources__cta-banner 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.6em;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__cta-description {
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    font-size: 1em;
  }
}