.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-resources__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  background-position: center;
  object-fit: cover; /* Ensure video covers the area */
  cursor: pointer; /* Indicate video is clickable */
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

.page-resources__section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-resources__dark-bg {
  background-color: var(--black-color, #000000);
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section */
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-resources__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary:hover {
  background-color: #1a7bb7;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px; /* Ensure cards have a consistent minimum height */
}

.page-resources__dark-bg .page-resources__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources__dark-bg .page-resources__card-title {
  color: #ffffff;
}

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

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

.page-resources__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
}

.page-resources__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-resources__dark-bg .page-resources__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: #eaf6fc; /* Lighter background for summary */
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

.page-resources__dark-bg .page-resources__faq-question {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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

.page-resources__dark-bg .page-resources__faq-answer {
  color: #cccccc;
}

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

.page-resources__btn-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #1a7bb7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__heading {
    font-size: 2em;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__image--right {
    float: none;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section {
    padding: 50px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__paragraph {
    font-size: 0.95em;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__image {
    margin: 30px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-resources__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
  /* Mobile specific styles for buttons and video/image containers */
  .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;
    margin-top: 10px;
  }
  .page-resources__hero-content .page-resources__btn-primary {
    width: auto !important; /* Allow hero button to size naturally */
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-resources__hero-content {
    padding: 10px;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.85em;
  }
  .page-resources__heading {
    font-size: 1.5em;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}