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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  background-color: #000000; /* Dark background for hero section */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
}

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

.page-resources__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

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

.page-resources__introduction-section, .page-resources__articles-section, .page-resources__deep-content-section, .page-resources__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-resources__introduction-section {
  border-bottom: 1px solid #EEEEEE;
}

.page-resources__section-title {
  font-size: 2.5rem;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-resources__section-text:last-of-type {
  margin-bottom: 0;
}

.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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.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: 220px;
  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.6rem;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

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

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

.page-resources__article-category {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 10px;
  font-weight: 500;
}

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  align-self: flex-start;
  border: 2px solid #000000;
}

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

.page-resources__deep-content-section {
  background-color: #F5F5F5;
}

.page-resources__deep-content-section .page-resources__section-title {
  margin-bottom: 40px;
}

.page-resources__subsection-title {
  font-size: 2rem;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: left;
}

.page-resources__deep-content-section .page-resources__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-resources__deep-content-section .page-resources__section-text a {
  color: #000000;
  text-decoration: underline;
  font-weight: 500;
}

.page-resources__deep-content-section .page-resources__section-text a:hover {
  color: #FCBC45;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Ensure content images are not too wide */
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__cta-container {
  padding: 60px 20px;
}

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

.page-resources__cta-description {
  font-size: 1.2rem;
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

.page-resources__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding: 40px 20px;
  }
  .page-resources__hero-title {
    font-size: 2.5rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__introduction-section, .page-resources__articles-section, .page-resources__deep-content-section, .page-resources__cta-section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
  .page-resources__section-text {
    font-size: 1rem;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 180px;
  }
  .page-resources__article-title {
    font-size: 1.4rem;
  }
  .page-resources__subsection-title {
    font-size: 1.6rem;
  }
  .page-resources__cta-title {
    font-size: 2rem;
  }
  .page-resources__cta-description {
    font-size: 1.1rem;
  }
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__deep-content-section img, .page-resources__content-area img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__articles-grid img, .page-resources__article-card img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__content-image {
    width: 100%; /* Ensure content images are responsive */
    height: auto;
    min-width: 200px; /* Enforce minimum size on mobile */
    min-height: 200px;
  }
  .page-resources__article-image {
    min-width: 200px; /* Enforce minimum size on mobile */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2rem;
  }
  .page-resources__hero-description {
    font-size: 1rem;
  }
  .page-resources__section-title {
    font-size: 1.8rem;
  }
  .page-resources__cta-title {
    font-size: 1.8rem;
  }
}