.page-resources {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  background-color: #FFFFFF; /* Ensures consistency, though body bg is from shared */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  color: #FFFFFF;
  padding-bottom: 60px;
}

.page-resources__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.6;
  object-fit: cover;
}

.page-resources__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 900px;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__button {
  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, transform 0.3s ease;
  font-size: 1.1em;
}

.page-resources__button--register {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

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

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

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

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

.page-resources__text-content {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-resources__introduction-section,
.page-resources__additional-guides-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.page-resources__articles-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 550px; /* Ensure cards have consistent height */
}

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

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

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
  line-height: 1.3;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
  font-weight: 500;
}

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.95em;
  text-align: center;
  border: none;
  align-self: flex-start;
  margin-top: auto; /* Pushes button to the bottom */
}

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

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources__list-item {
  background-color: #f0f0f0;
  border-left: 5px solid #FCBC45;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
  border-radius: 5px;
}

.page-resources__list-item strong {
  color: #000000;
}

.page-resources__faq-section {
  background-color: #f0f0f0;
}

.page-resources__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-container {
  max-width: 900px;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FCBC45;
  margin-bottom: 25px;
}

.page-resources__cta-section .page-resources__text-content {
  color: #FFFFFF;
  margin-bottom: 40px;
}

.page-resources__cta-actions {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.page-resources__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-resources__button--register.page-resources__button--large {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--register.page-resources__button--large:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

.page-resources__button--login.page-resources__button--large {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-resources__button--login.page-resources__button--large:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height */
  }
  .page-resources__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    min-height: auto;
  }
  .page-resources__article-image {
    height: 200px;
  }
  .page-resources__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-section {
    padding: 60px 0;
  }
  /* Ensure all images within .page-resources are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  /* Specific override for content images to prevent overflow */
  .page-resources__article-image, .page-resources__hero-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content area does not cause horizontal scroll */
  .page-resources__container {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__button {
    width: 90%;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__text-content,
  .page-resources__list-item,
  .page-resources__faq-answer {
    font-size: 0.95em;
  }
  .page-resources__button--large {
    width: 90%;
  }
}