/* style/resources.css */
.page-resources {
  color: #333333;
}

.page-resources__hero-section {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  background-color: #000000;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.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-content {
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
  font-weight: bold;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.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: 40px;
  font-weight: bold;
}

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

.page-resources__article-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px 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 16px 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: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-resources__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__read-more-button:hover {
  background-color: #333333;
}

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

.page-resources__cta-section--bottom {
  padding: 80px 20px;
}

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

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #F0F0F0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-resources__deep-content {
  padding: 60px 20px;
  background-color: #FFFFFF;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333333;
}

.page-resources__deep-content-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__deep-content h3 {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__deep-content h4 {
  font-size: 1.4em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__deep-content a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__deep-content a:hover {
  color: #e0a53a;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

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

  .page-resources__hero-image {
    margin-top: 20px;
    max-width: 100%;
    height: auto; /* Ensure responsive image on mobile */
  }

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

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

  .page-resources__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }

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

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

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

  .page-resources__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  .page-resources__deep-content h3 {
    font-size: 1.5em;
  }

  .page-resources__deep-content h4 {
    font-size: 1.2em;
  }

  .page-resources__hero-section,
  .page-resources__articles-section,
  .page-resources__cta-section,
  .page-resources__deep-content {
    padding: 40px 15px;
  }
  
  /* Mobile content image constraint */
  .page-resources__hero-image, 
  .page-resources__article-image, 
  .page-resources__deep-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}