/* ════════ BLOG HERO ════════ */
.blog-hero {
    padding: 10rem 4% 4rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

/* ════════ CATEGORIES ════════ */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cat-pill {
    padding: 0.6rem 1.25rem;
    border-radius: var(--r-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-d);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.cat-pill:hover, .cat-pill.active {
    background: var(--mint-700);
    color: white;
    border-color: var(--mint-700);
    box-shadow: 0 4px 12px var(--mint-glow);
    transform: translateY(-2px);
}

/* ════════ ARTICLE GRID ════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mint-300);
}

.article-thumb {
    aspect-ratio: 16/9;
    background: var(--mint-100);
    position: relative;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--r-full);
    font-family: var(--font-d);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mint-700);
}

.article-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-family: var(--font-d);
    font-size: 0.75rem;
    color: var(--text-3);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    margin-top: auto;
    font-family: var(--font-d);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mint-700);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link svg {
    transition: transform 0.2s var(--ease);
}

.article-card:hover .article-link svg {
    transform: translateX(4px);
}

/* ════════ ARTICLE DETAIL ════════ */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    padding: 10rem 4% 6rem;
    max-width: 1300px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 3rem;
}

.post-category {
    color: var(--mint-700);
    font-family: var(--font-d);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-d);
    font-size: 0.9rem;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-1);
    font-weight: 500;
}

.author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mint-100);
}

.post-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-2);
}

.post-body h2 {
    margin: 3rem 0 1.5rem;
    color: var(--text-1);
}

.post-body h3 {
    margin: 2rem 0 1rem;
    color: var(--text-1);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--mint-soft);
    border-left: 4px solid var(--mint-700);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--mint-900);
}

.post-body img {
    border-radius: var(--r-lg);
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

/* ════════ SIDEBAR ════════ */
.post-sidebar {
    position: sticky;
    top: 7rem;
    height: fit-content;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Newsletter box */
.newsletter-box {
    background: linear-gradient(135deg, var(--mint-700), var(--mint-900));
    color: white;
    border: none;
}

.newsletter-box h4 { color: white; }
.newsletter-box p { font-size: 0.9rem; margin-bottom: 1.5rem; opacity: 0.9; }

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-form input {
    padding: 0.8rem 1rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-d);
    outline: none;
}

.sidebar-form input::placeholder { color: rgba(255,255,255,0.6); }

.sidebar-form button {
    background: white;
    color: var(--mint-900);
    border: none;
    padding: 0.8rem;
    border-radius: var(--r-full);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
}

.sidebar-form button:hover { transform: translateY(-2px); }

/* Related articles */
.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.related-link {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-1);
    display: block;
    margin-bottom: 0.35rem;
}

.related-link:hover { color: var(--mint-700); }

.related-date {
    font-family: var(--font-d);
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; gap: 3rem; }
    .post-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-sidebar { grid-template-columns: 1fr; }
    .post-title { font-size: 2.2rem; }
    .post-body { font-size: 1.1rem; }
}