@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

    .navbar.scrolled {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.filter-bar {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

    .filter-bar:hover {
        transform: translateY(-2px);
    }

.form-select, .form-control {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

    .form-select:focus, .form-control:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
    }

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

    .card .badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: #6366f1;
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .card h5 {
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Số dòng tối đa */
        -webkit-box-orient: vertical;
    }

    .card p {
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 1rem;
    }

.btn-primary {
    background: #6366f1;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
    width: 100%;
    text-align: center;
}

    .btn-primary:hover {
        background: #4f46e5;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

.ad-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #4b5563;
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

    .ad-placeholder:hover {
        transform: translateY(-5px);
    }

    .ad-placeholder ins {
        width: 100% !important;
        max-height: 280px;
    }

footer a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

    footer a:hover {
        color: #6366f1;
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

    .pagination a, .pagination span {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .pagination a {
        background: #ffffff;
        color: #6366f1;
        border: 1px solid #d1d5db;
    }

        .pagination a:hover {
            background: #6366f1;
            color: white;
            border-color: #6366f1;
            transform: translateY(-2px);
        }

    .pagination .active {
        background: #6366f1;
        color: white;
        border: 1px solid #6366f1;
    }

    .pagination .disabled {
        background: #f3f4f6;
        color: #9ca3af;
        border: 1px solid #d1d5db;
        cursor: not-allowed;
    }
.breadcrumb {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .breadcrumb a {
        color: #6366f1;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        color: #4b5563;
    }