/* style/resources.css */
.page-resources {
  color: #333333; /* Dark text on light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
  background-color: #f5f5f5;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources__hero-content {
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.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;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Main color for text */
  border: 2px solid #FCBC45;
}

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

.page-resources__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Aux color for text */
  border: 2px solid #000000;
}

.page-resources__button--secondary:hover {
  background-color: #333333;
}

.page-resources__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__articles-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

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

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

.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 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

.page-resources__article-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-resources__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

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

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

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding: 60px 20px;
    gap: 30px;
  }

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

  .page-resources__hero-description,
  .page-resources__section-description,
  .page-resources__article-summary,
  .page-resources__cta-description {
    font-size: 0.95em;
  }

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

  .page-resources__article-image-wrapper {
    height: 200px;
  }

  .page-resources__article-image,
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }

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

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

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

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

  .page-resources__button {
    width: 100%;
  }
}