.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.blog-header-text {
  flex: 1;
}

.blog-avatar {
  flex-shrink: 0;
  width: clamp(10rem, 32vw, 16.667rem);
}

.page-avatar {
  width: 150%;
  height: auto;
  filter: var(--logo-filter);
  animation: float 4s ease-in-out infinite;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.blog-filters {
  display: flex;
  gap: 0.75rem;
}

.blog-filters select {
  background: var(--bg-card);
  color: var(--text);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23888'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.8rem;
}

.blog-filters select option {
  font-weight: bold;
  font-size: 1.3rem;
}

.blog-sort {
  display: flex;
  gap: 0.5rem;
}

.sort-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sort-btn.active {
  color: var(--text);
  border-color: var(--text);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  min-width: 2.5rem;
  text-align: center;
}

.page-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.page-btn.active {
  color: var(--text);
  border-color: var(--text);
  background: var(--bg);
}

.page-btn.ellipsis {
  border: none;
  cursor: default;
  color: var(--text-muted);
}

.post-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-tag {
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: bold;
}

.post-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text);
  text-decoration: none;
}

.post-card-title a:hover {
  text-decoration: underline;
}

.post-card-excerpt {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.post-date {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: bold;
}

.read-more {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 700px) {
  .blog-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-avatar {
    width: 11.111rem;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filters {
    flex-direction: column;
    width: 100%;
  }

  .blog-filters select {
    width: 100%;
  }

  .blog-sort {
    justify-content: center;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.3rem;
  }

  .page-btn {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    min-width: 2.2rem;
  }
}
