/* style/resources.css */
.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background #f4f7f6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #007bff; /* Primary color fallback */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2; /* To allow text to be prominent */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-resources__hero-buttons {
  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, transform 0.2s ease;
  font-size: 1.1em;
}

.page-resources__button--primary {
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-resources__button--primary:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

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

.page-resources__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 15px;
  color: #007bff; /* Primary color */
  font-weight: bold;
}

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

.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: 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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__article-thumbnail {
  width: 100%;
  height: 225px; /* 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;
  margin-bottom: 15px;
  color: #007bff;
  line-height: 1.3;
}

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

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

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

.page-resources__button--tertiary {
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  border: 2px solid #007bff;
  align-self: flex-start;
}

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

/* Deep Content Section */
.page-resources__deep-content {
  padding: 60px 0;
  background-color: #f4f7f6;
}

.page-resources__deep-content p {
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__deep-content h2.page-resources__section-title {
  color: #007bff;
  margin-bottom: 30px;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 0;
  }
  
  /* Ensure images in content area are responsive and not smaller than 200px */
  .page-resources__articles-grid img,
  .page-resources__deep-content img {
    max-width: 100%;
    height: auto; /* Important for responsiveness */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }

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

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

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

  .page-resources__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-resources__section-subtitle {
    font-size: 1em;
  }

  .page-resources__article-card {
    margin-bottom: 20px;
  }

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

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

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

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

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

  .page-resources__sub-title {
    font-size: 1.4em;
  }
}