.page-resources {
  color: #333333; /* Dark text for light body background */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--header-offset, 120px) 20px 60px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.page-resources__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.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.2em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 30px;
}

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

.page-resources__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

.page-resources__button--tertiary {
  background-color: #F0F0F0;
  color: #000000;
  border: 1px solid #E0E0E0;
}

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

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
}

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

.page-resources__articles-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: 20px;
  font-weight: 700;
}

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

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

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

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

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

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.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-summary {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  margin-top: 60px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.page-resources__cta-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

.page-resources__cta-section .page-resources__button {
  margin: 0 10px;
}

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

.page-resources__cta-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-resources__about-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  gap: 50px;
}

.page-resources__about-image {
  flex: 1;
  min-width: 400px;
}

.page-resources__about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__about-content {
  flex: 2;
}

.page-resources__about-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-resources__about-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.5em;
  }
  .page-resources__cta-title {
    font-size: 2.5em;
  }
  .page-resources__about-title {
    font-size: 2em;
  }
  .page-resources__about-section {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__about-image {
    margin-bottom: 40px;
  }
  .page-resources__about-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
  }
  .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: 100%;
    max-width: 300px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-card {
    margin: 0 auto;
    max-width: 450px;
  }
  .page-resources__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__article-summary {
    font-size: 0.9em;
  }
  .page-resources__cta-section {
    padding: 60px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-section .page-resources__button {
    margin: 10px 0;
  }
  .page-resources__about-section {
    margin: 60px auto;
    padding: 0 15px;
    gap: 30px;
  }
  .page-resources__about-title {
    font-size: 1.8em;
  }
  .page-resources__about-text {
    font-size: 1em;
  }
  /* Mobile content area image constraint */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure no image is smaller than 200px in content area */
  .page-resources__article-image,
  .page-resources__hero-image img,
  .page-resources__cta-image img,
  .page-resources__about-image img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources__about-image {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.6em;
  }
  .page-resources__about-title {
    font-size: 1.5em;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}