.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-resources__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust max-width as needed for visual balance */
  margin-top: 30px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__hero-title {
  font-size: 42px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Use custom color for register/login type buttons */
  color: #FFFF00; /* Use custom font color for register/login type buttons */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-resources__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-resources__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__section-description {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__link {
  color: #017439; /* Brand primary color for links */
  text-decoration: underline;
}

.page-resources__link:hover {
  color: #00562e;
}

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

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

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

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

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

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

/* Card Styling */
.page-resources__card, .page-resources__feature-item, .page-resources__promo-card, .page-resources__guide-card, .page-resources__news-item, .page-resources__contact-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-resources__dark-bg .page-resources__card, .page-resources__dark-bg .page-resources__feature-item, .page-resources__dark-bg .page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__card-image, .page-resources__promo-image, .page-resources__news-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__card-title, .page-resources__feature-title, .page-resources__promo-title, .page-resources__guide-title, .page-resources__news-title, .page-resources__contact-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: inherit;
  font-weight: 600;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-resources__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
}

.page-resources__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-resources__dark-bg .page-resources__list li::before {
  color: #FFFF00; /* Yellow checkmark on dark background */
}

.page-resources__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: auto; /* Push button to bottom */
  transition: all 0.3s ease;
  border: none;
}

.page-resources__btn-primary:hover {
  background: #00562e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: auto; /* Push button to bottom */
  transition: all 0.3s ease;
}

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  color: #00562e;
  border-color: #00562e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__center-button {
  text-align: center;
  margin-top: 50px;
}

.page-resources__news-date {
  font-size: 14px;
  color: #888888;
  margin-bottom: 10px;
}

.page-resources__news-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__dark-bg .page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light answer background */
}