/* Blog overview + article styling. Reuses the brand palette and .page-content
   rules already defined in pages.css (#ac2668 / #8e1f55). */

/* --- Overview grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 10px;
}
.blog-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover {
    box-shadow: 0 8px 22px rgba(172,38,104,0.16);
    transform: translateY(-3px);
    color: inherit;
}
.blog-card-image { width: 100%; height: 190px; overflow: hidden; background: #f2f2f4; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-body h2 { font-size: 1.2rem; margin: 8px 0 10px; color: #222; line-height: 1.35; }
.blog-card-body p { font-size: 0.95rem; color: #666; line-height: 1.6; margin: 0 0 12px; }
.blog-card-meta { font-size: 0.82rem; color: #999; }

.blog-category {
    display: inline-block;
    background: rgba(172,38,104,0.1);
    color: #ac2668;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 11px;
    border-radius: 20px;
    text-decoration: none;
}
a.blog-category:hover { background: rgba(172,38,104,0.18); }

/* --- Category filter tabs (overview page) --- */
.blog-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}
.blog-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #e3d3dd;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.blog-tab:hover { border-color: #ac2668; color: #ac2668; }
.blog-tab.active { background: #ac2668; border-color: #ac2668; color: #fff; }

/* --- Single article --- */
.blog-post .blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #888;
    font-size: 0.9rem;
}
.blog-post .blog-meta i { color: #ac2668; margin-right: 5px; }

.blog-post-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-content h2 { color: #ac2668; font-size: 1.5rem; margin: 36px 0 14px; }
.blog-content h2:first-child { margin-top: 0; }
.blog-content h3 { color: #333; font-size: 1.15rem; margin: 26px 0 10px; }
.blog-content p { color: #555; line-height: 1.8; margin: 0 0 16px; font-size: 1.02rem; }
.blog-content ul { color: #555; line-height: 1.8; margin: 0 0 20px; padding-left: 22px; }
.blog-content ul li { margin-bottom: 8px; }

.blog-back { margin-top: 10px; }
.blog-back a { color: #ac2668; text-decoration: none; font-weight: 600; }
.blog-back a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .blog-post-image { max-height: 260px; }
}
