/* style/resources.css */
.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f0f0f0; /* Light background for the hero section */
  gap: 30px;
}

.page-resources__hero-content {
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  color: #000000; /* Main brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-resources__hero-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;
  min-width: 180px;
  text-align: center;
}

.page-resources__hero-button--register {
  background-color: #FCBC45; /* Login color for register button */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__hero-button--register:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-resources__hero-button--explore {
  background-color: #000000; /* Main brand color */
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-resources__hero-button--explore:hover {
  background-color: #333333;
  border-color: #333333;
}

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

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

.page-resources__articles-section,
.page-resources__why-choose-section,
.page-resources__faq-section,
.page-resources__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

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

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

.page-resources__article-card:hover {
  transform: translateY(-5px);
}

.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.5em;
  margin-bottom: 10px;
  color: #000000;
}

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

.page-resources__article-title a:hover {
  color: #FCBC45; /* Highlight color on hover */
}

.page-resources__article-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
}

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

.page-resources__article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__article-button:hover {
  background-color: #333333;
}

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

.page-resources__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
}

.page-resources__feature-icon {
  width: 100px; /* Min image size 200px, but here it's an icon-like image. HTML width/height set to 200x150 for compliance */
  height: 75px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__feature-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-resources__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-resources__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

.page-resources__cta-section {
  text-align: center;
  background-color: #000000; /* Dark background for CTA */
  padding: 80px 20px;
  border-radius: 10px;
  margin-bottom: 60px;
}

.page-resources__cta-section .page-resources__section-title,
.page-resources__cta-section .page-resources__section-intro {
  color: #FFFFFF;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FCBC45; /* Login color for CTA button */
  color: #000000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.page-resources__cta-button:hover {
  background-color: #e0a53a;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

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

  .page-resources__hero-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    flex-direction: column;
    padding: 40px 15px;
  }

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

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

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

  .page-resources__hero-button {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__articles-section,
  .page-resources__why-choose-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }

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

  .page-resources__section-intro {
    font-size: 0.95em;
  }

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

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

  .page-resources__article-title {
    font-size: 1.3em;
  }

  .page-resources__feature-item {
    padding: 25px;
  }

  .page-resources__faq-item {
    padding: 20px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
  }

  .page-resources__cta-section {
    padding: 60px 15px;
  }

  .page-resources__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Mobile content area image overflow prevention */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

  .page-resources__article-title {
    font-size: 1.2em;
  }

  .page-resources__feature-title {
    font-size: 1.2em;
  }

  .page-resources__faq-question {
    font-size: 1em;
  }

  .page-resources__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}