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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #0A192F; /* Main brand color for hero background */
  padding-bottom: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
}

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

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

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

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

.page-resources__hero-btn--register {
  background-color: #FFD700; /* Gold accent for primary action */
  color: #0A192F;
}

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

.page-resources__hero-btn--download {
  background-color: #FF4500; /* Orange-red for secondary action */
  color: #ffffff;
}

.page-resources__hero-btn--download:hover {
  background-color: #e03c00;
  transform: translateY(-3px);
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__articles-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 20px;
}

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

.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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  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;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #0A192F;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__article-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-resources__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

.page-resources__cta-btn {
  display: inline-block;
  padding: 18px 35px;
  background-color: #FF4500;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-btn:hover {
  background-color: #e03c00;
  transform: translateY(-5px);
}

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

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px);
  }

  .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__hero-btn {
    width: 80%;
    max-width: 300px;
  }

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

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

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

  .page-resources__article-summary {
    font-size: 0.9em;
  }

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

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

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

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

  .page-resources__cta-btn {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Ensure images in content area are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__hero-btn {
    width: 90%;
  }
}