.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); /* Ensures content starts below fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

/* Buttons */
.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-resources__button--register:hover {
  background-color: #E0E0E0;
  transform: translateY(-2px);
}

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

.page-resources__button--login:hover {
  background-color: #E6A73A;
  transform: translateY(-2px);
}

.page-resources__button--read-more,
.page-resources__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
}

.page-resources__button--read-more:hover,
.page-resources__button--join-now:hover {
  background-color: #E6A73A;
  transform: translateY(-2px);
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

.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;
  overflow: hidden;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

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

.page-resources__article-title a:hover {
  color: #FCBC45; /* Highlight on hover */
}

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

/* Call to Action Section */
.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

.page-resources__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

.page-resources__button--join-now {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Pagination */
.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%;
  text-decoration: none;
  color: #000000;
  background-color: #F0F0F0;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-resources__pagination-link:hover:not(.page-resources__pagination-link--disabled):not(.page-resources__pagination-link--active) {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  pointer-events: none;
}

.page-resources__pagination-link--disabled {
  color: #AAAAAA;
  background-color: #E0E0E0;
  cursor: not-allowed;
}

/* Additional Info Section */
.page-resources__additional-info {
  padding: 60px 0;
  background-color: #F5F5F5;
}

.page-resources__additional-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__additional-text {
  font-size: 1.1em;
  color: #444444;
  line-height: 1.8;
  text-align: justify;
}

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

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

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }

  .page-resources__hero-section {
    padding: 60px 0;
  }

  .page-resources__hero-container {
    padding: 30px 20px;
  }

  .page-resources__hero-title {
    font-size: 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;
    margin: 0 auto;
  }

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

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

  .page-resources__section-intro,
  .page-resources__additional-text {
    font-size: 0.95em;
  }

  .page-resources__cta-section {
    padding: 40px 20px;
  }

  .page-resources__cta-title {
    font-size: 1.6em;
  }

  /* Ensure images do not overflow on mobile */
  .page-resources__hero-image,
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
  }
  
  .page-resources__articles-section img, 
  .page-resources__additional-info img {
    max-width: 100%;
    height: auto;
  }

  /* Specific rule for content images to ensure min-size on mobile */
  .page-resources__articles-grid .page-resources__article-image {
    width: 100%;
    min-width: 200px; /* Ensure minimum width */
    min-height: 200px; /* Ensure minimum height */
    height: auto; /* Allow height to adjust */
  }
}

@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__additional-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.4em;
  }
  .page-resources__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}