.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-resources-hero {
  background: linear-gradient(135deg, #FF4500, #007BFF);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

.page-resources-cta-button {
  display: inline-block;
  background-color: #007BFF; /* A brighter blue for contrast */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.page-resources-section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-section:nth-of-type(even) {
  background-color: #f2f2f2;
}

.page-resources-section-title {
  font-size: 2.5em;
  color: #FF4500;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-resources-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources-card-title {
  font-size: 1.5em;
  color: #FF4500;
  padding: 20px 20px 10px 20px;
  margin: 0;
  min-height: 70px; /* Ensure consistent height for titles */
}

.page-resources-card-title a {
  color: #FF4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-card-title a:hover {
  color: #007BFF;
}

.page-resources-card-text {
  padding: 0 20px 20px 20px;
  color: #666666;
  flex-grow: 1;
}

.page-resources-button {
  display: inline-block;
  background-color: #007BFF;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-resources-full-width-cta {
  text-align: center;
  margin-top: 50px;
}

.page-resources-article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-resources-article-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.page-resources-article-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources-article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources-article-title {
  font-size: 1.6em;
  color: #FF4500;
  margin-bottom: 10px;
}

.page-resources-article-title a {
  color: #FF4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-article-title a:hover {
  color: #007BFF;
}

.page-resources-article-meta {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

.page-resources-article-summary {
  color: #666666;
  margin-bottom: 15px;
}

.page-resources-read-more {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-read-more:hover {
  color: #FF4500;
}

/* FAQ Styles */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF4500;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: #555555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 25px;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer .page-resources-button {
  margin-top: 10px;
  margin-left: 0;
}

.page-resources-final-cta {
  background: linear-gradient(45deg, #007BFF, #FF4500);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-top: 30px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-final-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-final-cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-hero-title {
    font-size: 2.8em;
  }
  .page-resources-section-title {
    font-size: 2em;
  }
  .page-resources-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources-article-image {
    width: 250px;
    height: 180px;
  }
  .page-resources-article-title {
    font-size: 1.4em;
  }
  .page-resources-final-cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources-hero {
    padding: 60px 15px;
  }
  .page-resources-hero-title {
    font-size: 2.2em;
  }
  .page-resources-hero-description {
    font-size: 1em;
  }
  .page-resources-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-section {
    padding: 40px 0;
  }
  .page-resources-section-title {
    font-size: 1.8em;
  }
  .page-resources-section-intro {
    font-size: 0.95em;
  }
  .page-resources-card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-article-item {
    flex-direction: column;
  }
  .page-resources-article-image {
    width: 100%;
    height: 200px;
  }
  .page-resources-article-content {
    padding: 15px;
  }
  .page-resources-article-title {
    font-size: 1.3em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-resources-final-cta {
    padding: 60px 15px;
  }
  .page-resources-final-cta-title {
    font-size: 2em;
  }
  .page-resources-final-cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources-hero-title {
    font-size: 1.8em;
  }
  .page-resources-section-title {
    font-size: 1.6em;
  }
  .page-resources-final-cta-title {
    font-size: 1.8em;
  }
  .page-resources-card-title {
    font-size: 1.3em;
  }
  .page-resources-article-title {
    font-size: 1.1em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
}