.page-resources {
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6);
  min-height: 500px;
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

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

.page-resources__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  cursor: pointer;
  border: none;
}

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

.page-resources__button--register:hover {
  background-color: #F0F0F0;
}

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

.page-resources__button--login:hover {
  background-color: #E0A83D;
}

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

.page-resources__button--primary:hover {
  background-color: #E0A83D;
}

.page-resources__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FCBC45;
}

.page-resources__button--secondary:hover {
  background-color: #1A1A1A;
  border-color: #FFFFFF;
}

.page-resources__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border: 1px solid #FCBC45;
  background-color: #000000;
  color: #FCBC45;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin: 60px 0 40px;
  color: #000000;
  font-weight: bold;
}

.page-resources__featured-resources,
.page-resources__general-info-section,
.page-resources__faq-section,
.page-resources__contact-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

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

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-resources__general-info-section {
  padding: 60px 20px;
  text-align: left;
}

.page-resources__general-info-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__general-info-section p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-resources__subsection-title {
  font-size: 2em;
  margin: 40px 0 20px;
  color: #000000;
  font-weight: bold;
}

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

.page-resources__faq-section {
  padding: 60px 20px;
}

.page-resources__faq-accordion {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__faq-item {
  border-bottom: 1px solid #EEEEEE;
}

.page-resources__faq-item:last-child {
  border-bottom: none;
}

.page-resources__faq-question {
  width: 100%;
  background-color: #FDFDFD;
  color: #000000;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.15em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-resources__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-resources__faq-question.active {
  background-color: #F0F0F0;
  color: #FCBC45;
}

.page-resources__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-resources__faq-answer {
  padding: 0 25px;
  background-color: #FFFFFF;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources__faq-answer.open {
  max-height: 200px; /* Adjust as needed */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-resources__contact-cta {
  padding: 60px 20px;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 60px;
}

.page-resources__contact-cta .page-resources__section-title {
  color: #FCBC45;
  margin-top: 0;
}

.page-resources__contact-cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
  }
  .page-resources__hero-image {
    min-height: 400px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__subsection-title {
    font-size: 1.4em;
  }
  .page-resources__cards-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__resource-card {
    max-width: 400px;
    margin: 0 auto;
  }
  .page-resources__general-info-section img,
  .page-resources__general-info-section p,
  .page-resources__general-info-section h2,
  .page-resources__general-info-section h3,
  .page-resources__faq-section h2,
  .page-resources__faq-accordion,
  .page-resources__contact-cta {
    max-width: 100%; /* Ensure content does not overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__general-info-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer.open {
    padding: 15px 20px;
  }
  .page-resources__general-info-section p, .page-resources__faq-answer p {
    font-size: 0.95em;
  }
  /* Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}