.page-resources {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-section {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(255, 215, 0, 0.1) 100%);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
}

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

.page-resources__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #8B0000;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__section-text {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: justify;
  margin-bottom: 20px;
}

.page-resources__introduction, .page-resources__more-insights {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
}

.page-resources__articles-grid {
  padding: 60px 0;
}

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

.page-resources__article-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  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 15px 40px rgba(255, 215, 0, 0.2);
}

.page-resources__article-image {
  width: 100%;
  height: 220px;
  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: 15px;
  line-height: 1.3;
}

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

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

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

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

.page-resources__button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-resources__button:hover {
  background-color: #b00000;
  transform: translateY(-2px);
}

.page-resources__cta-section {
  background-color: #8B0000;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-resources__cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__cta-content {
  flex: 1;
  text-align: left;
}

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

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

.page-resources__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__cta-image-wrapper {
  flex: 0 0 400px; /* Fixed width for desktop */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__cta-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__faq {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-resources__faq-link {
  margin-top: 30px;
  display: block;
  text-align: center;
}

/* 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.2em;
  }
  .page-resources__cta-image-wrapper {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px);
  }
  .page-resources__hero-section {
    padding: 60px 20px;
    min-height: 400px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__cta-section .page-resources__container {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__cta-content {
    text-align: center;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-image-wrapper {
    flex: none;
    width: 100%;
    margin-top: 30px;
  }
  .page-resources__cta-image {
    max-width: 100%;
    height: auto;
  }
  /* Mobile content area images must be constrained */
  .page-resources__introduction img,
  .page-resources__articles-grid img,
  .page-resources__more-insights img,
  .page-resources__cta-section img,
  .page-resources__faq img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }
  .page-resources__faq-question {
    font-size: 1.2em;
  }
}