body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
    padding: 10px;
}

/* Search */
.search-container {
    margin-bottom: 10px;
    margin-top: 75px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px; /* sửa ở đây*/
    border: none;
    background: #e0e0e0;
    font-size: 16px; /* sửa ở đây*/
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.search-container input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Tags */
.tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 15px;
    padding-top: 4px;
}

.tag.active {
    background: #666;
}

.tag {
    font-size: 14px; /* sửa ở đây*/
    background: #ccc;
    color: #333;
    padding: 6px 14px; 
    border-radius: 25px; /* sửa ở đây*/
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.tag.active {
    background: #357ABD;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.file-tag {
    cursor: pointer;
    margin-right: 5px;
}

.file-tag:hover {
    text-decoration: underline;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* sửa ở đây*/
    gap: 15px;
    margin-top: 25px;
}

/* Card */
.card {
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.card .image {
    height: 120px; /* sửa ở đây*/
    border-radius: 10px 10px 0 0;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.card:hover .image {
    filter: brightness(1.1);
}

.card .info {
    padding: 16px;
    color: #111;
}

.card .info h3 {
    margin: 0;
    font-size: 16px; /* sửa ở đây*/
}

.card .info p {
    margin: 8px 0 0;
    font-size: 12px; /* sửa ở đây*/
    color: #555;
}

.image {
    height: 120px; /* sửa ở đây*/
    border-radius: 10px 10px 0 0;
    background-color: #ccc;
}

.info {
    padding: 16px;
    color: rgb(3, 0, 0);
}

.info h3 {
    margin: 0;
}

.info p {
    margin: 5px 0 0;
    font-size: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 2;       /* giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-clamp: 2;               /* chuẩn mới (trình duyệt hỗ trợ dần) */
}

/* Áp dụng cho mobile */
@media (max-width: 768px) {
    .tags {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tags::-webkit-scrollbar {
        display: none;
    }
}