.page-resources {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #0A1931;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: #2a3b5b;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency with body background */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
  color: var(--text-light);
  text-align: center;
}

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

.page-resources__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: block; /* Ensure no extra space below video */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

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

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

.page-resources__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-resources__container--center {
  max-width: 800px;
}

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

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

.page-resources__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-resources__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-resources__content-grid--reverse .page-resources__text-block {
  grid-area: text;
}

.page-resources__content-grid--reverse .page-resources__image-wrapper {
  grid-area: image;
}

.page-resources__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-resources__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

.page-resources__btn-primary--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.page-resources__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

.page-resources__download-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__image-wrapper--mobile {
  flex: 1;
  min-width: 200px;
}

.page-resources__cta-block {
  flex: 2;
}

.page-resources__cta-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources__cta-text {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-resources__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-resources__faq-item {
  background-color: var(--card-bg-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.page-resources__faq-item.active {
  background-color: var(--primary-color);
  border-color: var(--secondary-color);
}

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

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

.page-resources__faq-title {
  margin: 0;
  color: inherit;
}

.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;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-light);
}

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

.page-resources__contact-support .page-resources__section-description {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__content-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__content-grid--reverse {
    grid-template-areas: unset;
  }
  .page-resources__content-grid--reverse .page-resources__text-block,
  .page-resources__content-grid--reverse .page-resources__image-wrapper {
    grid-area: unset;
  }
  .page-resources__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__image-wrapper--mobile {
    order: -1; /* Move image to top on mobile */
  }
  .page-resources__cta-block {
    flex: auto;
  }
  .page-resources__button-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__text-block p {
    font-size: 1em;
  }
  .page-resources__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__image-wrapper,
  .page-resources__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__container,
  .page-resources__hero-content,
  .page-resources__download-content,
  .page-resources__cta-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    margin: 10px 0 !important;
  }
  .page-resources__button-group {
    flex-direction: column !important;
    gap: 10px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 1em;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 15px 20px !important;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}