.page-resources {
  color: #333333; /* Dark text for light body background */
}

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header clearance */
  padding-bottom: 60px;
  background-color: #0A2E36; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtly blend image into background */
  z-index: 0;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

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

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

.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-resources__btn--primary {
  background-color: #FFD700;
  color: #0A2E36;
  border: 2px solid #FFD700;
}

.page-resources__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A2E36;
  transform: translateY(-2px);
}

.page-resources__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #0A2E36;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-resources__btn--small:hover {
  background-color: #FFD700;
  color: #0A2E36;
}

.page-resources__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: #FFD700;
  color: #0A2E36;
  border: 2px solid #FFD700;
}

.page-resources__btn--large:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-resources__articles-section,
.page-resources__promo-section,
.page-resources__download-section,
.page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__section-title,
.page-resources__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #0A2E36;
}

.page-resources__section-description,
.page-resources__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px 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(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-resources__article-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__promo-section {
  background-color: #0A2E36;
  color: #ffffff;
  padding: 80px 0;
}

.page-resources__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-resources__promo-image {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__promo-text {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

.page-resources__promo-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-resources__download-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-resources__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right for desktop, left for mobile */
  justify-content: center;
}

.page-resources__download-text {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

.page-resources__download-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #555555;
}

.page-resources__download-image {
  flex: 1 1 400px;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__cta-section {
  background-color: #FFD700;
  color: #0A2E36;
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-title {
  color: #0A2E36;
}

.page-resources__cta-description {
  color: #0A2E36;
  margin-bottom: 40px;
}

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

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

  .page-resources__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure header clearance */
    padding-bottom: 40px;
  }

  .page-resources__hero-content {
    padding: 30px 15px;
  }

  .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__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__articles-section,
  .page-resources__promo-section,
  .page-resources__download-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }

  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__article-card {
    margin: 0 10px;
  }

  .page-resources__promo-content,
  .page-resources__download-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-resources__promo-text,
  .page-resources__download-text {
    text-align: center;
  }

  .page-resources__promo-image,
  .page-resources__download-image {
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  .page-resources__promo-image img,
  .page-resources__download-image img,
  .page-resources__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}