.blog-header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.back-home {
    display: inline-block;
    color: #00d2ff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.back-home:hover {
    opacity: 0.8;
}

.blog-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.blog-search {
    max-width: 500px;
    margin: 24px auto;
}

.blog-search input {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
}

.blog-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.blog-search input::placeholder {
    color: #8892b0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tag-btn {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #8892b0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-btn:hover, .tag-btn.active {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-color: transparent;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.blog-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover {
    color: #00d2ff;
}

.blog-card-desc {
    font-size: 13px;
    color: #8892b0;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-card-tag {
    padding: 3px 10px;
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border-radius: 10px;
    font-size: 11px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8892b0;
    font-size: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding-bottom: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #8892b0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-color: transparent;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-tags {
        gap: 8px;
    }
    
    .tag-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}
