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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Main brand color for hero background */
  color: #FFFFFF; /* White text for dark background */
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden; /* To contain the image if it's absolutely positioned */
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FCBC45; /* Highlight color for title */
}

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

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

.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;
  min-width: 180px;
  text-align: center;
}

.page-resources__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

.page-resources__btn--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FFFFFF;
}

.page-resources__btn--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

.page-resources__articles-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-resources__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.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.6em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-resources__card-title a:hover {
  color: #FCBC45;
}

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

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

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

.page-resources__deep-content-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-resources__deep-content-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-resources__deep-content-intro {
  font-size: 1.2em;
  color: #444444;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-resources__deep-content-subtitle {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

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

.page-resources__deep-content-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #000000;
  border-radius: 10px;
  color: #FFFFFF;
}

.page-resources__deep-content-cta p {
  font-size: 1.5em;
  margin-bottom: 25px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-resources__deep-content-cta .page-resources__btn {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__deep-content-cta .page-resources__btn:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px);
    padding: 40px 15px;
  }
  .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__articles-section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__deep-content-section {
    padding: 60px 0;
  }
  .page-resources__deep-content-title {
    font-size: 2em;
  }
  .page-resources__deep-content-intro {
    font-size: 1em;
  }
  .page-resources__deep-content-subtitle {
    font-size: 1.5em;
  }
  .page-resources__deep-content-section p {
    font-size: 0.95em;
  }
  .page-resources__deep-content-cta p {
    font-size: 1.2em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  /* Mobile content image constraint */
  .page-resources__articles-grid img,
  .page-resources__deep-content-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__deep-content-title {
    font-size: 1.8em;
  }
}