.page-resources {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-color: #EA7C07;
  --background-white: #FFFFFF;
  --background-black: #000000;
  color: var(--text-light); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-black);
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--header-offset, 120px) 20px 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--text-light);
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-light);
}

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

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

.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-resources__video-section {
  padding: 80px 20px;
  background-color: var(--background-white);
  color: var(--text-dark);
  text-align: center;
}

.page-resources__video-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
}

.page-resources__video-cta {
  background-color: var(--login-color);
  border-color: var(--login-color);
  color: var(--text-light);
}

.page-resources__video-cta:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

.page-resources__content-section {
  padding: 80px 20px;
}

.page-resources__dark-bg {
  background-color: var(--background-black);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
  color: inherit;
}

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

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

.page-resources__grid-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__light-bg .page-resources__grid-item {
  background-color: var(--background-white);
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-resources__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__light-bg .page-resources__grid-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__grid-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__grid-title a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-resources__light-bg .page-resources__grid-title a {
  color: var(--primary-color);
}

.page-resources__grid-title a:hover {
  color: darken(var(--primary-color), 10%);
}

.page-resources__grid-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: inherit;
}

.page-resources__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-resources__faq-section {
  padding: 80px 20px;
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

.page-resources__faq-question:hover {
  background-color: #f0f0f0;
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.6;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

.page-resources__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
    min-height: 60vh;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources__video-section,
  .page-resources__content-section,
  .page-resources__faq-section,
  .page-resources__cta-banner {
    padding: 50px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__grid-image {
    height: 200px;
  }
  .page-resources__grid-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile container responsiveness */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__video-section,
  .page-resources__content-section,
  .page-resources__faq-section,
  .page-resources__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure color contrast for dark background body */
.page-resources {
  color: var(--text-light); /* Light text on dark body background */
}

.page-resources__hero-section.page-resources__dark-bg,
.page-resources__content-section.page-resources__dark-bg,
.page-resources__cta-banner.page-resources__dark-bg {
  color: var(--text-light);
}

.page-resources__grid-item {
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent background on dark sections */
  color: var(--text-light);
}

/* Ensure color contrast for light background sections */
.page-resources__video-section.page-resources__light-bg,
.page-resources__content-section.page-resources__light-bg,
.page-resources__faq-section.page-resources__light-bg {
  color: var(--text-dark);
}

.page-resources__light-bg .page-resources__grid-item {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-resources__faq-question,
.page-resources__faq-answer {
  color: var(--text-dark);
}

/* Specific button colors */
.page-resources__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-resources__hero-section .page-resources__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

/* Additional contrast fixes if needed */
.page-resources__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}