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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 500px; /* Minimum height for hero section */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 700px; /* Limit hero image height */
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF; /* White text for contrast against dark hero image */
  padding: 80px 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  margin: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: none;
}

.page-resources__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for contrast */
}

.page-resources__button--primary:hover {
  background-color: #e0a53a;
}

.page-resources__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-resources__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #e0a53a;
}

.page-resources__button--tertiary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  border: 1px solid #FCBC45;
}

.page-resources__button--tertiary:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for article section */
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  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.15);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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.6em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.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-summary {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.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: #FFFFFF;
  border: 1px solid #DDDDDD;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-resources__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  font-weight: bold;
}

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

.page-resources__cta-section {
  background-color: #000000; /* Main color as background */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-resources__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

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

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

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

  .page-resources__article-title {
    font-size: 1.4em;
  }

  .page-resources__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-resources__hero-container {
    padding: 60px 15px;
    margin: 20px 15px;
  }

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

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

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    padding: 10px 20px;
    width: 100%;
  }

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

  .page-resources__section-description {
    font-size: 1em;
  }

  .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-title {
    font-size: 2em;
  }

  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__content-area img,
  .page-resources__articles-section img,
  .page-resources__article-card 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__article-title {
    font-size: 1.2em;
  }

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