.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0d0d0d; /* Ensure consistency with body background */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

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

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

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

.page-resources__hero-button:hover {
  background-color: #b30000; /* Darker red on hover */
  transform: translateY(-2px);
}

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

.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__deep-content {
  padding: 60px 0;
}

.page-resources__section-title,
.page-resources__cta-title,
.page-resources__deep-content-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold main color */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__section-description,
.page-resources__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.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.1); /* Semi-transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  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 8px 25px rgba(0, 0, 0, 0.7);
}

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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: 10px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #FFD700; /* Gold for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #ffe066; /* Lighter gold on hover */
}

.page-resources__article-category {
  display: block;
  font-size: 0.9em;
  color: #b0b0b0;
  margin-bottom: 15px;
}

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #8B0000; /* Auxiliary red */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-resources__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700; /* Gold */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled):not(.page-resources__pagination-link--active) {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffe066;
}

.page-resources__pagination-link--active {
  background-color: #FFD700; /* Active gold */
  color: #0d0d0d;
  pointer-events: none;
}

.page-resources__pagination-link--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.page-resources__cta-section {
  background-color: rgba(139, 0, 0, 0.2); /* Semi-transparent red overlay */
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-resources__cta-description {
  color: #f0f0f0;
  font-size: 1.2em;
  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.2em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button--register {
  background-color: #FFD700; /* Gold for register */
  color: #0d0d0d;
}

.page-resources__cta-button--register:hover {
  background-color: #ffe066;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__cta-button--login {
  background-color: #8B0000; /* Red for login */
  color: #ffffff;
}

.page-resources__cta-button--login:hover {
  background-color: #b30000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__deep-content {
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-resources__deep-content-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__deep-content-subtitle {
  font-size: 1.8em;
  color: #e0e0e0;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-resources__deep-content p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 2.5em;
  }
  .page-resources__deep-content-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }
  .page-resources__hero-container {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-section,
  .page-resources__cta-section,
  .page-resources__deep-content {
    padding: 40px 0;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-summary {
    font-size: 0.95em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-resources__deep-content-title {
    font-size: 1.8em;
  }
  .page-resources__deep-content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__deep-content p {
    font-size: 1em;
  }

  /* Mobile content area image constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    height: auto; /* Allow image to scale */
  }
}