.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom for aesthetic */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #B80000 0%, #800000 100%); /* Deep red gradient */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 30px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-resources__section {
  padding: 80px 20px;
  position: relative;
}

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

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main section titles */
  text-align: center;
  margin-bottom: 60px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #B80000; /* Deep red for sub-titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.page-resources__text-block {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-resources__text-block a {
  color: #FFD700; /* Gold for links within text blocks */
  text-decoration: underline;
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for card titles */
  padding: 0 25px;
  margin-bottom: 15px;
}

.page-resources__card p, .page-resources__list {
  padding: 0 25px;
  color: #f0f0f0;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list li {
  margin-bottom: 8px;
}

.page-resources__card a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__button {
  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, border-color 0.3s ease;
  margin-top: auto; /* Push button to bottom of card */
  margin: 25px;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #B80000;
  color: #ffffff;
  border: 2px solid #B80000;
}

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

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

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.page-resources__cta-button.page-resources__btn-primary {
  background-color: #FFD700; /* Gold for main CTA */
  color: #B80000;
  border: 2px solid #FFD700;
}

.page-resources__cta-button.page-resources__btn-primary:hover {
  background-color: #B80000;
  color: #FFD700;
  border-color: #B80000;
}

.page-resources__dark-bg {
  background: #1a1a1a; /* Darker background for contrast sections */
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title {
  color: #FFD700;
}

.page-resources__dark-bg .page-resources__sub-title {
  color: #FFD700;
}

.page-resources__dark-bg .page-resources__text-block {
  background: rgba(255, 255, 255, 0.05);
}

.page-resources__section-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__faq-section {
  background: #0d0d0d;
  padding: 80px 20px;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
  color: #FFD700;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #B80000;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  color: #f0f0f0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 30px 30px;
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
}

.page-resources__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__cta-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(90deg, #B80000 0%, #FFD700 100%); /* Gradient for strong CTA */
  color: #ffffff;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-content .page-resources__section-title {
  color: #ffffff; /* White title on gradient background */
  text-shadow: none;
}

.page-resources__cta-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources__cta-content a {
  color: #B80000; /* Dark red text on gold button */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }

  .page-resources__section-title {
    font-size: 2.2em;
  }

  .page-resources__sub-title {
    font-size: 1.6em;
  }

  .page-resources__content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__hero-description {
    font-size: 1.1em;
  }

  .page-resources__section,
  .page-resources__container {
    padding: 50px 15px;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-resources__sub-title {
    font-size: 1.4em;
  }

  .page-resources__text-block,
  .page-resources__card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__card-title {
    font-size: 1.3em;
    padding: 0 15px;
  }

  .page-resources__card p, .page-resources__list {
    padding: 0 15px;
  }

  .page-resources__button {
    width: calc(100% - 30px);
    margin: 15px;
    font-size: 1em;
    padding: 10px 20px;
  }

  .page-resources__cta-button,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__sub-title {
    font-size: 1.2em;
  }

  .page-resources__faq-question {
    font-size: 1em;
  }
}