/* ================================================================
   blog.css — Blog List Page Styles
   ================================================================ */

/* --- Blog Hero --- */
.blog-hero {
    padding: 160px 0 80px;
    background: linear-gradient(160deg, #f0fdf8 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.09) 0%, transparent 70%);
    pointer-events: none;
}
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.blog-hero-inner {
    position: relative; z-index: 1;
    max-width: 780px;
}
.blog-hero-tag {
    display: inline-block;
    padding: 5px 16px;
    background: var(--brand-green-light);
    color: var(--brand-green);
    border-radius: 100px;
    font-weight: 500; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
}
.blog-hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--dark-deep);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.blog-hero-title span { color: var(--brand-green); }
.blog-hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 32px;
    font-weight: 300;
}
.blog-hero-meta {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.blog-meta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-meta-badge i { color: var(--brand-green); font-size: 13px; }
.blog-meta-badge strong { color: var(--brand-green); font-size: 18px; font-weight: 700; }

/* --- Breadcrumb --- */
.blog-breadcrumb {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.breadcrumb-list {
    display: flex; align-items: center; gap: 8px;
    list-style: none;
    font-size: 13px;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-list a:hover { color: var(--brand-green); }
.breadcrumb-list .bc-sep {
    color: #cbd5e1;
    font-size: 11px;
}
.breadcrumb-list .bc-current {
    color: var(--text-main);
    font-weight: 500;
}

/* --- Blog Content Section --- */
.blog-section {
    padding: 64px 0 100px;
    background: var(--bg-light);
}

/* --- Filter Bar --- */
.blog-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-tab {
    padding: 7px 18px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', sans-serif;
}
.filter-tab:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}
.filter-tab.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}
.blog-count-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.blog-count-label strong {
    color: var(--brand-green);
    font-size: 15px;
}

/* --- Article Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Article Card --- */
.post-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #e8f0f8;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: fadeUp 0.5s ease both;
    position: relative;
    cursor: pointer;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(16,185,129,0.10), 0 4px 16px rgba(0,0,0,0.06);
    border-color: rgba(16,185,129,0.25);
}
.post-card-cover {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #f0fdf8 0%, #e0f7f0 50%, #f1f5f9 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    flex-shrink: 0;
}
.post-card-cover-icon {
    font-size: 48px;
    color: rgba(16,185,129,0.25);
}
.post-card-cover-blur {
    position: absolute;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 70%);
    border-radius: 50%;
}
.post-card-body {
    padding: 24px 24px 20px;
    display: flex; flex-direction: column; flex: 1;
}
.post-card-cat {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    background: var(--brand-green-light);
    color: var(--brand-green);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.post-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--brand-green-light);
    color: var(--brand-green);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0.75;
}
.post-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-deep);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}
.post-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.post-card-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 12px;
    color: #94a3b8;
}
.post-card-meta span { display: flex; align-items: center; gap: 5px; }
.post-card-meta i { font-size: 11px; }
.post-card-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-green);
    text-decoration: none;
    transition: gap 0.2s;
}
.post-card-link:hover { gap: 8px; }
.post-card-link i { font-size: 11px; transition: transform 0.2s; }
.post-card-link:hover i { transform: translateX(3px); }

/* --- Featured Post (first article, full width) --- */
.post-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.post-card.featured .post-card-cover {
    width: 340px;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
    flex-direction: column;
    border-radius: 0;
}
.post-card.featured .post-card-cover-icon { font-size: 64px; }
.post-card.featured .post-card-body {
    padding: 32px 36px;
    justify-content: center;
}
.post-card.featured .post-card-title {
    font-size: 20px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
}
.post-card.featured .post-card-excerpt {
    -webkit-line-clamp: 2;
    margin-bottom: 24px;
}
.featured-badge {
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    background: linear-gradient(90deg, rgba(16,185,129,0.12) 0%, rgba(245,158,11,0.08) 100%);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-green);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.featured-badge i { font-size: 10px; color: var(--accent-orange); }

/* --- Empty State --- */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}
.blog-empty i {
    font-size: 48px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 16px;
}

/* --- CTA Banner --- */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-deep) 0%, #0a1628 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.blog-cta-inner { position: relative; z-index: 1; }
.blog-cta-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(16,185,129,0.15);
    color: var(--brand-green);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.blog-cta-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.blog-cta-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 32px;
    font-weight: 300;
}
.blog-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
    padding: 14px 36px;
    background: var(--brand-green);
    color: #fff;
    font-weight: 600; font-size: 15px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 24px var(--brand-green-glow);
    transition: 0.3s;
}
.btn-cta-primary:hover { transform: translateY(-2px); background: #059669; }
.btn-cta-secondary {
    padding: 14px 36px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-weight: 500; font-size: 15px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    transition: 0.3s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card.featured { flex-direction: column; max-height: none; }
    .post-card.featured .post-card-cover {
        width: 100%; height: 200px; min-height: auto;
    }
}
@media (max-width: 640px) {
    .blog-hero { padding: 130px 0 60px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-filter-bar { flex-direction: column; align-items: flex-start; }
    .post-card.featured { max-height: none; }
}
