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

.page-resources__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero content area */
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.page-resources__hero-content {
  text-align: center;
  color: #FFFFFF; /* Light text for dark hero background */
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Highlight color for title */
}

.page-resources__hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

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

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

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

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

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

.page-resources__button--link {
  background: none;
  border: none;
  color: #FCBC45;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
}

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

.page-resources__articles-section,
.page-resources__deep-content-section {
  padding: 60px 20px;
  background-color: #FFFFFF; /* Light background for content sections */
  color: #333333;
}

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

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

.page-resources__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.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: 250px; /* Fixed height for consistency */
  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;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-resources__deep-content-section h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources__deep-content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__deep-content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-block {
  background-color: #000000;
  color: #FFFFFF;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.page-resources__cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-resources__hero-container {
    padding: 30px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2rem;
  }
  .page-resources__hero-description {
    font-size: 1rem;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-resources__articles-section,
  .page-resources__deep-content-section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
  .page-resources__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .page-resources__article-image,
  .page-resources__deep-content-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
    min-width: 200px; /* Enforce minimum size for content images if they become too small */
    min-height: 200px; /* Enforce minimum size for content images if they become too small */
    object-fit: cover;
  }
  .page-resources__article-image {
    height: 200px; /* Maintain a reasonable height for cards on mobile */
  }
  .page-resources__article-title {
    font-size: 1.4rem;
  }
  .page-resources__article-summary {
    font-size: 0.95rem;
  }
  .page-resources__deep-content-section h3 {
    font-size: 1.8rem;
  }
  .page-resources__deep-content-section p {
    font-size: 1rem;
  }
  .page-resources__cta-block {
    padding: 40px 20px;
  }
  .page-resources__cta-title {
    font-size: 1.8rem;
  }
  .page-resources__cta-description {
    font-size: 1rem;
  }
  .page-resources__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__articles-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8rem;
  }
  .page-resources__section-title {
    font-size: 1.6rem;
  }
  .page-resources__cta-title {
    font-size: 1.6rem;
  }
  .page-resources__deep-content-section h3 {
    font-size: 1.5rem;
  }
}