.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background */
}

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

.page-resources__hero-section {
  display: flex;
  align-items: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(to right, #e0f2f1, #ffffff);
  color: #333333;
}

.page-resources__hero-content {
  flex: 1;
  padding-right: 40px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #017439;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-resources__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__text-block {
  margin-bottom: 20px;
}

.page-resources__grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.page-resources__grid-col-2 {
  flex: 1;
  min-width: 300px;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-resources__ordered-list,
.page-resources__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
  margin-bottom: 10px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-resources__dark-section {
  background-color: #017439;
  color: #ffffff; /* White text for dark background */
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title::after {
  background-color: #ffffff;
}

.page-resources__dark-section .page-resources__section-description,
.page-resources__dark-section .page-resources__text-block,
.page-resources__dark-section .page-resources__ordered-list li,
.page-resources__dark-section .page-resources__unordered-list li {
  color: #f0f0f0;
}

.page-resources__dark-section a {
  color: #FFFF00; /* Highlight links in dark sections */
}

.page-resources__dark-section a:hover {
  text-decoration: underline;
}

.page-resources__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  width: 20px;
  text-align: center;
}

.page-resources__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-resources__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-resources__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-resources__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-resources__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #f0f0f0;
}

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  text-align: center;
}

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

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

.page-resources__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px);
  }

  .page-resources__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

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

  .page-resources__grid-row {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources__grid-col-2 {
    min-width: unset;
    width: 100%;
  }

  .page-resources__grid-col-2:nth-child(even) {
    order: -1; /* For alternating image/text on mobile */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .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__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-resources__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }

  .page-resources__video,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
}

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

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