.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the main content on a dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  background-color: #017439; /* Use brand color for hero background */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-resources__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-resources__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Grid Layout */
.page-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* Card Styles */
.page-resources__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for white background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

.page-resources__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
}

.page-resources__card-link:hover {
  text-decoration: underline;
}

/* Text Blocks */
.page-resources__text-block {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for text blocks on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.page-resources__text-block h3 {
  color: #FFFF00;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-resources__text-block p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-resources__text-block--full-width {
  grid-column: 1 / -1;
  margin-top: 30px;
}

/* Image Blocks */
.page-resources__image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Video Section */
.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.page-resources__video-wrapper:hover .page-resources__video-overlay {
  opacity: 1;
}

.page-resources__video-overlay p {
  margin-bottom: 20px;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #017439; /* Brand color background for FAQ */
  color: #ffffff;
}

.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

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

/* CTA Section */
.page-resources__cta-section {
  background-color: #f0f0f0; /* Light background for CTA */
  color: #333333;
  padding: 80px 0;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 80px 0;
  }

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

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

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section {
    padding: 40px 0;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
  }

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

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

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

  .page-resources__text-block {
    padding: 20px;
  }

  .page-resources__text-block h3 {
    font-size: 1.5em;
  }

  .page-resources__video-wrapper {
    margin: 30px auto;
  }

  .page-resources__video-overlay {
    font-size: 1.2em;
  }

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

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources__cta-section {
    padding: 50px 0;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

  .page-resources__cta-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-image-wrapper,
  .page-resources__video-wrapper,
  .page-resources__text-block,
  .page-resources__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Adjust padding for sections to prevent content overflow */
  .page-resources__section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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