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

.page-resources__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.page-resources__hero-container {
  max-width: 900px;
  padding: 0 20px;
}

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

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Black text for login button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-resources__section-title {
  font-size: 2.2em;
  color: #000000; /* Black text for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-resources__featured-articles {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.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: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-resources__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-resources__card-title a {
  color: #000000; /* Black text for card title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FCBC45; /* Highlight on hover */
}

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

.page-resources__card-link {
  display: inline-block;
  background-color: #000000; /* Black background for card links */
  color: #FFFFFF; /* White text for card links */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-link:hover {
  background-color: #333333;
}

.page-resources__why-choose-us {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.page-resources__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #444444;
}

.page-resources__content-block {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eeeeee;
}

.page-resources__content-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.page-resources__content-subtitle {
  font-size: 1.8em;
  color: #000000; /* Black text for content subtitles */
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.page-resources__content-block p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #333333;
  text-align: justify;
}

.page-resources__content-block p strong {
  color: #000000;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Ensure images don't overflow on larger screens */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-section {
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF; /* White text for dark background */
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
}

.page-resources__cta-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  font-weight: 700;
  color: #FCBC45; /* Login button color for emphasis */
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.page-resources__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Black text for register button */
  border: 2px solid #FFFFFF;
}

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

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

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

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

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

  .page-resources__content-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Keep padding top for mobile */
    padding-bottom: 40px;
    min-height: 300px;
  }

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

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

  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__container {
    padding: 30px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__article-card {
    margin-bottom: 20px;
  }

  .page-resources__card-image {
    height: 200px;
  }

  .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-resources__content-subtitle {
    font-size: 1.4em;
    text-align: left;
  }

  .page-resources__content-block p {
    font-size: 0.9em;
  }

  .page-resources__content-image {
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto; /* Maintain aspect ratio */
    width: 100%;
  }

  .page-resources__cta-section {
    padding: 40px 15px;
  }

  .page-resources__cta-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  .page-resources__button {
    width: 100%;
    max-width: 280px; /* Limit button width on small screens */
    margin: 0 auto;
  }
  /* Ensure all images within .page-resources are responsive and do 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.6em;
  }

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