.page-resources {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Slightly darken image for text readability, no color change */
}

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 51, 102, 0.7); /* Dark blue overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent color */
}

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

.page-resources__hero-cta {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Dark blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__hero-cta:hover {
  background-color: #e6c200;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #003366; /* Dark blue heading */
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.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;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

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

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

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

.page-resources__article-button {
  display: inline-block;
  background-color: #003366;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #004d99;
}

.page-resources__section-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-list, .page-resources__insight-list, .page-resources__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources__guide-list li, .page-resources__insight-list li, .page-resources__responsible-list li {
  background-color: #ffffff;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #FFD700;
}

.page-resources__guide-list li a, .page-resources__insight-list li a, .page-resources__responsible-list li a {
  font-size: 1.1em;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.page-resources__guide-list li a:hover, .page-resources__insight-list li a:hover, .page-resources__responsible-list li a:hover {
  color: #FFD700;
}

.page-resources__cta-section {
  background: linear-gradient(135deg, #003366, #004d99);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-resources__cta-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-section .page-resources__section-text {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

.page-resources__cta-button--register {
  background-color: #FFD700;
  color: #003366;
}

.page-resources__cta-button--register:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__cta-button--login {
  background-color: #ffffff;
  color: #003366;
  border: 2px solid #FFD700;
}

.page-resources__cta-button--login:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-resources__quick-links {
  padding: 60px 0;
  background-color: #f5f5f5;
  text-align: center;
}

.page-resources__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-resources__quick-link-item {
  display: block;
  background-color: #003366;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__quick-link-item:hover {
  background-color: #004d99;
  transform: translateY(-3px);
}

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

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

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

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

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

  .page-resources__cta-button {
    width: 80%;
    margin: 0 auto;
  }

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

  /* Ensure images do not overflow */
  .page-resources__hero-image,
  .page-resources__article-image,
  .page-resources__section-image {
    max-width: 100%;
    height: auto; /* Important for mobile */
  }
  
  /* Content area image size constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}