.page-resources {
  padding-top: var(--header-offset, 120px);
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #000080; /* Midnight Blue for titles */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold accent */
  border-radius: 2px;
}

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

.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000080; /* Midnight Blue fallback */
  color: #ffffff;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.8em;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight Blue text */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__why-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-resources__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__feature-title {
  font-size: 1.8em;
  color: #000080;
  margin-bottom: 15px;
}

.page-resources__feature-text {
  font-size: 1em;
  color: #666666;
}

.page-resources__categories-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-resources__category-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.page-resources__category-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-resources__category-title a {
  color: #000080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__category-title a:hover {
  color: #FFD700;
}

.page-resources__category-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-resources__category-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight Blue text */
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__category-button:hover {
  background-color: #e6c200;
}

.page-resources__community-section {
  padding: 80px 0;
  background-color: #000080; /* Midnight Blue background */
  color: #ffffff;
}

.page-resources__community-section .page-resources__section-title {
  color: #FFD700; /* Gold title */
}

.page-resources__community-section .page-resources__section-title::after {
  background-color: #ffffff;
}

.page-resources__community-section .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__community-links {
  text-align: center;
  margin-top: 40px;
}

.page-resources__community-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight Blue text */\  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__community-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources__community-button--register {
  background-color: #ffffff;
  color: #000080;
}

.page-resources__community-button--register:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-resources__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
}

.page-resources__faq-question {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-resources__cta-bottom-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #000080, #3a00a0); /* Dark blue gradient */
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-bottom-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__cta-bottom-section .page-resources__section-title::after {
  background-color: #ffffff;
}

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

.page-resources__cta-bottom-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight Blue text */
  padding: 18px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-bottom-button:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
}

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

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__features-grid,
  .page-resources__category-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__feature-icon, .page-resources__category-image {
    max-width: 100%;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
    width: 100%; /* Ensure images fill container */
    height: auto; /* Maintain aspect ratio */
  }
  .page-resources__community-button {
    margin: 10px 0;
    display: block;
  }
  .page-resources__faq-question {
    font-size: 1.3em;
  }
  .page-resources__cta-bottom-button {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.95em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__feature-title {
    font-size: 1.5em;
  }
  .page-resources__category-title {
    font-size: 1.6em;
  }
  .page-resources__hero-section {
    padding: 60px 0;
  }
}