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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden; /* To contain the absolute image */
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2; /* Ensure content is above image */
}

.page-resources__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

.page-resources__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-resources__button--explore {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources__button--explore:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.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: 15px;
  font-weight: bold;
}

.page-resources__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 50px;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 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 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-resources__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-resources__article-card:hover .page-resources__article-image {
  transform: scale(1.05);
}

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

.page-resources__article-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  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: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 0.95em;
  border: none;
  align-self: flex-start;
}

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

.page-resources__cta-section {
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

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

.page-resources__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-resources__button--primary {
  background-color: #000000;
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 10px;
  font-size: 1.2em;
  border: none;
}

.page-resources__button--primary:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

/* Responsive Design */
@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: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px;
  }
  .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__button {
    width: 100%;
  }
  .page-resources__articles-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
    margin-top: 40px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  .page-resources__button--primary {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Ensure images do not overflow on mobile */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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