.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a2e; /* Ensure consistency with body background */
}

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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for larger hero image */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #1a1a2e;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  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;
  line-height: 1.2;
  color: #26A9E0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__button {
  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;
  cursor: pointer;
  font-size: 1.1em;
  margin: 0 10px;
  box-sizing: border-box;
}

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

.page-resources__button--primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

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

.page-resources__overview-section, .page-resources__categories-section, .page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__overview-section {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-resources__categories-section {
  background-color: #22223a;
  color: #f0f0f0;
}

.page-resources__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-resources__overview-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__overview-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  flex: 1 1 calc(33% - 40px);
  min-width: 280px;
  max-width: 380px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-resources__overview-card:hover {
  transform: translateY(-10px);
}

.page-resources__overview-card-icon {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-resources__overview-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__overview-card-description {
  font-size: 1em;
  color: #cccccc;
}

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

.page-resources__category-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(38, 169, 224, 0.3);
  transition: transform 0.3s ease;
}

.page-resources__category-item:hover {
  transform: translateY(-10px);
}

.page-resources__category-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__category-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-resources__category-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

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

.page-resources__category-list a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__category-list a:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #f0f0f0;
  text-align: center;
}

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(38, 169, 224, 0.3);
}

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

.page-resources__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

.page-resources__faq-heading {
  margin: 0;
  color: inherit;
  font-size: 1.2em;
}

.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: #cccccc;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important;
  padding: 20px 25px;
}

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

.page-resources__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 100px 0;
}

.page-resources__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
  .page-resources__overview-card {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__button {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
  }
  .page-resources__overview-section, .page-resources__categories-section, .page-resources__faq-section, .page-resources__cta-section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__overview-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-resources__category-title {
    font-size: 1.6em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-heading {
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button--primary, .page-resources__button--secondary {
    width: 100% !important;
    max-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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}