.page-resources {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-resources__intro-section {
  padding: 120px 0 60px; /* Added padding-top for fixed header */
  text-align: center;
  background: linear-gradient(135deg, #007BFF, #0056b3); /* Darker gradient */
  color: #ffffff;
}

.page-resources__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--primary {
  background: #FFC107; /* Auxiliary color */
  color: #333333;
}

.page-resources__cta-button--primary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--secondary {
  background: #007BFF; /* Primary color */
  color: #ffffff;
}

.page-resources__cta-button--secondary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #333333;
  line-height: 1.3;
}

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

.page-resources__dark-bg {
  background: #0a0a0a; /* Body background color */
  color: #f0f0f0;
}

.page-resources__light-bg {
  background: #f8f9fa;
  color: #333333;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__section-description {
  color: #333333;
}

/* Criteria Section */
.page-resources__criteria-section {
  padding: 80px 0;
}

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

.page-resources__criteria-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources__criteria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-resources__card-text {
  font-size: 1em;
  color: #555555;
}

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 0;
}

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

.page-resources__guide-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-resources__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-resources__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-resources__guide-title a:hover {
  color: #FFC107;
  text-decoration: underline;
}

.page-resources__guide-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-resources__guide-button {
  display: inline-block;
  padding: 10px 25px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  background: #007BFF;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-resources__guide-button:hover {
  background: #0056b3;
}

/* News Section */
.page-resources__news-section {
  padding: 80px 0;
}

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

.page-resources__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__news-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-resources__news-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #007BFF;
}

.page-resources__news-title a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-resources__news-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__news-button {
  display: inline-block;
  padding: 10px 25px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  background: #FFC107;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-resources__news-button:hover {
  background: #e0a800;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast on dark bg */
  color: #f0f0f0;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-resources__faq-answer p {
  color: #f0f0f0; /* Ensure text color in answer is light */
}

.page-resources__faq-answer a {
  color: #FFC107; /* Link color in answer */
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFC107;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #007BFF;
  transform: rotate(45deg);
}

/* CTA Section at bottom */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__cta-container {
  max-width: 900px;
}

.page-resources__cta-section .page-resources__section-title {
  color: #333333;
}

.page-resources__cta-section .page-resources__section-description {
  color: #555555;
  margin-bottom: 40px;
}

.highlight {
  color: #FFC107;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__criteria-card,
  .page-resources__guide-card,
  .page-resources__news-card {
    padding: 20px;
  }
  .page-resources__card-title,
  .page-resources__guide-title,
  .page-resources__news-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-resources__intro-section {
    padding: 100px 0 40px !important; /* Mobile padding-top */
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__criteria-section,
  .page-resources__guides-section,
  .page-resources__news-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__criteria-grid,
  .page-resources__guides-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__criteria-card,
  .page-resources__guide-card,
  .page-resources__news-card {
    padding: 15px;
  }
  .page-resources__card-title,
  .page-resources__guide-title,
  .page-resources__news-title {
    font-size: 1.2em;
  }
  .page-resources__card-text,
  .page-resources__guide-excerpt,
  .page-resources__news-excerpt {
    font-size: 0.9em;
  }
  .page-resources__guide-button,
  .page-resources__news-button {
    padding: 8px 20px;
    font-size: 0.85em;
  }

  /* FAQ Mobile */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__intro-section,
  .page-resources__criteria-section,
  .page-resources__guides-section,
  .page-resources__news-section,
  .page-resources__faq-section,
  .page-resources__cta-section,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}