.page-resources {
  padding-top: var(--header-offset, 120px);
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #1A1A2E; /* Main brand color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
}

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

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

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

.page-resources__articles-section,
.page-resources__trust-section,
.page-resources__faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #1A1A2E;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

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

.page-resources__article-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  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 20px rgba(0, 0, 0, 0.12);
}

.page-resources__article-image {
  width: 100%;
  height: 220px; /* 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: #1A1A2E;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

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

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

.page-resources__btn--primary:hover {
  background-color: #e5c300;
  border-color: #e5c300;
}

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

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A1A2E;
}

.page-resources__btn--read-more {
  background-color: #1A1A2E;
  color: #FFD700;
  border: 2px solid #1A1A2E;
  align-self: flex-start;
}

.page-resources__btn--read-more:hover {
  background-color: #FFD700;
  color: #1A1A2E;
  border-color: #FFD700;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-resources__trust-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-resources__trust-content {
  flex: 1;
}

.page-resources__trust-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__trust-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-resources__trust-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

.page-resources__trust-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
}

.page-resources__faq-section {
  text-align: center;
}

.page-resources__faq-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__trust-section {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__trust-image {
    max-width: 80%;
    margin-top: 30px;
  }
  .page-resources__trust-content .page-resources__section-title,
  .page-resources__trust-content .page-resources__section-description {
    text-align: center;
  }
  .page-resources__trust-features {
    text-align: left;
    max-width: 400px;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-group {
    flex-direction: column;
  }
  .page-resources__articles-section,
  .page-resources__trust-section,
  .page-resources__faq-section {
    padding: 30px 15px;
    margin: 30px auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image,
  .page-resources__trust-image {
    max-width: 100%;
    width: 100%;
    height: auto; /* Ensure images don't overflow */
  }
  .page-resources__btn {
    width: 100%;
    box-sizing: border-box;
  }
  .page-resources__faq-cta-group {
    flex-direction: column;
  }
  /* Ensure all content area images are responsive and don't cause horizontal scroll */
  .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;
  }
}