/* style/resources.css */

.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffc107; /* Highlight with auxiliary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-resources__button--primary {
  background-color: #ffc107;
  color: #007bff;
  border: 2px solid #ffc107;
}

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

.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(-3px);
}

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

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

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

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  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(-10px);
  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;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: bold;
}

.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: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--link {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Pushes the button to the bottom */
}

.page-resources__button--link:hover {
  background-color: #e0a800;
}

.page-resources__deep-dive-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 5px;
}

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

.page-resources__deep-dive-section ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #444444;
}

.page-resources__deep-dive-section li {
  margin-bottom: 10px;
}

.page-resources__cta-banner {
  background-color: #007bff;
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-text {
  font-size: 1.8em;
  margin-bottom: 25px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header for mobile */
  }

  .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%;
    padding: 12px 20px;
  }

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

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

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

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

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

  .page-resources__subsection-title {
    font-size: 1.5em;
  }

  .page-resources__cta-text {
    font-size: 1.4em;
  }

  /* Critical: Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-resources__cta-text {
    font-size: 1.2em;
  }
}