.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensuring main content area respects body background */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  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;
}

.page-resources__btn {
  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__btn--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__btn--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register color for secondary action */
  border: 2px solid #FFFFFF;
}

.page-resources__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-resources__intro-section, .page-resources__articles-section, .page-resources__cta-section, .page-resources__additional-info-section {
  padding: 60px 0;
}

.page-resources__articles-section {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

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

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Very subtle transparent white */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__article-image {
  width: 100%;
  height: 250px;
  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;
  margin-bottom: 15px;
  color: #FCBC45;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFFFFF;
}

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

.page-resources__btn--text {
  color: #FFFFFF; /* Register color for text button */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.page-resources__btn--text:hover {
  border-color: #FCBC45;
}

.page-resources__cta-section {
  background-color: #1a1a1a; /* Dark background for CTA */
  text-align: center;
}

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

.page-resources__additional-info-section {
  padding-bottom: 80px;
}

.page-resources__additional-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources__link-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__link-item:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

@media (max-width: 768px) {
  .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__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__container {
    padding: 30px 15px;
  }
  /* Ensure images in content area are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
}