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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #FFD700, #1E90FF); /* Blending brand colors for background */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-resources__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  object-fit: cover;
}

.page-resources__hero-content {
  text-align: center;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Main brand color */
  color: #1E90FF; /* Auxiliary brand color for text */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-resources__intro-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.page-resources__intro-heading {
  font-size: 2.5em;
  color: #1E90FF; /* Auxiliary brand color */
  margin-bottom: 20px;
}

.page-resources__intro-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
  color: #555555;
}

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

.page-resources__articles-heading {
  font-size: 2.5em;
  color: #FFD700; /* Main brand color */
  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: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 20px 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 10px 30px rgba(0, 0, 0, 0.2);
}

.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.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__article-title a {
  color: #1E90FF; /* Auxiliary brand color */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #FFD700; /* Main brand color */
  color: #1E90FF; /* Auxiliary brand color for text */\  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #e6c200;
}

.page-resources__explore-more-section {
  padding: 60px 20px;
  background-color: #f0f8ff;
  text-align: center;
}

.page-resources__explore-more-heading {
  font-size: 2.5em;
  color: #1E90FF; /* Auxiliary brand color */
  margin-bottom: 20px;
}

.page-resources__explore-more-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-resources__additional-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-resources__resource-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-resources__resource-item:hover {
  transform: translateY(-5px);
}

.page-resources__item-title {
  font-size: 1.8em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 15px;
}

.page-resources__item-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-resources__item-button {
  display: inline-block;
  background-color: #1E90FF; /* Auxiliary brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__item-button:hover {
  background-color: #007bff;
}

.page-resources__cta-text {
  font-size: 1.3em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Main brand color */
  color: #1E90FF; /* Auxiliary brand color for text */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__download-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-resources__download-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources__download-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  object-fit: cover;
}

.page-resources__download-text-content {
  flex-grow: 1;
}

.page-resources__download-heading {
  font-size: 2.8em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__download-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #cccccc;
}

.page-resources__download-button {
  display: inline-block;
  background-color: #1E90FF; /* Auxiliary brand color */
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__download-button:hover {
  background-color: #007bff;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__explore-more-heading,
  .page-resources__download-heading {
    font-size: 2.2em;
  }
  .page-resources__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__download-image {
    max-width: 600px;
  }
  .page-resources__download-text-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__intro-section,
  .page-resources__articles-section,
  .page-resources__explore-more-section,
  .page-resources__download-section {
    padding: 40px 15px;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__explore-more-heading,
  .page-resources__download-heading {
    font-size: 1.8em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__additional-resources {
    grid-template-columns: 1fr;
  }
  .page-resources__download-content {
    gap: 20px;
  }
  .page-resources__download-image {
    max-width: 100%;
  }

  /* Ensure content images do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override to ensure content images are not too small */
  .page-resources__article-image,
  .page-resources__download-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__intro-heading,
  .page-resources__articles-heading,
  .page-resources__explore-more-heading,
  .page-resources__download-heading {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__item-title {
    font-size: 1.5em;
  }
}