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

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

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 0;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text on dark background */
  position: relative;
  overflow: hidden;
}

.page-resources__hero-container {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

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

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px; /* Ensure image scales down */
  border-radius: 10px;
  margin-top: -80px; /* Overlap with hero text for dynamic look */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-resources__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
  background-color: #e6a73c;
  color: #000000;
  transform: translateY(-2px);
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources__button--read-more:hover {
  background-color: #333333;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Introduction Section */
.page-resources__introduction-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.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: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__text-content {
  font-size: 1.05em;
  color: #333333;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px;
  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: #000000;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FCBC45; /* Login button color for hover */
}

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

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

/* Pagination */
.page-resources__pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

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

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

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

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
}

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

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

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-title {
    font-size: 2.2em;
  }
  .page-resources__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding-top: 40px;
  }
  .page-resources__hero-image {
    margin-top: 20px;
    max-width: 100%;
    height: auto; /* Ensure image scales down */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-resources__introduction-section, .page-resources__articles-section, .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-resources__article-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-actions {
    flex-direction: column;
  }
  /* Content area images must not cause overflow */
  .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.5em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__article-image {
    height: 150px;
  }
  .page-resources__article-content {
    padding: 15px;
  }
  .page-resources__article-title {
    font-size: 1.1em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__button {
    font-size: 0.9em;
    padding: 10px 15px;
  }
  .page-resources__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
}