.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  background-color: transparent; /* Inherit from body or shared */
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for this section */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  min-height: 70vh;
}

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

.page-resources__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video to ensure text contrast */
  display: block;
}

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

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

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

.page-resources__hero-cta-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: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

/* Grid Layouts */
.page-resources__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-resources__grid-reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* Reverse order for content and image */
}

.page-resources__grid-reverse > .page-resources__text-block {
  direction: ltr;
}

.page-resources__grid-reverse > .page-resources__image-block {
  direction: ltr;
}

.page-resources__image-block {
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-resources__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text for dark card background */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have enough height */
}

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

.page-resources__card p {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is short */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  min-height: 480px;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
}

.page-resources__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__news-card h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 15px;
  flex-grow: 1;
}

.page-resources__news-card p {
  color: #f0f0f0;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.page-resources__read-more {
  display: block;
  color: #26A9E0;
  font-weight: bold;
  padding: 15px;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__view-all-news {
  text-align: center;
  margin-top: 50px;
}

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

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

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

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

.page-resources__faq-title {
  color: #26A9E0; /* Ensure title color is visible */
  margin: 0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  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 20px;
  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; /* Sufficient height for content */
  padding: 15px 20px 20px;
}

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

.page-resources__faq-answer .page-resources__btn-small {
    margin-top: 10px;
}

/* Final CTA */
.page-resources__cta-final {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Use primary brand color for strong CTA */
  color: #ffffff;
}

.page-resources__cta-content {
  max-width: 900px;
}

.page-resources__cta-final .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta-final .page-resources__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-grid,
  .page-resources__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-resources__grid-reverse {
    direction: ltr; /* Reset direction for mobile */
  }
  .page-resources__grid-reverse > .page-resources__text-block {
    order: 2;
  }
  .page-resources__grid-reverse > .page-resources__image-block {
    order: 1;
  }
  .page-resources__image,
  .page-resources__card-image,
  .page-resources__news-image,
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-resources__image-block,
  .page-resources__video-wrapper,
  .page-resources__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__card,
  .page-resources__news-card {
    padding: 20px;
    min-height: unset;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 15px 15px;
  }
  .page-resources__cta-final {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__card-title,
  .page-resources__news-card h3 {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
}