/* style/resources.css */
.page-resources {
  padding-top: var(--header-offset, 120px);
  background-color: #f8f9fa; /* Light background for content */
  color: #333333; /* Dark text for readability */
  font-family: 'Arial', sans-serif;
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px; /* Add padding below image */
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #fff;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-resources__articles-overview {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__article-list {
  padding: 60px 0;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-resources__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__card-title a {
  color: #007bff; /* Primary color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #0056b3;
}

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

.page-resources__card-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  text-align: center;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__card-button:hover {
  background-color: #0056b3;
}

.page-resources__deep-content {
  padding: 80px 0;
  background-color: #f0f8ff; /* Slightly different background for deep content */
}

.page-resources__deep-content-title {
  font-size: 2.8em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__deep-content-paragraph,
.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #444444;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #28a745;
  padding-left: 15px;
}

.page-resources__paragraph a {
  color: #28a745;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-resources__paragraph a:hover {
  color: #218838;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 15px;
  margin-right: 15px;
}

.page-resources__button--primary {
  background-color: #007bff;
  color: #ffffff;
}

.page-resources__button--primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.page-resources__button--secondary {
  background-color: #28a745;
  color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__deep-content-title {
    font-size: 2.2em;
  }
  .page-resources__sub-title {
    font-size: 1.8em;
  }
  .page-resources__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__articles-overview,
  .page-resources__article-list,
  .page-resources__deep-content {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__card-summary {
    font-size: 0.9em;
  }
  .page-resources__deep-content-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
  }
  .page-resources__deep-content-paragraph,
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Mobile content image constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}