/* projects.css
   Page-specific styles for projects.html
   You can add custom overrides here. Currently imports base styles via style.css and news.css.
*/

.page-header h1 { /* slightly smaller on projects page */
  font-size: clamp(2rem, 5vw, 5rem);
}

#nav-btn-l{
    font-size: 6rem;
    letter-spacing: -0.4rem;
}

.nav-links{
    margin-bottom: 1rem;
}

.navbar{
    margin: auto;
    border-radius: 2rem;
}

.page-header{

    margin-top: -2rem;
}

.search-section{
    margin-top: -2rem;
}

/* Match the home page card layout more closely */
.blog-container {
  max-width: 820px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 1rem;
  align-items: center;
}

.post-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.post-card .post-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.post-card .post-thumb {
  width: 140px;
  height: 100px;
  flex: 0 0 140px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.post-card .post-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.post-card h2 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.post-card .excerpt {
  color: #d0d0d0;
  line-height: 1.5;
}

.post-card .post-meta {
  color: #9c9c9c;
  font-size: 0.85rem;
}

.post-card .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.post-card .tag {
  background: rgba(255,255,255,0.03);
  color: #9fbafc;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
}

.post-card .read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  padding: 0.28rem 0.6rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
}

.news-link, .news-media {
  color: inherit;
  text-decoration: none;
}

.news-link:hover, .news-media:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .post-card .post-row {
    flex-direction: column;
  }

  .navbar{
     width: 90%;
  }


  .post-card .post-thumb {
    width: 100%;
    height: 180px;
    flex: none;
  }
}
