.page-resources {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #002244;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-resources h1, .page-resources h2, .page-resources h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-resources h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-resources h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-resources p {
  margin-bottom: 1em;
}

.page-resources a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Hero Banner Section */
.page-resources__hero-banner {
  position: relative;
  width: 100%;
  height: 450px; /* Adjusted height for a banner, not full hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--bg-dark); /* Fallback background */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  z-index: 1;
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  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: #e6b800; /* Slightly darker gold */
  transform: translateY(-2px);
  text-decoration: none;
}

/* Categories Section */
.page-resources__categories {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-resources__categories > .page-resources__container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

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

.page-resources__card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-resources__card-content h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-resources__card-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__card-content h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources__card-content p {
  flex-grow: 1;
  color: var(--text-dark);
}

.page-resources__card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
}

/* In-depth Guides Section */
.page-resources__in-depth-guides {
  padding: 60px 0;
  background-color: var(--text-light);
}

.page-resources__in-depth-guides > .page-resources__container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.page-resources__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.page-resources__guide-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-resources__guide-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 30px;
  flex-shrink: 0;
}

.page-resources__guide-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.page-resources__guide-content p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-resources__button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
}

/* CTA Section */
.page-resources__cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-resources__cta-section h2 {
  color: var(--text-light);
}

.page-resources__cta-section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 40px auto;
}

.page-resources__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-resources__faq-section > .page-resources__container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--secondary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 20px;
  border-top: 1px dashed var(--border-color);
}

.faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__guide-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-resources__guide-image {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .page-resources__guide-content h3 {
    text-align: center;
  }

  .page-resources__button {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .page-resources h1 {
    font-size: 2.2em;
  }

  .page-resources h2 {
    font-size: 1.8em;
  }

  .page-resources h3 {
    font-size: 1.4em;
  }

  .page-resources__hero-banner {
    height: 350px;
  }

  .page-resources__hero-content p {
    font-size: 1em;
  }

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-resources__card-content {
    padding: 20px;
  }

  .page-resources__card-image {
    height: 180px;
  }

  .page-resources__guide-item {
    padding: 20px;
  }

  .faq-question {
    padding: 12px 15px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 20px;
  }

  .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__container {
    padding: 15px;
  }

  .page-resources h1 {
    font-size: 1.8em;
  }

  .page-resources h2 {
    font-size: 1.6em;
  }

  .page-resources h3 {
    font-size: 1.2em;
  }

  .page-resources__hero-banner {
    height: 300px;
  }

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

  .page-resources__guide-item {
    padding: 15px;
  }

  .page-resources__guide-image {
    width: 100%;
    max-width: 100%;
  }
}