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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Desktop padding */
  background-color: #000000; /* Dark background for hero text area */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.4; /* Slightly transparent to let text stand out */
}

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 60px 20px;
  color: #FFFFFF; /* Light text on dark hero background */
}

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

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

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

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

.page-resources__hero-button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__hero-button--primary:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

.page-resources__hero-button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources__hero-button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  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-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-resources__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.page-resources__filter-button {
  padding: 10px 25px;
  border: 2px solid #FCBC45;
  border-radius: 25px;
  background-color: transparent;
  color: #000000;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-resources__filter-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__filter-button--active {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

.page-resources__article-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Ensure cards are tall enough for large images */
}

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

.page-resources__article-thumbnail {
  width: 100%;
  height: 250px; /* Large image area for cards */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-category {
  display: inline-block;
  background-color: #000000;
  color: #FCBC45;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-resources__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.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-abstract {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-btn {
  display: inline-block;
  margin-top: auto; /* Push button to bottom */
  padding: 10px 20px;
  background-color: #000000;
  color: #FCBC45;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__read-more-btn:hover {
  background-color: #333333;
  color: #FFFFFF;
}

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

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

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

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

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

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

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

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

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

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

.page-resources__cta-button--register:hover {
  background-color: #f0f0f0;
}

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

.page-resources__cta-button--login:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

.page-resources__faq-section {
  margin-top: 80px;
  background-color: #f8f8f8;
  padding: 50px 30px;
  border-radius: 12px;
}

.page-resources__faq-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__faq-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.page-resources__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #000000;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-resources__faq-question::after {
  content: '+';
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  font-size: 1.05em;
  color: #555555;
  line-height: 1.6;
  padding-left: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.page-resources__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 10px;
}

/* 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 {
    padding-top: var(--header-offset, 120px); /* Mobile padding */
  }
  .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__hero-button {
    width: 100%;
    max-width: 300px; /* Constrain buttons on mobile */
  }
  .page-resources__content-area {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    min-height: auto;
  }
  .page-resources__article-thumbnail {
    height: 200px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px; /* Constrain buttons on mobile */
  }
  .page-resources__faq-title {
    font-size: 1.8em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  /* Mobile image overflow prevention */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    position: static;
    width: 100%;
    height: auto;
    opacity: 0.4;
  }
  .page-resources__hero-section {
    padding-top: 0;
  }
  .page-resources__hero-container {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.95em;
  }
  .page-resources__filter-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-abstract {
    font-size: 0.95em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
}