.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
  padding: 40px 20px;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

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

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

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

.page-resources__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register button color */
  border: 2px solid #FFFFFF;
}

.page-resources__button--secondary:hover {
  background-color: #333333;
  border-color: #F0F0F0;
}

.page-resources__button--link {
  background: none;
  color: #FCBC45;
  border: 2px solid transparent;
  padding: 8px 15px;
}

.page-resources__button--link:hover {
  color: #e0a33c;
  border-color: #e0a33c;
}

.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__why-choose-section,
.page-resources__cta-section,
.page-resources__additional-info {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
}

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

.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: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: inherit;
  text-decoration: none;
}

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

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

.page-resources__why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-resources__why-choose-content p {
  margin-bottom: 20px;
  color: #333333;
  font-size: 1.1em;
}

.page-resources__why-choose-image-wrapper {
  text-align: center;
}

.page-resources__why-choose-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__cta-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  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;
  margin-bottom: 20px;
  color: #FCBC45;
}

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

.page-resources__additional-info {
  background-color: #F8F8F8;
  padding: 60px 0;
}

.page-resources__additional-info .page-resources__section-description {
  margin-bottom: 15px;
  text-align: left;
}

.page-resources__additional-info .page-resources__section-description a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__additional-info .page-resources__section-description a:hover {
  text-decoration: underline;
}

.page-resources__support-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
  .page-resources__why-choose-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-resources__why-choose-content {
    order: 1;
  }

  .page-resources__why-choose-image-wrapper {
    order: 2;
  }
}

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

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

  .page-resources__hero-actions {
    flex-direction: column;
  }

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

  .page-resources__article-image {
    height: 200px;
  }

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

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

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

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

  .page-resources__hero-section,
  .page-resources__introduction-section,
  .page-resources__articles-section,
  .page-resources__why-choose-section,
  .page-resources__cta-section,
  .page-resources__additional-info {
    padding: 40px 0;
  }

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

  /* Enforce max-width for images in content area to prevent overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }

  .page-resources__why-choose-image {
    max-width: 100%;
  }

  .page-resources__cta-image {
    max-width: 100%;
  }
}

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

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

  .page-resources__button {
    width: 100%;
  }

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

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