.page-resources {
  padding-top: var(--header-offset, 120px);
  color: #FFFFFF; /* Default text color for the page content, contrasting with dark body background */
  background-color: #000000; /* Overall background for consistency with shared.css if primary is dark */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
  background-color: #000000; /* Ensure dark background for hero */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

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

.page-resources__hero-content {
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

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

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

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #FFFFFF;
}

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

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

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

.page-resources__article-card {
  background-color: #1a1a1a; /* Darker card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, min 200px */
  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.5em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #FCBC45; /* Card title link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-resources__button--read-more {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 600;
  align-self: flex-start;
}

.page-resources__button--read-more:hover {
  background-color: #e0a53b;
}

/* Deep Content Section */
.page-resources__deep-content-section {
  padding: 60px 0;
  background-color: #000000;
  color: #FFFFFF;
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #E0E0E0;
}

.page-resources__highlight {
  color: #FCBC45;
  font-weight: 600;
}

.page-resources__sub-title {
  font-size: 2em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-resources__text-link {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__text-link:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

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

.page-resources__feature-item {
  background-color: #1a1a1a;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #FCBC45;
  border-radius: 5px;
  font-size: 1em;
  color: #E0E0E0;
}

.page-resources__feature-item strong {
  color: #FFFFFF;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Constrain max height */
  object-fit: contain; /* Ensure image fits without cropping */
  margin: 30px 0;
  border-radius: 8px;
  display: block; /* Ensure it's a block element */
  min-width: 200px; /* Minimum display width */
  min-height: 200px; /* Minimum display height */
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
  color: #FFFFFF;
}

.page-resources__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 20px;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

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

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }

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

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

  .page-resources__paragraph,
  .page-resources__sub-title,
  .page-resources__feature-item {
    font-size: 0.95em;
  }

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

  /* Ensure content area images are not smaller than 200px on mobile */
  .page-resources__article-image,
  .page-resources__content-image {
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Allow height to adjust for responsiveness */
  }
}

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

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

  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }

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