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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1A2B4C; /* Dark blue background for hero */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A2B4C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__content-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A2B4C;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-resources__article-list {
  margin-top: 60px;
}

.page-resources__list-title {
  font-size: 2.8em;
  color: #1A2B4C;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-resources__list-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 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(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Card image display height */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #1A2B4C;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #1A2B4C;
  text-decoration: none;
  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__read-more-button {
  display: inline-block;
  background-color: #1A2B4C;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__read-more-button:hover {
  background-color: #0f1c3a;
}

.page-resources__cta-section {
  text-align: center;
  background-color: #1A2B4C;
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 60px;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
  .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__content-section {
    padding: 40px 15px;
  }
  .page-resources__section-title,
  .page-resources__list-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px; /* Card image display height */
  }
  .page-resources__article-card {
    margin-bottom: 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
  }
  /* Mobile content area images must be constrained */
  .page-resources__content-section img, 
  .page-resources__article-card img {
    max-width: 100%; 
    height: auto; 
  }
  /* Ensure no image within .page-resources is smaller than 200px display size */
  .page-resources__article-image {
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px; /* Enforce minimum display size */
  }
  .page-resources__content-container img:not(.page-resources__hero-image) {
    min-width: 200px; 
    min-height: 200px; 
  }
}

/* Ensure no image within .page-resources is smaller than 200px display size */
.page-resources__content-section img, 
.page-resources__article-card img {
  min-width: 200px; 
  min-height: 200px; 
}