/* ==== Tag Page Styles (matching categories) ==== */

/* General container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Page heading */
.container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #222;
    position: relative;
}
.container h1::after {
    content: "";
    width: 80px;
    height: 3px;
    background: #222;
    display: block;
    margin: 12px auto 0;
}

/* Posts grid wrapper */
.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* Individual post card (matching categories style) */
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;  /* same as categories for consistency */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Post image */
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

/* Post title */
.post-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 15px 16px 10px;
    color: #222;
    line-height: 1.3;
    transition: color 0.3s;
}

.post-card h2:hover {
    color: #d35400; /* accent hover color like categories */
}

/* Meta info */
.post-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 16px 16px;
}
.related-tags {
  margin: 40px 0;
  text-align: center;
}
.related-tags h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.tag-links a {
  display: inline-block;
  margin: 4px 8px;
  padding: 6px 12px;
  background: #f2f2f2;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.tag-links a:hover {
  background: #000;
  color: #fff;
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .posts-list {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    .post-card img {
        height: 180px;
    }
    .post-card h2 {
        font-size: 1.1rem;
        margin: 12px 12px 8px;
    }
    .post-card p {
        font-size: 0.85rem;
        margin: 0 12px 12px;
    }
}
