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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  padding-bottom: 60px;
  text-align: center;
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

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

.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-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-resources__hero-button:hover {
  background-color: #e0a53b;
}

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

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

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

.page-resources__section-subtitle {
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 60px;
  color: #555555;
}

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

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

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  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.5rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-resources__article-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-resources__text-block {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #333333;
}

.page-resources__sub-title {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-resources__list-item {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #333333;
}

.page-resources__list-item::before {
  content: '✓';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-resources__cta-block {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px 30px;
  border-radius: 12px;
  margin-top: 60px;
}

.page-resources__cta-text {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
  margin: 0 10px;
}

.page-resources__cta-button:hover {
  background-color: #e0a53b;
}

.page-resources__cta-button--login {
  background-color: #FFFFFF;
}

.page-resources__cta-button--login:hover {
  background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__section-title {
    font-size: 2.2rem;
  }
  .page-resources__sub-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
  .page-resources__section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__article-title {
    font-size: 1.3rem;
  }
  .page-resources__text-block,
  .page-resources__list-item {
    font-size: 0.95rem;
  }
  .page-resources__sub-title {
    font-size: 1.6rem;
  }
  .page-resources__cta-text {
    font-size: 1.2rem;
  }
  .page-resources__cta-button {
    display: block;
    margin: 15px auto;
    width: fit-content;
  }
  /* Ensure images in content area are responsive and not too small */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__article-image {
    width: 100%; /* Ensure card images are also fully responsive */
    height: auto; /* Allow height to adjust naturally */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
  }
  .page-resources__articles-grid img,
  .page-resources__deep-content-section img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2rem;
  }
  .page-resources__section-title {
    font-size: 1.8rem;
  }
  .page-resources__sub-title {
    font-size: 1.4rem;
  }
  .page-resources__hero-section {
    padding-bottom: 40px;
  }
  .page-resources__articles-section,
  .page-resources__deep-content-section {
    padding: 40px 0;
  }
}