/* style/resources.css */
.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 not hidden by fixed header */
}

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

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

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim image to make text readable */
  z-index: 0;
}

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

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

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-resources__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Text color for register button */
  border: 2px solid #FFFFFF;
}

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

.page-resources__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Text color for login button */
  border: 2px solid #FCBC45;
}

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

.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: 15px;
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__article-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-resources__article-category {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-align: center;
  margin-top: auto; /* Push to bottom */
}

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

.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%;
  background-color: #f0f0f0;
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-resources__pagination-link--active {
  background-color: #000000;
  color: #FFFFFF;
}

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

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

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-resources__button--primary:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

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

.page-resources__button--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px);
  }
  .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;
    margin: 0 auto;
  }
  .page-resources__articles-section {
    padding: 40px 0;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 0.95em;
  }
  .page-resources__cta-section {
    padding: 60px 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__article-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
  }
  .page-resources__article-card img,
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images within .page-resources are responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
  }
}

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

/* Ensure no image filters are used */
.page-resources img {
  filter: none; /* Explicitly disable any potential filters */
}

/* Content area image size enforcement */
.page-resources__article-image,
.page-resources__hero-image {
  min-width: 200px;
  min-height: 200px;
}