.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Inherited from body, but explicitly set for clarity */
}

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

.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-resources__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast with body #000000 */
  color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.page-resources__section-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-resources__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-resources__card {
  background-color: #ffffff; /* White background for cards */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum image size */
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

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

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-resources__content-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-resources__content-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for subtitles */
}

.page-resources__content-text {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-resources__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources__list-item a {
  color: #26A9E0; /* Brand color for list item links */
  text-decoration: none;
}

.page-resources__list-item a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__content-subtitle {
    font-size: 1.5em;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__grid {
    grid-template-columns: 1fr;
  }

  .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;
    overflow-x: hidden;
  }
  
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
}