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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 20px;
  z-index: 1;
}

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

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

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

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

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

.page-resources__btn--register:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

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

.page-resources__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  position: relative;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__articles-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
  width: 100%;
  height: 250px;
  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.5em;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__btn--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.95em;
  align-self: flex-start;
}

.page-resources__btn--read-more:hover {
  background-color: #333333;
}

.page-resources__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-resources__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #000000;
  background-color: #F0F0F0;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled):not(.page-resources__pagination-link--active) {
  background-color: #E0E0E0;
}

.page-resources__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

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

.page-resources__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-resources__btn--cta-join {
  background-color: #FCBC45;
  color: #000000;
  padding: 16px 40px;
  font-size: 1.2em;
}

.page-resources__btn--cta-join:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.4em;
  }
  .page-resources__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 100%;
    max-width: 280px;
  }
  .page-resources__hero-image-wrapper {
    margin-top: 30px;
  }
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__articles-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  /* Mobile content area image safety */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__btn--cta-join {
    padding: 14px 30px;
    font-size: 1.1em;
  }
  .page-resources__article-content {
    padding: 20px;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
}