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

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden; /* To contain the absolute positioned image if any */
}

.page-resources__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Gold accent for title */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

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

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

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

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

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

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources__articles-section,
.page-resources__deep-dive-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

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

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-resources__article-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  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: 225px; /* 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-top: 0;
  margin-bottom: 10px;
  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-category {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95em;
  margin-top: auto; /* Pushes button to the bottom */
}

.page-resources__button--read-more:hover {
  background-color: #333333;
}

.page-resources__deep-dive-section {
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
}

.page-resources__subsection-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 5px solid #FCBC45;
  padding-left: 15px;
}

.page-resources__text-content {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

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

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

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

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

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

  .page-resources__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources__articles-section,
  .page-resources__deep-dive-section {
    padding: 40px 15px;
  }

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

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

  .page-resources__subsection-title {
    font-size: 1.6em;
  }

  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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

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

  .page-resources__subsection-title {
    font-size: 1.4em;
  }
}