.page-resources {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-resources__section-description {
  font-size: 1.2em;
  color: #555555;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-resources__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-resources__card-title {
  font-size: 1.6em;
  color: #000000;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
  font-weight: 600;
}

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__card-link:hover {
  color: #FCBC45;
}

.page-resources__card-summary {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-resources__button--register {
  background-color: #000000;
  color: #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__button--login:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-resources__button--read-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-resources__section--why-choose {
  background-color: #F8F8F8;
  padding: 80px 20px;
  border-radius: 10px;
  margin-top: 80px;
}

.page-resources__sub-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-resources__text-content {
  font-size: 1.1em;
  color: #444444;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 20px;
}

.page-resources__why-choose-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block;
}

.page-resources__cta-section {
  position: relative;
  background-color: #000000;
  padding: 100px 20px;
  margin-top: 80px;
  text-align: center;
  overflow: hidden;
}

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

.page-resources__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: 3em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__cta-description {
  font-size: 1.4em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.4em;
  }
  .page-resources__sub-title {
    font-size: 1.8em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px);
  }
  .page-resources__hero-section {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
  }
  .page-resources__text-content {
    font-size: 1em;
  }
  .page-resources__cta-section {
    padding: 80px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.2em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure all content images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__card-image {
    max-width: 100%;
    height: auto;
  }
  .page-resources__why-choose-image {
    max-width: 100%;
    height: auto;
  }
}