.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly set for content area */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  overflow: hidden;
  color: #FFFFFF; /* Light text for dark hero overlay */
}

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

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  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: #FCBC45; /* Login color for CTA */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-resources__articles-section,
.page-resources__about-pin77,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-resources__articles-header,
.page-resources__about-content,
.page-resources__cta-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__section-title,
.page-resources__cta-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-resources__section-subtitle,
.page-resources__section-description,
.page-resources__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-resources__article-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__article-content {
  padding: 25px;
}

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.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-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-resources__article-button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF; /* Register color for text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-resources__article-button:hover {
  background-color: #333333;
}

.page-resources__about-pin77 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background-color: #F0F0F0;
  border-radius: 10px;
  padding: 40px;
}

.page-resources__about-content {
  flex: 1;
  text-align: left;
}

.page-resources__about-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__about-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__about-button:hover {
  background-color: #333333;
}

.page-resources__cta-section {
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources__cta-content {
  flex: 1;
  text-align: left;
}

.page-resources__cta-title {
  color: #FFFFFF;
}

.page-resources__cta-description {
  color: #F0F0F0;
  margin-bottom: 30px;
}

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

.page-resources__cta-button {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__cta-button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Dark text for light button */
}

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

.page-resources__cta-button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for bright button */
}

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

.page-resources__cta-image {
  flex: 1;
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

  .page-resources__about-pin77,
  .page-resources__cta-section {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__about-content,
  .page-resources__cta-content {
    text-align: center;
  }

  .page-resources__about-image,
  .page-resources__cta-image {
    max-width: 80%;
  }

  .page-resources__cta-buttons {
    justify-content: center;
  }
}

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

  .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__articles-section,
  .page-resources__about-pin77,
  .page-resources__cta-section {
    padding: 15px;
    margin: 30px auto;
  }

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

  .page-resources__article-title {
    font-size: 1.3em;
  }

  .page-resources__article-image,
  .page-resources__about-image,
  .page-resources__cta-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    width: 100%;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-resources__about-pin77 {
    padding: 20px;
  }
}