.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-resources__hero-section {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #017439; /* Brand color for hero */
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark sections */
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Default for dark sections */
}

/* Color Schemes for Sections */
.page-resources__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #333333;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__list-item,
.page-resources__light-bg .page-resources__faq-title,
.page-resources__light-bg .page-resources__faq-answer p {
  color: #333333;
}

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

.page-resources__cta-buttons--center {
  justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #ffffff; /* Ensure contrast: changed from #FFFF00 to #FFFFFF */
  border: 2px solid #C30808;
}

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

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

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

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

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

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  color: #FFFF00;
}

.page-resources__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.page-resources__list-item::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

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

.page-resources__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources__feature-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources__feature-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__feature-title a:hover {
  color: #FFFF00;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-resources__faq-item {
  background-color: #f0f0f0; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  color: #333333;
}

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

.page-resources__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-resources__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
  line-height: 1;
}

.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-out, padding 0.3s ease-out;
  background-color: #f9f9f9;
  color: #555555;
}

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

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

.page-resources__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #C30808;
}

.page-resources__cta-banner {
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand color */
  color: #ffffff;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-image,
  .page-resources__feature-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description,
  .page-resources__text-block,
  .page-resources__card-description,
  .page-resources__feature-description,
  .page-resources__cta-description,
  .page-resources p,
  .page-resources li {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__card-grid,
  .page-resources__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image,
  .page-resources__feature-image {
    height: auto;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }
  .page-resources__card,
  .page-resources__feature-card,
  .page-resources__container,
  .page-resources__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}